:root {
  --font-ui: "IBM Plex Sans", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --bg: #07111f;
  --bg-soft: rgba(12, 26, 44, 0.68);
  --surface: rgba(10, 22, 38, 0.74);
  --surface-strong: rgba(12, 27, 46, 0.92);
  --surface-muted: rgba(22, 37, 60, 0.5);
  --text: #eff6ff;
  --muted: #95a9c4;
  --accent: #7fd0ff;
  --accent-soft: rgba(127, 208, 255, 0.14);
  --warm: #8ad4ff;
  --line: rgba(157, 192, 232, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1180px;
}

body[data-theme="light"] {
  --bg: #f5eee4;
  --bg-soft: rgba(250, 246, 239, 0.84);
  --surface: rgba(255, 251, 245, 0.82);
  --surface-strong: rgba(255, 253, 248, 0.94);
  --surface-muted: rgba(236, 226, 212, 0.56);
  --text: #191611;
  --muted: #73685b;
  --accent: #657f97;
  --accent-soft: rgba(101, 127, 151, 0.12);
  --warm: #a27b4d;
  --line: rgba(62, 48, 34, 0.08);
  --shadow: 0 22px 60px rgba(104, 77, 48, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  transition: color 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-theme="light"] {
  background: var(--bg);
}

body.menu-open {
  overflow: hidden;
}

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

.site-shell {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-shell::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(64, 148, 255, 0.22), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(70, 228, 255, 0.18), transparent 20%),
    radial-gradient(circle at 50% 90%, rgba(57, 89, 160, 0.14), transparent 30%),
    linear-gradient(180deg, #06111e 0%, #081523 46%, #0b1728 100%);
  opacity: 1;
}

.site-shell::after {
  background:
    radial-gradient(circle at 16% 18%, rgba(198, 175, 144, 0.22), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(166, 184, 199, 0.18), transparent 20%),
    radial-gradient(circle at 50% 90%, rgba(196, 172, 143, 0.14), transparent 30%),
    linear-gradient(180deg, #f6f1e8 0%, #f0e8dc 46%, #ebe2d6 100%);
  opacity: 0;
}

body[data-theme="light"] .site-shell::before {
  opacity: 0;
}

body[data-theme="light"] .site-shell::after {
  opacity: 1;
}

body.theme-transitioning .site-shell::before,
body.theme-transitioning .site-shell::after {
  transition-duration: 720ms;
}

body.theme-transitioning .site-shell::before {
  transition-delay: 0ms;
}

body.theme-transitioning .site-shell::after {
  transition-delay: 60ms;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 10px 20px 0;
  transition: padding 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar.is-compact {
  padding-top: 10px;
}

.nav {
  width: min(calc(100% - 8px), 100%);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  border: 1px solid transparent;
  transition:
    width 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 320ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar.is-compact .nav {
  width: min(720px, calc(100% - 120px));
  border-color: var(--line);
  border-radius: 999px;
  background: rgba(7, 18, 31, 0.72);
  backdrop-filter: blur(14px) saturate(135%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  padding: 10px 18px;
  transform: translateY(0);
}

body[data-theme="light"] .topbar.is-compact .nav {
  background: rgba(248, 242, 233, 0.84);
  box-shadow:
    0 12px 34px rgba(93, 63, 31, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 1.26rem;
}

.nav-start {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 21, 28, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 22px rgba(0, 0, 0, 0.2);
  transition:
    background-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-mode {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition:
    background-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-mode::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 52%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: scale(0.78);
  transition:
    opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.theme-mode[aria-pressed="true"] {
  color: var(--text);
  transform: translateY(-0.5px);
}

.theme-mode[aria-pressed="true"]::before {
  opacity: 1;
  transform: scale(1);
}

.theme-mode:hover {
  color: var(--text);
}

.theme-toggle-icon {
  position: relative;
  width: 14px;
  height: 14px;
  opacity: 0.72;
  transition: opacity 220ms ease, transform 220ms ease;
}

.theme-toggle-icon.sun::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}

.theme-toggle-icon.sun::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  opacity: 0.55;
}

.theme-toggle-icon.moon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: -2px 0 0 0 currentColor;
}

.theme-toggle-icon.auto::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
}

body[data-theme="light"] .theme-toggle {
  background: rgba(247, 241, 232, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 22px rgba(104, 77, 48, 0.08);
}

body[data-theme="light"] .theme-mode::before {
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.26) 54%, rgba(232, 220, 205, 0.22) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 6px 16px rgba(104, 77, 48, 0.1);
}

.theme-mode[aria-pressed="true"] .theme-toggle-icon,
body[data-theme="dark"] .theme-mode[data-theme-value="dark"] .theme-toggle-icon,
body[data-theme="light"] .theme-mode[data-theme-value="light"] .theme-toggle-icon,
body[data-theme-mode="auto"] .theme-mode[data-theme-value="auto"] .theme-toggle-icon {
  opacity: 0.95;
  transform: scale(1.05);
}

body[data-theme="light"] .theme-toggle-icon.sun::after {
  border-color: rgba(82, 70, 59, 0.22);
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-family: var(--font-ui);
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 999px;
  font-weight: 500;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    padding 260ms cubic-bezier(0.22, 1, 0.36, 1),
    font-size 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar.is-compact .nav-links a {
  padding: 7px 12px;
  font-size: 0.95rem;
}

.nav-links a:hover {
  background: rgba(127, 208, 255, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

body[data-theme="light"] .nav-links a:hover {
  background: rgba(98, 125, 152, 0.08);
}

.locale-switch {
  border: 1px solid var(--line);
  color: var(--text) !important;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero,
.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  padding: 122px 0 72px;
  position: relative;
  --hero-progress: 0;
  --hero-progress-mid: 0;
  --hero-progress-slow: 0;
  isolation: isolate;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 182px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 380px);
  gap: 64px;
  align-items: start;
  width: min(1120px, calc(100% - 160px));
  margin: 0 auto;
  padding: 96px 56px 82px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(12px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    background 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero::before {
  width: 420px;
  height: 420px;
  top: 8%;
  left: -4%;
  background: radial-gradient(circle, rgba(91, 182, 255, 0.28) 0%, rgba(91, 182, 255, 0) 70%);
  transform:
    translate3d(calc(var(--hero-progress-slow) * 26px), calc(var(--hero-progress-slow) * 44px), 0)
    scale(calc(1 - var(--hero-progress-slow) * 0.08));
  opacity: calc(0.9 - var(--hero-progress-slow) * 0.42);
  will-change: transform, opacity;
}

body.theme-transitioning .hero::before {
  transition-delay: 80ms;
}

.hero::after {
  width: 360px;
  height: 360px;
  right: 2%;
  top: 18%;
  background: radial-gradient(circle, rgba(72, 246, 255, 0.18) 0%, rgba(72, 246, 255, 0) 72%);
  transform:
    translate3d(calc(var(--hero-progress-mid) * -20px), calc(var(--hero-progress-mid) * 36px), 0)
    scale(calc(1 - var(--hero-progress-mid) * 0.1));
  opacity: calc(0.72 - var(--hero-progress-mid) * 0.4);
  will-change: transform, opacity;
}

body.theme-transitioning .hero::after {
  transition-delay: 140ms;
}

.hero-noise {
  position: absolute;
  inset: 84px 0 24px;
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(13, 29, 48, 0.92), rgba(8, 20, 34, 0.62)),
    repeating-linear-gradient(
      90deg,
      rgba(127, 208, 255, 0.035) 0,
      rgba(127, 208, 255, 0.035) 1px,
      transparent 1px,
      transparent 18px
    );
  border: 1px solid rgba(157, 192, 232, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 50px 120px rgba(0, 0, 0, 0.34);
  transform:
    translate3d(0, calc(var(--hero-progress-mid) * 30px), 0)
    scale(calc(1 - var(--hero-progress-mid) * 0.04));
  opacity: calc(1 - var(--hero-progress-mid) * 0.24);
  overflow: hidden;
  will-change: transform, opacity;
  transition:
    background 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.theme-transitioning .hero-noise {
  transition-delay: 100ms;
}

body[data-theme="light"] .hero-noise {
  background:
    linear-gradient(135deg, rgba(248, 242, 233, 0.96), rgba(241, 232, 221, 0.82)),
    repeating-linear-gradient(
      90deg,
      rgba(98, 125, 152, 0.035) 0,
      rgba(98, 125, 152, 0.035) 1px,
      transparent 1px,
      transparent 18px
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(181, 163, 141, 0.14),
    0 40px 100px rgba(93, 63, 31, 0.08);
  border-color: rgba(122, 103, 81, 0.08);
}

.hero-noise::before,
.hero-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-noise::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    radial-gradient(circle at 18% 24%, rgba(113, 194, 255, 0.11), transparent 28%);
  opacity: calc(0.85 - var(--hero-progress-slow) * 0.35);
}

.hero-noise::after {
  inset: 10% 8%;
  border-radius: 32px;
  border: 1px solid rgba(157, 192, 232, 0.08);
  opacity: calc(0.78 - var(--hero-progress) * 0.5);
  transform:
    translate3d(0, calc(var(--hero-progress) * 18px), 0)
    scale(calc(1 - var(--hero-progress) * 0.03));
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 0;
  max-width: 720px;
  transform:
    translate3d(0, calc(var(--hero-progress) * 48px), 0)
    scale(calc(1 - var(--hero-progress) * 0.045));
  opacity: calc(1 - var(--hero-progress) * 0.16);
  transform-origin: left top;
  will-change: transform, opacity;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero h1 span {
  display: block;
  margin-top: 18px;
  font-family: var(--font-ui);
  font-size: clamp(1.02rem, 1.9vw, 1.42rem);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #8fcfff;
}

body[data-theme="light"] .hero h1 span {
  color: #6886a3;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 0.98rem;
  line-height: 1.82;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(12, 27, 46, 0.66);
  border: 1px solid rgba(157, 192, 232, 0.12);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-ui);
  font-weight: 600;
  transition:
    transform 200ms ease,
    background-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(180deg, #f4fbff 0%, #d7f1ff 100%);
  color: #07111f;
  border-color: rgba(255, 255, 255, 0.55);
}

.button.secondary {
  background: rgba(12, 27, 46, 0.58);
}

body[data-theme="light"] .button.primary {
  background: linear-gradient(180deg, #181512 0%, #2b241d 100%);
  color: #faf6ef;
  border-color: rgba(24, 21, 18, 0.24);
}

body[data-theme="light"] .button.secondary {
  background: rgba(255, 251, 245, 0.76);
}

.hero-card {
  width: min(100%, 380px);
  justify-self: start;
  align-self: start;
  margin-top: 214px;
  padding: 28px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid rgba(157, 192, 232, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transform:
    translate3d(calc(var(--hero-progress-mid) * -18px), calc(var(--hero-progress-mid) * 34px), 0)
    scale(calc(1 - var(--hero-progress-mid) * 0.06));
  opacity: calc(1 - var(--hero-progress-mid) * 0.3);
  transform-origin: right top;
  will-change: transform, opacity;
  transition:
    background 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.theme-transitioning .hero-card {
  transition-delay: 180ms;
}

.hero-card-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 14px;
  line-height: 1.7;
  color: var(--text);
}

.hero-card-foot {
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  border-top: 1px solid rgba(23, 20, 17, 0.08);
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform:
    translate3d(0, calc(var(--hero-progress-slow) * 42px), 0)
    scale(calc(1 - var(--hero-progress-slow) * 0.1));
  opacity: calc(1 - var(--hero-progress-slow) * 0.48);
  will-change: transform, opacity;
}

.shape {
  position: absolute;
  opacity: 0.3;
  animation: float 10s ease-in-out infinite;
  will-change: transform, opacity;
}

.shape.triangle {
  width: 56px;
  height: 56px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(127, 208, 255, 0.72);
}

body[data-theme="light"] .shape.triangle {
  background: rgba(135, 157, 180, 0.48);
}

.shape.square {
  width: 28px;
  height: 28px;
  background: rgba(72, 127, 255, 0.68);
  border-radius: 4px;
}

body[data-theme="light"] .shape.square {
  background: rgba(182, 154, 117, 0.38);
}

.shape.ring {
  width: 92px;
  height: 92px;
  border: 10px solid rgba(127, 208, 255, 0.24);
  border-radius: 50%;
}

body[data-theme="light"] .shape.ring {
  border-color: rgba(135, 157, 180, 0.18);
}

.shape.dot {
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 50%;
}

body[data-theme="light"] .shape.dot {
  background: rgba(49, 38, 25, 0.24);
}

.shape:nth-child(1) {
  top: 16%;
  left: 7%;
}

.shape:nth-child(2) {
  top: 14%;
  right: 12%;
  animation-delay: 1s;
  animation-duration: 12s;
}

.shape:nth-child(3) {
  right: 7%;
  bottom: 22%;
  animation-delay: 1.8s;
  animation-duration: 9.5s;
}

.shape:nth-child(4) {
  left: 16%;
  bottom: 18%;
  animation-delay: 2.4s;
  animation-duration: 11s;
}

.shape:nth-child(5) {
  left: 47%;
  top: 10%;
  animation-delay: 0.7s;
  animation-duration: 8.5s;
}

.shape:nth-child(6) {
  left: 56%;
  bottom: 12%;
  animation-delay: 1.3s;
  animation-duration: 13s;
}

.section {
  padding: 52px 0;
}

.section-muted {
  position: relative;
}

.section-muted::before {
  content: "";
  position: absolute;
  inset: 38px -18px;
  background: linear-gradient(180deg, rgba(15, 30, 51, 0.56), rgba(10, 22, 38, 0.38));
  border-radius: 38px;
  z-index: -1;
  transition: background 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-theme="light"] .section-muted::before {
  background: linear-gradient(180deg, rgba(238, 230, 218, 0.84), rgba(246, 240, 232, 0.58));
}

.section-head {
  max-width: 720px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  letter-spacing: -0.05em;
}

.section-head p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.section-head.narrow {
  max-width: 760px;
}

.compact-head {
  margin-bottom: 14px;
}

.cards {
  display: grid;
  gap: 18px;
}

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

.card,
.feature-card,
.contact-panel {
  border-radius: var(--radius);
  border: 1px solid rgba(157, 192, 232, 0.12);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition:
    background 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.theme-transitioning .card,
body.theme-transitioning .feature-card,
body.theme-transitioning .contact-panel {
  transition-delay: 220ms;
}

.card,
.feature-card {
  padding: 26px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card-link {
  display: block;
  color: inherit;
}

.card:hover,
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.42);
}

.card h3,
.feature-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.04em;
}

.card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 28, 46, 0.85);
  border: 1px solid rgba(157, 192, 232, 0.12);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  transition:
    background 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    color 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.theme-transitioning .tags span {
  transition-delay: 260ms;
}

.card-cta {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-link:hover .card-cta {
  color: var(--warm);
}

body[data-theme="light"] .card:hover,
body[data-theme="light"] .feature-card:hover {
  box-shadow: 0 24px 60px rgba(104, 77, 48, 0.12);
}

body[data-theme="light"] .card,
body[data-theme="light"] .feature-card,
body[data-theme="light"] .contact-panel {
  border-color: rgba(62, 48, 34, 0.07);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(251, 246, 239, 0.88));
  box-shadow:
    0 18px 44px rgba(104, 77, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

body[data-theme="light"] .tags span {
  background: rgba(251, 246, 239, 0.92);
  border-color: rgba(62, 48, 34, 0.08);
}

body[data-theme="light"] .hero-card-foot {
  border-top-color: rgba(62, 48, 34, 0.08);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 32px;
}

.contact-links {
  display: grid;
  align-content: start;
  gap: 12px;
}

.contact-links a {
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  font-weight: 500;
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.contact-links a:hover {
  color: var(--text);
  transform: translateX(4px);
  border-color: rgba(157, 192, 232, 0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-step {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 860ms ease,
    transform 860ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, opacity;
}

.reveal-step.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .shape,
  .hero::before,
  .hero::after,
  .hero-noise,
  .hero-copy,
  .hero-card,
  .hero-shapes,
  .reveal,
  .reveal-step,
  .button,
  .card,
  .feature-card,
  .nav,
  .nav-links a,
  .topbar {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }

  .reveal,
  .reveal-step {
    opacity: 1 !important;
  }
}

.reveal.delay-1 {
  transition-delay: 120ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(4deg);
  }
}

@media (max-width: 920px) {
  .hero {
    padding: 112px 0 64px;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    width: min(100%, calc(100% - 24px));
    gap: 28px;
    padding: 72px 24px 52px;
  }

  .three-up,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-card {
    width: 100%;
    justify-self: stretch;
    align-self: start;
    margin-top: 0;
    transform:
      translate3d(0, calc(var(--hero-progress-mid) * 22px), 0)
      scale(calc(1 - var(--hero-progress-mid) * 0.04));
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 6px;
    padding: 16px;
    background: rgba(8, 18, 31, 0.94);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body[data-theme="light"] .nav-links {
    background: rgba(248, 242, 233, 0.96);
  }

  .nav-links a {
    padding: 14px 16px;
  }

  .topbar.is-compact .nav {
    width: min(calc(100% - 24px), 100%);
  }

  .hero,
  .section {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero-noise {
    inset: 90px 0 12px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 17vw, 4.8rem);
  }

  .hero-card-foot,
  .hero-meta {
    gap: 10px;
  }
}
