/* ============================================================
   MenuCraft — Landing page (light theme)
   Page-specific styles only. Shared tokens/buttons/cards live in
   marketing.css; nav lives in header.php; footer in footer.php.
   ============================================================ */

/* ── HERO ── */
.hero {
  padding: 7rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFF8F4 0%, #FFFFFF 55%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  background: radial-gradient(ellipse, rgba(232,82,26,0.10) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 1.5rem 0 1.25rem;
}

.hero h1 .accent { color: var(--brand); }

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.25rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* ── HERO CARD FAN ── */
.hero-cards {
  position: relative;
  max-width: 900px;
  margin: 1rem auto 0;
  padding: 2.5rem 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  width: 190px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(16,24,40,0.14), 0 0 0 1px rgba(16,24,40,0.04);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s;
  margin: 0 -18px;
  cursor: default;
}
.hero-card:hover {
  transform: translateY(-12px) rotate(0deg) !important;
  box-shadow: 0 28px 56px rgba(16,24,40,0.22), 0 0 0 1px rgba(16,24,40,0.05);
  z-index: 10;
}
.hero-card.rot-1 { transform: rotate(-8deg) translateY(18px); z-index: 1; }
.hero-card.rot-2 { transform: rotate(4deg) translateY(-6px); z-index: 3; }
.hero-card.rot-3 { transform: rotate(-4deg) translateY(-4px); z-index: 4; }
.hero-card.rot-4 { transform: rotate(8deg) translateY(20px); z-index: 2; }

.hero-card-top { padding: 1rem 1.125rem 0.875rem; }
.hero-card-name { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; }
.hero-card-tag { font-size: 0.6875rem; margin-top: 0.15rem; }
.hero-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  border-top: 1px solid var(--border);
}

.hero-badge {
  position: absolute;
  bottom: -0.5rem;
  right: calc(50% - 320px);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 999px;
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  transform: rotate(-3deg);
}

/* ── PROOF STATS ── */
.proof-stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.stat { text-align: center; }
.stat-num { font-size: 2.25rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-size: 0.8125rem; color: var(--muted); margin-top: 0.375rem; }

/* ── THEMES SHOWCASE ── */
.themes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.theme-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.theme-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #DCDCE2; }

.theme-preview { height: 220px; position: relative; overflow: hidden; flex-shrink: 0; }
.preview-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }
.preview-header { padding: 1rem 1.125rem 0.875rem; flex-shrink: 0; }
.preview-name { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.175rem; }
.preview-sub { font-size: 0.65rem; opacity: 0.6; }
.preview-accent { width: 24px; height: 2px; border-radius: 2px; margin-top: 0.5rem; }
.preview-nav { display: flex; gap: 0.375rem; padding: 0.5rem 1.125rem; flex-shrink: 0; }
.preview-nav-pill { padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.625rem; font-weight: 600; }
.preview-items { flex: 1; overflow: hidden; padding: 0.625rem 1.125rem; display: flex; flex-direction: column; gap: 0.5rem; }
.preview-item { display: flex; align-items: center; gap: 0.625rem; border-radius: 8px; padding: 0.45rem 0.5rem; }
.preview-item-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; flex-shrink: 0; }
.preview-item-info { flex: 1; min-width: 0; }
.preview-item-name { font-size: 0.65rem; font-weight: 600; }
.preview-item-desc { font-size: 0.575rem; opacity: 0.6; margin-top: 0.1rem; }
.preview-item-price { font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }

.preview-overlay {
  position: absolute; inset: 0;
  background: rgba(20,21,26,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s; backdrop-filter: blur(3px);
}
.theme-card:hover .preview-overlay { opacity: 1; }
.overlay-btn {
  padding: 0.65rem 1.75rem; background: var(--brand); color: #fff;
  border-radius: 10px; font-weight: 700; font-size: 0.875rem;
  transform: translateY(8px); transition: transform 0.25s;
  display: flex; align-items: center; gap: 0.5rem;
}
.theme-card:hover .overlay-btn { transform: translateY(0); }

.theme-card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.theme-card-name { font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.theme-card-desc { font-size: 0.75rem; color: var(--muted); margin-top: 0.1rem; }
.theme-card-link {
  padding: 0.45rem 0.9rem; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.775rem; font-weight: 600; color: var(--ink-2);
  transition: all 0.25s; white-space: nowrap; flex-shrink: 0;
}
.theme-card:hover .theme-card-link { background: var(--brand); border-color: var(--brand); color: #fff; }

.new-pill {
  display: inline-flex; align-items: center;
  padding: 0.1rem 0.5rem; background: var(--brand-tint); color: var(--brand);
  border-radius: 999px; font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; margin-left: 0.5rem;
  vertical-align: middle;
}

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.feature-card {
  padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: #fff; transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #DCDCE2; }
.feature-icon {
  width: 48px; height: 48px; background: var(--brand-tint); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--ink); }
.feature-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ── WHO IT'S FOR ── */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.industry-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem 1rem; text-align: center; transition: var(--transition);
}
.industry-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.industry-card .icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.industry-card .name { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }

/* ── HOW IT WORKS ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 28px;
  left: calc(16.666% + 28px); right: calc(16.666% + 28px);
  height: 1px; background: linear-gradient(90deg, var(--brand), rgba(232,82,26,0.2));
}
.step { position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; font-weight: 800; margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}
.step:nth-child(1) .step-num { background: var(--brand); color: #fff; }
.step:nth-child(2) .step-num { background: var(--brand-tint); color: var(--brand); border: 1px solid rgba(232,82,26,0.25); }
.step:nth-child(3) .step-num { background: #fff; color: var(--brand); border: 1px solid rgba(232,82,26,0.2); }
.step h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.625rem; color: var(--ink); }
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ── EARLY ACCESS ── */
.access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; max-width: 1000px; margin: 0 auto; }
.access-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 1.75rem; transition: var(--transition);
}
.access-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #DCDCE2; }
.access-title { font-weight: 700; font-size: 1rem; color: var(--ink); margin: 0.75rem 0 0.5rem; }
.access-text { font-size: 0.9rem; line-height: 1.7; color: var(--muted); }

/* ── CTA BOTTOM ── */
.cta-section { padding: 6rem 2rem; text-align: center; position: relative; overflow: hidden; background: var(--brand-tint); }
.cta-section h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; line-height: 1.15; color: var(--ink); }
.cta-section h2 .accent { color: var(--brand); }
.cta-section p { color: var(--ink-2); margin-bottom: 2.25rem; font-size: 1.0625rem; }
.cta-note { margin-top: 1.25rem; font-size: 0.8125rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .themes-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps-grid::before { display: none; }
  .hero-card { width: 160px; margin: 0 -14px; }
  .hero-badge { right: calc(50% - 240px); }
}

@media (max-width: 768px) {
  .hero { padding: 6rem 1.25rem 3rem; }
}

@media (max-width: 600px) {
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn-cta { width: 100%; }

  /* Card fan collapses to a simple 2x2 grid, no rotation, on phones */
  .hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 2rem 0.5rem 2.5rem; }
  .hero-card, .hero-card.rot-1, .hero-card.rot-2, .hero-card.rot-3, .hero-card.rot-4 {
    width: 100%; margin: 0; transform: none;
  }
  .hero-card:hover { transform: translateY(-4px) !important; }
  .hero-badge { position: static; grid-column: 1 / -1; justify-self: center; display: inline-block; margin-top: 0.5rem; transform: none; }

  .themes-grid { grid-template-columns: 1fr; }
  .theme-preview { height: 200px; }
  .theme-card-footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .features-grid { grid-template-columns: 1fr; }
  .proof-stats { gap: 1.75rem; }
  .stat-num { font-size: 1.75rem; }
}
