/* =========================================================
   AI Career Planner — pure CSS
   Theme tokens are switched via [data-theme="dark|light"]
   ========================================================= */

:root {
  /* type */
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;

  /* radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* spacing */
  --gutter: clamp(20px, 4vw, 56px);

  /* easing */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* brand gradient (constant across themes for vibrancy) */
  --grad-1: #7c5cff;
  --grad-2: #00d4ff;
  --grad-3: #ff7ad9;
  --grad-primary: linear-gradient(
    135deg,
    var(--grad-1) 0%,
    var(--grad-2) 55%,
    var(--grad-3) 100%
  );
}

/* ---------- DARK (default) ---------- */
html[data-theme="dark"] {
  --bg: #0a0612;
  --bg-elev: #110a1f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);

  --fg: #f5f2ff;
  --fg-muted: #b6aed1;
  --fg-soft: #837c9c;

  --accent-soft: rgba(124, 92, 255, 0.18);
  --shadow-card:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 60px -20px rgba(0, 0, 0, 0.7),
    0 8px 24px -12px rgba(124, 92, 255, 0.25);
  --shadow-pop:
    0 30px 80px -20px rgba(0, 212, 255, 0.35),
    0 12px 40px -10px rgba(124, 92, 255, 0.45);

  --good: #34e0a1;
  --good-bg: rgba(52, 224, 161, 0.12);
  --bad: #ff6b81;
  --bad-bg: rgba(255, 107, 129, 0.12);
}

/* ---------- LIGHT ---------- */
html[data-theme="light"] {
  --bg: #f7f5fb;
  --bg-elev: #ffffff;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-2: rgba(255, 255, 255, 0.92);
  --border: rgba(20, 15, 40, 0.07);
  --border-2: rgba(20, 15, 40, 0.14);

  --fg: #15102a;
  --fg-muted: #4a4566;
  --fg-soft: #7a7493;

  --accent-soft: rgba(124, 92, 255, 0.1);
  --shadow-card:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 50px -24px rgba(60, 40, 140, 0.18),
    0 6px 18px -8px rgba(60, 40, 140, 0.1);
  --shadow-pop:
    0 30px 80px -22px rgba(0, 150, 200, 0.35),
    0 14px 38px -12px rgba(124, 92, 255, 0.3);

  --good: #0f9d70;
  --good-bg: rgba(15, 157, 112, 0.1);
  --bad: #d63a55;
  --bad-bg: rgba(214, 58, 85, 0.1);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background 0.5s var(--ease),
    color 0.4s var(--ease);
}
::selection {
  background: var(--grad-1);
  color: white;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}
img,
svg {
  display: block;
}

/* ---------- AMBIENT BLOBS ---------- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--grad-1) 0%, transparent 70%);
  top: -120px;
  left: -160px;
  animation: float1 18s var(--ease) infinite alternate;
}
.blob-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--grad-2) 0%, transparent 70%);
  top: 280px;
  right: -200px;
  opacity: 0.45;
  animation: float2 22s var(--ease) infinite alternate;
}
.blob-3 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, var(--grad-3) 0%, transparent 70%);
  bottom: -160px;
  left: 30%;
  opacity: 0.35;
  animation: float3 24s var(--ease) infinite alternate;
}
html[data-theme="light"] .blob {
  opacity: 0.35;
}
html[data-theme="light"] .blob-3 {
  opacity: 0.22;
}

.grid-noise {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
  opacity: 0.5;
}

@keyframes float1 {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(80px, 40px);
  }
}
@keyframes float2 {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-60px, 80px);
  }
}
@keyframes float3 {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(40px, -60px);
  }
}

/* ---------- LAYOUT ---------- */
.nav,
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- NAV ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 8px 22px -8px rgba(124, 92, 255, 0.6);
}
.brand-mark svg {
  width: 18px;
  height: 18px;
}
.brand-dot {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: none;
  gap: 28px;
  font-size: 14px;
  color: var(--fg-muted);
}
.nav-links a {
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover {
  color: var(--fg);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- BUTTONS ---------- */
.btn {
  --pad-y: 11px;
  --pad-x: 20px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--fg);
  background: transparent;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.3s var(--ease),
    color 0.25s var(--ease),
    border-color 0.3s var(--ease);
  overflow: hidden;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-sm {
  --pad-y: 8px;
  --pad-x: 14px;
  font-size: 13px;
}
.btn-lg {
  --pad-y: 15px;
  --pad-x: 28px;
  font-size: 15px;
}
.btn-lg svg {
  width: 18px;
  height: 18px;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: var(--grad-primary);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 10px 28px -10px rgba(124, 92, 255, 0.55),
    0 4px 14px -4px rgba(0, 212, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 18px 40px -10px rgba(124, 92, 255, 0.7),
    0 8px 24px -6px rgba(0, 212, 255, 0.5);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad-primary);
  filter: blur(18px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s var(--ease);
}
.btn-primary:hover::after {
  opacity: 0.55;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--fg);
  backdrop-filter: blur(16px);
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease);
}
.icon-btn:hover {
  transform: rotate(-12deg);
  background: var(--surface-2);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .i-sun {
  display: none;
}
.theme-toggle .i-moon {
  display: block;
}
html[data-theme="light"] .theme-toggle .i-sun {
  display: block;
}
html[data-theme="light"] .theme-toggle .i-moon {
  display: none;
}

/* ---------- HERO ---------- */
.hero {
  padding-top: 56px;
  padding-bottom: 96px;
  text-align: left;
}
.hero-inner {
  max-width: 880px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--fg-muted);
  background: var(--surface);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(14px);
  margin-bottom: 28px;
  animation: rise 0.7s var(--ease) both;
}
.dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-2);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  }
}

.hero-title {
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  animation: rise 0.8s 0.05s var(--ease) both;
}
.gradient-text {
  background: var(--grad-primary);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shift 8s linear infinite;
}
@keyframes shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.hero-subtitle {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--fg-muted);
  max-width: 620px;
  margin: 0 0 36px;
  animation: rise 0.9s 0.12s var(--ease) both;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: rise 1s 0.2s var(--ease) both;
}
.hero-stats {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  animation: rise 1s 0.3s var(--ease) both;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.stat-label {
  font-size: 12.5px;
  color: var(--fg-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-2);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- SECTIONS ---------- */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.section-head {
  margin-bottom: 40px;
  max-width: 760px;
}
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.05;
  margin: 12px 0 14px;
}
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
}
.muted {
  color: var(--fg-muted);
  max-width: 60ch;
}
.head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-end;
}
.head-actions {
  display: flex;
  gap: 10px;
}

/* ---------- CARD (base glass) ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 28px;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s var(--ease);
}

/* ---------- FORM ---------- */
.form-card {
  padding: clamp(24px, 3vw, 40px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.field {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.field:hover {
  border-color: var(--border-2);
}
.field:focus-within {
  border-color: transparent;
  box-shadow:
    0 0 0 1.5px var(--grad-1),
    0 12px 30px -16px rgba(124, 92, 255, 0.5);
}
.field-icon {
  position: absolute;
  left: 18px;
  top: 22px;
  color: var(--fg-soft);
  pointer-events: none;
  transition: color 0.3s var(--ease);
}
.field-icon svg {
  width: 18px;
  height: 18px;
}
.field:focus-within .field-icon {
  color: var(--grad-1);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  padding: 26px 20px 12px 50px;
  border-radius: inherit;
  resize: none;
}
.field textarea {
  min-height: 96px;
  padding-top: 30px;
}
.field select {
  appearance: none;
  cursor: pointer;
}
.field select::-ms-expand {
  display: none;
}

.field-label {
  position: absolute;
  left: 50px;
  top: 19px;
  font-size: 14px;
  color: var(--fg-soft);
  pointer-events: none;
  transition: all 0.25s var(--ease);
  font-family: var(--font-body);
}
.field input:focus + .field-label,
.field input:not(:placeholder-shown) + .field-label,
.field textarea:focus + .field-label,
.field textarea:not(:placeholder-shown) + .field-label,
.field select:focus + .field-label,
.field select:valid + .field-label {
  top: 9px;
  font-size: 11.5px;
  color: var(--grad-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-display);
}

/* dropdown arrow */
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237A7493' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 46px;
}

.form-foot {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.form-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-soft);
  font-size: 13px;
}
.form-meta svg {
  width: 15px;
  height: 15px;
}
.form-actions {
  display: flex;
  gap: 10px;
}

/* ---------- SKELETON LOADER ---------- */
.skel-card {
  padding: 26px;
  min-height: 360px;
}
.skel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
  animation: shimmer 1.6s infinite;
}
html[data-theme="light"] .skel::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(20, 15, 40, 0.06) 50%,
    transparent 100%
  );
}
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}
.skel-line {
  height: 14px;
  margin-bottom: 14px;
}
.skel-line.w70 {
  width: 70%;
}
.skel-line.w50 {
  width: 50%;
}
.skel-line.w60 {
  width: 60%;
}
.skel-line.w80 {
  width: 80%;
}
.skel-line.w90 {
  width: 90%;
}
.skel-block {
  height: 90px;
  margin: 18px 0;
  border-radius: 14px;
}
.skel-pill {
  height: 38px;
  width: 140px;
  border-radius: var(--r-pill);
}

/* ---------- PATHS GRID ---------- */
.paths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.path-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  overflow: hidden;
}
.path-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-pop);
}
.path-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.path-emoji {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--grad-1);
}
.path-emoji svg {
  width: 22px;
  height: 22px;
}
.match-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-pill);
  background: var(--good-bg);
  color: var(--good);
  font-family: var(--font-display);
}
.match-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
}
.path-title {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.path-desc {
  color: var(--fg-muted);
  font-size: 14.5px;
  margin: 0;
}
.path-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.path-tags li {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg-muted);
}
.path-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.path-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.ps-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.ps-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-soft);
}
.path-foot {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 4px;
}
.path-foot .btn {
  flex: 1;
}

.path-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    var(--grad-primary) border-box;
  border: 1.5px solid transparent;
}
html[data-theme="light"] .path-card.featured {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--grad-primary) border-box;
}
.badge-featured {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  color: white;
  background: var(--grad-primary);
  box-shadow: 0 6px 20px -8px rgba(124, 92, 255, 0.6);
}

.card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 0%),
    rgba(124, 92, 255, 0.18),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.path-card:hover .card-glow {
  opacity: 1;
}

/* ---------- TIMELINE ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--grad-1),
    var(--grad-2),
    var(--grad-3)
  );
  opacity: 0.4;
  border-radius: 2px;
}
.t-step {
  position: relative;
  padding-left: 72px;
}
.t-marker {
  position: absolute;
  left: 0;
  top: 4px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  display: grid;
  place-items: center;
  color: var(--grad-1);
  box-shadow: 0 8px 26px -10px rgba(124, 92, 255, 0.4);
}
.t-marker svg {
  width: 22px;
  height: 22px;
}
.t-step:hover .t-marker {
  border-color: transparent;
  background: var(--grad-primary);
  color: white;
}
.t-card {
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.4s var(--ease);
}
.t-card:hover {
  transform: translateX(6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-pop);
}
.t-when {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grad-1);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  margin-bottom: 12px;
}
.t-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.t-card p {
  color: var(--fg-muted);
  margin: 0 0 14px;
  font-size: 14.5px;
}
.t-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.t-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--fg-muted);
}
.t-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 8px rgba(124, 92, 255, 0.5);
}

/* ---------- COMPARISON ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.compare-card {
  padding: 32px;
}
.compare-card.compare-bad {
  border-color: var(--bad-bg);
}
.compare-card.compare-good {
  background:
    linear-gradient(180deg, rgba(52, 224, 161, 0.06), transparent 60%),
    var(--surface);
  border-color: rgba(52, 224, 161, 0.25);
}
html[data-theme="light"] .compare-card.compare-good {
  background:
    linear-gradient(180deg, rgba(15, 157, 112, 0.08), transparent 60%),
    var(--surface);
}
.compare-card.compare-bad {
  background:
    linear-gradient(180deg, rgba(255, 107, 129, 0.05), transparent 60%),
    var(--surface);
}
.compare-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.compare-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.compare-head h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
}
.compare-chip svg {
  width: 14px;
  height: 14px;
}
.chip-green {
  background: var(--good-bg);
  color: var(--good);
}
.chip-red {
  background: var(--bad-bg);
  color: var(--bad);
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--fg);
}
.li-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.li-icon svg {
  width: 12px;
  height: 12px;
}
.li-icon.good {
  background: var(--good-bg);
  color: var(--good);
}
.li-icon.bad {
  background: var(--bad-bg);
  color: var(--bad);
}

/* ---------- CTA ---------- */
.cta-section {
  padding-top: 40px;
  padding-bottom: 80px;
}
.cta-card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(
      800px circle at 20% 20%,
      rgba(124, 92, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      700px circle at 80% 80%,
      rgba(0, 212, 255, 0.16),
      transparent 60%
    ),
    var(--surface);
}
.cta-card h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 8px 0 10px;
}
.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  padding-top: 30px;
  padding-bottom: 40px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--fg-soft);
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  transition: color 0.25s var(--ease);
}
.footer-links a:hover {
  color: var(--fg);
}

/* ================= EMPTY STATE ================= */

.empty-state {
  width: min(1200px, 92%);
  margin: 40px auto 70px;
  padding: 40px 30px;

  border: 1px solid var(--border);
  border-radius: 28px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );

  backdrop-filter: blur(20px);

  position: relative;
  overflow: hidden;
}

.empty-state::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;

  top: -180px;
  right: -160px;

  background: radial-gradient(
    circle,
    rgba(124, 92, 255, 0.25),
    transparent 70%
  );

  pointer-events: none;
}

.empty-header {
  text-align: center;
  margin-bottom: 45px;
}

.empty-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.empty-header p {
  max-width: 720px;
  margin: auto;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ================= GRID ================= */

.steps-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 22px;
}

/* ================= CARD ================= */

.step-card {
  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 22px;

  padding: 30px 22px;

  text-align: center;

  transition: 0.35s;

  position: relative;

  overflow: hidden;
}

.step-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.08),
    transparent 60%
  );

  opacity: 0;

  transition: 0.35s;
}

.step-card:hover {
  transform: translateY(-10px);

  border-color: rgba(124, 92, 255, 0.4);

  box-shadow: 0 15px 40px rgba(124, 92, 255, 0.18);
}

.step-card:hover::before {
  opacity: 1;
}

.step-icon {
  width: 74px;
  height: 74px;

  margin: auto auto 20px;

  display: grid;
  place-items: center;

  font-size: 2rem;

  border-radius: 50%;

  background: linear-gradient(135deg, var(--primary), var(--primary-dark));

  color: #fff;

  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.35);
}

.step-card h3 {
  margin-bottom: 10px;

  font-size: 1.1rem;

  font-weight: 650;
}

.step-card p {
  color: var(--text-muted);

  line-height: 1.7;

  font-size: 0.95rem;
}

/* ================= CONNECTOR ================= */

.step-card:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 36px;

  right: -30px;

  width: 60px;

  height: 2px;

  background: linear-gradient(to right, var(--primary), transparent);
}

@media (max-width: 900px) {
  .step-card::after {
    display: none;
  }
}

/* ================= CTA ================= */

.empty-footer {
  margin-top: 40px;

  text-align: center;
}

.empty-footer span {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding: 14px 22px;

  border-radius: 999px;

  background: rgba(124, 92, 255, 0.08);

  border: 1px solid rgba(124, 92, 255, 0.2);

  color: var(--text-muted);

  font-size: 0.95rem;
}

/* ================= PREMIUM DASHBOARD COMPARE TABLE ================= */
.premium-table-wrapper {
  width: 100%;
  overflow-hidden: scroll;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  margin: 24px 0;
}

.compare-dashboard-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Keeps columns at an exact 50/50 split */
}

.compare-dashboard-table th {
  padding: 24px;
  background: var(--table-header-bg, #f8fafc);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  text-align: left;
  vertical-align: bottom;
}

/* Treat both columns systematically */
.compare-dashboard-table th:first-child {
  border-right: 1px solid var(--border-color, #e2e8f0);
}

.compare-dashboard-table td {
  padding: 24px;
  vertical-align: top;
}

.compare-dashboard-table td:first-child {
  border-right: 1px solid var(--border-color, #e2e8f0);
}

/* Typography elements inside header cells */
.table-header-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}

.table-header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0 !important;
}

/* Badges for summary tags */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-cons {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}
.badge-pros {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

/* Modern List Formatting */
.dashboard-compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
}

.dashboard-compare-list li:last-child {
  margin-bottom: 0;
}

.list-icon {
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.list-cons .list-icon {
  color: #16a34a;
}

.list-pros .list-icon {
  color: #16a34a;
}

/* Dark theme overrides if user toggles night mode */
[data-theme="dark"] .premium-table-wrapper {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .compare-dashboard-table th {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .compare-dashboard-table td {
  border-color: #334155;
}
[data-theme="dark"] .table-header-title {
  color: #f8fafc;
}
[data-theme="dark"] .dashboard-compare-list li {
  color: #94a3b8;
}

/* =========================================================
   Premium Custom Dropdown Component (Theme Adaptive)
   ========================================================= */

.custom-dropdown {
  cursor: pointer;
  user-select: none;
}

/* Ensure container reflects active state if dropdown is open */
.custom-dropdown.is-open {
  border-color: transparent;
  box-shadow:
    0 0 0 1.5px var(--grad-1),
    0 12px 30px -16px rgba(124, 92, 255, 0.5);
}

.custom-dropdown.is-open .field-icon {
  color: var(--grad-1);
}

/* Presentation Area Layout */
.dropdown-trigger {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 20px 12px 50px;
  outline: none;
  box-sizing: border-box;
}

.dropdown-selected-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
}

.dropdown-chevron {
  width: 16px;
  height: 16px;
  color: var(--fg-soft);
  transition:
    transform 0.25s var(--ease),
    color 0.25s var(--ease);
}

.custom-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--grad-1);
}

/* Standardized Input Floating Label Logic Transformation */
.custom-dropdown.is-open .field-label,
.custom-dropdown.has-value .field-label {
  top: 9px;
  font-size: 11.5px;
  color: var(--grad-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-display);
}

/* Premium Adaptive Popover Overlay */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(
    --bg-elev
  ); /* Changes cleanly with your global dark/light values */
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-pop);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0.2s var(--ease);
  z-index: 1000;
  padding: 6px;
}

.custom-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Individual Choice Rows */
.dropdown-option {
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-muted);
  border-radius: calc(var(--r-sm) - 4px);
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.dropdown-option:hover {
  background: var(--surface-2);
  color: var(--fg);
}

.dropdown-option.selected {
  background: var(--grad-1);
  color: #ffffff;
}

/* Custom Unified Scrollbar treatment based on Theme */
.dropdown-menu::-webkit-scrollbar {
  width: 5px;
}
.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: var(--r-pill);
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .field-wide {
    grid-column: span 2;
  }
  .nav-links {
    display: flex;
  }
}
@media (min-width: 980px) {
  .paths-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding-top: 72px;
    padding-bottom: 120px;
  }
}

/* hide some nav bits on tiny screens */
@media (max-width: 520px) {
  .nav-actions .btn-ghost {
    display: none;
  }
  .hero-stats .stat-divider {
    display: none;
  }
}

/* ---------- A11Y MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
