:root {
  --bg: #0b0b0d;
  --panel: #151517;
  --panel-2: #1b1c20;
  --line: rgba(255,255,255,.08);
  --text: #f7f7f8;
  --muted: rgba(247,247,248,.58);
  --muted-2: rgba(247,247,248,.38);
  --blue: #0879ff;
  --cyan: #16c8ff;
  --mint: #25f1dd;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-bg { position: fixed; inset: 0; pointer-events: none; z-index: -1; background: var(--bg); }
.glow { position: absolute; border-radius: 999px; filter: blur(28px); opacity: .55; }
.glow-a { width: 420px; height: 420px; top: -180px; right: -110px; background: radial-gradient(circle, rgba(22,200,255,.30), transparent 68%); }
.glow-b { width: 520px; height: 520px; left: -220px; top: 300px; background: radial-gradient(circle, rgba(37,241,221,.18), transparent 70%); }
.grid-soft { position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 78%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1160px) / 2));
  background: rgba(11,11,13,.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header.simple { position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 180px; }
.brand-mark { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #061019; font-weight: 950; background: linear-gradient(120deg, var(--blue), var(--cyan) 52%, var(--mint)); box-shadow: 0 14px 36px rgba(22,200,255,.18); }
.brand-name { font-size: 19px; line-height: 1; font-weight: 950; font-style: italic; letter-spacing: -.5px; }
.nav-links { display: flex; align-items: center; gap: 28px; color: rgba(255,255,255,.62); font-size: 14px; font-weight: 700; }
.nav-links a:hover { color: #fff; }
.header-cta { min-width: 112px; height: 42px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #061019; font-size: 14px; font-weight: 900; background: linear-gradient(120deg, #fff, #8cf8ff 56%, #6bffe5); box-shadow: 0 14px 34px rgba(34,234,211,.20); }

.section-shell { width: min(1160px, calc(100vw - 44px)); margin: 0 auto; }
.hero { min-height: calc(100vh - 74px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 72px; align-items: center; padding: 68px 0 80px; }
.eyebrow { margin: 0 0 16px; color: #77f4ff; font-size: 12px; letter-spacing: .22em; font-weight: 950; }
.hero h1, .section-title h2, .download-card h2, .legal-shell h1 { margin: 0; letter-spacing: -1.8px; line-height: 1.06; }
.hero h1 { max-width: 640px; font-size: clamp(42px, 6vw, 76px); font-weight: 950; }
.hero-text { max-width: 590px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.primary-btn, .ghost-btn { height: 52px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; }
.primary-btn { color: #061019; background: linear-gradient(120deg, var(--blue), var(--cyan) 48%, var(--mint)); box-shadow: 0 18px 44px rgba(22,136,255,.26); }
.ghost-btn { color: rgba(255,255,255,.76); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-meta span { height: 32px; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; color: rgba(255,255,255,.70); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); font-size: 13px; font-weight: 800; }

.phone-stage { display: flex; justify-content: center; }
.phone-shell { width: min(360px, 88vw); height: 720px; padding: 12px; border-radius: 42px; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); position: relative; }
.phone-status { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; border-radius: 999px; background: #050506; z-index: 2; }
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; background: #0b0b0c; border: 1px solid rgba(255,255,255,.04); padding: 58px 18px 18px; display: flex; flex-direction: column; gap: 18px; }
.app-head { display: flex; align-items: center; justify-content: space-between; }
.app-head strong { display: block; font-size: 24px; font-style: italic; font-weight: 950; letter-spacing: -.8px; }
.app-head span { display: block; margin-top: 4px; color: rgba(255,255,255,.45); font-size: 12px; font-weight: 700; }
.app-head i { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(120deg, var(--blue), var(--mint)); opacity: .9; }
.chat-list { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 0; }
.bubble { max-width: 88%; padding: 13px 15px; border-radius: 18px; font-size: 13px; font-weight: 700; line-height: 1.55; animation: bubbleIn .35s ease both; }
.bubble.user { align-self: flex-end; color: #061019; background: linear-gradient(120deg, #fff, #8cf8ff); }
.bubble.ai { align-self: flex-start; color: rgba(255,255,255,.82); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.mini-card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-card { min-height: 86px; padding: 12px; border-radius: 20px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); color: rgba(255,255,255,.64); }
.mini-card span { display: block; height: 32px; border-radius: 12px; background: rgba(255,255,255,.08); margin-bottom: 10px; }
.mini-card b { font-size: 13px; }
.mini-card.active { color: #fff; background: linear-gradient(145deg, rgba(22,136,255,.18), rgba(37,241,221,.08)); border-color: rgba(117,241,255,.18); }
.input-bar { height: 54px; border-radius: 999px; background: #151517; border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 18px; color: rgba(255,255,255,.36); font-size: 13px; font-weight: 700; }
.input-bar i { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(120deg, var(--blue), var(--mint)); }

.clean-section, .template-section, .workflow-section, .download-section { padding: 76px 0; }
.section-title { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-title h2, .download-card h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 950; }
.section-title p:last-child, .download-card p { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card, .play-card, .step, .download-card, .legal-card { border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.feature-card { padding: 26px; min-height: 212px; }
.icon-dot { width: 42px; height: 42px; border-radius: 15px; background: linear-gradient(120deg, var(--blue), var(--cyan) 52%, var(--mint)); box-shadow: 0 14px 34px rgba(34,234,211,.16); margin-bottom: 24px; }
.feature-card h3, .play-card h3, .step h3 { margin: 0; font-size: 20px; font-weight: 920; letter-spacing: -.4px; }
.feature-card p, .play-card p, .step p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.template-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.tab { height: 42px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; color: rgba(255,255,255,.62); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); font-weight: 900; }
.tab.active { color: #061019; background: linear-gradient(120deg, #fff, #8cf8ff 58%, #6bffe5); }
.template-board { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.play-card { padding: 28px; min-height: 280px; position: relative; overflow: hidden; }
.play-card.is-large { min-height: 340px; background: radial-gradient(circle at 75% 18%, rgba(37,241,221,.15), transparent 36%), linear-gradient(145deg, rgba(22,136,255,.16), rgba(255,255,255,.04)); }
.tag { display: inline-flex; height: 28px; padding: 0 11px; align-items: center; border-radius: 999px; color: #061019; background: linear-gradient(120deg, #8cf8ff, #6bffe5); font-size: 12px; font-weight: 950; margin-bottom: 18px; }
.muted-tag { color: rgba(255,255,255,.78); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }
.fake-cover { position: absolute; right: 28px; bottom: 28px; width: 230px; height: 150px; border-radius: 26px; background: #0f1013; border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.fake-cover i { position: absolute; border-radius: 999px; background: linear-gradient(120deg, rgba(8,121,255,.78), rgba(37,241,221,.62)); }
.fake-cover i:nth-child(1) { width: 118px; height: 118px; left: 22px; top: 22px; }
.fake-cover i:nth-child(2) { width: 84px; height: 84px; right: 24px; top: 34px; opacity: .72; }
.fake-cover i:nth-child(3) { width: 190px; height: 20px; left: 22px; bottom: 18px; opacity: .28; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 26px; }
.step b { display: block; color: #77f4ff; font-size: 13px; letter-spacing: .2em; margin-bottom: 22px; }
.download-card { display: flex; justify-content: space-between; gap: 26px; align-items: center; padding: 34px; }
.qr-placeholder { width: 164px; height: 164px; flex: none; border-radius: 30px; background: #f8fbff; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 18px; position: relative; box-shadow: 0 22px 56px rgba(0,0,0,.28); }
.qr-placeholder span { background: #0b0b0d; border-radius: 12px; }
.qr-placeholder b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #061019; font-size: 13px; white-space: nowrap; background: #fff; border-radius: 999px; padding: 5px 10px; }
.site-footer { width: min(1160px, calc(100vw - 44px)); margin: 0 auto; padding: 42px 0 54px; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.42); font-size: 13px; }
.footer-brand { color: #fff; font-weight: 950; font-style: italic; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: #fff; }

.simple-page { background: var(--bg); }
.legal-shell { width: min(860px, calc(100vw - 44px)); margin: 0 auto; padding: 72px 0 100px; }
.legal-shell h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 950; }
.legal-card { margin-top: 28px; padding: 28px; color: var(--muted); }
.legal-card h2 { color: #fff; margin: 22px 0 10px; font-size: 20px; }
.legal-card p { margin: 14px 0; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .brand { min-width: 0; }
  .site-header { height: 66px; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 46px; padding-top: 54px; }
  .hero-copy { text-align: left; }
  .feature-grid, .steps, .template-board { grid-template-columns: 1fr; }
  .download-card, .site-footer { flex-direction: column; align-items: flex-start; }
  .section-title { text-align: left; margin-left: 0; }
  .template-tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .phone-shell { height: 680px; }
  .fake-cover { position: relative; right: auto; bottom: auto; margin-top: 28px; width: 100%; }
}

@media (max-width: 520px) {
  .section-shell { width: min(100vw - 28px, 1160px); }
  .hero h1 { font-size: 42px; }
  .hero-text { font-size: 16px; }
  .header-cta { min-width: auto; padding: 0 14px; }
  .brand-name { font-size: 18px; }
  .clean-section, .template-section, .workflow-section, .download-section { padding: 56px 0; }
  .feature-card, .play-card, .step, .download-card { border-radius: 24px; padding: 22px; }
  .phone-shell { width: 100%; max-width: 360px; height: 660px; }
}
