:root {
  color-scheme: dark;
  --bg: #050814;
  --bg-elevated: rgba(255, 255, 255, 0.06);
  --bg-elevated-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: rgba(246, 248, 255, 0.98);
  --muted: rgba(211, 218, 241, 0.72);
  --muted-strong: rgba(223, 229, 249, 0.84);
  --accent: #87a6ff;
  --accent-strong: #c4d1ff;
  --accent-cyan: #7fe4ff;
  --support: #ffd766;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --section-gap: clamp(52px, 7vw, 92px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(90, 111, 255, 0.24), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(127, 228, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #0a0d1b 0%, #060916 38%, #050814 100%);
  color: var(--text);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

.global-shimmer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.global-shimmer::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -36vw;
  width: 36vw;
  height: 140%;
  background:
    linear-gradient(
      104deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(188, 222, 255, 0.03) 26%,
      rgba(164, 216, 255, 0.12) 48%,
      rgba(188, 222, 255, 0.03) 72%,
      rgba(255, 255, 255, 0) 100%
    );
  filter: blur(14px);
  transform: translate3d(-160vw, 0, 0) rotate(1.2deg);
  animation: globalSweep 36s linear infinite;
}

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

p {
  margin: 0;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 72px;
}

main {
  display: grid;
  gap: var(--section-gap);
}

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(92px);
  pointer-events: none;
  opacity: 0.55;
  animation: floatGlow 18s var(--ease) infinite alternate;
}

.ambient-one {
  width: 360px;
  height: 360px;
  top: 5%;
  left: -110px;
  background: rgba(108, 123, 255, 0.24);
}

.ambient-two {
  width: 300px;
  height: 300px;
  right: -70px;
  top: 38%;
  background: rgba(85, 198, 255, 0.14);
  animation-duration: 22s;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 6px 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.topbar-links {
  display: inline-flex;
  gap: 18px;
  color: var(--muted);
}

.topbar-links a {
  position: relative;
  transition: color 220ms var(--ease), transform 220ms var(--ease);
}

.topbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  transform: scaleX(0.2);
  transform-origin: left center;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(196, 209, 255, 0.88), rgba(255, 255, 255, 0));
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.topbar-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.topbar-links a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 34px;
  align-items: center;
  min-height: clamp(640px, 82vh, 900px);
  padding-top: 18px;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.eyebrow,
#release-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.9rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero-text {
  max-width: 680px;
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions,
.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition:
    transform 320ms var(--ease),
    box-shadow 320ms var(--ease),
    background-color 320ms var(--ease),
    border-color 320ms var(--ease),
    opacity 320ms var(--ease);
  will-change: transform;
  z-index: 0;
}

.button:hover {
  transform: translateY(-3px);
  z-index: 1;
}

.button-primary {
  background: linear-gradient(180deg, rgba(149, 171, 255, 0.98), rgba(104, 130, 255, 0.95));
  color: #081021;
  box-shadow: 0 20px 44px rgba(87, 118, 255, 0.32);
}

.button-primary:hover {
  box-shadow:
    0 24px 46px rgba(87, 118, 255, 0.38),
    0 0 0 1px rgba(170, 191, 255, 0.5),
    0 0 24px rgba(118, 147, 255, 0.42);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(171, 189, 255, 0.32),
    0 0 22px rgba(114, 138, 255, 0.22);
}

.button-support {
  background: rgba(255, 215, 102, 0.12);
  border-color: rgba(255, 215, 102, 0.36);
  color: rgba(255, 239, 194, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 246, 214, 0.2);
}

.button-support:hover {
  background: rgba(255, 215, 102, 0.2);
  border-color: rgba(255, 215, 102, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 214, 0.24),
    0 0 0 1px rgba(255, 226, 145, 0.45),
    0 0 20px rgba(255, 214, 106, 0.28);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-meta a {
  color: var(--muted-strong);
}

.hero-meta a:hover {
  color: var(--text);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.glass-card,
.glass-subpanel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.glass-subpanel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.08);
}

.visual-card {
  position: relative;
  width: min(100%, 520px);
  min-height: 490px;
  padding: 22px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(196, 209, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(127, 228, 255, 0.12), transparent 26%);
  pointer-events: none;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(141, 170, 255, 0.3), transparent 68%);
  filter: blur(20px);
}

.visual-card-head {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 1;
}

.visual-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.visual-pill-accent {
  color: var(--accent-strong);
  border-color: rgba(133, 168, 255, 0.22);
}

.signal-stage {
  position: relative;
  height: 366px;
  margin-top: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(9, 13, 28, 0.84), rgba(7, 10, 21, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.signal-grid {
  position: absolute;
  inset: 0;
  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: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

.signal-line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(155, 183, 255, 0.96), rgba(126, 230, 255, 0.84), transparent);
  box-shadow: 0 0 30px rgba(129, 173, 255, 0.4);
  transform-origin: left center;
  animation: pulseLine 7s var(--ease) infinite;
}

.signal-line-one {
  --rotation: -14deg;
  width: 68%;
  top: 24%;
  left: 7%;
  transform: rotate(var(--rotation));
  animation-duration: 4.8s;
  animation-delay: -1.1s;
}

.signal-line-two {
  --rotation: 8deg;
  width: 82%;
  top: 50%;
  left: 10%;
  transform: rotate(var(--rotation));
  animation-duration: 12.6s;
  animation-delay: -3.2s;
}

.signal-line-three {
  --rotation: -22deg;
  width: 64%;
  top: 72%;
  left: 20%;
  transform: rotate(var(--rotation));
  animation-duration: 8.1s;
  animation-delay: -2s;
}

.signal-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(146, 170, 255, 0.96));
  box-shadow: 0 0 28px rgba(146, 170, 255, 0.64);
  animation: nodeDrift 5.6s var(--ease) infinite alternate;
}

.signal-node-one {
  top: 22%;
  left: 18%;
  animation-duration: 4.2s;
  animation-delay: -0.9s;
}

.signal-node-two {
  top: 52%;
  left: 64%;
  animation-duration: 9.8s;
  animation-delay: -2.6s;
}

.signal-node-three {
  top: 68%;
  left: 38%;
  animation-duration: 6.7s;
  animation-delay: -1.7s;
}

.terminal-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(280px, calc(100% - 36px));
  padding: 16px;
  border-radius: 22px;
}

.terminal-topbar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.terminal-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.terminal-lines {
  display: grid;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 500;
}

.terminal-lines span {
  position: relative;
  padding-left: 18px;
}

.terminal-lines span::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.section-kicker,
.feature-kicker,
.release-label {
  display: inline-block;
  color: var(--accent-strong);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  display: grid;
  gap: 10px;
}

.section-heading h2,
.release-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.section-heading p,
.release-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-height: 250px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), background-color 320ms var(--ease);
}

.feature-card:hover,
.release-panel:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.feature-card h3 {
  margin: 12px 0 14px;
  font-size: 1.38rem;
  line-height: 1.24;
  letter-spacing: -0.04em;
}

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

.release-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-xl);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease);
}

.release-copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

.release-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
}

.release-row {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.release-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.release-row strong {
  font-size: 1.04rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.glass-chip {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 760ms var(--ease),
    transform 760ms var(--ease),
    filter 760ms var(--ease);
}

.reveal[data-delay="1"].is-visible {
  transition-delay: 80ms;
}

.reveal[data-delay="2"].is-visible {
  transition-delay: 160ms;
}

.reveal[data-delay="3"].is-visible {
  transition-delay: 240ms;
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(30px, -20px, 0) scale(1.08);
  }
}

@keyframes pulseLine {
  0% {
    opacity: 0.35;
    transform: translateX(-10px) scaleX(0.94) rotate(var(--rotation, 0deg));
  }

  50% {
    opacity: 0.95;
  }

  100% {
    opacity: 0.45;
    transform: translateX(14px) scaleX(1.02) rotate(var(--rotation, 0deg));
  }
}

@keyframes nodeDrift {
  from {
    transform: translate3d(0, 0, 0) scale(0.94);
    opacity: 0.78;
  }

  to {
    transform: translate3d(10px, -6px, 0) scale(1.06);
    opacity: 1;
  }
}

@keyframes globalSweep {
  from {
    transform: translate3d(-160vw, 0, 0) rotate(1.2deg);
  }

  to {
    transform: translate3d(160vw, 0, 0) rotate(1.2deg);
  }
}

@media (max-width: 1080px) {
  .hero,
  .release-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 24px, 1200px);
    padding-bottom: 56px;
  }

  .topbar {
    padding-bottom: 24px;
  }

  .topbar-links {
    display: none;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-actions,
  .release-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .visual-card {
    min-height: 440px;
  }

  .terminal-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin: 154px 18px 18px;
  }
}

/* Flow lines background */
.flow-lines {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40vh;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.flow-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(100, 150, 255, 0.1) 10%,
    rgba(135, 166, 255, 0.4) 30%,
    rgba(127, 228, 255, 0.6) 50%,
    rgba(135, 166, 255, 0.4) 70%,
    rgba(100, 150, 255, 0.1) 90%,
    transparent 100%
  );
  box-shadow:
    0 0 20px rgba(127, 200, 255, 0.3),
    0 0 40px rgba(127, 200, 255, 0.15);
  border-radius: 999px;
  opacity: 0;
  animation: flowDrift var(--duration, 12s) var(--ease) infinite;
  animation-delay: var(--delay, 0s);
}

.flow-line-1 {
  width: 60%;
  left: -10%;
  bottom: 8%;
  --rotation: -3deg;
  --duration: 14s;
  --delay: 0s;
}

.flow-line-2 {
  width: 75%;
  left: 15%;
  bottom: 15%;
  --rotation: 5deg;
  --duration: 18s;
  --delay: -4s;
}

.flow-line-3 {
  width: 50%;
  left: 40%;
  bottom: 5%;
  --rotation: -2deg;
  --duration: 11s;
  --delay: -2s;
}

.flow-line-4 {
  width: 85%;
  left: -5%;
  bottom: 22%;
  --rotation: 4deg;
  --duration: 22s;
  --delay: -7s;
}

.flow-line-5 {
  width: 45%;
  left: 50%;
  bottom: 12%;
  --rotation: -6deg;
  --duration: 16s;
  --delay: -3s;
}

.flow-line-6 {
  width: 70%;
  left: 20%;
  bottom: 28%;
  --rotation: 2deg;
  --duration: 19s;
  --delay: -9s;
}

.flow-line-7 {
  width: 55%;
  left: -8%;
  bottom: 18%;
  --rotation: -4deg;
  --duration: 13s;
  --delay: -5s;
}

.flow-line-8 {
  width: 65%;
  left: 30%;
  bottom: 3%;
  --rotation: 3deg;
  --duration: 17s;
  --delay: -1s;
}

@keyframes flowDrift {
  0% {
    opacity: 0;
    transform: translateX(-100px) rotate(var(--rotation, 0deg)) scaleX(0.8);
  }
  15% {
    opacity: 0.7;
  }
  35% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.6;
    transform: translateX(50px) rotate(var(--rotation, 0deg)) scaleX(1.05);
  }
  70% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateX(200px) rotate(var(--rotation, 0deg)) scaleX(0.9);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .flow-lines {
    display: none;
  }
}
