:root {
  color-scheme: dark;

  --bg: #070a14;
  --bg2: #0a1026;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --subtle: rgba(255, 255, 255, 0.58);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.6);

  --accent: #71e0ff;
  --accent2: #a78bfa;
  --good: #5cffb1;
  --warn: #ffd166;
  --bad: #ff5c7c;

  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.badge-beta {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 165, 0, 0.15);
  color: #ffa500;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 165, 0, 0.3);
  margin-left: 12px;
  vertical-align: middle;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  position: relative;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Viewport-fixed background to avoid “divider bands” drifting when zoom changes document height. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
      1200px 700px at 20% 0%,
      rgba(113, 224, 255, 0.16),
      transparent 55%
    ),
    radial-gradient(
      1000px 700px at 85% 15%,
      rgba(167, 139, 250, 0.16),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 50% 115%,
      rgba(0, 0, 0, 0.55),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, var(--bg) 100%);
  transform: translateZ(0);
}

:where(section[id]) {
  scroll-margin-top: 96px;
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--mono);
}

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

.section,
.section-alt,
.footer {
  position: relative;
}

.section > .container,
.footer > .container {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border);
  z-index: 10;
}
.skip-link:focus {
  left: 14px;
  top: 14px;
  outline: 2px solid rgba(113, 224, 255, 0.6);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(7, 10, 20, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  filter: drop-shadow(0 12px 24px rgba(113, 224, 255, 0.18));
}

.brand-name {
  font-weight: 720;
  letter-spacing: 0.2px;
}

.nav {
  display: none;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.nav-link {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-link[aria-current="true"] {
  color: var(--text);
  background: rgba(113, 224, 255, 0.12);
  border-color: rgba(113, 224, 255, 0.22);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.1px;
  transition: transform 120ms ease, background 180ms ease,
    border-color 180ms ease;
  will-change: transform;
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.button:active {
  transform: translateY(0px);
}

.button-primary {
  border-color: rgba(113, 224, 255, 0.28);
  background: linear-gradient(
    90deg,
    rgba(113, 224, 255, 0.18),
    rgba(167, 139, 250, 0.16)
  );
}

.button-primary:hover {
  border-color: rgba(113, 224, 255, 0.4);
  background: linear-gradient(
    90deg,
    rgba(113, 224, 255, 0.22),
    rgba(167, 139, 250, 0.2)
  );
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
}

.button-large {
  padding: 12px 16px;
}

.hero {
  padding: 56px 0 26px;
  position: relative;
  overflow: clip;
  /* Keep hero content above the "Why" background cat even when the cat bleeds upward. */
  z-index: 3;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* (Cat moved to the Why section) Keep hero background clean. */
  background: none;
}

/* Hero divider removed: the AI section provides the key divider now. */

.hero-grid {
  position: relative;
  z-index: 1;
}

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

.hero-constellation {
  position: absolute;
  inset: -70px -40px -50px -30px;
  width: calc(100% + 70px);
  height: calc(100% + 120px);
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: screen;
  filter: blur(0.25px) saturate(120%) contrast(108%);
}

#why {
  /* Allow the background cat pseudo-element to overflow into the hero above. */
  overflow: visible;
  /* Keep the cat above the AI section divider line (which lives in the next section). */
  z-index: 2;
}

#why::before {
  content: "";
  position: absolute;
  /* Extend upward so the logo/cat can bleed into the hero without being clipped. */
  inset: -140px 0 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("./assets/kubecat-logo.png");
  background-repeat: no-repeat;
  background-position: calc(100% - 20px) 100%;
  /* Smaller so the cat head doesn't get clipped by the top of the section. */
  background-size: min(420px, 44vw);
  opacity: 0.05;
  filter: blur(1px) saturate(108%) contrast(108%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: 0.2px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.8px;
}

.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(
      260px 120px at 20% 0%,
      rgba(113, 224, 255, 0.14),
      transparent 60%
    ),
    radial-gradient(
      260px 120px at 90% 80%,
      rgba(167, 139, 250, 0.12),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.fineprint {
  margin: 14px 0 0;
  color: var(--subtle);
  font-size: 0.92rem;
}

.hero-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -40px -20px -30px -20px;
  background: radial-gradient(
      400px 260px at 30% 20%,
      rgba(113, 224, 255, 0.22),
      transparent 60%
    ),
    radial-gradient(
      360px 260px at 80% 55%,
      rgba(167, 139, 250, 0.22),
      transparent 60%
    );
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.glass {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glass-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.2);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.9;
}
.dot-red {
  background: #ff5c7c;
}
.dot-yellow {
  background: #ffd166;
}
.dot-green {
  background: #5cffb1;
}

.glass-title {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.92rem;
}

.glass-body {
  padding: 16px 14px 18px;
}

.glass-body-media {
  padding: 10px;
}

.app-shot {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.app-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      800px 320px at 18% 0%,
      rgba(255, 255, 255, 0.1),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.8;
}

.app-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-shot-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.98;
  filter: saturate(105%) contrast(102%);
}

.section {
  padding: 66px 0 94px;
}

.section-alt {
  background: none;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
      900px 520px at 22% 0%,
      rgba(113, 224, 255, 0.08),
      transparent 65%
    ),
    radial-gradient(
      900px 520px at 88% 10%,
      rgba(167, 139, 250, 0.08),
      transparent 65%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  background-repeat: no-repeat;
  background-position: 22% 0%, 88% 10%, 0 0;
  /* Important: use a fixed-height vignette so zoom/responsive reflow doesn't move a mid-section “band”. */
  background-size: auto, auto, 100% 240px;
}

#features {
  overflow: clip;
}

.features-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: screen;
  filter: saturate(125%) contrast(110%) blur(0.25px);
}

.section-ai {
  position: relative;
  overflow: clip;
  /* Visual divider: the "line" that the cat in #why should sit on. */
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  /* Sit below the #why section so the cat can overlap the divider without being cut. */
  z-index: 1;
  background: radial-gradient(
      900px 520px at 18% 10%,
      rgba(113, 224, 255, 0.1),
      transparent 64%
    ),
    radial-gradient(
      900px 520px at 88% 22%,
      rgba(167, 139, 250, 0.1),
      transparent 64%
    ),
    radial-gradient(
      900px 700px at 50% 120%,
      rgba(0, 0, 0, 0.55),
      transparent 60%
    );
}

.section-ai::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0)
    ),
    radial-gradient(
      900px 260px at 50% 0%,
      rgba(255, 255, 255, 0.06),
      transparent 60%
    );
  mix-blend-mode: screen;
  opacity: 0.55;
}

.section-ai > .container {
  position: relative;
  z-index: 1;
}

.ai-logs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
  mix-blend-mode: screen;
  filter: saturate(132%) contrast(116%);
}

.how-sierpinski-wrap {
  overflow: clip;
}

.how-sierpinski {
  position: absolute;
  inset: -40px 0 -40px 0;
  width: 100%;
  height: calc(100% + 80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: screen;
  filter: saturate(120%) contrast(108%) blur(0.2px);
}

.ai-simple {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.ai-bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.ai-bullets li {
  margin: 0 0 10px;
}

.ai-bullets strong {
  color: var(--text);
}

.ai-footnote {
  margin: 10px 0 0;
  color: var(--subtle);
  font-size: 0.95rem;
}

.ai-query-card {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(
      900px 460px at 20% 10%,
      rgba(113, 224, 255, 0.12),
      transparent 62%
    ),
    radial-gradient(
      900px 520px at 85% 80%,
      rgba(167, 139, 250, 0.1),
      transparent 62%
    ),
    rgba(0, 0, 0, 0.18);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.ai-query-card-head {
  padding: 16px 16px 10px;
  display: grid;
  gap: 10px;
}

.ai-query-card h3 {
  margin: 0;
  letter-spacing: -0.25px;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.76);
  font-weight: 650;
  font-size: 0.86rem;
}

.ai-snippet {
  margin: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.ai-snippet code {
  display: block;
  white-space: pre;
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.88);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.3px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(
      520px 240px at 18% 0%,
      var(--card-accent, rgba(113, 224, 255, 0.12)),
      transparent 62%
    ),
    rgba(255, 255, 255, 0.05);
  padding: 18px 16px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.cards .card:nth-child(1) {
  --card-accent: rgba(113, 224, 255, 0.14);
}
.cards .card:nth-child(2) {
  --card-accent: rgba(167, 139, 250, 0.13);
}
.cards .card:nth-child(3) {
  --card-accent: rgba(92, 255, 177, 0.12);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(
      520px 240px at 18% 0%,
      var(--feature-accent, rgba(113, 224, 255, 0.1)),
      transparent 62%
    ),
    rgba(255, 255, 255, 0.05);
  padding: 18px 16px;
}

.feature-grid .feature:nth-child(1) {
  --feature-accent: rgba(113, 224, 255, 0.14);
}
.feature-grid .feature:nth-child(2) {
  --feature-accent: rgba(167, 139, 250, 0.13);
}
.feature-grid .feature:nth-child(3) {
  --feature-accent: rgba(255, 209, 102, 0.12);
}
.feature-grid .feature:nth-child(4) {
  --feature-accent: rgba(92, 255, 177, 0.12);
}
.feature-grid .feature:nth-child(5) {
  --feature-accent: rgba(113, 224, 255, 0.12);
}
.feature-grid .feature:nth-child(6) {
  --feature-accent: rgba(167, 139, 250, 0.12);
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(
      40px 40px at 30% 30%,
      rgba(113, 224, 255, 0.2),
      transparent 62%
    ),
    radial-gradient(
      40px 40px at 80% 90%,
      rgba(167, 139, 250, 0.16),
      transparent 62%
    ),
    rgba(0, 0, 0, 0.22);
  margin-bottom: 10px;
}

.feature h3 {
  margin: 0 0 6px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.step {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 18px 16px;
}

.step h3 {
  margin: 0 0 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  background: rgba(0, 0, 0, 0.28);
}

.shot figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.download-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(113, 224, 255, 0.22);
  background: radial-gradient(
      700px 420px at 20% 20%,
      rgba(113, 224, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(
      700px 420px at 90% 70%,
      rgba(167, 139, 250, 0.14),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.05);
  padding: 18px;
}

.download-copy h2 {
  margin: 2px 0 8px;
}

.download-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
}

.brew-install {
  margin: 28px 0 20px;
}

.brew-install h3 {
  font-size: 0.92rem;
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brew-snippet {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.6;
}

.brew-snippet code {
  display: block;
  white-space: pre;
  overflow: auto;
}

.download-aside {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.aside-box {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.16);
  padding: 16px;
}

.aside-box h3 {
  margin: 0 0 8px;
}

.aside-box p {
  margin: 0;
  color: var(--muted);
}

.checklist {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.anim-previews .section-head {
  margin-bottom: 18px;
}

.anim-preview {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(
      900px 420px at 18% 0%,
      rgba(113, 224, 255, 0.1),
      transparent 62%
    ),
    radial-gradient(
      900px 520px at 88% 80%,
      rgba(167, 139, 250, 0.08),
      transparent 62%
    ),
    rgba(255, 255, 255, 0.04);
  overflow: hidden;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
}

.anim-preview + .anim-preview {
  margin-top: 14px;
}

.anim-preview-head {
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
}

.anim-preview-head h3 {
  margin: 0 0 6px;
  letter-spacing: -0.25px;
}

.anim-preview-head p {
  margin: 0;
  color: var(--muted);
}

.anim-surface {
  position: relative;
  height: 260px;
  background: radial-gradient(
      900px 260px at 50% 0%,
      rgba(255, 255, 255, 0.06),
      transparent 62%
    ),
    rgba(0, 0, 0, 0.18);
}

.anim-canvas,
.anim-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.92;
  mix-blend-mode: screen;
  filter: saturate(120%) contrast(108%);
}

.anim-svg .net-line {
  stroke: rgba(113, 224, 255, 0.26);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: net-draw 2.8s ease-in-out infinite;
}

.anim-svg .net-node {
  fill: rgba(167, 139, 250, 0.32);
  opacity: 0.95;
}

.anim-preview:nth-of-type(2) .anim-preview-head {
  background: rgba(113, 224, 255, 0.06);
}
.anim-preview:nth-of-type(3) .anim-preview-head {
  background: rgba(167, 139, 250, 0.06);
}
.anim-preview:nth-of-type(4) .anim-preview-head {
  background: rgba(92, 255, 177, 0.05);
}

@keyframes net-draw {
  0% {
    stroke-dashoffset: 280;
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  55% {
    stroke-dashoffset: 0;
    opacity: 0.85;
  }
  100% {
    stroke-dashoffset: -280;
    opacity: 0;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-left,
.footer-right {
  margin: 0;
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
  font-weight: 700;
}

.footer-sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.32);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 550ms ease, transform 550ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .ai-logs {
    display: none;
  }

  .how-sierpinski {
    display: none;
  }

  .hero-constellation {
    display: none;
  }

  .anim-canvas {
    display: none;
  }

  .features-contours {
    display: none;
  }

  .anim-svg .net-line {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 0.65;
  }
}

@media (min-width: 860px) {
  .nav {
    display: inline-flex;
  }

  .hero {
    padding: 74px 0 28px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
  }

  .ai-simple {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 18px;
    align-items: center;
  }

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

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

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

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

  .download-card {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    padding: 24px;
  }

  .download-aside {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

.gatekeeper-guide {
  margin-top: 18px;
  padding: 0 4px;
  background: none;
  border: none;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gatekeeper-icon {
  font-size: 1.2rem;
}

.gatekeeper-body {
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
  text-align: left; /* Align left to sit nicely with icon */
}

.gatekeeper-body strong {
  color: var(--text);
  font-weight: 650;
}
