/* Helix Empire landing page: the dark space and the teal and amber of the game's own screens
   (apps/helix-client/design/styles.css). The page is dark only, like the game. */

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-ext-500-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-ext-700-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --void: #060d0d;
  --deep: #081312;
  --panel: #0e1c1a;
  --panel-2: #112420;
  --hairline: #1d3a35;
  --ink: #dcefe9;
  --ink-soft: #93aca6;
  --ink-faint: #61807a;
  --bio: #3fe0c0;
  --bio-deep: #1fa98f;
  --ink-on-bio: #04201a;
  --amber: #f5b133;
  --nebula: #2a1a5e;
  --violet: #8d7bff;
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 48px);
  --width: 1200px;
  --sans:
    'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Noto Sans',
    'Noto Sans Devanagari', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--bio);
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 {
  font-size: clamp(40px, 6.2vw, 78px);
  font-weight: 700;
}
h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
}
h3 {
  font-size: 20px;
  font-weight: 700;
}
p {
  margin: 0;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--bio);
  color: var(--ink-on-bio);
  border-radius: 10px;
}
.skip:focus {
  top: 16px;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bio);
  margin-bottom: 16px;
}
.lead {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 640px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--bio);
  color: var(--ink-on-bio);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(63, 224, 192, 0.4),
    0 10px 40px -8px rgba(63, 224, 192, 0.55);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(63, 224, 192, 0.6),
    0 16px 50px -8px rgba(63, 224, 192, 0.75);
}
.button svg {
  width: 20px;
  height: 20px;
}
.button svg path {
  fill: currentColor;
  stroke: none;
}
.button.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
  cursor: default;
}
.button.ghost:hover {
  transform: none;
}
.button.ghost svg rect,
.button.ghost svg path {
  fill: none;
  stroke: currentColor;
}
.button.small {
  padding: 9px 18px;
  font-size: 15px;
}
.button.large {
  padding: 19px 40px;
  font-size: 20px;
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: linear-gradient(to bottom, rgba(6, 13, 13, 0.85), rgba(6, 13, 13, 0.55));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(29, 58, 53, 0.6);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 14px;
}
.brand img {
  border-radius: 10px;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--ink-soft);
}
.lang svg {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.lang select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 14px 7px 32px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--gutter) 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nebula {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 90vw;
  height: 120vh;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 62% 45%, rgba(42, 26, 94, 0.95), transparent 70%),
    radial-gradient(closest-side at 80% 70%, rgba(63, 224, 192, 0.16), transparent 70%),
    radial-gradient(closest-side at 40% 20%, rgba(245, 177, 51, 0.08), transparent 70%);
  filter: blur(10px);
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  background: linear-gradient(100deg, #fff 10%, var(--bio) 55%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.note {
  margin-top: 18px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.hero-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 560px;
  justify-self: center;
  width: 100%;
}
.hero-icon {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  border-radius: 28%;
  box-shadow:
    0 0 0 1px rgba(141, 123, 255, 0.35),
    0 30px 120px -10px rgba(141, 123, 255, 0.55),
    0 0 160px rgba(63, 224, 192, 0.18);
  animation: bob 9s ease-in-out infinite;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(63, 224, 192, 0.25);
}
.orbit-a {
  inset: 2%;
  animation: spin 60s linear infinite;
}
.orbit-b {
  inset: -6%;
  border-color: rgba(245, 177, 51, 0.18);
  animation: spin 90s linear infinite reverse;
}
.float {
  position: absolute;
  width: 26%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
  animation: drift 7s ease-in-out infinite;
}
.f1 {
  left: -8%;
  top: 8%;
  animation-delay: -1s;
}
.f2 {
  right: -6%;
  top: -2%;
  width: 22%;
  animation-delay: -3s;
}
.f3 {
  right: -10%;
  bottom: 6%;
  width: 28%;
  animation-delay: -2s;
}
.f4 {
  left: -4%;
  bottom: -2%;
  width: 24%;
  animation-delay: -4.5s;
}

.stats {
  position: relative;
  list-style: none;
  margin: 56px auto 0;
  padding: 0;
  width: 100%;
  max-width: var(--width);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats li {
  background: rgba(8, 19, 18, 0.85);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stats b {
  font-size: clamp(26px, 3vw, 38px);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stats span {
  color: var(--ink-soft);
  font-size: 14px;
}

/* Codon tape */
.tape {
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  background: var(--deep);
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.12em;
}
.tape-track {
  display: flex;
  width: max-content;
  animation: tape 70s linear infinite;
}
.tape.reverse .tape-track {
  animation-direction: reverse;
}
.codon {
  padding: 0 14px;
  border-right: 1px solid var(--hairline);
}
.codon b {
  font-weight: 500;
}
.base-A {
  color: var(--bio);
}
.base-T {
  color: var(--amber);
}
.base-G {
  color: var(--violet);
}
.base-C {
  color: #ff7aa8;
}

/* Sections */
.section {
  max-width: var(--width);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--gutter);
}
.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

/* Loop */
.loop-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.loop {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}
.loop-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ring-base {
  stroke: var(--hairline);
  stroke-width: 1.5;
}
.ring-flow {
  stroke-width: 3;
  stroke-dasharray: 14 22;
  animation: flow 6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(63, 224, 192, 0.6));
}
.loop-core {
  position: absolute;
  left: 30%;
  top: 30%;
  width: 40%;
  height: 40%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
  animation: bob 8s ease-in-out infinite;
}
.loop-node {
  --angle: calc(var(--i) * 60deg - 90deg);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%)
    translate(calc(cos(var(--angle)) * 37.5cqw), calc(sin(var(--angle)) * 37.5cqw));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 30%;
  text-align: center;
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 16px);
}
.loop {
  container-type: inline-size;
}
.loop-node svg {
  width: 54px;
  height: 54px;
  padding: 13px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--hairline);
  color: var(--bio);
  box-shadow: 0 0 30px rgba(63, 224, 192, 0.15);
}
.loop-node:nth-of-type(even) svg {
  color: var(--amber);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature,
.tech-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), var(--panel) 60%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.feature:hover,
.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 224, 192, 0.45);
}
.feature h3,
.tech-card h3 {
  margin: 18px 0 10px;
}
.feature p,
.tech-card p {
  color: var(--ink-soft);
  font-size: 15.5px;
}
.feature .icon,
.tech-card .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(63, 224, 192, 0.1);
  color: var(--bio);
}
.feature-art {
  position: absolute;
  right: -14px;
  top: -10px;
  width: 120px;
  opacity: 0.9;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease;
}
.feature:hover .feature-art {
  transform: scale(1.08) rotate(-4deg);
}
.feature h3,
.feature p {
  position: relative;
  max-width: 88%;
}

/* Creatures */
.creatures-section {
  max-width: 1320px;
}
.gallery-title {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 10px 0 18px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}
.creature {
  margin: 0;
  border-radius: 18px;
  padding: 14px 12px 12px;
  background: radial-gradient(circle at 50% 40%, rgba(42, 26, 94, 0.55), rgba(14, 28, 26, 0.9) 72%);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.creature:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(63, 224, 192, 0.5);
}
.creature-art {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.creature img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.55));
  animation: drift 6s ease-in-out infinite;
  animation-delay: var(--delay);
}
.creature figcaption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}
.castes .creature {
  background: radial-gradient(
    circle at 50% 40%,
    rgba(63, 224, 192, 0.18),
    rgba(14, 28, 26, 0.9) 72%
  );
}

/* Showcase */
.window {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--panel);
  box-shadow:
    0 40px 120px -30px rgba(63, 224, 192, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--deep);
  border-bottom: 1px solid var(--hairline);
}
.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--hairline);
}
.window-bar i:first-child {
  background: #ff6b6b;
}
.window-bar i:nth-child(2) {
  background: var(--amber);
}
.window-bar i:nth-child(3) {
  background: var(--bio);
}
.window-bar span {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.window-frame {
  position: relative;
  aspect-ratio: 16 / 10;
}
.window-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.9s ease,
    transform 1.4s ease;
}
.window-frame img.on {
  opacity: 1;
  transform: none;
}
.showcase-caption {
  margin: 22px 0 18px;
  font-size: 20px;
  font-weight: 700;
  min-height: 1.6em;
}
.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.showcase-tabs button {
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.55;
  transition:
    opacity 0.25s ease,
    border-color 0.25s ease;
}
.showcase-tabs button[aria-pressed='true'],
.showcase-tabs button:hover {
  opacity: 1;
  border-color: var(--bio);
}
.showcase-tabs img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

/* Phones */
.mobile-section {
  max-width: 1320px;
}
.phones {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 30px;
  scroll-snap-type: x mandatory;
  justify-content: safe center;
}
.phone {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(180px, 19vw, 240px);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.phone:nth-child(even) {
  transform: translateY(36px);
}
.phone-frame {
  padding: 8px;
  border-radius: 38px;
  background: linear-gradient(160deg, #2a3b38, #0b1514);
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 60px rgba(63, 224, 192, 0.12);
}
.phone-frame img {
  border-radius: 30px;
}
.phone figcaption {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}

/* Tech */
.tech {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Call to action */
.cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: clamp(90px, 12vw, 160px) var(--gutter);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(42, 26, 94, 0.9), transparent 65%),
    radial-gradient(ellipse at 50% 120%, rgba(63, 224, 192, 0.25), transparent 60%);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta .lead {
  margin: 18px auto 36px;
}
.cta-parade {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 3vw, 40px);
  margin-bottom: 30px;
}
.cta-parade img {
  width: clamp(64px, 9vw, 120px);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55));
  animation: drift 6s ease-in-out infinite;
}
.cta-parade img:nth-child(2) {
  animation-delay: -1.2s;
}
.cta-parade img:nth-child(3) {
  animation-delay: -2.4s;
}
.cta-parade img:nth-child(4) {
  animation-delay: -3.6s;
}
.cta-parade img:nth-child(5) {
  animation-delay: -4.8s;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px var(--gutter);
  border-top: 1px solid var(--hairline);
  background: var(--deep);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  border-radius: 10px;
}
.footer-brand div {
  display: flex;
  flex-direction: column;
}
.footer-brand span,
.footer-rights {
  color: var(--ink-faint);
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--bio);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.shown {
  opacity: 1;
  transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}
@keyframes flow {
  to {
    stroke-dashoffset: -360;
  }
}
@keyframes tape {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .hero-inner,
  .loop-section {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 420px;
    order: -1;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .showcase-tabs {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .brand span {
    display: none;
  }
  .hero {
    padding-top: 96px;
  }
  .hero-art {
    max-width: 320px;
  }
  .features,
  .tech {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats li:last-child {
    grid-column: span 2;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .loop-node svg {
    width: 42px;
    height: 42px;
    padding: 10px;
  }
  .loop-node {
    font-size: 12px;
  }
  .phone:nth-child(even) {
    transform: none;
  }
  .button {
    padding: 13px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
