:root {
  --zy-black: 0 0% 4%;
  --zy-black-pure: 0 0% 0%;
  --zy-ink-900: 240 6% 7%;
  --zy-ink-800: 240 6% 10%;
  --zy-ink-700: 240 6% 14%;
  --zy-blue-deep: 239 56% 27%;
  --zy-blue-elec: 234 69% 55%;
  --zy-blue-glow: 234 100% 68%;
  --zy-green: 152 100% 50%;
  --zy-white: 0 0% 100%;
  --zy-gray-100: 240 6% 90%;
  --zy-gray-300: 240 5% 64%;
  --zy-gray-500: 240 5% 44%;
  --zy-red-muted: 8 48% 52%;

  --background: var(--zy-black);
  --surface: var(--zy-ink-900);
  --surface-raised: var(--zy-ink-800);
  --surface-overlay: var(--zy-ink-700);
  --foreground: var(--zy-gray-100);
  --foreground-muted: var(--zy-gray-300);
  --foreground-subtle: var(--zy-gray-500);
  --brand: var(--zy-blue-deep);
  --accent: var(--zy-blue-elec);
  --accent-glow: var(--zy-blue-glow);
  --success: var(--zy-green);
  --border: 240 6% 18%;
  --border-strong: 240 8% 28%;
  --border-glow: var(--zy-blue-elec);
  --state-manual: var(--zy-red-muted);
  --state-zyper: var(--zy-blue-elec);
  --cta-bg: var(--zy-blue-elec);
  --cta-bg-hover: var(--zy-blue-glow);
  --cta-foreground: var(--zy-white);
  --ring: var(--zy-blue-glow);
  --radius: 0.875rem;
  --radius-pill: 9999px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --text-hero: clamp(2rem, 7vw, 3.75rem);
  --text-h2: clamp(1.6rem, 4.5vw, 2.5rem);
  --text-h3: clamp(1.15rem, 2.5vw, 1.4rem);
  --text-lead: clamp(1.05rem, 2.5vw, 1.25rem);
  --text-body: 1rem;
  --text-sm: 0.9rem;
  --text-xs: 0.8rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --shadow-card: 0 1px 2px hsl(0 0% 0% / 0.4), 0 8px 24px hsl(0 0% 0% / 0.35);
  --glow-soft: 0 0 80px -20px hsl(var(--accent-glow) / 0.45);
  --glow-cta: 0 0 32px -6px hsl(var(--accent-glow) / 0.6);
  --inset-glass: inset 0 1px 1px hsl(0 0% 100% / 0.08);

  --dur-fast: 0.2s;
  --dur-base: 0.45s;
  --dur-slow: 0.6s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --stagger: 0.08s;
  --section-gap: clamp(4rem, 10vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, hsl(var(--brand) / 0.18), transparent 28%),
    linear-gradient(180deg, hsl(var(--background)), hsl(var(--zy-black-pure)));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.container {
  width: min(100% - 2.5rem, 68.75rem);
  margin: 0 auto;
}

.section {
  padding: var(--section-gap) 0;
}

.section-heading {
  max-width: 38rem;
  margin-bottom: var(--space-12);
}

.section-heading h2,
.trust-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-heading p,
.trust-copy p,
.disclaimer p {
  max-width: 60ch;
  color: hsl(var(--foreground-muted));
}

.eyebrow,
.card-kicker,
.status-label {
  margin: 0 0 var(--space-3);
  color: hsl(var(--foreground-muted));
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.liquid-glass {
  background: hsl(var(--zy-white) / 0.012);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--inset-glass);
  position: relative;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: var(--space-4);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.85rem 1rem;
  border-radius: calc(var(--radius) + 0.25rem);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  background:
    linear-gradient(180deg, hsl(var(--brand) / 0.9), hsl(var(--accent) / 0.7)),
    hsl(var(--surface));
  box-shadow: inset 0 0 0 1px hsl(var(--border-strong)), 0 0 24px hsl(var(--accent-glow) / 0.2);
  font-family: var(--font-display);
  font-weight: 700;
  color: hsl(var(--cta-foreground));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: hsl(var(--foreground-subtle));
  font-size: var(--text-xs);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

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

.button-cta {
  background: hsl(var(--cta-bg));
  color: hsl(var(--cta-foreground));
}

.button-cta:hover {
  background: hsl(var(--cta-bg-hover));
  box-shadow: var(--glow-cta);
}

.button-ghost {
  background: hsl(var(--zy-white) / 0.02);
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.button-ghost:hover {
  border-color: hsl(var(--border-strong));
  background: hsl(var(--surface-overlay) / 0.45);
}

.hero {
  position: relative;
  padding: clamp(4.5rem, 12vw, 8rem) 0 var(--section-gap);
}

.hero-glow {
  position: absolute;
  inset: 3rem auto auto 50%;
  width: min(34rem, 80vw);
  aspect-ratio: 1;
  background:
    radial-gradient(circle, hsl(var(--accent-glow) / 0.24), transparent 58%),
    radial-gradient(circle at 40% 60%, hsl(var(--brand) / 0.3), transparent 62%);
  transform: translateX(-8%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-grid,
.trust-grid,
.compare-grid {
  display: grid;
  gap: var(--space-6);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  color: hsl(var(--foreground-muted));
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: hsl(var(--accent));
  box-shadow: 0 0 14px hsl(var(--accent-glow) / 0.55);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 11ch;
}

.hero-title .word {
  display: inline-block;
  margin-right: 0.22em;
  transform: translateY(1rem);
  opacity: 0;
  filter: blur(10px);
}

.hero-title.is-ready .word {
  animation: split-in var(--dur-slow) var(--ease-soft) forwards;
  animation-delay: calc(var(--word-index) * var(--stagger));
}

.hero-lead {
  margin: var(--space-4) 0 0;
  max-width: 36rem;
  color: hsl(var(--foreground-muted));
  font-size: var(--text-lead);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-points {
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
  color: hsl(var(--foreground-muted));
  font-size: var(--text-sm);
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.hero-points li::before {
  content: "";
  flex: 0 0 0.7rem;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: hsl(var(--accent));
}

.hero-panel {
  position: relative;
}

.status-card,
.compare-card,
.disclaimer {
  background: hsl(var(--surface-raised));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

.status-card {
  position: relative;
  overflow: hidden;
}

.status-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% 45%;
  height: 14rem;
  background: radial-gradient(circle, hsl(var(--accent-glow) / 0.2), transparent 62%);
  filter: blur(14px);
  pointer-events: none;
}

.status-screen {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 18rem;
  margin-top: var(--space-4);
  border-radius: calc(var(--radius) - 0.1rem);
  background:
    linear-gradient(180deg, hsl(var(--surface)), hsl(var(--background))),
    hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  overflow: hidden;
}

.screen-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(hsl(var(--border) / 0.45) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.45) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  mask-image: linear-gradient(180deg, hsl(var(--zy-white)), transparent);
}

.screen-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--border-glow));
  background: linear-gradient(180deg, hsl(var(--brand) / 0.88), hsl(var(--surface)));
  box-shadow: var(--glow-soft);
}

.screen-core strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 2.7rem;
  color: hsl(var(--cta-foreground));
}

.screen-pulse {
  position: absolute;
  inset: 18%;
  border-radius: 1rem;
  background: radial-gradient(circle, hsl(var(--accent-glow) / 0.45), transparent 70%);
}

.signal-list,
.issue-list {
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-4);
}

.signal-list li {
  display: grid;
  gap: 0.1rem;
}

.signal-title {
  font-weight: 600;
}

.signal-copy {
  color: hsl(var(--foreground-muted));
  font-size: var(--text-sm);
}

.compare-card h3,
.step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: 1.2;
}

.compare-card-featured {
  border-color: hsl(var(--border-glow));
  box-shadow: var(--shadow-card), var(--glow-soft);
}

.issue-list li {
  position: relative;
  padding-left: 2rem;
  color: hsl(var(--foreground-muted));
  font-size: var(--text-sm);
}

.issue-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
}

.issue-list-manual li::before {
  background:
    linear-gradient(135deg, transparent 44%, hsl(var(--state-manual)) 44%, hsl(var(--state-manual)) 56%, transparent 56%),
    linear-gradient(45deg, transparent 44%, hsl(var(--state-manual)) 44%, hsl(var(--state-manual)) 56%, transparent 56%),
    hsl(var(--surface-overlay));
  box-shadow: inset 0 0 0 1px hsl(var(--border));
}

.issue-list-zyper li {
  color: hsl(var(--foreground));
}

.issue-list-zyper li::before {
  background:
    linear-gradient(135deg, transparent 42%, hsl(var(--success)) 42%, hsl(var(--success)) 56%, transparent 56%),
    linear-gradient(45deg, transparent 57%, hsl(var(--success)) 57%, hsl(var(--success)) 68%, transparent 68%),
    hsl(var(--surface-overlay));
  box-shadow: inset 0 0 0 1px hsl(var(--border));
}

.section-stepper {
  position: relative;
}

.stepper {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-6);
}

.stepper::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 1.8rem;
  bottom: 1.8rem;
  width: 1px;
  background: hsl(var(--border));
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-4);
  align-items: start;
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid hsl(var(--accent));
  background: hsl(var(--surface));
  color: hsl(var(--accent));
  font-family: var(--font-display);
  font-weight: 700;
}

.step p {
  margin: var(--space-2) 0 0;
  color: hsl(var(--foreground-muted));
  font-size: var(--text-sm);
}

.trust-grid {
  align-items: start;
}

.trust-copy {
  display: grid;
  gap: var(--space-4);
}

.trust-copy .button {
  justify-self: start;
}

.disclaimer {
  background: hsl(var(--surface));
  color: hsl(var(--foreground-subtle));
}

.disclaimer strong {
  display: inline-block;
  margin-bottom: var(--space-3);
  color: hsl(var(--foreground));
  font-size: var(--text-sm);
}

.disclaimer p {
  margin: 0;
  color: hsl(var(--foreground-subtle));
  font-size: var(--text-xs);
}

.site-footer {
  padding: 0 0 6rem;
}

.footer-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--foreground-subtle));
  font-size: var(--text-xs);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, hsl(var(--background) / 0.94) 26%);
  transform: translateY(120%);
  transition: transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}

.sticky-cta-link {
  width: 100%;
}

body.has-sticky-cta .sticky-cta {
  transform: translateY(0);
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  filter: blur(10px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out),
    filter var(--dur-slow) var(--ease-out);
}

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

@keyframes split-in {
  to {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

@media (min-width: 48rem) {
  .container {
    width: min(100% - 4rem, 68.75rem);
  }

  .hero-grid,
  .trust-grid,
  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    align-items: center;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .compare-grid {
    gap: 1.5rem;
  }

  .stepper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .stepper::before {
    left: 3rem;
    right: 3rem;
    top: 1.2rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }

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

  .step-number {
    margin-bottom: var(--space-3);
  }

  .site-footer {
    padding-bottom: var(--space-12);
  }

  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 64rem) {
  .hero {
    min-height: 100vh;
    display: grid;
    align-items: center;
  }

  .hero-title {
    max-width: 10ch;
  }
}

@media (min-width: 48rem) {
  .sticky-cta {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .hero-title .word,
  .sticky-cta {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
