@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-SemiBold.woff2") format("woff2"),
       url("fonts/Fredoka-SemiBold.woff") format("woff");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/NunitoSans-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a2332;
  --soft-cloud: #f4f7f9;
  --happy-blue: #2e9dc4;
  --muted: rgba(26, 35, 50, 0.66);
  --font-display: "Fredoka", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--soft-cloud);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Full-bleed aurora — no boxes, frames, or image cards */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--soft-cloud);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.blob-a {
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, rgba(46, 157, 196, 0.55) 0%, transparent 70%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.blob-b {
  width: min(55vw, 560px);
  height: min(55vw, 560px);
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(46, 157, 196, 0.38) 0%, transparent 70%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

.blob-c {
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  top: 38%;
  left: 48%;
  background: radial-gradient(circle, rgba(26, 35, 50, 0.08) 0%, transparent 70%);
  animation: drift-c 18s ease-in-out infinite alternate;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6%, 8%, 0) scale(1.08); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-8%, -5%, 0) scale(1.12); }
}
@keyframes drift-c {
  from { transform: translate3d(-4%, 0, 0) scale(1); }
  to   { transform: translate3d(5%, -6%, 0) scale(1.06); }
}

.gate {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(48px, 8vh, 96px) clamp(24px, 5vw, 48px);
  max-width: 720px;
  margin: 0 auto;
}

.gate-brand {
  margin-bottom: clamp(36px, 5vh, 52px);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.05s;
}

.brand-mark {
  display: block;
  width: clamp(148px, 30vw, 180px);
  height: auto;
  margin: 0 auto;
}
.brand-mark-dark { display: none; }

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  overflow: visible;
  padding-inline: 0.04em;
  margin-bottom: 18px;
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.18s;
}

.sub {
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 500;
  color: var(--muted);
  max-width: 28ch;
  line-height: 1.55;
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.34s;
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.theme-toggle {
  position: fixed;
  z-index: 2;
  top: 20px;
  right: 20px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 13px var(--font-body);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(26, 35, 50, 0.06);
  transition: background 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}
.theme-toggle [data-dark] { display: none; }

html[data-theme="dark"] {
  --ink: #e8eef4;
  --soft-cloud: #0b1016;
  --muted: rgba(232, 238, 244, 0.68);
}
html[data-theme="dark"] .brand-mark-light { display: none; }
html[data-theme="dark"] .brand-mark-dark { display: block; }
html[data-theme="dark"] .blob-a {
  background: radial-gradient(circle, rgba(46, 157, 196, 0.45) 0%, transparent 70%);
  opacity: 0.7;
}
html[data-theme="dark"] .blob-b {
  background: radial-gradient(circle, rgba(46, 157, 196, 0.32) 0%, transparent 70%);
  opacity: 0.65;
}
html[data-theme="dark"] .blob-c {
  background: radial-gradient(circle, rgba(232, 238, 244, 0.08) 0%, transparent 70%);
}
html[data-theme="dark"] .grain {
  opacity: 0.05;
  mix-blend-mode: soft-light;
}
html[data-theme="dark"] .theme-toggle {
  background: rgba(22, 28, 36, 0.55);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(22, 28, 36, 0.8);
}
html[data-theme="dark"] .theme-toggle [data-light] { display: none; }
html[data-theme="dark"] .theme-toggle [data-dark] { display: inline; }

@media (max-width: 720px) {
  body { overflow: auto; }
  .gate {
    align-items: flex-start;
    text-align: left;
  }
  .brand-mark { margin: 0; }
  .sub { max-width: 32ch; }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .gate-brand,
  .headline,
  .sub {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .blob { will-change: auto; }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(28px, 4vh, 40px);
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: rgba(46, 157, 196, 0.12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.48s;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--happy-blue);
  flex-shrink: 0;
  animation: soft-pulse 1.8s ease-in-out infinite;
}

@keyframes soft-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.18); }
}

html[data-theme="dark"] .status {
  background: rgba(46, 157, 196, 0.18);
}

@media (max-width: 720px) {
  .status { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .status,
  .status-dot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
