:root {
  --bg: #0b1220;
  --surface: rgba(255, 255, 255, 0.04);
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.28);
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Poppins, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: glowDrift 12s ease-in-out infinite alternate;
}

.glow-a {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -60px;
  background: rgba(34, 211, 238, 0.16);
}

.glow-b {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: -80px;
  background: rgba(167, 139, 250, 0.14);
  animation-delay: -4s;
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

a { color: var(--cyan); }
a:hover { color: #67e8f9; }

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: fadeDown 0.6s ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: Orbitron, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand img,
.foot-brand img {
  border-radius: 9px;
  display: block;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.brand:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}

.top nav {
  display: flex;
  gap: 1.1rem;
}

.top nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.top nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.top nav a:hover,
.top nav a[aria-current="page"] {
  color: var(--ink);
}

.top nav a:hover::after,
.top nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.4rem 3.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero-copy > * {
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.4s; }

.brand-hero {
  margin: 0 0 0.75rem;
  font-family: Orbitron, sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-hero.small {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-hero {
    animation:
      fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both,
      shimmer 7s linear infinite;
    animation-delay: 0.05s, 0.8s;
  }
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 16ch;
  line-height: 1.25;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36ch;
}

.lead.center {
  margin-inline: auto;
  text-align: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.btn-gradient,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.35rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-gradient {
  color: #0b1220;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  background-size: 160% 160%;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.22);
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.btn-gradient:hover {
  transform: translateY(-3px) scale(1.02);
  color: #0b1220;
  box-shadow: 0 14px 34px rgba(167, 139, 250, 0.35);
  animation-play-state: paused;
}

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.4);
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: fadeUpScale 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.phone-shot,
.step-media img {
  width: min(100%, 340px);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(34, 211, 238, 0.08);
  display: block;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.phone-shot {
  animation: floatY 5s ease-in-out infinite;
}

.phone-shot:hover,
.step-media img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 36px 70px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(34, 211, 238, 0.18);
}

.steps {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.4rem 4rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2,
.closing h2,
.policy-body h2 {
  margin: 0 0 0.45rem;
  font-family: Orbitron, sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}

.step.reverse .step-text { order: 2; }
.step.reverse .step-media { order: 1; justify-content: flex-start; }

.step-media {
  display: flex;
  justify-content: flex-end;
}

.step-num {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-family: Orbitron, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.step h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--muted);
  max-width: 38ch;
}

.step strong {
  color: var(--ink);
  font-weight: 600;
}

.closing {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 3rem 1.4rem;
  text-align: center;
}

.closing h2 {
  margin-bottom: 0.8rem;
}

.closing .btn-gradient {
  margin-top: 1.5rem;
}

.policy-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.4rem 1.5rem;
}

.policy-hero h1 {
  max-width: none;
  margin-bottom: 0.5rem;
}

.policy-body {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 1.4rem;
}

.policy-body p,
.policy-body li {
  color: var(--muted);
}

.policy-body strong {
  color: var(--ink);
}

.policy-body ul {
  padding-left: 1.15rem;
}

.policy-body li { margin-bottom: 0.5rem; }

.policy-body h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

.policy-body code {
  font-size: 0.88em;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.88rem;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-family: Orbitron, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover { color: var(--ink); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.reveal.from-left {
  transform: translateX(-28px);
}

.reveal.from-right {
  transform: translateX(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUpScale {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 28px rgba(34, 211, 238, 0.22); }
  50% { box-shadow: 0 12px 36px rgba(167, 139, 250, 0.32); }
}

@keyframes shimmer {
  from { background-position: 0% center; }
  to { background-position: 200% center; }
}

@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-18px, 22px) scale(1.08); }
}

@media (max-width: 900px) {
  .hero,
  .step,
  .step.reverse .step-text,
  .step.reverse .step-media {
    grid-template-columns: 1fr;
  }

  .step.reverse .step-text,
  .step.reverse .step-media {
    order: initial;
  }

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
    text-align: center;
  }

  .hero-copy .lead,
  .step p {
    margin-inline: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-visual,
  .step-media {
    justify-content: center;
  }

  h1 {
    max-width: none;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .top nav a:first-child { display: none; }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .phone-shot,
  .step-media img {
    width: min(100%, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero-copy > *,
  .hero-visual,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
