/* ============ CLOSERAI · THEMED STYLES ============ */

:root {
  /* Dark mode (default) */
  --bg: #0a0a0a;
  --bg-elev: #111;
  --bg-elev-2: #141414;
  --bg-elev-3: #161616;
  --bg-input: #1a1a1a;
  --bg-msg: #1f1f1f;
  --text: #fff;
  --text-secondary: #999;
  --text-tertiary: #777;
  --text-quaternary: #555;
  --text-muted: #666;
  --text-on-fill: #000;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --border-card: rgba(255,255,255,0.08);
  --grid-line: rgba(255,255,255,0.04);
  --hover-bg: rgba(255,255,255,0.03);
  --logo-bg: #fff;
  --logo-fg: #000;
  --btn-fill: #fff;
  --btn-fill-fg: #000;
  --btn-fill-hover: #e8e8e8;
  --banner-bg: #000;
  --pricing-gradient: linear-gradient(180deg, #161616 0%, #0d0d0d 100%);
  --accent-green: #4ade80;
  --accent-green-soft: rgba(74, 222, 128, 0.12);
  --accent-green-softer: rgba(74, 222, 128, 0.04);
  --accent-amber: #fbbf24;
  --accent-blue: #60a5fa;
  --accent-red: #f87171;
  --accent-purple: #c084fc;
  --hero-gradient: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(74, 222, 128, 0.08), transparent 70%);
}

[data-theme="light"] {
  --bg: #f5f5f5;
  --bg-elev: #fff;
  --bg-elev-2: #fafafa;
  --bg-elev-3: #f0f0f0;
  --bg-input: #fff;
  --bg-msg: #ececec;
  --text: #0a0a0a;
  --text-secondary: #555;
  --text-tertiary: #777;
  --text-quaternary: #999;
  --text-muted: #888;
  --text-on-fill: #fff;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --border-card: rgba(0,0,0,0.1);
  --grid-line: rgba(0,0,0,0.05);
  --hover-bg: rgba(0,0,0,0.03);
  --logo-bg: #0a0a0a;
  --logo-fg: #fff;
  --btn-fill: #0a0a0a;
  --btn-fill-fg: #fff;
  --btn-fill-hover: #2a2a2a;
  --banner-bg: #0a0a0a;
  --pricing-gradient: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
  --hero-gradient: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(74, 222, 128, 0.1), transparent 70%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Theme toggle button */
.theme-toggle {
  background: var(--bg-elev);
  border: 0.5px solid var(--border-strong);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background 0.15s, transform 0.15s;
}
.theme-toggle:hover { background: var(--bg-elev-3); transform: scale(1.05); }
.theme-toggle i { font-size: 17px; transition: opacity 0.2s; }
.theme-toggle .ti-sun { display: none; }
[data-theme="light"] .theme-toggle .ti-moon { display: none; }
[data-theme="light"] .theme-toggle .ti-sun { display: inline; }

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Section divider — full-width horizontal line */
.divider {
  width: 100%;
  height: 0.5px;
  background: var(--border);
  margin: 0;
}

/* Banner */
.banner { background: var(--banner-bg); text-align: center; padding: 12px; font-size: 13px; color: var(--text-secondary); }
.banner strong { color: var(--text); font-weight: 500; }
[data-theme="light"] .banner { color: #ccc; }
[data-theme="light"] .banner strong { color: #fff; }

/* Nav */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 48px; max-width: 1200px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.logo-text .accent-blue { color: #6aa1ff; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-secondary); font-size: 14px; transition: color 0.2s; cursor: pointer; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.btn-primary { background: var(--btn-fill); color: var(--btn-fill-fg); border: none; padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: transform 0.15s, background 0.15s; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: var(--btn-fill-hover); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border: 0.5px solid var(--border-strong); padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: border-color 0.15s, background 0.15s; text-decoration: none; display: inline-block; }
.btn-secondary:hover { border-color: var(--text-tertiary); background: var(--hover-bg); }
.btn-hero { background: var(--btn-fill); color: var(--btn-fill-fg); border: none; padding: 14px 30px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: transform 0.15s, background 0.15s; text-decoration: none; display: inline-block; }
.btn-hero:hover { background: var(--btn-fill-hover); transform: translateY(-1px); }

/* ====== HERO (centered, QuantPad-style) ====== */
.hero {
  padding: 100px 48px 60px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  pointer-events: none;
  z-index: -1;
}
.hero-headline {
  font-size: 72px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 auto;
  max-width: 900px;
}
.hero-headline .fade-line {
  background: linear-gradient(180deg, var(--text) 0%, var(--text-quaternary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-cycle-line { margin-top: 4px; min-height: 80px; }
#caret { animation: blink 1s steps(1) infinite; display: inline-block; font-weight: 300; margin-left: 2px; color: var(--text); }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.hero-subhead { font-size: 18px; color: var(--text-secondary); line-height: 1.65; margin: 32px auto 0; max-width: 560px; }
.hero-buttons { display: flex; gap: 12px; margin-top: 40px; justify-content: center; }

/* Hero showcase mockup — 3D tilt + cinematic stage */
.hero-showcase {
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 0 48px;
  position: relative;
  /* perspective gives the rotateX child true depth — bigger = subtler */
  perspective: 2200px;
  perspective-origin: 50% 0%;
}
/* Top green glow behind the card */
.hero-showcase::before {
  content: '';
  position: absolute;
  inset: -40px 0 0 0;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(74, 222, 128, 0.1), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
/* Side vignette — fades the edges of the hero into the page bg.
   Uses a CSS mask so it adapts to dark/light mode automatically. */
.hero-showcase::after {
  content: '';
  position: absolute;
  inset: -80px -100vw 0 -100vw;
  background: linear-gradient(to right,
    var(--bg) 0%,
    transparent 18%,
    transparent 82%,
    var(--bg) 100%);
  pointer-events: none;
  z-index: 2;
}
.hero-showcase-card {
  background: var(--bg-elev-2);
  border: 0.5px solid var(--border-card);
  border-radius: 16px;
  padding: 12px;
  position: relative;
  z-index: 1;
  /* THE TILT — 10° rotation on the X-axis, anchored at the top */
  transform: rotateX(10deg);
  transform-origin: 50% 0%;
  /* Layered shadow: tight close shadow + soft far shadow for depth */
  box-shadow:
    0 10px 30px rgba(0,0,0,0.25),
    0 40px 80px rgba(0,0,0,0.45),
    0 80px 140px rgba(0,0,0,0.35);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Light mode: shadows on white look ugly — soften them */
[data-theme="light"] .hero-showcase-card {
  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    0 40px 80px rgba(0,0,0,0.12),
    0 80px 140px rgba(0,0,0,0.08);
}
/* On hover, ease the tilt back toward flat — makes it feel "alive" */
.hero-showcase-card:hover {
  transform: rotateX(4deg);
}
/* Disable tilt on small screens — looks awkward and squishes content */
@media (max-width: 720px) {
  .hero-showcase { perspective: none; }
  .hero-showcase-card { transform: none; }
  .hero-showcase-card:hover { transform: none; }
}

/* Section */
.section { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }
.section-label { color: var(--text-muted); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 20px; }
.section-heading { font-size: 52px; font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 100px; max-width: 800px; }
.section-heading .accent { color: var(--text-tertiary); font-style: italic; }

/* Steps */
.step-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; margin-bottom: 140px; }
.step-number { color: var(--text-quaternary); font-size: 13px; letter-spacing: 0.15em; margin-bottom: 18px; }
.step-heading { font-size: 36px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 22px; }
.step-heading .accent { color: var(--text-muted); font-style: italic; }
.step-body { font-size: 16px; line-height: 1.65; color: var(--text-secondary); }

/* Mockups */
.mockup { background: var(--bg-elev-2); border: 0.5px solid var(--border-card); border-radius: 16px; padding: 22px; }
.mockup-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 0.5px solid var(--border); }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); }
.mockup-label { font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.05em; }
.script-section { margin-bottom: 16px; }
.script-section:last-child { margin-bottom: 0; }
.script-tag { color: var(--text-muted); font-size: 11px; letter-spacing: 0.1em; margin-bottom: 6px; }
.script-text { font-size: 13px; line-height: 1.7; color: var(--text); opacity: 0.85; }
.script-text.muted { color: var(--text-secondary); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-elev-3); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: var(--text); }
.messages { display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 11px 15px; border-radius: 14px; max-width: 85%; font-size: 13px; line-height: 1.5; }
.msg-them { background: var(--bg-msg); color: var(--text); border-bottom-left-radius: 4px; }
.msg-me { background: var(--btn-fill); color: var(--btn-fill-fg); align-self: flex-end; border-bottom-right-radius: 4px; }
.feedback { margin-top: 18px; padding-top: 14px; border-top: 0.5px solid var(--border); display: flex; justify-content: space-between; font-size: 11px; color: var(--text-tertiary); }
.feedback .good { color: var(--accent-green); }
.feedback .warn { color: var(--accent-amber); }

/* Dashboard */
.dashboard-intro { max-width: 600px; margin-bottom: 50px; }
.dashboard { display: flex; flex-direction: column; gap: 14px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.dashboard-title { font-size: 22px; font-weight: 500; }
.dashboard-subtitle { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.toggle { display: flex; background: var(--bg-elev-3); border: 0.5px solid var(--border-card); border-radius: 999px; padding: 3px; }
.toggle-item { padding: 5px 14px; font-size: 12px; color: var(--text-tertiary); border-radius: 999px; cursor: pointer; transition: color 0.15s, background 0.15s; user-select: none; }
.toggle-item:hover { color: var(--text); }
.toggle-item.active { color: var(--text); background: var(--accent-green-soft); }
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 0.5px solid var(--border-card); border-radius: 12px; overflow: hidden; }
.stat { background: var(--bg-elev); padding: 16px; }
.stat-label { font-size: 10px; color: var(--text-tertiary); letter-spacing: 0.1em; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 500; color: var(--text); line-height: 1; letter-spacing: -0.01em; }
.stat-value.green { color: var(--accent-green); }
.stat-meta { font-size: 11px; color: var(--text-muted); margin-top: 7px; }
.row-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.row-1-1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.card { background: var(--bg-elev); border: 0.5px solid var(--border-card); border-radius: 12px; padding: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.card-label { font-size: 10px; color: var(--text-tertiary); letter-spacing: 0.1em; }
.hero-value { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 6px; }
.hero-value-number { font-size: 52px; font-weight: 500; color: var(--text); line-height: 1; letter-spacing: -0.025em; transition: opacity 0.2s; }
.pill-up { font-size: 12px; color: var(--accent-green); background: var(--accent-green-soft); padding: 4px 10px; border-radius: 6px; }
.chart-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 18px; }

/* === INTERACTIVE CHART === */
.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: 200px; display: block; cursor: crosshair; }
.chart-svg .grid-line { stroke: var(--grid-line); }
.chart-svg .axis-text { fill: var(--text-quaternary); font-size: 10px; font-family: 'Inter', sans-serif; }
.chart-svg .area-fill { fill: rgba(74, 222, 128, 0.08); }
.chart-svg .line { fill: none; stroke: var(--accent-green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chart-svg .end-dot { fill: var(--accent-green); }
.chart-svg .end-halo { fill: rgba(74, 222, 128, 0.2); }
.chart-tooltip {
  position: absolute;
  background: var(--bg-elev-3);
  border: 0.5px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 12px;
  pointer-events: none;
  font-size: 12px;
  white-space: nowrap;
  transform: translate(-50%, -120%);
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}
.chart-tooltip.visible { opacity: 1; }
.chart-tooltip-date { color: var(--text-tertiary); font-size: 10px; margin-bottom: 2px; }
.chart-tooltip-value { color: var(--text); font-weight: 500; font-size: 14px; }
.crosshair-line { stroke: var(--text-quaternary); stroke-width: 0.5; stroke-dasharray: 3,3; }
.crosshair-dot { fill: var(--accent-green); stroke: var(--bg-elev); stroke-width: 2; }

.insight { background: var(--bg-elev-3); border: 0.5px solid var(--border); padding: 13px; border-radius: 10px; margin-bottom: 8px; display: flex; gap: 11px; align-items: flex-start; }
.insight:last-child { margin-bottom: 0; }
.insight i { font-size: 15px; margin-top: 2px; }
.insight-title { font-size: 13px; color: var(--text); font-weight: 500; margin-bottom: 3px; }
.insight-body { font-size: 11px; color: var(--text-tertiary); line-height: 1.4; }
.leak-row { margin-bottom: 14px; }
.leak-row:last-child { margin-bottom: 0; }
.leak-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.leak-label { font-size: 12px; color: var(--text); opacity: 0.85; }
.leak-value { font-size: 12px; color: var(--text); font-weight: 500; }
.leak-bar { height: 5px; background: var(--bg-elev-3); border-radius: 999px; overflow: hidden; }
.leak-fill { height: 100%; border-radius: 999px; }
.deal { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; border-radius: 8px; margin-bottom: 7px; }
.deal:last-child { margin-bottom: 0; }
.deal-name { font-size: 13px; color: var(--text); font-weight: 500; }
.deal-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.deal-status { font-size: 10px; padding: 4px 9px; border-radius: 4px; letter-spacing: 0.05em; }
.deal.closed { background: rgba(74, 222, 128, 0.06); border-left: 2px solid var(--accent-green); }
.deal.followup { background: rgba(251, 191, 36, 0.06); border-left: 2px solid var(--accent-amber); }
.deal.lost { background: rgba(248, 113, 113, 0.06); border-left: 2px solid var(--accent-red); }
.status-closed { color: var(--accent-green); background: rgba(74, 222, 128, 0.12); }
.status-followup { color: var(--accent-amber); background: rgba(251, 191, 36, 0.12); }
.status-lost { color: var(--accent-red); background: rgba(248, 113, 113, 0.12); }
.live-pill { display: flex; align-items: center; gap: 5px; background: var(--accent-green-soft); padding: 3px 9px; border-radius: 999px; }
.live-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.live-pill-text { font-size: 10px; color: var(--accent-green); letter-spacing: 0.05em; }

/* CTA section */
.cta-section { padding: 100px 48px 140px; max-width: 1000px; margin: 0 auto; text-align: center; }
.cta-heading { font-size: 56px; font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px; }
.cta-heading .accent { color: var(--text-tertiary); font-style: italic; }
.cta-subhead { font-size: 18px; color: var(--text-secondary); line-height: 1.6; max-width: 540px; margin: 0 auto 40px; }

/* === PRICING PAGE === */
.pricing-page { padding: 80px 48px 120px; max-width: 1200px; margin: 0 auto; text-align: center; }
.pricing-eyebrow { color: var(--text-muted); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 20px; }
.pricing-heading { font-size: 64px; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px; max-width: 800px; margin-left: auto; margin-right: auto; }
.pricing-heading .accent { color: var(--text-tertiary); font-style: italic; }
.pricing-subhead { font-size: 18px; color: var(--text-secondary); line-height: 1.65; max-width: 620px; margin: 0 auto 70px; }
.pricing-card { max-width: 480px; margin: 0 auto 80px; background: var(--pricing-gradient); border: 0.5px solid var(--border-strong); border-radius: 20px; padding: 48px 40px; text-align: left; position: relative; }
.pricing-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent-green); color: #042c1a; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; padding: 5px 14px; border-radius: 999px; text-transform: uppercase; }
.pricing-name { font-size: 14px; color: var(--text-tertiary); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.pricing-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.pricing-currency { font-size: 28px; font-weight: 500; color: var(--text-secondary); }
.pricing-number { font-size: 88px; font-weight: 600; color: var(--text); line-height: 1; letter-spacing: -0.03em; }
.pricing-period { font-size: 16px; color: var(--text-tertiary); }
.pricing-note { font-size: 13px; color: var(--text-tertiary); margin-bottom: 32px; }
.pricing-features { list-style: none; margin-bottom: 36px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 15px; color: var(--text); opacity: 0.85; border-bottom: 0.5px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features i { color: var(--accent-green); font-size: 16px; margin-top: 3px; flex-shrink: 0; }
.pricing-cta { width: 100%; background: var(--btn-fill); color: var(--btn-fill-fg); border: none; padding: 15px; border-radius: 10px; font-size: 15px; font-weight: 500; transition: transform 0.15s, background 0.15s; text-decoration: none; display: block; text-align: center; }
.pricing-cta:hover { background: var(--btn-fill-hover); transform: translateY(-1px); }
.pricing-fine { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 16px; }
.philosophy { max-width: 720px; margin: 0 auto; text-align: left; padding-top: 40px; border-top: 0.5px solid var(--border); }
.philosophy-block { margin-bottom: 48px; }
.philosophy-block:last-child { margin-bottom: 0; }
.philosophy-title { font-size: 22px; font-weight: 500; margin-bottom: 12px; letter-spacing: -0.01em; }
.philosophy-body { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.faq-section { max-width: 720px; margin: 80px auto 0; padding-top: 60px; border-top: 0.5px solid var(--border); }
.faq-title { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 32px; text-align: center; }
.faq-item { border-bottom: 0.5px solid var(--border); padding: 20px 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--text); }
.faq-question i { color: var(--text-muted); transition: transform 0.2s; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 200px; padding-top: 12px; }
.faq-answer p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* === WAITLIST PAGE === */
.waitlist-page { min-height: calc(100vh - 200px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px 120px; max-width: 600px; margin: 0 auto; text-align: center; }
.waitlist-heading { font-size: 64px; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px; }
.waitlist-heading .accent { color: var(--accent-green); }
.waitlist-subhead { font-size: 17px; color: var(--text-secondary); line-height: 1.6; max-width: 480px; margin: 0 auto 48px; }
.waitlist-form { background: var(--bg-elev); border: 0.5px solid var(--border-strong); border-radius: 16px; padding: 32px; width: 100%; max-width: 440px; text-align: left; }
.form-label { display: block; font-size: 13px; color: var(--text); margin-bottom: 8px; font-weight: 500; }
.form-input { width: 100%; background: var(--bg-input); border: 0.5px solid var(--border-strong); border-radius: 10px; padding: 13px 16px; font-size: 15px; color: var(--text); font-family: inherit; transition: border-color 0.15s; }
.form-input:focus { outline: none; border-color: var(--text-tertiary); }
.form-input::placeholder { color: var(--text-quaternary); }
.form-submit { width: 100%; background: var(--btn-fill); color: var(--btn-fill-fg); border: none; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 500; margin-top: 18px; transition: transform 0.15s, background 0.15s; }
.form-submit:hover { background: var(--btn-fill-hover); transform: translateY(-1px); }
.form-fine { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 16px; }
.success-state { display: none; text-align: center; padding: 20px 0; }
.success-state.active { display: block; }
.success-icon { width: 64px; height: 64px; background: var(--accent-green-soft); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success-icon i { font-size: 32px; color: var(--accent-green); }
.success-title { font-size: 24px; font-weight: 500; margin-bottom: 12px; }
.success-body { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.waitlist-perks { display: flex; gap: 32px; margin-top: 48px; justify-content: center; flex-wrap: wrap; }
.perk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-tertiary); }
.perk i { color: var(--accent-green); font-size: 16px; }

/* Footer */
footer { padding: 40px 48px; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.footer-links { display: flex; gap: 24px; font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-secondary); }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 60px 24px 40px; }
  .hero-headline { font-size: 44px; }
  .hero-cycle-line { min-height: 52px; }
  .hero-showcase { padding: 0 16px; margin-top: 40px; }
  .section-heading, .cta-heading { font-size: 36px; }
  .pricing-heading, .waitlist-heading { font-size: 44px; }
  .step-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
  .step-row.reverse > div:first-child { order: 2; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .row-2, .row-1-1 { grid-template-columns: 1fr; }
  nav { padding: 16px 24px; }
  .nav-links { gap: 14px; }
  .section, .pricing-page, .cta-section { padding-left: 24px; padding-right: 24px; }
  footer { padding: 32px 24px; flex-direction: column; gap: 16px; }
  .pricing-card { padding: 36px 28px; }
  .pricing-number { font-size: 64px; }
}

/* ============ LOGIN PAGE ============ */
.login-page {
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 100px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.login-heading {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.login-heading .accent {
  color: var(--accent-green);
}
.login-subhead {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.login-card {
  background: var(--bg-elev);
  border: 0.5px solid var(--border-strong);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 460px;
  text-align: left;
}
.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-input);
  border: 0.5px solid var(--border-strong);
  color: var(--text);
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.social-btn:hover {
  background: var(--bg-elev-3);
  border-color: var(--text-tertiary);
}
.social-btn i {
  font-size: 18px;
}
.social-btn .icon-discord { color: #5865f2; }
.social-btn .icon-google { color: #ea4335; }
.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 22px;
  color: var(--text-muted);
  font-size: 12px;
}
.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
}
.login-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.login-form-link {
  font-size: 12px;
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 500;
}
.login-form-link:hover {
  opacity: 0.8;
}
.login-submit {
  width: 100%;
  background: var(--btn-fill);
  color: var(--btn-fill-fg);
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.login-submit:hover {
  background: var(--btn-fill-hover);
  transform: translateY(-1px);
}
.login-footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 22px;
}
.login-footer-text a {
  color: var(--accent-green);
  font-weight: 500;
}
.login-footer-text a:hover {
  opacity: 0.8;
}
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elev-3);
  border: 0.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .login-heading { font-size: 40px; }
  .login-card { padding: 24px; }
}

/* ============ SCROLLABLE ROLE-PLAY MESSAGES ============ */
.messages-scroll {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 8px;
  /* Soft fade at top and bottom edges so the scroll feels intentional */
  mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
/* Thin custom scrollbar (Webkit / Chrome / Safari / Edge) */
.messages-scroll::-webkit-scrollbar { width: 6px; }
.messages-scroll::-webkit-scrollbar-track { background: transparent; }
.messages-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}
.messages-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-quaternary); }
/* Firefox */
.messages-scroll { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

/* ============ TEAM VIEW ============ */
.dashboard-title-block { display: flex; flex-direction: column; gap: 4px; }
.back-to-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-green);
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 4px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.back-to-team:hover { opacity: 0.8; }

.preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-green-soft);
  color: var(--accent-green);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.preview-pill i { font-size: 12px; }

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.roster-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.roster-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 2fr) 1fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-elev);
  font-size: 13px;
  color: var(--text);
  transition: background 0.15s;
}
.roster-header {
  background: transparent;
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
}
.roster-clickable {
  cursor: pointer;
}
.roster-clickable:hover {
  background: var(--bg-elev-3);
}
.roster-rank {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 500;
}
.roster-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.roster-cell {
  font-size: 13px;
}
.roster-cell .good { color: var(--accent-green); }
.roster-cell .warn { color: var(--accent-amber); }

.status-tag {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.tag-over { color: var(--accent-green); background: var(--accent-green-soft); }
.tag-on { color: var(--accent-blue); background: rgba(96, 165, 250, 0.12); }
.tag-behind { color: var(--accent-amber); background: rgba(251, 191, 36, 0.12); }

@media (max-width: 720px) {
  .roster-row {
    grid-template-columns: 28px minmax(0, 2fr) 1fr 1fr;
    gap: 8px;
    padding: 12px;
    font-size: 12px;
  }
  .roster-header > div:nth-child(5),
  .roster-header > div:nth-child(6),
  .roster-clickable > div:nth-child(5),
  .roster-clickable > div:nth-child(6) {
    display: none;
  }
}

/* ============ Toggle "Coming soon" pill ============ */
.toggle-item-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}
.toggle-item-soon:hover {
  opacity: 0.9;
}
.soon-label {
  font-size: 9px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--accent-green);
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

/* ============ Back-to-team bar ============ */
#back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elev);
  border: 0.5px solid var(--border-card);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.back-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.back-bar-btn:hover { background: var(--bg-elev-3); }
.back-bar-btn i { font-size: 16px; color: var(--text-secondary); }
.back-bar-rep {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
