/* ============================================================================
   CRAM ARCADE — Landing Page Stylesheet
   Design: Arctic Frost theme (matching app redesign)
   Font: Satoshi
   Zero JS dependencies
   ============================================================================ */

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

:root {
  --font: 'Satoshi', system-ui, -apple-system, sans-serif;
  --bg: #0b0f1a;
  --bg-card: rgba(140,180,255,0.03);
  --bg-card-hover: rgba(140,180,255,0.06);
  --bg-elevated: #141929;
  --border: rgba(140,180,255,0.08);
  --border-accent: rgba(126,180,255,0.15);
  --text: #eef2ff;
  --text-sec: rgba(238,242,255,0.6);
  --text-muted: rgba(238,242,255,0.35);
  --cyan: #7eb4ff;
  --green: #6ee7b7;
  --gold: #e2c57b;
  --red: #f87171;
  --radius: 12px;
  --max-w: 960px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ---- Welcome Back Banner ---- */
.welcome-back {
  background: linear-gradient(90deg, rgba(126,180,255,0.1), rgba(110,231,183,0.1));
  border-bottom: 1px solid var(--border-accent);
  padding: 10px 20px;
}

.welcome-back-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.welcome-back span { color: var(--text-sec); }

.welcome-back-btn {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #0b0f1a;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  transition: opacity 0.2s;
}

.welcome-back-btn:hover { opacity: 0.9; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,15,26,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text);
}

.header-cta {
  padding: 8px 20px;
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  transition: all 0.2s;
}

.header-cta:hover {
  background: rgba(126,180,255,0.08);
  border-color: rgba(126,180,255,0.3);
}

/* ---- Hero ---- */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 24px;
  background: rgba(126,180,255,0.06);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #0b0f1a;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(126,180,255,0.25);
}

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

.btn-ghost {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sec);
  transition: all 0.25s;
}

.btn-ghost:hover {
  background: rgba(126,180,255,0.06);
  border-color: rgba(126,180,255,0.3);
  color: var(--text);
}

.hero-trust {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Sections (shared) ---- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.3px;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-sec);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ---- Exam Context ---- */
.exam-context {
  padding: 80px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.exam-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0 24px;
}

.exam-stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exam-context-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-sec);
  margin-top: 8px;
}

/* ---- Category Weights ---- */
.categories {
  padding: 80px 24px;
}

.category-bars {
  max-width: 640px;
  margin: 40px auto 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cat-row { display: flex; flex-direction: column; gap: 6px; }

.cat-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cat-name { font-size: 14px; font-weight: 500; color: var(--text-sec); }
.cat-weight { font-size: 14px; font-weight: 700; color: var(--green); }

.cat-bar {
  height: 8px;
  background: rgba(140,180,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}

.cat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 100px;
  transition: width 0.6s ease;
}

.category-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ---- Features ---- */
.features {
  padding: 80px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feature-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.feature-icon {
  color: var(--cyan);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.7;
}

/* ---- How It Works ---- */
.how-it-works {
  padding: 80px 24px;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 260px;
  padding: 0 20px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #0b0f1a;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
}

.step-divider {
  width: 60px;
  height: 1px;
  background: var(--border-accent);
  margin-top: 20px;
  flex-shrink: 0;
}

/* ---- Credibility ---- */
.credibility {
  padding: 80px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 32px auto 0;
}

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.5;
}

.cred-item svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- FAQ ---- */
.faq {
  padding: 80px 24px;
}

.faq-item {
  max-width: 700px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  padding: 20px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item summary:hover { color: var(--cyan); }

.faq-answer {
  padding: 0 0 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.7;
}

/* ---- Final CTA ---- */
.final-cta {
  padding: 80px 24px;
  text-align: center;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.final-cta p {
  font-size: 16px;
  color: var(--text-sec);
  margin-bottom: 28px;
}

/* ---- Footer ---- */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 12px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(238,242,255,0.15);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero { padding: 72px 20px 56px; }

  .exam-stats { grid-template-columns: repeat(2, 1fr); }

  .feature-grid { grid-template-columns: 1fr; }

  .steps { flex-direction: column; align-items: center; gap: 32px; }
  .step-divider { width: 1px; height: 32px; }

  .cred-grid { grid-template-columns: 1fr; }

  .welcome-back-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
}
