/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c1220;
  --bg-alt: #111827;
  --fg: #f0ebe0;
  --fg-muted: #8a8a9a;
  --accent: #f4c75e;
  --accent-dim: #a8892f;
  --border: rgba(244, 199, 94, 0.15);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.nav-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  font-weight: 500;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 199, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 199, 94, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

.hero-content {
  max-width: 820px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  border: 1px solid rgba(244, 199, 94, 0.35);
  border-radius: 999px;
  padding: 0.65rem 1.75rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.hero-cta:hover {
  background: rgba(244, 199, 94, 0.1);
  border-color: rgba(244, 199, 94, 0.6);
}

/* ===== PROOF / STATS ===== */
.proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
  background: var(--bg-alt);
}

.proof-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}

.proof-stat {
  text-align: center;
  padding: 0 2rem;
}

.proof-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.proof-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proof-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ===== PHILOSOPHY ===== */
.philosophy {
  padding: 8rem 2rem;
}

.philosophy-inner {
  max-width: 860px;
  margin: 0 auto;
}

.philosophy-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-dim);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.philosophy-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 2.5rem;
  max-width: 700px;
}

.philosophy-body p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.philosophy-body p:last-child { margin-bottom: 0; }

/* ===== HOW IT WORKS ===== */
.how {
  padding: 8rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.how-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 4rem;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.how-step {}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.how-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.how-step p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== CLOSING ===== */
.closing {
  padding: 10rem 2rem 8rem;
  text-align: center;
}

.closing-inner {
  max-width: 780px;
  margin: 0 auto;
}

.closing-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 2.5rem;
}

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

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.footer-note {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* ===== LIVE AGENT DEMO ===== */
.demo {
  padding: 7rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.demo-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.demo-eyebrow {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.demo-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1rem;
}

.demo-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--fg-muted);
  max-width: 540px;
  margin: 0 auto 1.25rem;
  line-height: 1.65;
}

.demo-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(244, 199, 94, 0.1);
  border: 1px solid rgba(244, 199, 94, 0.3);
  color: var(--accent);
}

/* Panel: two-column layout */
.demo-panel {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Left column ── */
.demo-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-pnl-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-pnl-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-weight: 500;
}

.demo-pnl-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  transition: color 0.4s ease;
}

.demo-pnl-abs {
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.4s ease;
}

.pos { color: #4ade80; }
.neg { color: #f87171; }

/* Risk chips row */
.demo-risk-row {
  display: flex;
  gap: 0.75rem;
}

.demo-risk-chip {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.risk-chip-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-weight: 500;
}

.risk-chip-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.risk-chip-value.drawdown { color: #fbbf24; }

/* Portfolio table */
.demo-portfolio {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.demo-portfolio-head {
  display: grid;
  grid-template-columns: 60px 1fr 70px;
  padding: 0.6rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-weight: 500;
}

.demo-portfolio-rows { padding: 0.4rem 0; }

.demo-portfolio-row {
  display: grid;
  grid-template-columns: 60px 1fr 70px;
  align-items: center;
  padding: 0.45rem 1.2rem;
  transition: background 0.2s;
}

.demo-portfolio-row:hover {
  background: rgba(244, 199, 94, 0.04);
}

.port-ticker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.port-weight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.port-bar {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(244, 199, 94, 0.35);
  min-width: 4px;
  flex-shrink: 0;
  transition: width 0.6s ease;
}

.port-weight-val {
  font-size: 0.78rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.port-change {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
  transition: color 0.4s ease;
}

/* ── Right column: log ── */
.demo-right {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.demo-log-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  font-weight: 500;
}

.demo-log-pulse {
  font-size: 0.6rem;
  color: #4ade80;
  transition: opacity 0.45s ease;
}

.demo-log-pulse--dim { opacity: 0.2; }

.demo-log {
  padding: 0.75rem 0;
  min-height: 380px;
  max-height: 460px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.demo-log::-webkit-scrollbar { width: 4px; }
.demo-log::-webkit-scrollbar-track { background: transparent; }
.demo-log::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.demo-log-entry {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 1.4rem;
  font-size: 0.83rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(244, 199, 94, 0.04);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.demo-log-entry:last-child { border-bottom: none; }

/* New entries slide in from top */
.demo-log-entry--new {
  opacity: 0;
  transform: translateY(-6px);
}

.log-ts {
  font-size: 0.68rem;
  color: var(--fg-muted);
  font-family: 'Courier New', monospace;
  flex-shrink: 0;
  padding-top: 0.1rem;
  opacity: 0.6;
}

.log-msg {
  color: var(--fg-muted);
  flex: 1;
}

.log-msg strong {
  color: var(--accent);
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
/* ===== WAITLIST SECTION (anchored after demo) ===== */
.waitlist {
  padding: 7rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}

.waitlist-inner {
  max-width: 640px;
  margin: 0 auto;
}

.waitlist-eyebrow {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.waitlist-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1rem;
}

.waitlist-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.waitlist-form {
  width: 100%;
}

.waitlist-field {
  display: flex;
  gap: 0;
  border: 1px solid rgba(244, 199, 94, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color 0.2s;
  max-width: 500px;
  margin: 0 auto;
}

.waitlist-field:focus-within {
  border-color: rgba(244, 199, 94, 0.7);
}

.waitlist-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.85rem 1.25rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  min-width: 0;
}

.waitlist-input::placeholder {
  color: rgba(138, 138, 154, 0.6);
  font-size: 0.82rem;
}

.waitlist-btn {
  background: var(--accent);
  color: #0c1220;
  border: none;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.waitlist-btn:hover:not(:disabled) {
  background: #f9d87a;
}

.waitlist-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-msg {
  margin-top: 1rem;
  font-size: 0.88rem;
  text-align: center;
}

.waitlist-msg--success {
  color: #4ade80;
}

.waitlist-msg--error {
  color: #f87171;
}

.waitlist-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* ===== HERO WAITLIST FORM (secondary placement) ===== */
.hero-waitlist-form {
  margin: 0 auto 2rem;
  max-width: 500px;
}

.hero-waitlist-field {
  display: flex;
  gap: 0;
  border: 1px solid rgba(244, 199, 94, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color 0.2s;
}

.hero-waitlist-field:focus-within {
  border-color: rgba(244, 199, 94, 0.7);
}

.hero-waitlist-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.8rem 1.2rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  min-width: 0;
}

.hero-waitlist-input::placeholder {
  color: rgba(138, 138, 154, 0.55);
  font-size: 0.8rem;
}

.hero-waitlist-btn {
  background: var(--accent);
  color: #0c1220;
  border: none;
  padding: 0.8rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-waitlist-btn:hover:not(:disabled) {
  background: #f9d87a;
}

.hero-waitlist-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hero-waitlist-msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
}

.hero-waitlist-msg--success { color: #4ade80; }
.hero-waitlist-msg--error   { color: #f87171; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .proof-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .proof-divider { display: none; }
  .proof-stat { padding: 0; border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
  .proof-stat:last-child { border-bottom: none; padding-bottom: 0; }

  .how-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Demo: stack on mobile */
  .demo-panel {
    grid-template-columns: 1fr;
  }

  .demo-risk-row {
    gap: 0.5rem;
  }

  .demo-log {
    min-height: 280px;
    max-height: 340px;
  }
}

@media (max-width: 480px) {
  .how-steps {
    grid-template-columns: 1fr;
  }

  .hero { padding: 6rem 1.5rem 4rem; }
  .philosophy, .how, .closing { padding-left: 1.5rem; padding-right: 1.5rem; }

  .demo { padding: 5rem 1.5rem; }
  .demo-pnl-value { font-size: 2rem; }
  .demo-risk-chip { padding: 0.6rem 0.75rem; }

  .waitlist { padding: 5rem 1.5rem; }
  .waitlist-field { flex-direction: column; border-radius: 14px; }
  .waitlist-input { padding: 0.9rem 1.25rem; }
  .waitlist-btn { border-radius: 0 0 12px 12px; padding: 0.9rem 1.5rem; }

  .hero-waitlist-field { flex-direction: column; border-radius: 14px; }
  .hero-waitlist-input { padding: 0.9rem 1.2rem; }
  .hero-waitlist-btn { border-radius: 0 0 12px 12px; padding: 0.9rem 1.4rem; }
}