:root {
  --indigo: #5B50F0;
  --indigo-dark: #4840d4;
  --navy: #0f0f1a;
  --surface: #16162a;
  --surface2: #1e1e36;
  --text: #f0f0f8;
  --text-muted: #9898bb;
  --accent: #5B50F0;
  --correct: #34d399;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
}

/* NAV */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* HERO */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: linear-gradient(180deg, rgba(15,15,26,1) 0%, rgba(22,22,42,1) 100%);
  border-radius: 32px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.accent { color: var(--indigo); }

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

/* BUTTONS */
.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  border: 2px solid transparent;
}
.btn-primary:hover { background: var(--indigo-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255,255,255,0.15);
}
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-1px); }

/* PHONE MOCKUP */
.hero-visual { display: flex; justify-content: center; }

.phone-mockup {
  width: 280px;
  background: var(--surface);
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.08);
  padding: 24px 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(91,80,240,0.15);
}

.phone-screen { display: flex; flex-direction: column; gap: 12px; }

.mock-card {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.06);
}

.accent-card { border-color: rgba(91,80,240,0.3); }

.mock-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.mock-progress {
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  height: 5px;
  margin-bottom: 6px;
}

.bar {
  height: 100%;
  background: var(--indigo);
  border-radius: 99px;
}

.mock-stat { font-size: 0.72rem; color: var(--text-muted); }

.mock-choices { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }

.choice {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.78rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.correct {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--correct);
}

/* FEATURES */
.features {
  background: rgba(18,18,32,0.95);
  padding: 5rem 1.5rem;
  text-align: center;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.06);
}

.features h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(91,80,240,0.4);
  transform: translateY(-3px);
}

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

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* TESTER FORM */
.tester-form {
  background: rgba(91,80,240,0.08);
  padding: 5rem 1.5rem;
  text-align: center;
  border-radius: 32px;
  border: 1px solid rgba(91,80,240,0.2);
}

.tester-form h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.tester-form p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.form {
  max-width: 560px;
  width: min(100%, 560px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group select,
.form-group input {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--indigo);
}

.form-group select {
  cursor: pointer;
}

.form-status-message {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem auto 0;
  max-width: 520px;
  width: min(100%, 520px);
  font-weight: 600;
  text-align: center;
}

.form-success-message {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--correct);
}

.form-error-message {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #f87171;
}

.cta-footer {
  display: none !important;
}

/* CTA FOOTER */
.cta-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta-footer h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.cta-footer p { color: var(--text-muted); margin-bottom: 2rem; }
.cta-footer .cta-group { justify-content: center; }

/* FOOTER */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

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

/* INNER PAGES */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.page-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.page-content .last-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 3rem;
}

.page-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
}

.page-content p, .page-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.page-content ul, .page-content ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.page-content li { margin-bottom: 0.4rem; }

.page-content a { color: var(--indigo); }

.contact-box {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.contact-box p { margin-bottom: 0.3rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    text-align: center;
    gap: 3rem;
  }

  .hero-sub { margin: 0 auto 2rem; }
  .cta-group { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 240px; }
}
