@font-face {
  font-family: 'Oriental Chicken';
  src: url('fonts/OrientalChicken.ttf') format('truetype');
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:   #c8102e;   /* Chinese red */
  --brand-d: #a00d25;
  --gold:    #f0b429;   /* takeout yellow-gold */
  --bg:      #fffdf8;
  --surface: #ffffff;
  --text:    #1a1a1a;
  --muted:   #6b6b6b;
  --border:  #e8e0d5;
  --radius:  12px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.hidden { display: none !important; }

/* ── Nav ───────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,253,248,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 32px; }
.nav-logo { font-family: 'Oriental Chicken', 'Ma Shan Zheng', serif; font-size: 22px; color: var(--brand); flex: 1; }
.nav-link { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-link:hover { color: var(--text); }
.nav-cta { padding: 8px 18px; font-size: 13px; }

/* ── Buttons ───────────────────────────────────────────────────── */
.cta-btn { display: inline-block; background: var(--brand); color: #fff; padding: 12px 26px; border-radius: var(--radius); font-weight: 600; font-size: 15px; text-decoration: none; border: none; cursor: pointer; transition: background .15s; }
.cta-btn:hover { background: var(--brand-d); }
.cta-primary { background: var(--brand); }
.cta-ghost { display: inline-block; color: var(--brand); font-weight: 600; text-decoration: none; font-size: 15px; }
.cta-ghost:hover { text-decoration: underline; }
.cta-full { width: 100%; text-align: center; display: block; margin-top: 24px; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { padding: 100px 24px 80px; text-align: center; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-badge { display: inline-block; background: var(--gold); color: #fff; border-radius: 999px; padding: 5px 16px; font-size: 13px; font-weight: 700; margin-bottom: 28px; letter-spacing: 0.3px; }
.hero h1 { font-family: 'Oriental Chicken', 'Ma Shan Zheng', serif; font-size: clamp(52px, 8vw, 84px); font-weight: 400; line-height: 1.05; letter-spacing: -0.5px; color: var(--text); margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 13px; color: var(--muted); }

/* ── Proof strip ───────────────────────────────────────────────── */
.proof-strip { background: var(--brand); color: #fff; padding: 12px 24px; display: flex; justify-content: center; gap: 16px; font-size: 13px; font-weight: 500; flex-wrap: wrap; }
.proof-strip .sep { color: var(--gold); opacity: 1; }

/* ── Sections ──────────────────────────────────────────────────── */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.steps, .features, .pricing, .install, .extension-dl { padding: 96px 0; }
.steps { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features { background: var(--bg); }
.pricing { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.install { background: var(--bg); }
.extension-dl { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }

h2 { font-family: 'Oriental Chicken', 'Ma Shan Zheng', serif; font-size: clamp(32px, 4.5vw, 48px); font-weight: 400; letter-spacing: 0; margin-bottom: 12px; color: var(--text); }
.section-sub { color: var(--muted); font-size: 17px; margin-bottom: 52px; }
.steps h2, .features h2, .pricing h2, .extension-dl h2 { text-align: center; }
.steps .section-sub, .features .section-sub { text-align: center; }

/* ── Steps grid ────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; }
.step-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.step-num { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.step-icon { font-size: 32px; margin-bottom: 16px; }
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--muted); }

/* ── Features grid ─────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 48px; }
.feature { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ── Pricing ───────────────────────────────────────────────────── */
.price-card { display: inline-block; background: var(--bg); border: 2px solid var(--brand); border-radius: 20px; padding: 48px 52px; max-width: 420px; text-align: left; }
.price-amount { font-family: 'Oriental Chicken', 'Ma Shan Zheng', serif; font-size: 52px; font-weight: 400; color: var(--brand); letter-spacing: -1px; }
.price-label { font-size: 16px; color: var(--muted); margin-bottom: 28px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.price-features li { font-size: 15px; color: var(--text); padding-left: 22px; position: relative; }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.loyalty-note { font-size: 14px; color: var(--muted); background: #fff8e6; border: 1px solid var(--gold); border-radius: 8px; padding: 10px 14px; margin-bottom: 4px; }

/* ── Extension download gate ───────────────────────────────────── */
.dl-gate { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.dl-gate input[type=password] { flex: 1; min-width: 180px; max-width: 280px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; background: var(--surface); }
.dl-gate input[type=password]:focus { outline: 2px solid var(--brand); border-color: transparent; }
.dl-error { color: var(--brand); font-size: 14px; font-weight: 600; }
.dl-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.dl-note a { color: var(--brand); }

/* ── Install ───────────────────────────────────────────────────── */
.install-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.install-text h2 { text-align: left; }
.install-steps { list-style: none; counter-reset: steps; display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.install-steps li { counter-increment: steps; padding-left: 36px; position: relative; font-size: 16px; }
.install-steps li::before { content: counter(steps); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; background: var(--brand); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.install-note { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-form input { flex: 1; min-width: 180px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; background: var(--surface); }
.waitlist-form input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.install-fine { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 28px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-logo { font-family: 'Oriental Chicken', 'Ma Shan Zheng', serif; font-size: 18px; color: var(--brand); flex: 1; }
.footer-tagline { font-size: 13px; color: var(--muted); }
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-copy a { color: var(--muted); }

/* ── Menu Modal ────────────────────────────────────────────────── */
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s; }
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.menu-modal { position: fixed; bottom: 0; left: 0; right: 0; z-index: 201; background: var(--surface); border-radius: 20px 20px 0 0; max-height: 88vh; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,0,1); box-shadow: 0 -4px 40px rgba(0,0,0,.18); }
.menu-modal.open { transform: translateY(0); }

.menu-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 12px auto 0; flex-shrink: 0; }

.menu-header { background: var(--brand); color: #fff; padding: 18px 24px 16px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.menu-logo { font-family: 'Oriental Chicken', 'Ma Shan Zheng', serif; font-size: 20px; flex: 1; }
.menu-tagline { font-size: 12px; opacity: .75; flex: 1; text-align: center; }
.menu-close { background: rgba(255,255,255,.2); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.menu-close:hover { background: rgba(255,255,255,.35); }

.menu-body { overflow-y: auto; padding: 0 0 24px; flex: 1; }

.menu-section { border-bottom: 1px solid var(--border); padding: 0 24px; }
.menu-section:last-of-type { border-bottom: none; }
.menu-section-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
.section-sub-tag { font-size: 11px; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; opacity: .7; }

.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.menu-item:first-of-type { border-top: none; }
.menu-item.popular { background: #fff9f0; margin: 0 -24px; padding: 10px 24px; }
.menu-item-left { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.menu-item-name { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.menu-item-desc { font-size: 12px; color: var(--muted); }
.menu-item-price { font-size: 14px; font-weight: 700; color: var(--brand); white-space: nowrap; flex-shrink: 0; }
.menu-item-price.free { color: var(--muted); font-weight: 500; font-size: 12px; }

.badge { background: var(--gold); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; letter-spacing: .2px; }

.menu-footer { padding: 16px 24px 8px; border-top: 1px solid var(--border); flex-shrink: 0; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .install-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 64px 24px 56px; }
  .steps, .features, .pricing, .install, .extension-dl { padding: 64px 0; }
  .proof-strip { gap: 8px; }
  .proof-strip .sep { display: none; }
  .price-card { padding: 36px 28px; }
  .menu-modal { max-height: 92vh; }
}
