:root {
  --bg: #0b1220;
  --ink: #0e1320;
  --paper: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --text: #111111;
  --soft: #f3f5f8;
  --soft-2: #e9eef5;

  --accent: #8ff0ff;
  --accent-2: #b6f3d5;
  --accent-3: #c7b6ff;

  --shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.08);

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1100px;
}

* {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Symbol";
  color: var(--text);
  line-height: 1.75;
  background: #0b1220;
}

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: var(--paper);
  color: #000000;
  border-radius: 10px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 180ms ease;
  z-index: 9999;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(
      1400px 700px at 50% 25%,
      rgba(143, 240, 255, 0.22),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 15% 70%,
      rgba(199, 182, 255, 0.18),
      transparent 55%
    ),
    radial-gradient(
      1000px 800px at 85% 80%,
      rgba(182, 243, 213, 0.18),
      transparent 60%
    ),
    linear-gradient(120deg, #081024, #050a14);
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 4rem 0;
  z-index: 2;
}

.kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.2rem;
  animation: fadeUp 900ms ease forwards;
}

.hero-title {
  margin: 0;
}

.hero-title-top {
  display: block;
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: clamp(3.2rem, 9vw, 7rem);
  color: #ffffff;
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
  animation: heroReveal 1200ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.hero-title-sub {
  display: block;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.7rem;
  opacity: 0;
  animation: fadeUp 1000ms ease forwards;
  animation-delay: 420ms;
}

.hero-lede {
  margin: 1.4rem auto 1.8rem;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  animation: fadeUp 1000ms ease forwards;
  animation-delay: 620ms;
}

.hero-meta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.2rem 0 1.6rem;
  opacity: 0;
  animation: fadeUp 1000ms ease forwards;
  animation-delay: 820ms;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.meta-icon {
  color: var(--accent);
}

.hero-nav {
  display: inline-flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1000ms ease forwards;
  animation-delay: 980ms;
}

.hero-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, background-color 180ms ease,
    border-color 180ms ease;
}

.hero-nav a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-nav a:focus {
  outline: 2px solid rgba(143, 240, 255, 0.95);
  outline-offset: 3px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-orbit {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(1000px, 140vw);
  height: auto;
  opacity: 0.22;
  stroke: rgba(255, 255, 255, 0.55);
  fill: none;
  stroke-width: 1.2;
  animation: spinSlow 48s linear infinite;
}

.hero-grain {
  position: absolute;
  inset: -30%;
  width: 160%;
  height: 160%;
  opacity: 0.35;
  animation: drift 14s ease-in-out infinite alternate;
}

.scroll-cue {
  margin-top: 2.2rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeUp 1000ms ease forwards;
  animation-delay: 1100ms;
}

.scroll-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 10px rgba(143, 240, 255, 0.14);
  animation: pulse 1.6s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* SECTIONS */
.section {
  padding: 5.5rem 0;
}

.section-light {
  background: linear-gradient(180deg, #f8fafc, #eef3f9);
  color: #0f172a;
}

.section-dark {
  background: linear-gradient(180deg, #0b1220, #070b12);
  color: #ffffff;
}

.section-ink {
  background: linear-gradient(180deg, #0f172a, #0b1220);
  color: #ffffff;
}

.section-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0;
  color: rgba(15, 23, 42, 0.75);
  max-width: 70ch;
}

.section-dark .section-subtitle,
.section-ink .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

/* Layout helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.35rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Cards */
.card {
  border-radius: var(--radius);
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  animation: sectionIn 780ms ease both;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.card-accent {
  background: linear-gradient(135deg, #ffffff, #f0fbff);
  border: 1px solid rgba(143, 240, 255, 0.25);
}

.card::before {
  content: "";
  position: absolute;
  inset: -120px;
  background: radial-gradient(
    closest-side,
    rgba(143, 240, 255, 0.22),
    transparent 62%
  );
  transform: translate3d(-30px, -25px, 0);
  opacity: 0.9;
  pointer-events: none;
}

.section-dark .card,
.section-ink .card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.glass {
  backdrop-filter: blur(10px);
}

/* Callout */
.callout {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.9rem;
  align-items: start;
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(143, 240, 255, 0.12);
  border: 1px solid rgba(143, 240, 255, 0.22);
}

.callout-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
}

.callout p {
  margin: 0;
}

/* Symbols */
.symbol-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.symbol {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

/* Layers section */
.layers-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.6rem;
  align-items: center;
}

.layer-visual {
  position: relative;
  border-radius: var(--radius);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.layer-svg {
  width: 100%;
  height: auto;
  display: block;
  animation: float 5.5s ease-in-out infinite;
}

.badge {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(143, 240, 255, 0.18);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: sectionIn 820ms ease both;
}

.timeline-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.timeline-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.timeline-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.6rem;
}

.chip {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 0.95rem;
}

/* Mini cards */
.mini {
  border-radius: var(--radius);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  animation: sectionIn 780ms ease both;
}

.mini-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  margin-bottom: 0.9rem;
}

.mini h3 {
  margin: 0 0 0.6rem;
}

.mini p {
  margin: 0;
  color: rgba(15, 23, 42, 0.82);
}

/* Quotes */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.quote {
  margin: 0;
  border-radius: var(--radius);
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  animation: sectionIn 860ms ease both;
}

.quote::before {
  content: "“";
  position: absolute;
  left: 1rem;
  top: 0.2rem;
  font-size: 5rem;
  color: rgba(143, 240, 255, 0.2);
  line-height: 1;
}

blockquote {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

figcaption {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Closing */
.closing {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.closing-line {
  margin: 0;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
}

.closing-symbols {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  color: rgba(143, 240, 255, 0.9);
  font-size: 1.25rem;
}

/* Small text helper */
.small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

/* Animations */
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    letter-spacing: 0.55em;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0.22em;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spinSlow {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0);
  }
  to {
    transform: translate3d(2%, 1%, 0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 10px rgba(143, 240, 255, 0.14);
  }
  50% {
    transform: translateY(6px);
    box-shadow: 0 0 0 16px rgba(143, 240, 255, 0.08);
  }
}

/* Focus visibility (keyboard users) */
a:focus-visible {
  outline: 2px solid rgba(143, 240, 255, 0.95);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .layers-layout {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-title-top {
    letter-spacing: 0.16em;
  }

  .hero-nav a {
    width: 100%;
    text-align: center;
  }

  .meta-pill {
    width: 100%;
    justify-content: center;
  }
}