/* ============================================================
   TYPEFORGE — LANDING PAGE STYLES
   Graphite × Technical Precision
   ============================================================ */

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  padding-bottom: var(--sp-16);
  position: relative;
}

/* Subtle grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-1) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Eyebrow label */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px var(--sp-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--sp-8);
  font-family: var(--font-mono);
  animation: fade-down 0.5s var(--ease-out) both;
}

.hero-eyebrow span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  display: inline-block;
  animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 1100px;
  animation: fade-up 0.6s var(--ease-out) 0.1s both;
  margin: 0 auto;
  text-align: center;
  color: var(--text-1);
}

/* Accent word — slightly dimmer for contrast */
.hero-title .accent {
  color: var(--text-2);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 520px;
  margin: var(--sp-8) auto;
  line-height: var(--leading-loose);
  animation: fade-up 0.6s var(--ease-out) 0.2s both;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 0.6s var(--ease-out) 0.3s both;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  margin-top: var(--sp-10);
  animation: fade-up 0.6s var(--ease-out) 0.4s both;
}

.hero-social-proof p {
  font-size: var(--text-xs);
  color: var(--text-3);
  letter-spacing: var(--tracking-wide);
}

.hero-avatars { display: flex; align-items: center; }
.hero-avatars .avatar {
  width: 28px; height: 28px;
  font-size: 10px;
  margin-left: -7px;
  border: 2px solid var(--bg-base);
}
.hero-avatars .avatar:first-child { margin-left: 0; }

.hero-separator {
  width: 1px; height: 20px;
  background: var(--border-1);
}

.hero-star { color: var(--gold); font-size: 12px; }

/* ── Typing Demo (Hero Mockup) ── */
.hero-mockup {
  width: 100%;
  max-width: 900px;
  margin: 64px auto 0;
  animation: fade-up 0.7s var(--ease-out) 0.5s both;
  position: relative;
  z-index: 1;
}

.mockup-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  overflow: hidden;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-3) var(--sp-5);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-1);
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-title {
  font-size: var(--text-xs);
  color: var(--text-4);
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
}

.mockup-stats { display: flex; gap: var(--sp-5); }
.mockup-stat  { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.mockup-stat-val {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--brand-light);
}
.mockup-stat-label {
  font-size: 9px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.mockup-body { padding: var(--sp-8); }
.mockup-text-area {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  line-height: 2.2;
  text-align: left;
  min-height: 80px;
}
.mockup-char-done    { color: var(--text-2); }
.mockup-char-current {
  background: var(--brand);
  color: #fff;
  border-radius: 2px;
  padding: 0 1px;
  animation: cursor-blink 1s ease-in-out infinite;
}
.mockup-char-wrong   { color: var(--error); background: var(--error-bg); border-radius: 2px; }
.mockup-char-pending { color: var(--text-4); }


/* ── Feature Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  overflow: hidden;
}

.feature-card {
  padding: var(--sp-8);
  background: var(--bg-card);
  border: none;
  transition: background var(--duration-slow) var(--ease-out);
  position: relative;
}

.feature-card::after {
  content: '';
  position: absolute;
  right: 0; top: var(--sp-8); bottom: var(--sp-8);
  width: 1px;
  background: var(--border-1);
}
.feature-card:last-child::after { display: none; }

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

.feature-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
}

.icon-brand  { color: var(--brand-light); }
.icon-coral  { color: var(--peach); }
.icon-mint   { color: var(--mint); }
.icon-gold   { color: var(--gold); }
.icon-sky    { color: var(--sky); }
.icon-violet { color: var(--accent); }

.feature-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-3);
  line-height: var(--leading-loose);
}


/* ── Typing DNA Preview ── */
.dna-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: var(--sp-10) var(--sp-12);
  position: relative;
  overflow: hidden;
}

.dna-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.dna-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
}

.dna-metric-ring { position: relative; width: 64px; height: 64px; }
.dna-metric-ring svg { transform: rotate(-90deg); }
.dna-metric-ring-val {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-1);
}
.dna-metric-label { font-size: var(--text-xs); color: var(--text-3); font-weight: 500; }

.dna-archetype {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-1);
  font-family: var(--font-mono);
}


/* ── Archetypes Section ── */
.archetypes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.archetype-card {
  padding: var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}
.archetype-card:hover { background: var(--bg-card-hover); border-color: var(--border-2); }

.archetype-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto var(--sp-3);
}

.archetype-name { font-size: var(--text-sm); font-weight: 600; color: var(--text-1); }
.archetype-desc { font-size: var(--text-xs); color: var(--text-3); margin-top: var(--sp-1); }


/* ── Stats Counter Section ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats-row .stat-item {
  padding: var(--sp-10) var(--sp-8);
  text-align: center;
  position: relative;
  border-right: 1px solid var(--border-1);
}
.stats-row .stat-item:last-child { border-right: none; }

.stats-num {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--text-1);
}

.stats-label {
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-top: var(--sp-2);
}


/* ── Badges Showcase ── */
.badges-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
}


/* ── Timeline / How It Works ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 20px; bottom: 20px;
  width: 1px;
  background: var(--border-1);
}

.timeline-item {
  display: flex;
  gap: var(--sp-6);
  padding-bottom: var(--sp-10);
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-step {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-2);
  position: relative;
  z-index: 1;
}

.timeline-content { padding-top: var(--sp-2); }
.timeline-content h3 { font-size: var(--text-lg); margin-bottom: var(--sp-2); }
.timeline-content p  { font-size: var(--text-sm); color: var(--text-2); line-height: var(--leading-loose); }


/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  overflow: hidden;
}

.pricing-card {
  padding: var(--sp-8);
  background: var(--bg-card);
  border: none;
  transition: background var(--duration-base) var(--ease-out);
}
.pricing-card.featured {
  background: var(--bg-elevated);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  padding: 3px var(--sp-3);
  background: var(--bg-surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-light);
  white-space: nowrap;
  font-family: var(--font-mono);
}

.pricing-name {
  font-size: 11px;
  color: var(--text-4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-family: var(--font-mono);
}
.pricing-price {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: var(--tracking-tight);
  margin: var(--sp-4) 0;
  line-height: 1;
}
.pricing-price sup  { font-size: var(--text-2xl); vertical-align: super; }
.pricing-price span { font-size: var(--text-base); color: var(--text-3); font-weight: 400; }

.pricing-desc { font-size: var(--text-sm); color: var(--text-3); margin-bottom: var(--sp-6); }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-2);
}
.pricing-check { color: var(--mint); flex-shrink: 0; }
.pricing-x     { color: var(--text-4); flex-shrink: 0; }
.pricing-feature.disabled { color: var(--text-4); }


/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.testimonial-card {
  padding: var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: border-color var(--duration-base) var(--ease-out);
}
.testimonial-card:hover { border-color: var(--border-2); }

.testimonial-stars { display: flex; gap: 2px; color: var(--gold); font-size: var(--text-sm); }

.testimonial-text {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: var(--leading-loose);
  flex: 1;
}

.testimonial-author { display: flex; align-items: center; gap: var(--sp-3); }
.testimonial-info   { display: flex; flex-direction: column; gap: 2px; }
.testimonial-name   { font-size: var(--text-sm); font-weight: 600; color: var(--text-1); }
.testimonial-role   { font-size: var(--text-xs); color: var(--text-3); }
.testimonial-wpm    { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.testimonial-wpm-val   { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--brand-light); }
.testimonial-wpm-label { font-size: 10px; color: var(--text-4); }


/* ── CTA Section ── */
.cta-section { text-align: center; padding: var(--sp-12) 0; }
.cta-bg {
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: var(--sp-12) var(--sp-8);
  position: relative;
  overflow: hidden;
}

/* Subtle corner accent */
.cta-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at 0 0, rgba(59, 92, 143, 0.08), transparent 70%);
  pointer-events: none;
}
.cta-bg::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at 100% 100%, rgba(194, 88, 59, 0.06), transparent 70%);
  pointer-events: none;
}


/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid    { grid-template-columns: repeat(2, 1fr); }
  .archetypes-grid  { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid     { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .testimonials-grid{ grid-template-columns: 1fr; }
  .dna-metrics      { grid-template-columns: repeat(2, 1fr); }
  .stats-row        { grid-template-columns: repeat(2, 1fr); }
  .stats-row .stat-item { border-bottom: 1px solid var(--border-1); }
  .stats-row .stat-item:nth-child(2n) { border-right: none; }
  .stats-row .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 768px) {
  .features-grid     { grid-template-columns: 1fr; }
  .archetypes-grid   { grid-template-columns: repeat(2, 1fr); }
  .hero-actions      { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; max-width: 300px; margin: 0 auto; }
  .mockup-stats      { display: none; }
  .hero-mockup       { margin-top: 48px; }
  .dna-card          { padding: var(--sp-6); }
  .stats-row         { grid-template-columns: repeat(2, 1fr); }
  .hero-social-proof { gap: var(--sp-3); flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .archetypes-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .pricing-card    { padding: var(--sp-6); }
}