/* ─────────────────────────────────────────────────────────────────── */
/* RESET + ROOT                                                         */
/* ─────────────────────────────────────────────────────────────────── */

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

:root {
  /* Palette — premium-clean dark, per brain.md */
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --bg-card-alt: #1f1f1f;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;

  --text-primary: #f5f5f5;
  --text-secondary: #b5b5b5;
  --text-muted: #7a7a7a;

  --accent: #06b6d4;       /* cyan — premium-clean per brain.md */
  --accent-hover: #0891b2;
  --accent-fade: rgba(6, 182, 212, 0.08);

  --risk-high: #dc2626;
  --risk-medium: #d97706;
  --risk-low: #16a34a;

  /* Type scale */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* Spacing */
  --container-max: 1100px;
  --container-narrow: 720px;
  --gap-sm: 0.75rem;
  --gap-md: 1.5rem;
  --gap-lg: 3rem;
  --gap-xl: 5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'tnum';
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
}

ul {
  list-style: none;
}

/* ─────────────────────────────────────────────────────────────────── */
/* HEADER                                                              */
/* ─────────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.wordmark:hover {
  color: var(--text-primary);
}

.wordmark-mark {
  color: var(--accent);
  font-size: 0.85rem;
}

.header-cta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  transition: all 0.15s ease;
}

.header-cta:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────────── */
/* HERO                                                                */
/* ─────────────────────────────────────────────────────────────────── */

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-fade);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--accent);
}

.subheadline {
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 2.5rem 0 4rem;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: all 0.15s ease;
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
  transform: translateY(-1px);
}

.cta-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────── */
/* DASHBOARD PREVIEW (HTML mockup — no image needed)                   */
/* ─────────────────────────────────────────────────────────────────── */

.preview-wrapper {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.preview-window {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(6, 182, 212, 0.08);
  text-align: left;
}

.preview-window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: #0d0d0d;
  border-bottom: 1px solid var(--border);
}

.preview-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.preview-url {
  margin-left: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preview-app {
  padding: 1.5rem;
}

.preview-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.2rem;
}

.preview-app-wordmark {
  font-weight: 600;
  font-size: 0.95rem;
}

.preview-app-nav {
  display: flex;
  gap: 1.2rem;
}

.preview-app-nav-item {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.preview-app-nav-item.active {
  color: var(--text-primary);
}

.preview-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.metric {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.metric-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.metric-risk .metric-value {
  color: var(--risk-high);
}

.metric-pct {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.preview-section-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.preview-section-title-spaced {
  margin-top: 1.5rem;
}

/* Deck cards inside the preview */
.deck-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
}

.deck-card-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.3rem;
}

.deck-name {
  font-size: 0.95rem;
  font-weight: 500;
}

.deck-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.risk-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

.risk-high {
  background: rgba(220, 38, 38, 0.15);
  color: var(--risk-high);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.risk-medium {
  background: rgba(217, 119, 6, 0.15);
  color: var(--risk-medium);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.risk-low {
  background: rgba(22, 163, 74, 0.15);
  color: var(--risk-low);
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.deck-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.deck-warning {
  color: var(--risk-medium);
}

/* Watchlist cards inside the preview */
.watch-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.4rem;
}

.watch-card-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.2rem;
}

.watch-card-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.watch-card-score {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.watch-card-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.watch-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────── */
/* FEATURES                                                            */
/* ─────────────────────────────────────────────────────────────────── */

.features {
  padding: var(--gap-xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature {
  padding: 0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-fade);
  color: var(--accent);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.feature p {
  font-size: 0.95rem;
}

/* ─────────────────────────────────────────────────────────────────── */
/* AUDIENCE                                                            */
/* ─────────────────────────────────────────────────────────────────── */

.audience {
  padding: var(--gap-xl) 0;
  border-top: 1px solid var(--border);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.audience h3 {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.muted-heading {
  color: var(--text-muted);
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.checklist-muted li::before {
  content: "×";
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────── */
/* FOUNDER NOTE                                                        */
/* ─────────────────────────────────────────────────────────────────── */

.founder {
  padding: var(--gap-xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.founder h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.founder p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────────────────────────── */
/* PRICING                                                             */
/* ─────────────────────────────────────────────────────────────────── */

.pricing {
  padding: var(--gap-xl) 0;
  border-top: 1px solid var(--border);
}

.pricing h2 {
  text-align: center;
}

.section-sub {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.price-tier {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.price-tier-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(6, 182, 212, 0.03) 100%);
}

.badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.price-tier h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.price-unit {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-alt {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-family: var(--font-sans);
}

.price-tier ul {
  margin-top: 1.5rem;
}

.price-tier ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.price-tier ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────────── */
/* FINAL CTA / EMAIL FORM                                              */
/* ─────────────────────────────────────────────────────────────────── */

.final-cta {
  padding: var(--gap-xl) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 460px;
  margin: 2rem auto 1rem;
}

@media (min-width: 480px) {
  .signup-form {
    flex-direction: row;
  }
}

.signup-form input[type="email"] {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.signup-form input[type="email"]:focus {
  border-color: var(--accent);
}

.signup-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.signup-form button {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.signup-form button:hover {
  background: var(--accent-hover);
}

.signup-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.signup-success,
.signup-error {
  max-width: 460px;
  margin: 1.5rem auto;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.signup-success {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  color: var(--risk-low);
}

.signup-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--risk-high);
}

.cta-fine {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────── */
/* FAQ                                                                 */
/* ─────────────────────────────────────────────────────────────────── */

.faq {
  padding: var(--gap-xl) 0;
  border-top: 1px solid var(--border);
}

.faq h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

details summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 300;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────────── */
/* FOOTER                                                              */
/* ─────────────────────────────────────────────────────────────────── */

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-wordmark {
  font-weight: 600;
  color: var(--text-primary);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  justify-content: center;
}

.footer-meta a {
  color: var(--text-muted);
}

.footer-meta a:hover {
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                          */
/* ─────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .preview-app {
    padding: 1rem;
  }

  .preview-metrics {
    grid-template-columns: 1fr;
  }

  .deck-card-row,
  .watch-card-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .features,
  .audience,
  .founder,
  .pricing,
  .final-cta,
  .faq {
    padding: 3.5rem 0;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
