/* TychoStats Design System */

:root {
  --navy:   #0a0e1a;
  --navy-2: #111827;
  --navy-3: #1c2333;
  --red:    #e8001d;
  --red-dk: #b5001a;
  --gold:   #f5a623;
  --green:  #00c853;
  --muted:  #6b7280;
  --border: rgba(255,255,255,0.08);
  --text:   #f1f5f9;
  --text-2: #94a3b8;

  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body:      'Barlow', sans-serif;
  --font-mono:      'Roboto Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── TYPOGRAPHY ── */
.text-red  { color: var(--red); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-2); }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-condensed);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}
.nav-logo span { color: var(--red); }

.nav-actions { display: flex; gap: 0.75rem; align-items: center; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--red-dk); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--text); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); }

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #0a0e1a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-gold:hover { opacity: 0.9; }

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; text-align: center; display: block; }

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── SECTIONS ── */
.section-dark {
  padding: 5rem 0;
  background: var(--navy-2);
}

.section-accent {
  padding: 5rem 0;
  background: var(--navy-3);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-headline {
  font-family: var(--font-condensed);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  line-height: 1.1;
}

/* ── HERO ── */
.hero {
  padding: 6rem 0 5rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(232,0,29,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-condensed);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-condensed);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-top: 0.25rem;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(232,0,29,0.3); }

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-condensed);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── ACCURACY ── */
.accuracy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.accuracy-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.accuracy-value {
  font-family: var(--font-condensed);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.accuracy-label {
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.accuracy-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}

.pricing-featured {
  border-color: var(--red);
  background: rgba(232,0,29,0.04);
}

.pricing-pro {
  border-color: rgba(245,166,35,0.3);
  background: rgba(245,166,35,0.03);
}

.pricing-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.pricing-tier {
  font-family: var(--font-condensed);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-condensed);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.pricing-price span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-2);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}
.pricing-features li {
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li.muted { color: var(--text-2); }

/* ── FORMS (login / signup) ── */
.form-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.form-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.form-title {
  font-family: var(--font-condensed);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-sub {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus { border-color: var(--red); }
.form-group input::placeholder { color: var(--muted); }

.form-error {
  background: rgba(232,0,29,0.1);
  border: 1px solid rgba(232,0,29,0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #fca5a5;
  margin-bottom: 1.25rem;
  display: none;
}
.form-error.visible { display: block; }

.form-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-2);
  margin-top: 1.5rem;
}
.form-footer a { color: var(--red); }
.form-footer a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--navy);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.footer-links a:hover { color: var(--text); }

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

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav { padding: 0 1rem; }
  .hero { padding: 4rem 0 3rem; }
  .hero-stat-divider { display: none; }
  .section-dark, .section-accent { padding: 3rem 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}
