/* ═══════════════════════════════════════════════
   RESKIL — Your AI Career Shield
   Design System
   ═══════════════════════════════════════════════ */

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ─── Variables ─── */
:root {
  --indigo-900: #1e1b4b;
  --indigo-800: #312e81;
  --indigo-700: #3730a3;
  --indigo-600: #4338ca;
  --indigo-500: #4F46E5;
  --indigo-400: #6366f1;
  --indigo-300: #818cf8;
  --indigo-100: #e0e7ff;
  --purple-500: #8b5cf6;
  --green-400: #34d399;
  --green-500: #10b981;
  --bg: #09090f;
  --bg-2: #0f0e1a;
  --bg-card: #13122a;
  --bg-card-hover: #181636;
  --border: rgba(99, 102, 241, 0.15);
  --border-strong: rgba(99, 102, 241, 0.3);
  --text: #f1f0ff;
  --text-muted: #9b9ab8;
  --text-dim: #6b6a8a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 32px rgba(79, 70, 229, 0.15);
  --shadow-lg: 0 8px 64px rgba(79, 70, 229, 0.25);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Base ─── */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Section ─── */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-400);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 18px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Gradient text ─── */
.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #4F46E5 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-600));
  color: #fff;
  padding: 14px 24px;
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--indigo-400), var(--indigo-500));
  box-shadow: 0 6px 32px rgba(79, 70, 229, 0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-300);
  border: 1px solid var(--border-strong);
  padding: 14px 24px;
}
.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--indigo-300);
  border: 1px solid var(--border-strong);
  padding: 14px 24px;
}
.btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--indigo-400);
  color: var(--text);
}

.btn-hero {
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 12px;
}

.btn-sm {
  font-size: 14px;
  padding: 10px 18px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-waitlist {
  padding: 16px 32px;
  font-size: 16px;
  white-space: nowrap;
}

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.nav-logo .logo-icon { font-size: 24px; }
.nav-logo .logo-text { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.hero-blob-1 {
  width: 700px;
  height: 700px;
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, #4F46E5, #312e81);
}

.hero-blob-2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, #8b5cf6, #4338ca);
  opacity: 0.2;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo-300);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green-400);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-400);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-headline {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 800px;
}

.hero-subheadline {
  font-size: clamp(17px, 2.5vw, 22px);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-subheadline strong {
  color: var(--indigo-300);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 32px;
  margin-bottom: 64px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 32px;
}

.stat-num {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #818cf8, #4F46E5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

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

/* Score Card */
.hero-visual {
  width: 100%;
  max-width: 380px;
}

.score-card {
  background: linear-gradient(145deg, #13122a, #1a1840);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
}

.score-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.score-card-icon {
  font-size: 36px;
  line-height: 1;
}

.score-card-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.score-card-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.score-ring-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
}

.score-ring {
  width: 100%;
  height: 100%;
}

.score-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--indigo-400);
  line-height: 1;
}

.score-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.score-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-item {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.action-green { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.action-indigo { background: rgba(99, 102, 241, 0.12); color: #818cf8; }
.action-purple { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }

/* ═══════════════ HOW IT WORKS ═══════════════ */
.how-it-works {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.step-card {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-num {
  position: absolute;
  top: -14px;
  left: 28px;
  background: linear-gradient(135deg, var(--indigo-500), var(--purple-500));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
}

.step-icon {
  font-size: 40px;
  margin-bottom: 18px;
  line-height: 1;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  font-size: 28px;
  color: var(--indigo-500);
  padding: 0 16px;
  font-weight: 300;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ═══════════════ FEATURES ═══════════════ */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card-large {
  grid-column: span 1;
  grid-row: span 2;
}

.feature-card-wide {
  grid-column: span 2;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-500), var(--purple-500));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-emoji {
  font-size: 36px;
  margin-bottom: 18px;
  line-height: 1;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-500);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 100px;
  padding: 4px 12px;
  margin-top: 18px;
}

/* ═══════════════ STATS ═══════════════ */
.stats-section {
  background: var(--bg-2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-3px); }

.stat-card-featured {
  background: linear-gradient(145deg, #1a1840, #1f1d4a);
  border-color: var(--indigo-500);
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.2);
}

.stat-big {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #818cf8, #4F46E5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 14px;
}

.stat-card-featured .stat-big {
  background: linear-gradient(135deg, #fff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-desc {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.stat-source {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

.cta-nudge {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
}

.cta-nudge-link {
  color: var(--indigo-400);
  border-bottom: 1px solid rgba(99, 102, 241, 0.4);
  transition: color 0.2s, border-color 0.2s;
}

.cta-nudge-link:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ═══════════════ PRICING ═══════════════ */
.pricing-section {
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}

.pricing-featured {
  background: linear-gradient(145deg, #1a1840, #1f1d4a);
  border-color: var(--indigo-500);
  box-shadow: 0 0 60px rgba(79, 70, 229, 0.2);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--indigo-500), var(--purple-500));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.pricing-tier {
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.price-amount {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.price-period {
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 14px;
  padding: 2px 0;
}

.feat-yes { color: var(--text); }
.feat-yes::first-letter { color: var(--green-400); }
.feat-no { color: var(--text-dim); }

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ═══════════════ WAITLIST ═══════════════ */
.waitlist-section {
  background: var(--bg-2);
}

.waitlist-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding: 0 24px;
}

.waitlist-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(79, 70, 229, 0.15), transparent 70%);
  pointer-events: none;
}

.waitlist-form {
  margin: 40px 0 24px;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.form-input {
  flex: 1;
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
}

.form-input::placeholder { color: var(--text-dim); }

.form-input:focus {
  border-color: var(--indigo-500);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-privacy {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 12px;
  text-align: center;
}

.form-success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-sm);
  color: var(--green-400);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: #f87171;
  padding: 12px 16px;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
}

.waitlist-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  background: #05050c;
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--text); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card-large { grid-column: span 1; grid-row: span 1; }
  .feature-card-wide { grid-column: span 2; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-featured { transform: scale(1); }

  .stats-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 40px; }

  .steps-grid { flex-direction: column; align-items: stretch; }
  .step-connector { transform: rotate(90deg); padding: 8px 0; text-align: center; }
  .step-card { max-width: 100%; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }
  .section-sub { font-size: 16px; }

  .nav-actions .nav-link { display: none; }

  .hero { padding: 100px 0 60px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { padding: 16px 20px; }
  .stat-pill { padding: 8px 16px; }
  .stat-num { font-size: 22px; }

  .form-row { flex-direction: column; }
  .btn-waitlist { width: 100%; justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: span 1; }

  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 12px; }

  .hero-visual { max-width: 320px; }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--indigo-800); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--indigo-600); }
