/* --- CSS VARIABLES --- */
:root {
  --bg: #050d1a;
  --bg-alt: #0a1628;
  --fg: #e8eaf0;
  --fg-muted: #8b9ab4;
  --accent: #ff6b35;
  --accent-dim: rgba(255, 107, 53, 0.12);
  --border: rgba(255, 255, 255, 0.08);
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}

/* --- LAYOUT --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--fg);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* --- HERO --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
  padding: 0 48px;
  align-items: center;
  gap: 48px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,107,53,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { max-width: 560px; }

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-headline {
  font-size: clamp(52px, 6vw, 80px);
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 460px;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary:hover { background: #e55c27; transform: translateY(-1px); }

.btn-large { padding: 18px 40px; font-size: 16px; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* --- HERO VISUAL --- */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  opacity: 0.85;
}

/* --- STATS ROW --- */
.stats-row {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.stat {
  flex: 1;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 160px;
}

/* --- HOW SECTION --- */
.how-section {
  padding: 100px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-heading {
  font-size: clamp(32px, 3.5vw, 48px);
  color: var(--fg);
  margin-bottom: 64px;
  letter-spacing: -0.02em;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding-right: 32px;
}

.step-number {
  font-family: 'DM Serif Display', serif;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.step h3 {
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 12px;
}

.step p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 36px;
  padding-right: 32px;
  flex-shrink: 0;
}

/* --- FEATURES --- */
.features-section {
  padding: 100px 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.features-section .section-heading {
  margin-bottom: 56px;
  max-width: 500px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-alt);
  padding: 40px 36px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: #0d1f3c;
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 12px;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* --- DIFFERENCE --- */
.difference-section {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

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

.difference-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-top: 24px;
}

/* Timeline visual */
.timeline-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 24px;
  border-left: 2px solid var(--border);
}

.tl-item {
  position: relative;
  padding: 0 0 40px 28px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
}

.tl-win .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.tl-loss .tl-dot { border-color: #4a5568; }

.tl-label {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--fg);
  margin-bottom: 4px;
}

.tl-loss .tl-label { color: #4a5568; }

.tl-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.tl-loss .tl-desc { color: #3d4a5c; }

/* --- CLOSING --- */
.closing-section {
  padding: 100px 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-top: 1px solid var(--border);
}

.closing-statement {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 2.8vw, 34px);
  color: var(--fg);
  line-height: 1.45;
  max-width: 760px;
  margin: 0 auto 48px;
  letter-spacing: -0.01em;
}

.closing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.demo-cta-link {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 14px 0;
  transition: color 0.2s;
}
.demo-cta-link:hover { color: #e55c27; }

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  background: var(--bg);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--fg);
}

.footer-tagline {
  font-size: 12px;
  color: var(--fg-muted);
}

.footer-meta {
  font-size: 12px;
  color: var(--fg-muted);
}

.footer-meta a {
  color: var(--accent);
  text-decoration: none;
}

/* --- WAITLIST WIDGET --- */
.waitlist-widget {
  margin-top: 24px;
  max-width: 420px;
}

.waitlist-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 10px;
}

.waitlist-form {
  display: flex;
  gap: 8px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.waitlist-form input[type="email"]::placeholder { color: var(--fg-muted); opacity: 0.6; }
.waitlist-form input[type="email"]:focus { border-color: var(--accent); }

.btn-waitlist {
  background: rgba(255, 107, 53, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.btn-waitlist:hover:not(:disabled) {
  background: rgba(255, 107, 53, 0.25);
  border-color: rgba(255, 107, 53, 0.5);
}

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

.waitlist-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #34d399;
  font-size: 13px;
  margin-top: 10px;
}

.waitlist-error {
  color: #f87171;
  font-size: 12px;
  margin-top: 8px;
}

/* --- SOCIAL PROOF --- */
.social-proof-section {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.social-proof-section .container {
  max-width: 1100px;
}

.social-proof-section .section-heading {
  margin-bottom: 48px;
}

.miami-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 107, 53, 0.25);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.testimonial-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  background: #0d1f3c;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.testimonial-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.testimonial-role {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 60px 32px;
    text-align: left;
  }
  .hero-visual { display: none; }
  .stats-row { flex-direction: column; }
  .stat-divider { display: none; }
  .stat { padding: 28px 32px; }
  .how-steps { flex-direction: column; }
  .step-connector { display: none; }
  .difference-inner { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .how-section, .features-section, .difference-section, .closing-section, .social-proof-section { padding: 64px 32px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .navbar { padding: 20px 24px; }
  .hero { padding: 48px 24px; }
  .stat { padding: 24px; }
}

/* --- ONBOARDING --- */
.onboarding-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: var(--bg);
}

.onboarding-inner {
  width: 100%;
  max-width: 420px;
}

.onboarding-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.onboarding-headline {
  font-size: clamp(32px, 4vw, 44px);
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.onboarding-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* --- FORM --- */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}

.form-optional {
  font-weight: 400;
  color: var(--fg-muted);
  opacity: 0.7;
}

.form-input {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--fg);
  transition: border-color 0.2s;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--fg-muted); opacity: 0.6; }

.form-input:focus { border-color: var(--accent); }

.form-error {
  font-size: 13px;
  color: #f87171;
  min-height: 18px;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 0 2px;
}

.form-error.visible { opacity: 1; }

/* --- SUBMIT BUTTON --- */
.btn-signup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
  margin-top: 4px;
}

.btn-signup:hover:not(:disabled) { background: #e55c27; transform: translateY(-1px); }

.btn-signup:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-loading { display: none; }

.btn-signup.loading .btn-text { display: none; }

.btn-signup.loading .btn-loading { display: block; }

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- TRUST SIGNALS --- */
.trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-top: 8px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
}

.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* --- WELCOME PAGE --- */
.welcome-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.welcome-inner {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.welcome-icon {
  margin: 0 auto 24px;
  width: 64px;
  height: 64px;
}

.welcome-tasks {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 32px 0 40px;
  text-align: left;
}

.welcome-task {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.welcome-task:last-child { border-bottom: none; }

.task-icon {
  margin-top: 2px;
  flex-shrink: 0;
}

.task-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 2px;
}

.task-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.welcome-footer-note {
  font-size: 12px;
  color: var(--fg-muted);
}

.welcome-footer-note strong { color: var(--fg); }

/* --- DASHBOARD --- */
.dashboard-page {
  min-height: calc(100vh - 80px);
  padding: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 24px;
}

.dashboard-title {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.period-selector {
  display: flex;
  gap: 4px;
}

.period-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.period-link:hover {
  color: var(--fg);
  border-color: var(--border);
}

.period-link.active {
  color: var(--accent);
  border-color: rgba(255, 107, 53, 0.3);
  background: var(--accent-dim);
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}

.stat-box {
  background: var(--bg-alt);
  padding: 28px 32px;
  text-align: center;
}

.stat-box-number {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-box-label {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.funnel-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.funnel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 800px;
}

.funnel-table thead tr {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.funnel-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

.funnel-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

.funnel-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.funnel-table tbody tr:last-child td {
  border-bottom: none;
}

.source-cell {
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
}

.bar-cell {
  min-width: 120px;
}

.bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar {
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
  min-width: 2px;
  max-width: 80px;
  opacity: 0.7;
}

.bar-label {
  font-size: 13px;
  color: var(--fg-muted);
  white-space: nowrap;
}

.rate-cell {
  font-size: 13px;
  color: var(--fg-muted);
  white-space: nowrap;
}

.empty-state {
  text-align: center;
  color: var(--fg-muted);
  padding: 48px 20px;
}

.dashboard-footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--fg-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .dashboard-page { padding: 32px 24px; }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .summary-stats { grid-template-columns: repeat(2, 1fr); }
}

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