:root {
  --ink: #071947;
  --blue: #0a49d8;
  --cyan: #52d6ff;
  --mint: #7cf4ce;
  --paper: #f7fbff;
  --muted: #a7b7d9;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 90px rgba(2, 11, 34, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: white;
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 78% 12%, rgba(82, 214, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 12% 88%, rgba(124, 244, 206, 0.13), transparent 28rem),
    linear-gradient(135deg, #020812 0%, #071947 52%, #020713 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.33;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  z-index: -2;
}

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

button,
.button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cursor-glow {
  position: fixed;
  width: 20rem;
  height: 20rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(82, 214, 255, 0.22), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 5;
}

.transition-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  transform: translateX(-120%);
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(82, 214, 255, 0.28) 18% 20%, #06163f 20% 72%, rgba(124, 244, 206, 0.34) 72% 74%, transparent 74%);
}

.transition-layer.run {
  animation: wipe 760ms cubic-bezier(0.78, 0, 0.18, 1);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.2rem);
  background: linear-gradient(to bottom, rgba(2, 8, 18, 0.86), rgba(2, 8, 18, 0.2));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 0.72rem);
  gap: 0.18rem;
  height: 2.35rem;
  align-items: end;
}

.brand-mark span {
  height: 2rem;
  border: 2px solid white;
  border-bottom: 0;
  border-radius: 1rem 1rem 0 0;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border: 2px solid white;
  border-right: 0;
  border-bottom: 0;
  border-radius: 2rem 0 0 0;
}

.brand-mark::before {
  width: 2.3rem;
  height: 2.1rem;
  left: -1.8rem;
  bottom: 0;
}

.brand-mark::after {
  width: 1.45rem;
  height: 1.25rem;
  left: -1rem;
  bottom: 0.12rem;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.35rem;
  font-weight: 500;
}

.brand-copy small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.6rem);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.nav a {
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav a:hover {
  color: white;
  border-color: var(--cyan);
}

.next-nav,
.deck-controls button,
.button,
.tag-cloud button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.next-nav {
  padding: 0.68rem 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.15rem;
}

.button.primary {
  border-color: rgba(82, 214, 255, 0.5);
  background: linear-gradient(135deg, var(--blue), #063074);
}

.button.ghost {
  color: rgba(255, 255, 255, 0.84);
}

.magnet:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(82, 214, 255, 0.78);
  background: rgba(82, 214, 255, 0.16);
}

.section {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 2.2rem;
  padding: clamp(6rem, 10vw, 8rem) clamp(1rem, 5vw, 5rem);
  overflow: hidden;
}

.section::after {
  content: attr(data-step);
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 3vw, 2rem);
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 800;
  line-height: 0.8;
}

.section:nth-child(even) {
  background: rgba(255, 255, 255, 0.035);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(4.4rem, 14vw, 12rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-copy h2,
.section-head h2 {
  max-width: 58rem;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 43rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.logo-stage {
  position: relative;
  min-height: 32rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
}

.logo-stage img {
  width: 100%;
  height: 100%;
  min-height: 32rem;
  object-fit: cover;
  filter: contrast(1.04);
  transition: transform 600ms ease;
}

.logo-stage:hover img {
  transform: scale(1.055);
}

.signal-card {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  display: grid;
  gap: 0.2rem;
  min-width: 12rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 11, 29, 0.74);
  backdrop-filter: blur(16px);
}

.signal-card span {
  color: var(--cyan);
}

.orbital {
  position: absolute;
  width: 34rem;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.orbital::before,
.orbital::after {
  content: "";
  position: absolute;
  width: 2.6rem;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: #071947;
}

.orbital::before {
  top: 10%;
  left: 62%;
}

.orbital::after {
  top: 58%;
  left: 20%;
}

.orbital-left {
  top: -18rem;
  left: -16rem;
}

.orbital-right {
  right: -14rem;
  bottom: -15rem;
}

.section-head {
  position: relative;
  z-index: 1;
}

.goal-layout,
.compare-grid,
.metrics-grid,
.result-grid,
.standards-grid,
.cards-four {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.goal-layout,
.compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.goal-card,
.metric,
.mini-card,
.project-tile,
.timeline article,
.roadmap article,
.final-call {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.panel,
.goal-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.goal-card {
  overflow: hidden;
}

.goal-card .number {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #061b54;
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
}

.goal-card.accent .number {
  background: var(--blue);
}

h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.icon-list,
.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
}

.icon-list li,
.check-list li {
  position: relative;
  padding-left: 1.8rem;
}

.icon-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16rem;
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  border: 1px solid rgba(82, 214, 255, 0.7);
  background: rgba(82, 214, 255, 0.12);
}

.check-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  color: var(--mint);
  font-size: 0.76rem;
}

.project-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.project-tile {
  min-height: 12rem;
  display: grid;
  align-content: space-between;
  padding: 1.1rem;
  transition: transform 220ms ease, background 220ms ease;
}

.project-tile:hover {
  transform: translateY(-0.55rem);
  background: linear-gradient(145deg, rgba(10, 73, 216, 0.45), rgba(82, 214, 255, 0.08));
}

.project-tile span,
.timeline span,
.roadmap span {
  color: var(--cyan);
  font-weight: 900;
}

.standards-grid {
  grid-template-columns: 18rem 1fr;
  align-items: center;
}

.clipboard {
  display: grid;
  gap: 1.05rem;
  min-height: 22rem;
  padding: 4rem 2rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  position: relative;
}

.clipboard::before {
  content: "";
  position: absolute;
  top: -1.1rem;
  left: 50%;
  width: 5rem;
  height: 2rem;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: var(--cyan);
}

.clipboard span {
  height: 0.2rem;
  background: rgba(255, 255, 255, 0.62);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-cloud button {
  padding: 0.85rem 1rem;
}

.metrics-grid {
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
}

.metric {
  display: grid;
  align-content: center;
  min-height: 12rem;
  padding: 1.25rem;
}

.metric strong {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.85;
}

.metric span {
  color: rgba(255, 255, 255, 0.72);
}

.timeline,
.roadmap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  opacity: 0.45;
}

.timeline article,
.roadmap article {
  min-height: 13rem;
  padding: 1.2rem;
  transition: transform 220ms ease;
}

.timeline article:hover,
.roadmap article:hover,
.mini-card:hover,
.panel:hover {
  transform: translateY(-0.35rem);
}

.cards-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-card {
  display: grid;
  gap: 1.4rem;
  min-height: 11rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(10, 73, 216, 0.7), rgba(255, 255, 255, 0.08));
}

.mini-card span {
  font-size: 1.45rem;
  font-weight: 900;
}

.result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel p,
.roadmap p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.roadmap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap article {
  position: relative;
  overflow: hidden;
}

.roadmap article::after {
  content: "";
  position: absolute;
  inset: auto -2rem -4rem auto;
  width: 9rem;
  aspect-ratio: 1;
  border: 2px solid rgba(82, 214, 255, 0.25);
  border-radius: 50%;
}

.final-call {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-color: rgba(124, 244, 206, 0.4);
  background: linear-gradient(135deg, rgba(124, 244, 206, 0.13), rgba(10, 73, 216, 0.2));
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.4;
}

.deck-controls {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transform: translateX(-50%);
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(18px);
}

.deck-controls button {
  min-width: 4.9rem;
  padding: 0.62rem 0.8rem;
}

.progress-text {
  min-width: 4.6rem;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes wipe {
  0% { transform: translateX(-120%); }
  48% { transform: translateX(0); }
  100% { transform: translateX(120%); }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero-grid,
  .goal-layout,
  .compare-grid,
  .standards-grid,
  .metrics-grid,
  .result-grid,
  .timeline,
  .cards-four,
  .roadmap,
  .project-row {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    display: none;
  }

  .logo-stage,
  .logo-stage img {
    min-height: 24rem;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 0.8rem 0.85rem;
  }

  .brand-copy small,
  .next-nav {
    display: none;
  }

  .brand-copy strong {
    font-size: 1.05rem;
  }

  .section {
    min-height: auto;
    padding: 6rem 1rem 5.6rem;
  }

  .hero-copy h1 {
    font-size: 4.25rem;
  }

  .hero-copy h2,
  .section-head h2 {
    font-size: 2.15rem;
  }

  .logo-stage,
  .logo-stage img {
    min-height: 19rem;
  }

  .deck-controls {
    width: calc(100% - 1rem);
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
