:root {
  color-scheme: light dark;
  --page: #ffffff;
  --ink: #10173a;
  --ink-2: #4b5578;
  --accent: #6366f1;
  --accent-2: #06b6d4;
  --border: rgba(16, 23, 58, 0.1);
  --circle-bg: #ffffff;
  --circle-shadow: 0 18px 44px rgba(49, 46, 129, 0.16);
  --night-end: #0b1029;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b1220;
    --ink: #e2e8f0;
    --ink-2: #97a3c0;
    --accent: #818cf8;
    --accent-2: #22d3ee;
    --border: rgba(226, 232, 240, 0.12);
    --circle-bg: #131c33;
    --circle-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

.container.narrow {
  max-width: 720px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-2);
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header (overlaid on the night hero) ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(34, 211, 238, 0.35));
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: #fff;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lang-switch a {
  padding: 2px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.lang-switch a[aria-current="page"] {
  background: #fff;
  color: #312e81;
}

/* ---------- Night hero ---------- */

.hero-night {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(560px 420px at 84% 18%, rgba(34, 211, 238, 0.18), transparent 65%),
    radial-gradient(680px 500px at 4% 82%, rgba(217, 70, 239, 0.2), transparent 65%),
    linear-gradient(165deg, #4c1d95 0%, #312e81 38%, #1e1b4b 68%, #0b1029 100%);
  padding: 190px 0 235px;
}

.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.twinkle-a {
  animation: twinkle 5s ease-in-out infinite;
}

.twinkle-b {
  animation: twinkle 7s ease-in-out 2.2s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.orb {
  position: absolute;
  top: 130px;
  right: 11%;
  width: 84px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #a5f3fc 48%, rgba(165, 243, 252, 0) 74%);
  box-shadow: 0 0 90px 34px rgba(34, 211, 238, 0.3);
  pointer-events: none;
}

.hero-art {
  position: absolute;
  inset-inline: 0;
  bottom: 66px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero-art svg {
  width: max(100%, 1000px);
  height: auto;
  flex-shrink: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.hero-night h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
}

.hero-night .lead {
  max-width: 50ch;
  margin-bottom: 2.2em;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: rgba(226, 232, 240, 0.85);
}

/* ---------- Buttons ---------- */

.button-glow {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(100deg, #6366f1, #06b6d4);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 44px rgba(34, 211, 238, 0.32), 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 54px rgba(34, 211, 238, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ---------- Waves ---------- */

.wave {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  color: var(--page);
  line-height: 0;
  pointer-events: none;
}

.wave svg {
  display: block;
  width: 100%;
  height: 110px;
}

.wave-flip {
  top: -1px;
  bottom: auto;
  transform: rotate(180deg);
}

/* ---------- Light sections ---------- */

.section {
  padding: 92px 0 72px;
}

.section h2 {
  text-align: center;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: var(--ink);
}

.section-sub {
  max-width: 56ch;
  margin: 0 auto;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 44px 28px;
  margin-top: 60px;
  text-align: center;
}

.step-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 0 auto 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--circle-bg);
  box-shadow: var(--circle-shadow);
  color: var(--accent);
  transition: transform 0.2s ease;
}

.step-circle::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: 50%;
}

.step:nth-child(2) .step-circle {
  color: var(--accent-2);
}

.step:nth-child(3) .step-circle {
  color: #a855f7;
}

.step:hover .step-circle {
  transform: translateY(-5px);
}

.step-circle svg {
  width: 42px;
  height: 42px;
}

.step h3 {
  font-size: 1.12rem;
  color: var(--ink);
}

.step p {
  max-width: 30ch;
  margin-inline: auto;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.statement {
  padding: 20px 0 96px;
  text-align: center;
}

.statement p {
  margin: 0 auto;
  max-width: 40ch;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.statement strong {
  background: linear-gradient(100deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rule {
  width: 56px;
  height: 4px;
  margin: 0 auto 26px;
  border-radius: 999px;
  background: linear-gradient(100deg, #6366f1, #06b6d4);
}

.about {
  padding-top: 0;
  padding-bottom: 120px;
  text-align: center;
}

/* ---------- Contact (night reprise) + footer ---------- */

.contact-night {
  position: relative;
  overflow: hidden;
  padding: 190px 0 110px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(620px 380px at 50% 30%, rgba(34, 211, 238, 0.14), transparent 65%),
    radial-gradient(520px 380px at 88% 80%, rgba(217, 70, 239, 0.14), transparent 65%),
    linear-gradient(175deg, #312e81 0%, #1e1b4b 48%, #0b1029 100%);
}

.contact-inner {
  position: relative;
  z-index: 2;
}

.contact-night h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: #fff;
}

.contact-night p {
  max-width: 46ch;
  margin: 0 auto 2em;
  color: rgba(226, 232, 240, 0.82);
}

.site-footer {
  padding: 26px 0;
  text-align: center;
  background: var(--night-end);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(226, 232, 240, 0.6);
}

/* ---------- 404 ---------- */

.hero-404 {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 40px 0;
  text-align: center;
}

.hero-404 h1 {
  margin-inline: auto;
  font-size: clamp(4rem, 12vw, 7rem);
}

.hero-404 .lead {
  margin-inline: auto;
}

/* ---------- Responsive & motion ---------- */

@media (max-width: 640px) {
  .container {
    padding-inline: 18px;
  }

  .site-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .hero-night {
    padding: 150px 0 210px;
  }

  .orb {
    top: 104px;
    right: 6%;
    width: 60px;
  }

  .section {
    padding: 68px 0 56px;
  }

  .steps {
    gap: 40px 20px;
  }

  .about {
    padding-bottom: 96px;
  }

  .contact-night {
    padding: 160px 0 88px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
