/* ═══════════════════════════════════════════════════
   Chefizi AI — Main Stylesheet
   ═══════════════════════════════════════════════════ */

/* ─── Variables ────────────────────────────────────── */
:root {
  --gold: #F5C842;
  --gold-dark: #D4A200;
  --gold-light: #F9D96A;
  --black: #0A0A0A;
  --surface: #141414;
  --surface2: #1E1E1E;
  --border: #2A2A2A;
  --text-primary: #F5F5F0;
  --text-secondary: #8A8A85;
  --text-muted: #4A4A47;
  --white: #FFFFFF;
  --danger: #FF3B30;
  --success: #34C759;
  --max-width: 1200px;
}

/* ─── Reset ────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', sans-serif; background: var(--black); color: var(--text-primary); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ─── Typography ───────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--text-primary); }
.gold { color: var(--gold); }

/* ─── Buttons ──────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; border-radius: 12px; height: 52px; padding: 0 32px; transition: background .2s, transform .1s, border-color .2s; }
.btn:active { transform: scale(.98); }

.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-light); }

.btn-secondary { background: transparent; border: 1px solid rgba(245,200,66,.3); color: var(--gold); }
.btn-secondary:hover { border-color: var(--gold); }

.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--text-secondary); }

.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; border-radius: 8px; }

/* ─── Navigation ───────────────────────────────────── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 64px; background: rgba(10,10,10,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(245,200,66,.15); }
nav .container { display: flex; align-items: center; height: 100%; }
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.4); }

.nav-logo { height: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--text-secondary); transition: color .2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-btn-outline { height: 36px; padding: 0 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-primary) !important; display: inline-flex; align-items: center; transition: border-color .2s; }
.nav-btn-outline:hover { border-color: var(--gold) !important; }
.nav-btn-gold { height: 36px; padding: 0 16px; background: var(--gold); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--black) !important; display: inline-flex; align-items: center; transition: background .2s; }
.nav-btn-gold:hover { background: var(--gold-light); }

.hamburger { display: none; width: 24px; height: 18px; flex-direction: column; justify-content: space-between; margin-left: auto; cursor: pointer; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--text-primary); border-radius: 1px; transition: transform .3s, opacity .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 24px; transform: translateY(-100%); transition: transform .3s ease; z-index: 999; }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { display: block; padding: 12px 0; font-size: 16px; color: var(--text-primary); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
}

/* ─── Hero (Claude-style split) ────────────────────── */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 64px; position: relative; overflow: visible; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; min-height: calc(100vh - 64px); }

/* Left side — auth/CTA */
.hero-left { max-width: 480px; }
.hero-left h1 { font-size: 56px; line-height: 1.12; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero-subtitle { font-size: 17px; color: var(--text-secondary); margin-bottom: 36px; line-height: 1.6; }

/* Auth card */
.hero-auth { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.hero-auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; background: var(--surface2); border: 1px solid var(--border); color: var(--text-primary); border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; font-family: inherit; }
.hero-auth-google:hover { border-color: var(--gold); background: rgba(245,200,66,.05); }
.hero-auth-oauth { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 48px; background: var(--surface2); border: 1px solid var(--border); color: var(--text-primary); border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; font-family: inherit; margin-top: 10px; }
.hero-auth-oauth:hover { border-color: var(--gold); background: rgba(245,200,66,.05); }
.hero-auth-divider { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.hero-auth-divider span { font-size: 13px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.hero-auth-divider::before, .hero-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.hero-auth-input { display: block; width: 100%; height: 48px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 0 16px; font-size: 15px; color: var(--text-primary); outline: none; font-family: inherit; transition: border-color .2s; }
.hero-auth-input:focus { border-color: var(--gold); }
.hero-auth-input::placeholder { color: var(--text-muted); }
.hero-auth-submit { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; background: var(--gold); color: var(--black); border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; margin-top: 12px; font-family: inherit; }
.hero-auth-submit:hover { background: var(--gold-light); }
.hero-auth-footer { font-size: 12px; color: var(--text-secondary); margin-top: 16px; line-height: 1.5; text-align: center; }
.hero-auth-footer a { color: var(--text-secondary); text-decoration: underline; }
.hero-auth-footer a:hover { color: var(--gold); }

/* Download app button */
.hero-app-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text-primary); transition: border-color .2s; cursor: pointer; text-decoration: none; }
.hero-app-btn:hover { border-color: var(--gold); }
.hero-app-btn svg { width: 18px; height: 18px; color: var(--text-primary); }

/* Right side — showcase card */
.hero-right { display: flex; align-items: center; justify-content: center; }
.hero-showcase { width: 100%; max-width: 560px; aspect-ratio: 4/5; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; text-align: center; position: relative; overflow: hidden; }
.hero-showcase::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(245,200,66,.06) 0%, transparent 70%); pointer-events: none; }
.hero-showcase-logo { width: 120px; height: 120px; border-radius: 28px; margin-bottom: 48px; position: relative; z-index: 1; }
.hero-showcase h2 { font-size: 44px; line-height: 1.15; letter-spacing: -1px; position: relative; z-index: 1; max-width: 400px; }
.hero-showcase h2 .gold { color: var(--gold); }

/* Phone frame with video */
.phone-frame { position: relative; width: 420px; height: 860px; margin-bottom: -120px; background: #000; border-radius: 54px; border: 3px solid rgba(245,200,66,.3); box-shadow: 0 0 40px rgba(245,200,66,.12), 0 0 80px rgba(245,200,66,.06), 0 20px 60px rgba(0,0,0,.5); padding: 10px; box-sizing: border-box; overflow: hidden; flex-shrink: 0; flex-grow: 0; z-index: 0; }
.phone-notch { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 120px; height: 28px; background: #000; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-video { width: 100%; height: 100%; object-fit: cover; object-position: center 4px; border-radius: 38px; display: block; }

/* Animated words */
.hero-showcase-word { display: inline-block; animation: wordFade 12s ease-in-out infinite; }
@keyframes wordFade { 0%,20%{opacity:1} 25%,95%{opacity:0} 100%{opacity:1} }
.hero-showcase-words { position: relative; display: block; height: 1.2em; overflow: hidden; }
.hero-showcase-words span { position: absolute; left: 0; right: 0; animation: wordSlide 12s ease-in-out infinite; opacity: 0; }
.hero-showcase-words span:nth-child(1) { animation-delay: 0s; }
.hero-showcase-words span:nth-child(2) { animation-delay: 3s; }
.hero-showcase-words span:nth-child(3) { animation-delay: 6s; }
.hero-showcase-words span:nth-child(4) { animation-delay: 9s; }
@keyframes wordSlide { 0%{opacity:0;transform:translateY(20px)} 5%{opacity:1;transform:translateY(0)} 20%{opacity:1;transform:translateY(0)} 25%{opacity:0;transform:translateY(-20px)} 100%{opacity:0} }

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-left { max-width: 520px; margin: 0 auto; }
  .hero-right { display: none; }
}
@media (max-width: 768px) {
  .hero-left h1 { font-size: 42px; }
  .hero-subtitle { font-size: 16px; }
}
@media (max-width: 480px) {
  .hero-left h1 { font-size: 36px; }
}

/* ─── Stats ────────────────────────────────────────── */
.stats { background: rgba(10,10,10,.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); padding: 40px 0; position: relative; z-index: 1; }
.stats .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-secondary); }
@media (max-width: 768px) { .stats .container { grid-template-columns: repeat(2,1fr); } }

/* ─── Section base ─────────────────────────────────── */
.section { padding: 120px 0; }
.section-dark { background: var(--black); }
.section-surface { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 48px; margin-bottom: 16px; }
.section-header p { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
@media (max-width: 768px) { .section { padding: 80px 0; } .section-header h2 { font-size: 32px; } .section-header { margin-bottom: 48px; } }

/* ─── Features ─────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; transition: transform .3s, border-color .3s; }
.feature-card:hover { border-color: rgba(245,200,66,.4); transform: translateY(-4px); }
.feature-icon { width: 52px; height: 52px; border-radius: 16px; background: rgba(245,200,66,.1); border: 1px solid rgba(245,200,66,.2); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--gold); }
.feature-card h3 { font-size: 22px; margin-bottom: 12px; }
.feature-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.65; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

/* Feature card stagger */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: .1s; }
.feature-card:nth-child(3) { transition-delay: .2s; }
.feature-card:nth-child(4) { transition-delay: .3s; }

/* ─── How It Works ─────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.step-number { font-family: 'Playfair Display', serif; font-size: 64px; font-weight: 700; color: var(--gold); opacity: .25; line-height: 1; margin-bottom: 16px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; gap: 48px; } }

/* ─── Pricing ──────────────────────────────────────── */
.pricing-toggle { display: flex; justify-content: center; gap: 4px; margin-bottom: 48px; background: var(--surface2); border-radius: 12px; padding: 4px; max-width: 280px; margin-left: auto; margin-right: auto; }
.pricing-toggle button { flex: 1; height: 40px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-secondary); transition: all .25s; position: relative; }
.pricing-toggle button.active { background: var(--gold); color: var(--black); }
.save-badge { position: absolute; top: -10px; right: -8px; background: var(--gold); color: var(--black); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 99px; }

.plans-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; align-items: stretch; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; position: relative; display: flex; flex-direction: column; }
.plan-card.highlighted { border: 2px solid var(--gold); }
.plan-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 12px; border-radius: 99px; margin-bottom: 16px; }
.plan-badge-gold { background: var(--gold); color: var(--black); position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-weight: 700; }
.plan-badge-green { background: rgba(52,199,89,.1); color: var(--success); border: 1px solid rgba(52,199,89,.2); }
.plan-badge-blue { background: rgba(10,132,255,.1); color: #0A84FF; border: 1px solid rgba(10,132,255,.2); }
.plan-badge-gray { background: var(--surface2); color: var(--text-secondary); }

#pricing > .container { max-width: 1680px; }
.plan-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 36px; font-weight: 700; }
.plan-price-period { font-size: 14px; color: var(--text-secondary); font-weight: 400; }
.price-old { font-size: 14px; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; display: none; }
.discount-badge { display: none; background: #FF3B30; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.plan-desc { font-size: 13px; color: var(--text-secondary); margin: 4px 0 20px; }
.plan-features { margin-bottom: 24px; flex: 1; }
.plan-features li { font-size: 14px; padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.plan-features .check { color: var(--gold); font-weight: 600; }
.plan-features .cross { color: var(--text-muted); }
.plan-features .disabled { color: var(--text-muted); text-decoration: line-through; }
.plan-cta { width: 100%; }

.pricing-footer { text-align: center; margin-top: 32px; font-size: 13px; color: var(--text-secondary); }

@media (max-width: 1280px) { .plans-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px) { .plans-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }

/* ─── Download ─────────────────────────────────────── */
.download-section { text-align: center; }
.download-section h2 { font-size: 56px; margin-bottom: 16px; }
.download-section p { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; }
.download-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-store { display: inline-flex; align-items: center; gap: 12px; background: var(--text-primary); color: var(--black); height: 56px; padding: 0 24px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: opacity .2s; }
.btn-store:hover { opacity: .9; }
.btn-store .store-icon { font-size: 24px; }
.btn-store small { font-size: 11px; font-weight: 400; display: block; line-height: 1.2; }
.download-note { margin-top: 24px; font-size: 14px; color: var(--text-muted); }
@media (max-width: 768px) { .download-section h2 { font-size: 36px; } }

/* ─── Footer ───────────────────────────────────────── */
footer { background: var(--black); border-top: 1px solid var(--border); padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; color: var(--text-secondary); margin-top: 16px; max-width: 280px; line-height: 1.6; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-secondary); transition: color .2s, border-color .2s; }
.footer-socials a:hover { color: var(--gold); border-color: var(--gold); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 16px; font-family: 'Inter', sans-serif; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
/* Language switcher in footer */
.lang-switcher { display: flex; align-items: center; gap: 4px; padding: 4px 0; position: relative; cursor: pointer; }
.lang-name { font-size: 14px; color: var(--text-secondary); user-select: none; transition: color .2s; }
.lang-switcher:hover .lang-name { color: var(--gold); }
.lang-arrows { display: flex; flex-direction: column; gap: 0; }
.lang-arrows svg { width: 12px; height: 12px; color: var(--gold); display: block; }
.lang-dropdown { display: none; position: absolute; bottom: 100%; left: 0; min-width: 180px; max-height: 280px; overflow-y: auto; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 0; margin-bottom: 8px; z-index: 100; box-shadow: 0 -4px 20px rgba(0,0,0,.4); }
.lang-dropdown.open { display: block; }
.lang-dropdown button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 8px 14px; font-size: 14px; color: var(--text-secondary); cursor: pointer; font-family: inherit; transition: background .15s, color .15s; }
.lang-dropdown button:hover { background: rgba(245,200,66,.1); color: var(--text-primary); }
.lang-dropdown button.active { color: var(--gold); font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; font-size: 12px; color: var(--text-secondary); text-align: center; line-height: 1.6; }
.footer-credit { text-align: center; padding-top: 12px; font-size: 11px; color: var(--text-secondary); }
.footer-credit a { color: inherit; text-decoration: none; opacity: 0.7; transition: opacity .2s; }
.footer-credit a:hover { opacity: 1; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ─── Scroll Animations ────────────────────────────── */
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ─── Cookie Banner — styles injected by cookies.js ── */
