/* ============================================
   .NET Diploma — Creative visual redesign
   BrainSTEM palette + roadmap journey layout
   ============================================ */

:root {
  --primary: #0078d4;
  --primary-dark: #005a9e;
  --primary-soft: #eaf4ff;
  --accent: #38bdf8;
  --navy: #0b1220;
  --navy-mid: #152238;
  --text: #1f2937;
  --muted: #64748b;
  --bg: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: min(1080px, 92vw);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.3s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
}

main {
  overflow-x: clip;
  max-width: 100%;
}

a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-dark); }
.container { width: var(--container); margin-inline: auto; }
.container--narrow { max-width: 720px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(11, 18, 32, 0.08); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.logo { font-weight: 800; font-size: 1rem; color: var(--navy); letter-spacing: -0.02em; }
.logo__accent { color: var(--primary); }
.header__back { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-right: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bar { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1rem; }
.nav__link { font-weight: 600; font-size: 0.875rem; color: var(--text); }
.nav__link.is-active { color: var(--primary); }
.nav__link--apply {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: var(--white) !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 120, 212, 0.35);
}
.nav__link--apply:hover { color: var(--white); filter: brightness(1.05); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4rem);
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(56, 189, 248, 0.25), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(0, 120, 212, 0.2), transparent),
    linear-gradient(160deg, #0b1220 0%, #0f2744 45%, #0c4a6e 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float-orb 12s var(--ease) infinite alternate;
}
.hero__orb--1 { width: 320px; height: 320px; background: #0078d4; top: -80px; right: 10%; }
.hero__orb--2 { width: 240px; height: 240px; background: #38bdf8; bottom: -40px; left: 5%; animation-delay: -4s; }

.hero__grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

@keyframes float-orb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(20px, -15px) scale(1.08); }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.text-gradient {
  background: linear-gradient(90deg, #7dd3fc, #38bdf8, #0078d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
}

.hero__badges { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.5rem; }
.pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #e0f2fe;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.pricing-callout {
  margin: 1.25rem 0 1.5rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 213, 0, 0.2), rgba(0, 120, 212, 0.15));
  border: 2px solid rgba(255, 213, 0, 0.5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}
.pricing-callout__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fde68a;
}
.pricing-callout__price {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}
.pricing-callout__amount {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #ffd700;
  letter-spacing: -0.02em;
}
.pricing-callout__currency { color: #fde68a; }
.pricing-callout__unit {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.pricing-callout__note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Stack visual */
.stack-visual {
  position: relative;
  width: min(100%, 300px);
  margin: 0 auto 1.25rem;
  height: 220px;
  overflow: hidden;
}

.stack-visual__layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: stack-float 5s var(--ease) infinite alternate;
}
.stack-visual__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  object-fit: contain;
}
.stack-visual__layer--db { top: 0; background: #1e3a5f; color: #93c5fd; z-index: 1; }
.stack-visual__layer--api { top: 52px; background: #512da8; color: #e9d5ff; z-index: 2; animation-delay: 0.4s; transform: translateX(-48%) rotate(1deg); }
.stack-visual__layer--ui { top: 104px; background: #b91c1c; color: #fecaca; z-index: 3; animation-delay: 0.8s; }
.stack-visual__layer--ui .stack-visual__icon {
  background: rgba(255, 255, 255, 0.98);
}
.stack-visual__layer--ai { top: 156px; background: linear-gradient(135deg, #0078d4, #0ea5e9); color: white; z-index: 4; animation-delay: 1.2s; }
.stack-visual__layer--ai .stack-visual__icon {
  background: rgba(255, 255, 255, 0.98);
  filter: none;
}

.stack-visual__glow {
  position: absolute;
  inset: 20% 10%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
  z-index: 0;
}

@keyframes stack-float {
  from { transform: translateX(-50%) rotate(-2deg); }
  to { transform: translateX(calc(-50% + 4px)) translateY(-6px) rotate(-2deg); }
}

.hero__metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}
.hero__metrics li strong { display: block; font-size: 1.35rem; color: var(--accent); }
.hero__metrics li span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); }
.hero__metrics--price strong { color: #ffd700; font-size: 1.55rem; text-shadow: 0 0 20px rgba(255, 215, 0, 0.35); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 120, 212, 0.45);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 120, 212, 0.5); }
.btn--outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn--lg { padding: 0.95rem 1.85rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Sections common ---------- */
.section { padding: clamp(3.5rem, 7vw, 5rem) 0; }
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.section-title--left { text-align: left; }
.section-lead { color: var(--muted); margin: 0; }

/* ---------- Overview bento ---------- */
.section--overview { background: var(--white); }

.overview-split { display: grid; gap: 2.5rem; }
.overview-intro__text { color: var(--muted); font-size: 1.05rem; max-width: 28rem; margin: 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.bento__item {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
}
.bento__item:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 120, 212, 0.12); }
.bento__item--wide { grid-column: span 2; background: linear-gradient(135deg, var(--primary-soft), var(--white)); }
.bento__item--accent {
  grid-column: span 1;
  background: linear-gradient(145deg, var(--navy), #0c4a6e);
  color: var(--white);
  border: none;
}
.bento__item--accent p { color: rgba(255,255,255,0.75); }
.bento__icon { font-size: 1.4rem; display: block; margin-bottom: 0.5rem; color: var(--primary); }
.bento__item--accent .bento__icon { color: var(--accent); }
.bento__item h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.bento__item p { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* ---------- Stats ribbon ---------- */
.stats-ribbon {
  background: var(--navy);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}
.stats-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.08), transparent);
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.stats-ribbon__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 0;
}
.stats-ribbon__item { text-align: center; padding: 0 2rem; flex: 1 1 140px; }
.stats-ribbon__item--highlight .stats-ribbon__value {
  color: #ffd700;
  text-shadow: 0 0 28px rgba(255, 215, 0, 0.45);
}
.stats-ribbon__value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.stats-ribbon__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}
.stats-ribbon__divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(transparent, rgba(125, 211, 252, 0.5), transparent);
}

/* ---------- ROADMAP (main visual) ---------- */
.roadmap-section {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, #e8f4fc 0%, var(--bg) 40%, var(--bg) 100%);
  overflow: hidden;
}

.roadmap-section__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(0, 120, 212, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.08) 0%, transparent 35%);
  pointer-events: none;
}

.roadmap-header { text-align: center; max-width: 560px; margin: 0 auto 3rem; }
.roadmap-header__lead { color: var(--muted); margin: 0; font-size: 1.05rem; }

.roadmap { position: relative; max-width: 900px; margin: 0 auto; }

.roadmap__spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  z-index: 0;
}

.roadmap__road {
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: 4px;
  background: repeating-linear-gradient(
    180deg,
    var(--primary) 0,
    var(--primary) 12px,
    transparent 12px,
    transparent 20px
  );
  box-shadow: 0 0 20px rgba(0, 120, 212, 0.35);
  animation: road-pulse 3s ease-in-out infinite;
}

@keyframes road-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; filter: brightness(1.15); }
}

.roadmap__pin {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
}
.roadmap__pin--start { top: -8px; background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.roadmap__pin--finish {
  bottom: -8px;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 120, 212, 0.4);
}

.roadmap__journey {
  list-style: none;
  margin: 0;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.roadmap-stop {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-bottom: 2.75rem;
  position: relative;
}

.roadmap-stop__node {
  grid-column: 2;
  grid-row: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 0 0 6px var(--primary-soft), 0 8px 24px rgba(0, 120, 212, 0.25);
  z-index: 2;
  transition: transform var(--t);
}
.roadmap-stop:hover .roadmap-stop__node { transform: scale(1.08); }

.roadmap-stop__icon-img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.roadmap-stop__icon-img--sm { width: 22px; height: 22px; }
.roadmap-stop__icon-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  justify-content: center;
  max-width: 52px;
}
.roadmap-stop__node:has(.roadmap-stop__icon-cluster) {
  width: 64px;
  height: 64px;
}

.roadmap-stop__node--finale {
  width: 64px;
  height: 64px;
  border-width: 4px;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  border-color: var(--white);
  box-shadow: 0 0 0 8px rgba(0, 120, 212, 0.2), 0 12px 32px rgba(0, 120, 212, 0.35);
}

.roadmap-stop__card {
  max-width: 340px;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transition: transform var(--t), box-shadow var(--t);
}
.roadmap-stop:hover .roadmap-stop__card {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 120, 212, 0.12);
}

.roadmap-stop--left .roadmap-stop__card {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  text-align: right;
}
.roadmap-stop--left .roadmap-tags { justify-content: flex-end; }

.roadmap-stop--right .roadmap-stop__card {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  text-align: left;
}

.roadmap-stop--finale .roadmap-stop__card--finale {
  background: linear-gradient(135deg, #0f2744, #0c4a6e);
  color: var(--white);
  border: none;
}
.roadmap-stop--finale .roadmap-stop__meta { color: var(--accent); }
.roadmap-stop--finale .roadmap-stop__desc { color: rgba(255,255,255,0.8); }
.roadmap-stop--finale .roadmap-tags span {
  background: rgba(255,255,255,0.12);
  color: #e0f2fe;
  border-color: rgba(255,255,255,0.2);
}

.roadmap-stop__meta {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}
.roadmap-stop__card h3 { margin: 0.25rem 0 0.4rem; font-size: 1.1rem; color: var(--navy); }
.roadmap-stop--finale .roadmap-stop__card h3 { color: var(--white); }
.roadmap-stop__desc { margin: 0 0 0.65rem; font-size: 0.875rem; color: var(--muted); }

.roadmap-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.roadmap-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid rgba(0, 120, 212, 0.15);
}

/* ---------- Projects strips ---------- */
.section--projects { background: var(--white); }

.project-showcase { display: flex; flex-direction: column; gap: 0.85rem; }

.project-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 1.35rem 1.15rem 0;
  border-radius: var(--radius);
  background: var(--bg);
  border-left: 5px solid var(--accent, var(--primary));
  transition: transform var(--t), background var(--t);
}
.project-strip:hover {
  transform: translateX(8px);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.project-strip__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent, var(--primary));
  opacity: 0.35;
  padding-left: 1rem;
  line-height: 1;
}
.project-strip__body h3 { margin: 0 0 0.25rem; font-size: 1.05rem; color: var(--navy); }
.project-strip__body p { margin: 0 0 0.5rem; font-size: 0.875rem; color: var(--muted); }
.project-strip__foot { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.project-strip__foot span {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ---------- AI orbit ---------- */
.section--ai {
  background: linear-gradient(180deg, var(--bg) 0%, var(--primary-soft) 100%);
}

.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.ai-layout__copy p { color: var(--muted); margin: 0 0 1.25rem; }

.ai-callout {
  margin: 0;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--primary);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.ai-callout p { margin: 0; font-weight: 500; color: var(--navy); font-size: 0.95rem; }

.ai-orbit {
  position: relative;
  width: min(100%, 320px);
  height: 320px;
  margin: 0 auto;
  overflow: hidden;
}

.ai-orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 0 0 12px rgba(0, 120, 212, 0.15), 0 12px 32px rgba(0, 120, 212, 0.3);
  z-index: 2;
}
.ai-orbit__core img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ai-orbit__skills {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}
.ai-orbit__skills li {
  position: absolute;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  background: var(--white);
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ai-orbit__skills li img { flex-shrink: 0; object-fit: contain; }
.ai-orbit__skills li:nth-child(1) { top: 8%; left: 50%; transform: translateX(-50%); }
.ai-orbit__skills li:nth-child(2) { top: 22%; right: 0; }
.ai-orbit__skills li:nth-child(3) { top: 50%; right: -4%; transform: translateY(-50%); }
.ai-orbit__skills li:nth-child(4) { bottom: 22%; right: 0; }
.ai-orbit__skills li:nth-child(5) { bottom: 8%; left: 50%; transform: translateX(-50%); }
.ai-orbit__skills li:nth-child(6) { top: 50%; left: -4%; transform: translateY(-50%); }

.ai-orbit::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 2px dashed rgba(0, 120, 212, 0.25);
  border-radius: 50%;
  animation: spin-slow 40s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ---------- Methodology (legacy + enhanced) ---------- */
.methodology-split { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.methodology-chart__ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 288deg, var(--border) 288deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.methodology-chart__ring::after {
  content: "";
  position: absolute;
  inset: 24px;
  background: var(--white);
  border-radius: 50%;
}
.methodology-chart__center {
  position: relative;
  z-index: 1;
  font-weight: 800;
  text-align: center;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.2;
}
.methodology-chart__pct {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.methodology-chart__center small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
}
.methodology-chart__caption {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.methodology-list { margin: 0; padding-left: 1.2rem; }
.methodology-list li { margin-bottom: 0.5rem; }

/* ---------- Careers & tech ---------- */
.section--alt { background: var(--white); border-block: 1px solid var(--border); }

.roles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.role-pill {
  padding: 0.6rem 1.15rem;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--white), var(--primary-soft));
  border: 1px solid rgba(0, 120, 212, 0.2);
  color: var(--navy);
  transition: transform var(--t), box-shadow var(--t);
}
.role-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 120, 212, 0.15);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  transition: all var(--t);
}
.tech-badge img { flex-shrink: 0; object-fit: contain; }
.tech-badge:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.tech-badge:hover img { filter: brightness(0) invert(1); }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, #0b1220 0%, #0078d4 50%, #0ea5e9 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
  top: -200px;
  right: -100px;
}
.cta-band__title { margin: 0 0 0.75rem; font-size: clamp(1.5rem, 3vw, 2rem); position: relative; }
.cta-band__text { margin: 0 auto 1.5rem; max-width: 480px; opacity: 0.9; position: relative; }
.cta-band .btn--primary {
  background: var(--white);
  color: var(--primary-dark);
  position: relative;
}

/* ---------- Form ---------- */
.apply__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; }
.apply__lead { text-align: left; }
.apply__contact { list-style: none; padding: 0; margin: 1rem 0 0; color: var(--muted); }
.apply-form {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
}
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.3rem; }
.req { color: var(--primary); }
.apply-form input, .apply-form select, .apply-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  background: var(--bg);
}
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.2);
  background: var(--white);
}
.apply-form input.error, .apply-form select.error, .apply-form textarea.error { border-color: #dc2626; }

.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.contact-honeypot input { pointer-events: none; }

.form-row--captcha .captcha-hint {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.captcha-widget {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.captcha-image {
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
}
.captcha-refresh {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.captcha-refresh:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}
.captcha-widget input {
  width: 5.5rem;
  padding: 0.55rem 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.captcha-widget input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}
.captcha-widget input.error { border-color: #dc2626; }
.field-error { font-size: 0.75rem; color: #dc2626; min-height: 1rem; }
.form-error-banner {
  padding: 0.65rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #dc2626;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.form-error-banner[hidden], .form-success[hidden] { display: none !important; }
.form-success {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  color: #065f46;
  border-radius: var(--radius-sm);
  border: 1px solid #a7f3d0;
}

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.5rem; background: var(--white); overflow: hidden; }
.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  color: var(--navy);
}
.faq-trigger::after { content: "+"; color: var(--primary); font-size: 1.2rem; }
.faq-trigger[aria-expanded="true"]::after { content: "−"; }
.faq-panel { padding: 0 1.15rem 1rem; }
.faq-panel[hidden] { display: none; }
.faq-panel p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94a3b8; padding-top: 3rem; }
.site-footer a { color: #cbd5e1; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer__logo { font-weight: 700; color: var(--white); margin: 0 0 0.5rem; }
.footer__heading { color: var(--white); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer__links { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.footer__links li { margin-bottom: 0.35rem; }
.footer__bottom { border-top: 1px solid rgba(148, 163, 184, 0.2); padding: 1.25rem 0; text-align: center; font-size: 0.8rem; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t), visibility var(--t), transform var(--t);
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0, 120, 212, 0.4);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__badges, .hero__actions { justify-content: center; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--wide, .bento__item--accent { grid-column: span 1; }
  .ai-layout { grid-template-columns: 1fr; }
  .apply__grid { grid-template-columns: 1fr; }
  .stats-ribbon__divider { display: none; }
  .roadmap-stop {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }
  .roadmap-stop__node { grid-column: 1; grid-row: 1; }
  .roadmap-stop--left .roadmap-stop__card,
  .roadmap-stop--right .roadmap-stop__card {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    text-align: left;
    max-width: none;
  }
  .roadmap-stop--left .roadmap-tags { justify-content: flex-start; }
  .roadmap__spine { left: 28px; transform: none; }
  .roadmap__pin { left: 28px; transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header__back { display: none; }
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100%, 320px);
    max-width: 100%;
    background: var(--white);
    padding: 1.25rem;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--t), visibility var(--t);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 199;
    box-shadow: -8px 0 32px rgba(11, 18, 32, 0.12);
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .nav__link--apply { text-align: center; border: none; margin-top: 0.5rem; }
  .methodology-split { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .project-strip:hover { transform: none; }
  .stack-visual__layer {
    white-space: normal;
    text-align: center;
    max-width: calc(100% - 1rem);
  }
  .stack-visual__layer--api {
    transform: translateX(-50%) rotate(1deg);
  }
  @keyframes stack-float {
    from { transform: translateX(-50%) rotate(-2deg); }
    to { transform: translateX(calc(-50% + 4px)) translateY(-6px) rotate(-2deg); }
  }
}
