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

:root {
  --bg: #08080d;
  --bg-elevated: #0f0f16;
  --bg-card: #14141d;
  --surface: #1a1a26;
  --border: rgba(255,255,255,0.05);
  --border-hover: rgba(255,255,255,0.12);
  --text: #f2efe8;
  --text-muted: #a3a3b3;
  --text-dim: #4a4a5a;
  --accent: #c9a96e;
  --accent-glow: rgba(201,169,110,0.12);
  --accent2: #7eb8da;
  --green: #4ecb71;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1140px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

:root[data-theme="light"] {
  --bg: #f8f7f4;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --surface: #f0ede8;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.15);
  --text: #1a1a2e;
  --text-muted: #5a5a6e;
  --text-dim: #8a8a9a;
  --accent: #9a7b4f;
  --accent-glow: rgba(154,123,79,0.08);
  --accent2: #4a8fb5;
  --green: #2da44e;
}
:root[data-theme="light"] .grain { opacity: 0.015; }
:root[data-theme="light"] .cursor-glow { display: none; }
:root[data-theme="light"] .hero__bg { opacity: 0.3; }
:root[data-theme="light"] .section-wipe { background: linear-gradient(to bottom, var(--bg), var(--bg-elevated)); }
:root[data-theme="light"] .section-wipe::after { display: none; }
:root[data-theme="light"] .nav--scrolled { background: rgba(248,247,244,0.95); }
:root[data-theme="light"] .nav__mobile { background: rgba(248,247,244,0.98); }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; }
a { color: inherit; text-decoration: none; }

.grain { position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); pointer-events: none; z-index: 1; transform: translate(-50%,-50%); opacity: 0; transition: opacity 0.5s; will-change: transform; }
body:hover .cursor-glow { opacity: 1; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1.8rem 2rem; transition: all 0.4s var(--ease); }
.nav--scrolled { padding: 1.4rem 2rem; background: rgba(8,8,13,0.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav__inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; }
.nav__logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.1rem; }
.nav__logo-svg { color: var(--accent); }
.nav__links { display: flex; gap: 2.5rem; }
.nav__link { font-size: 0.88rem; color: var(--text-muted); letter-spacing: 0.02em; transition: color 0.3s; position: relative; font-weight: 500; }
.nav__link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.3s var(--ease); }
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__cta { font-size: 0.78rem; padding: 0.55rem 1.3rem; border: 1px solid var(--border-hover); border-radius: 100px; letter-spacing: 0.04em; text-transform: uppercase; transition: all 0.3s; margin-right: 0.75rem; margin-bottom: 0.5rem; }
.nav__cta:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.theme-toggle { background: none; border: 1px solid var(--border-hover); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: all 0.3s; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle-mobile { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg canvas { width: 100%; height: 100%; opacity: 0.5; }
.hero__content { position: relative; z-index: 2; text-align: center; padding: 2rem; padding-top: 5rem; max-width: 900px; }
.hero__badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding: 0.45rem 1rem; border: 1px solid var(--border); border-radius: 100px; margin-bottom: 2rem; opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s var(--ease) 0.2s forwards; }
.hero__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.hero__title { font-size: clamp(2.8rem, 8vw, 5.5rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.hero__line { display: block; opacity: 0; transform: translateY(50px); animation: fadeUp 1s var(--ease) forwards; }
.hero__line:nth-child(1) { animation-delay: 0.4s; }
.hero__line:nth-child(2) { animation-delay: 0.6s; }
.hero__line:nth-child(3) { animation-delay: 0.8s; }
.hero__line--accent { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-weight: 400; }
.hero__sub { font-size: clamp(0.92rem, 2vw, 1.1rem); color: var(--text-muted); max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s var(--ease) 1s forwards; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.8s var(--ease) 1.2s forwards; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.8rem; border-radius: 100px; font-size: 0.88rem; font-weight: 500; transition: all 0.3s var(--ease); cursor: pointer; border: none; font-family: var(--font-sans); }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,169,110,0.3); }
.btn--ghost { border: 1px solid var(--border-hover); color: var(--text-muted); background: transparent; }
.btn--ghost:hover { border-color: var(--text-muted); color: var(--text); }

.hero__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3.5rem; opacity: 0; animation: fadeUp 0.8s var(--ease) 1.6s forwards; }
.metric-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem; text-align: left; transition: all 0.3s var(--ease); }
.metric-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.metric-card__value { font-size: 1.5rem; font-weight: 600; color: var(--accent); display: block; letter-spacing: -0.02em; }
.metric-card__label { font-size: 0.68rem; color: var(--text-dim); display: block; margin-top: 0.2rem; }
.metric-card__bar { height: 3px; background: var(--surface); border-radius: 2px; margin-top: 0.7rem; overflow: hidden; }
.metric-card__fill { height: 100%; background: var(--accent); border-radius: 2px; width: 0; transition: width 1.5s var(--ease); }

.hero__scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0; animation: fadeUp 0.8s var(--ease) 2s forwards; }
.hero__scroll-indicator span { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-dim); }
.hero__scroll-line { width: 1px; height: 35px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrollPulse 2s infinite; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* SECTIONS */
.section-wipe { height: 80px; background: linear-gradient(to bottom, var(--bg), var(--bg-elevated)); position: relative; }
.section-wipe::after { content: ''; position: absolute; top: 50%; left: 10%; right: 10%; height: 1px; background: linear-gradient(to right, transparent, var(--accent), transparent); opacity: 0.2; }
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 5rem 2rem; }
.section-tag { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 1.2rem; padding: 0.35rem 0.9rem; border: 1px solid rgba(201,169,110,0.2); border-radius: 100px; font-weight: 600; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1rem; }
.section-title em { font-family: var(--font-serif); font-style: italic; color: var(--accent); }
.section-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 480px; line-height: 1.7; font-weight: 500; }

/* FEATURES */
.features { background: var(--bg-elevated); }
.features__header { margin-bottom: 3rem; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 3rem; }

.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem; transition: all 0.4s var(--ease); position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, var(--accent), var(--accent2)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card--large { grid-column: span 2; }
.feature-card__icon { color: var(--accent); margin-bottom: 1.2rem; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--surface); border-radius: 10px; }
.feature-card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card__desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; font-weight: 500; }

/* Schedule Preview */
.feature-card__demo { margin-top: 1.5rem; }
.schedule-preview { display: flex; flex-direction: column; gap: 0.5rem; }
.schedule-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; background: var(--surface); border-radius: 8px; font-size: 0.78rem; color: var(--text-muted); }
.schedule-row svg { color: var(--accent); flex-shrink: 0; }
.schedule-row__freq { margin-left: auto; font-size: 0.65rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

/* Currencies */
.currencies { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem; text-align: center; }
.currencies__title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-dim); margin-bottom: 1.2rem; }
.currencies__list { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.currency-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border: 1px solid var(--border-hover); border-radius: 100px; font-size: 0.8rem; font-weight: 500; color: var(--text); transition: all 0.3s; }
.currency-chip svg { color: var(--accent); }
.currency-chip:hover { border-color: var(--accent); background: var(--accent-glow); }
.currency-chip--coming { opacity: 0.5; border-style: dashed; }
.currency-chip--coming::after { content: 'soon'; font-size: 0.55rem; text-transform: uppercase; color: var(--text-dim); margin-left: 0.3rem; }

/* BUSINESS */
.business { background: var(--bg); }
.business__header { margin-bottom: 3rem; }
.business__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.biz-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; transition: all 0.4s var(--ease); }
.biz-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.biz-card--featured { grid-column: span 2; border-color: rgba(201,169,110,0.12); background: linear-gradient(135deg, var(--bg-card), rgba(201,169,110,0.02)); }
.biz-card__icon { color: var(--accent); margin-bottom: 1rem; }
.biz-card__tag { display: inline-block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; background: var(--accent); color: var(--bg); padding: 0.2rem 0.6rem; border-radius: 100px; font-weight: 600; margin-bottom: 0.8rem; }
.biz-card__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.biz-card__desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; font-weight: 500; }
.biz-card__stats { display: flex; gap: 2.5rem; margin-top: 1.5rem; }
.biz-stat__value { font-size: 1.8rem; font-weight: 600; color: var(--accent); display: block; }
.biz-stat__label { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.biz-card__savings { margin-top: 1.2rem; font-size: 0.9rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.3rem; font-weight: 500; }
.biz-card__vs { color: var(--text-dim); font-size: 0.7rem; }
.biz-card__highlight { color: var(--green); font-weight: 500; }
.biz-card__code { margin-top: 1rem; background: var(--surface); padding: 0.6rem 1rem; border-radius: 6px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent2); }

/* TRACTION */
.traction { background: var(--bg-elevated); }
.traction__header { margin-bottom: 3rem; }
.traction__counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.counter-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; text-align: center; transition: all 0.4s var(--ease); }
.counter-card:hover { border-color: var(--border-hover); }
.counter-card__ring { position: relative; width: 90px; height: 90px; margin: 0 auto 1rem; }
.counter-card__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.counter-card__ring-bg { fill: none; stroke: var(--surface); stroke-width: 6; }
.counter-card__ring-fill { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 1.5s var(--ease); }
.counter-card__ring.animate .counter-card__ring-fill { stroke-dashoffset: var(--offset); }
.counter-card__percent { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 1rem; font-weight: 600; color: var(--accent); }
.counter-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.counter-card__desc { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* REVENUE */
.revenue-model { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; margin-bottom: 2rem; }
.revenue-model__title { font-size: 1rem; font-weight: 500; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.revenue-model__title svg { color: var(--accent); }
.revenue-model__items { display: flex; flex-direction: column; gap: 1.2rem; }
.revenue-item__header { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.revenue-item__name { font-size: 0.82rem; color: var(--text-muted); }
.revenue-item__rate { font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.revenue-item__bar { height: 5px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.revenue-item__fill { height: 100%; background: linear-gradient(to right, var(--accent), var(--accent2)); border-radius: 3px; width: 0; transition: width 1.2s var(--ease); }
.revenue-item__fill.animate { width: var(--w); }
.revenue-model__note { font-size: 0.75rem; color: var(--text-dim); margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* MOAT */
.moat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; }
.moat__title { font-size: 1rem; font-weight: 500; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.moat__title svg { color: var(--accent); }
.moat__items { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.moat__item { display: flex; gap: 0.8rem; align-items: flex-start; }
.moat__item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.moat__item h4 { font-size: 0.88rem; font-weight: 500; margin-bottom: 0.25rem; }
.moat__item p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* JOURNEY / HOW IT WORKS */
.journey { background: var(--bg); }
.journey__header { margin-bottom: 3rem; }
.journey__flow { display: flex; flex-direction: column; gap: 0; margin-bottom: 3rem; }
.journey__step { display: grid; grid-template-columns: 50px 48px 1fr; gap: 1rem; align-items: start; padding: 1.8rem 0; border-bottom: 1px solid var(--border); position: relative; opacity: 0; transform: translateX(-20px); transition: all 0.6s var(--ease); }
.journey__step.visible { opacity: 1; transform: translateX(0); }
.journey__step-num { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 300; color: var(--accent); opacity: 0.5; line-height: 1; }
.journey__step-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--surface); border-radius: 10px; color: var(--accent); }
.journey__step-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }
.journey__step-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; font-weight: 500; }
.journey__step-connector { display: none; }

/* Demo Chat */
.journey__demo { margin-bottom: 2.5rem; }
.demo-chat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; max-width: 560px; }
.demo-chat__header { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.2rem; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 0.8rem; font-weight: 500; color: var(--text); }
.demo-chat__header svg { color: var(--accent); }
.demo-chat__status { margin-left: auto; display: flex; align-items: center; gap: 0.3rem; font-size: 0.65rem; color: var(--text-dim); }
.demo-chat__messages { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.demo-msg { padding: 0.7rem 1rem; border-radius: 12px; font-size: 0.8rem; line-height: 1.6; max-width: 85%; opacity: 0; transform: translateX(-20px) scale(0.95); }
.demo-msg--user { opacity: 0; transform: translateX(20px) scale(0.95); }
.demo-chat.visible .demo-msg { animation: msgSlideLeft 0.5s var(--ease) forwards; }
.demo-chat.visible .demo-msg--user { animation: msgSlideRight 0.5s var(--ease) forwards; }
.demo-chat.visible .demo-msg:nth-child(1) { animation-delay: 0.3s; }
.demo-chat.visible .demo-msg:nth-child(2) { animation-delay: 0.9s; }
.demo-chat.visible .demo-msg:nth-child(3) { animation-delay: 1.6s; }
.demo-chat.visible .demo-msg:nth-child(4) { animation-delay: 2.2s; }
.demo-msg--user { background: var(--accent); color: var(--bg); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.demo-msg--ai { background: var(--surface); color: var(--text-muted); align-self: flex-start; border-bottom-left-radius: 4px; display: flex; gap: 0.5rem; }
.demo-msg--ai svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.demo-msg--success { border: 1px solid rgba(78,203,113,0.2); background: rgba(78,203,113,0.05); }
.demo-msg--success svg { color: var(--green); }
.demo-msg strong { color: var(--text); }

/* Prompt Chips */
.journey__prompts { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem; }
.journey__prompts-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.journey__prompts-title svg { color: var(--accent); }
.journey__prompts-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.prompt-chip { padding: 0.5rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); transition: all 0.3s var(--ease); cursor: default; }
.prompt-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* LIVE TICKER */
.live-ticker { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.7rem 2rem; overflow: hidden; }
.live-ticker__inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; gap: 0.7rem; font-size: 0.85rem; }
.live-ticker__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; flex-shrink: 0; }
.live-ticker__count { font-weight: 600; color: var(--accent); font-family: var(--font-mono); }
.live-ticker__label { color: var(--text-muted); }
.live-ticker__divider { color: var(--text-dim); }
.live-ticker__last { color: var(--text-dim); }
.live-ticker__last strong { color: var(--text-muted); }

/* SIMULATOR */
.simulator { background: var(--bg-elevated); }
.simulator__header { margin-bottom: 2rem; }
.simulator__widget { max-width: 600px; }
.sim-chat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 1rem; }
.sim-chat__messages { padding: 1.2rem; min-height: 120px; display: flex; flex-direction: column; gap: 0.7rem; max-height: 280px; overflow-y: auto; }
.sim-msg { padding: 0.6rem 1rem; border-radius: 12px; font-size: 0.8rem; line-height: 1.5; max-width: 85%; animation: msgSlideIn 0.5s var(--ease) both; }
.sim-msg--user { background: var(--accent); color: var(--bg); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; animation-name: msgSlideRight; }
.sim-msg--ai { background: var(--surface); color: var(--text-muted); align-self: flex-start; border-bottom-left-radius: 4px; display: flex; gap: 0.5rem; align-items: flex-start; animation-name: msgSlideLeft; }
@keyframes msgSlideLeft { from { opacity: 0; transform: translateX(-20px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes msgSlideRight { from { opacity: 0; transform: translateX(20px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
.sim-msg--ai svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.sim-msg--success { border: 1px solid rgba(78,203,113,0.2); }
.sim-chat__input { display: flex; border-top: 1px solid var(--border); }
.sim-chat__input input { flex: 1; background: transparent; border: none; padding: 0.9rem 1.2rem; color: var(--text); font-family: var(--font-sans); font-size: 0.85rem; outline: none; }
.sim-chat__input input::placeholder { color: var(--text-dim); }
.sim-chat__input button { background: transparent; border: none; padding: 0.9rem 1.2rem; color: var(--accent); cursor: pointer; transition: transform 0.2s; }
.sim-chat__input button:hover { transform: scale(1.1); }
.sim-suggestions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sim-suggestion { background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 0.4rem 0.9rem; font-size: 0.72rem; color: var(--text-muted); cursor: pointer; font-family: var(--font-sans); transition: all 0.3s var(--ease); }
.sim-suggestion:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* Typing indicator */
.typing-dots { display: inline-flex; gap: 3px; align-items: center; height: 16px; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); animation: typingBounce 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* CALCULATOR */
.calculator { background: var(--bg); }
.calculator__header { margin-bottom: 2rem; }
.calculator__widget { max-width: 560px; }
.calc-control { margin-bottom: 2rem; }
.calc-label { font-size: 0.78rem; color: var(--text-muted); display: block; margin-bottom: 0.8rem; }
.calc-slider-wrap { position: relative; }
.calc-slider { width: 100%; appearance: none; height: 6px; background: var(--surface); border-radius: 3px; outline: none; cursor: pointer; }
.calc-slider::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 10px rgba(201,169,110,0.4); transition: transform 0.2s; }
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-slider-value { text-align: right; font-size: 1.4rem; font-weight: 600; color: var(--accent); margin-top: 0.5rem; font-family: var(--font-mono); }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.calc-result { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem; }
.calc-result__label { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.calc-result__fee { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.2rem; }
.calc-result--old .calc-result__fee { color: #e85d5d; }
.calc-result--new .calc-result__fee { color: var(--green); }
.calc-result__rate { font-size: 0.7rem; color: var(--text-dim); margin-bottom: 0.8rem; }
.calc-result__bar { height: 4px; background: var(--surface); border-radius: 2px; overflow: hidden; }
.calc-result__fill { height: 100%; border-radius: 2px; transition: width 0.4s var(--ease); }
.calc-result__fill--old { background: #e85d5d; }
.calc-result__fill--new { background: var(--green); }
.calc-savings { display: flex; align-items: center; gap: 0.6rem; padding: 1rem 1.2rem; background: rgba(78,203,113,0.05); border: 1px solid rgba(78,203,113,0.15); border-radius: 10px; font-size: 0.88rem; color: var(--text-muted); }
.calc-savings svg { color: var(--green); flex-shrink: 0; }
.calc-savings strong { color: var(--green); font-size: 1.1rem; }

/* WAITLIST / HELP SHAPE */
.waitlist { background: var(--bg-elevated); position: relative; overflow: hidden; }
.waitlist::before { content: ''; position: absolute; top: 50%; left: 50%; width: 600px; height: 600px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); pointer-events: none; }
.waitlist__inner { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 6rem 2rem; }
.waitlist__title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.2rem; }
.waitlist__desc { font-size: clamp(0.95rem, 2vw, 1.15rem); color: var(--text-muted); max-width: 540px; line-height: 1.7; margin-bottom: 2.5rem; }
.waitlist__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* Waitlist Modal */
.waitlist-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
.waitlist-modal.active { opacity: 1; pointer-events: all; }
.waitlist-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); }
.waitlist-modal__content { position: relative; background: var(--bg-card); border: 1px solid var(--border-hover); border-radius: 16px; padding: 2.5rem; max-width: 440px; width: 90%; transform: translateY(20px) scale(0.96); transition: transform 0.3s var(--ease); }
.waitlist-modal.active .waitlist-modal__content { transform: translateY(0) scale(1); }
.waitlist-modal__close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: none; color: var(--text-muted); font-size: 1.8rem; cursor: pointer; line-height: 1; transition: color 0.3s; }
.waitlist-modal__close:hover { color: var(--text); }
.waitlist-modal__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.waitlist-form { display: flex; flex-direction: column; gap: 1.2rem; }
.waitlist-form__group { display: flex; flex-direction: column; gap: 0.4rem; }
.waitlist-form__group label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.waitlist-form__group input,
.waitlist-form__group textarea { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.7rem 1rem; color: var(--text); font-family: var(--font-sans); font-size: 0.88rem; outline: none; transition: border-color 0.3s; resize: vertical; }
.waitlist-form__group input:focus,
.waitlist-form__group textarea:focus { border-color: var(--accent); }
.waitlist-form__group input::placeholder,
.waitlist-form__group textarea::placeholder { color: var(--text-dim); }
.waitlist-form__submit { align-self: flex-start; margin-top: 0.5rem; }
.waitlist-form__success { text-align: center; padding: 2rem 0; }
.waitlist-form__success svg { color: var(--green); margin-bottom: 1rem; }
.waitlist-form__success p { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 4rem 2rem 2.5rem; background: var(--bg-elevated); }
.footer__inner { max-width: var(--max-w); margin: 0 auto; }
.footer__brand { margin-bottom: 2.5rem; }
.footer__logo { font-size: 1.2rem; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.footer__logo svg { color: var(--accent); }
.footer__tagline { font-family: var(--font-serif); font-size: 1.4rem; font-style: italic; color: var(--text-muted); line-height: 1.3; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.footer__col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col-title { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-dim); margin-bottom: 0.3rem; }
.footer__link { font-size: 0.82rem; color: var(--text-muted); transition: color 0.3s; }
.footer__link:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; }
.footer__copy, .footer__built { font-size: 0.7rem; color: var(--text-dim); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* MOBILE NAV */
.nav__burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
.nav__mobile { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 0 2rem; background: var(--bg); border-bottom: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.4s var(--ease); }
.nav__mobile.open { max-height: 450px; padding: 2rem 2rem 2.5rem; }
.nav__mobile-link { font-size: 0.9rem; color: var(--text-muted); transition: color 0.3s; opacity: 0; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s, color 0.3s; }
.nav__mobile.open .nav__mobile-link { opacity: 1; transform: translateY(0); }
.nav__mobile.open .nav__mobile-link:nth-child(1) { transition-delay: 0.05s; }
.nav__mobile.open .nav__mobile-link:nth-child(2) { transition-delay: 0.1s; }
.nav__mobile.open .nav__mobile-link:nth-child(3) { transition-delay: 0.15s; }
.nav__mobile.open .nav__mobile-link:nth-child(4) { transition-delay: 0.2s; }
.nav__mobile-cta { font-size: 0.8rem; padding: 0.55rem 1.3rem; border: 1px solid var(--border-hover); border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em; transition: all 0.3s; }
.nav__mobile-actions { display: flex; align-items: center; gap: 1rem; opacity: 0; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s; }
.nav__mobile.open .nav__mobile-actions { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero__metrics { grid-template-columns: 1fr; gap: 0.8rem; }
  .features__grid { grid-template-columns: 1fr 1fr; }
  .feature-card--large { grid-column: span 2; }
  .business__grid { grid-template-columns: 1fr; }
  .biz-card--featured { grid-column: span 1; }
  .traction__counters { grid-template-columns: 1fr; }
  .security__grid { grid-template-columns: 1fr 1fr; }
  .moat__items { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav { padding: 1.2rem 1.5rem; }
  .nav--scrolled { padding: 1rem 1.5rem; }
  .theme-toggle { margin-right: 0.5rem; }
  .hero__content { padding-top: 4rem; }
  .nav > .nav__inner > .theme-toggle { display: none; }
  .nav__mobile .theme-toggle-mobile { display: flex; }
}

@media (max-width: 600px) {
  .hero__content { padding-top: 5rem; }
  .hero__title { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .features__grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }
  .security__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .biz-card__stats { flex-direction: column; gap: 1rem; }
  .waitlist__actions { flex-direction: column; align-items: center; }
  .waitlist__actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}
