:root {
  color-scheme: light;
  --ink: #071a31;
  --cyan: #08b9de;
  --cyan-bright: #30d7ef;
  --teal: #10c8bc;
  --lavender: #bba5ff;
  --pink: #f27bd5;
  --coral: #ff766f;
  --yellow: #ffda55;
  --mx: 50%;
  --my: 18%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

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

html {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100lvh;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--cyan);
}

body {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100lvh;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 16%, rgba(48, 215, 239, 0.98) 0 8%, transparent 28%),
    radial-gradient(circle at 82% 84%, rgba(26, 204, 198, 0.75) 0 5%, transparent 27%),
    linear-gradient(145deg, #14c7e5 0%, #05aed8 52%, #06b9df 100%);
  background-color: var(--cyan);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Avenir Next", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: white;
  background: var(--ink);
  border-radius: 0.65rem;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scene {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background-color: var(--cyan);
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 44% 56% 63% 37% / 38% 38% 62% 62%;
  filter: blur(1px);
  opacity: 0.78;
  mix-blend-mode: soft-light;
  will-change: transform;
}

.aurora--one {
  width: min(62vw, 58rem);
  height: min(36vw, 32rem);
  top: -8%;
  left: 18%;
  background: linear-gradient(120deg, rgba(111, 255, 231, 0.86), rgba(110, 113, 255, 0.15));
  animation: aurora-drift 15s ease-in-out infinite alternate;
}

.aurora--two {
  width: min(55vw, 48rem);
  height: min(34vw, 29rem);
  right: -9%;
  bottom: -16%;
  background: linear-gradient(120deg, rgba(187, 165, 255, 0.74), rgba(242, 123, 213, 0.44));
  animation: aurora-drift 18s ease-in-out -6s infinite alternate-reverse;
}

.grain {
  position: absolute;
  inset: -80%;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.58'/%3E%3C/svg%3E");
  transform: rotate(12deg);
  mix-blend-mode: soft-light;
}

.page-shell {
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: clamp(1.5rem, 4vw, 4rem);
  place-items: center;
  perspective: 1100px;
}

.glass-card {
  position: relative;
  display: flex;
  width: min(43rem, calc(100vw - 3rem));
  min-height: min(31rem, calc(100vh - 5rem));
  min-height: min(31rem, calc(100dvh - 5rem));
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: clamp(2rem, 5vw, 3.6rem);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.62) 0 4%, transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(231, 251, 255, 0.2) 45%, rgba(150, 240, 241, 0.17));
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.78) inset,
    0 -2px 1px rgba(3, 73, 119, 0.13) inset,
    0 30px 80px rgba(4, 62, 105, 0.25),
    0 8px 20px rgba(6, 52, 88, 0.14);
  backdrop-filter: blur(24px) saturate(1.32);
  -webkit-backdrop-filter: blur(24px) saturate(1.32);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transition: transform 180ms ease-out;
}

.glass-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(105deg, transparent 14%, rgba(255,255,255,0.28) 34%, transparent 50%),
    radial-gradient(ellipse at 50% 115%, rgba(26, 122, 166, 0.3), transparent 48%);
  content: "";
}

.glass-card::after {
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: calc(clamp(2rem, 5vw, 3.6rem) - 0.75rem);
  content: "";
  pointer-events: none;
}

.glass-card__shine {
  position: absolute;
  top: -48%;
  left: -20%;
  width: 82%;
  height: 92%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.38), transparent 66%);
  transform: rotate(-22deg);
  pointer-events: none;
}

h1 {
  position: relative;
  margin: 0;
  font-size: clamp(2rem, min(7vw, 8vh), 4.9rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.93;
  text-wrap: balance;
}

h1 > span,
h1 > strong {
  display: block;
}

h1 > span:first-child {
  font-size: 0.54em;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

h1 strong {
  margin: 0.07em 0 0.04em;
  color: #fff;
  font: inherit;
  font-size: 1.04em;
  letter-spacing: -0.075em;
  line-height: 0.9;
  -webkit-text-stroke: max(2px, 0.045em) var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.07em 0.095em 0 var(--ink);
}

.number {
  display: inline-block;
  color: var(--yellow);
  transform: rotate(-3deg);
}

.promise {
  position: relative;
  margin: clamp(1.35rem, 3vh, 2rem) 0 0;
  color: #0c2941;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.status {
  position: relative;
  display: inline-flex;
  margin: clamp(1.5rem, 3.5vh, 2.4rem) 0 0;
  padding: 0.62rem 0.92rem 0.62rem 0.72rem;
  align-items: center;
  gap: 0.55rem;
  color: white;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0.22rem 0.25rem 0 rgba(255, 118, 111, 0.94);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.status span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0.2rem rgba(16, 200, 188, 0.2);
  animation: pulse 2.2s ease-out infinite;
}

.doodle {
  position: absolute;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
  vector-effect: non-scaling-stroke;
  will-change: transform;
}

.doodle__echo {
  stroke: var(--coral);
  transform: translate(6px, 7px);
}

.doodle__fill,
.doodle__fill-shadow {
  stroke: var(--ink);
}

.doodle__fill {
  fill: var(--lavender);
}

.doodle__fill-shadow {
  fill: var(--coral);
}

.doodle--asterisk {
  top: 7%;
  left: 7%;
  width: clamp(4.3rem, 8vw, 7rem);
  animation: float-a 7s ease-in-out infinite;
}

.doodle--loop {
  top: 10%;
  right: 8%;
  width: clamp(7rem, 14vw, 11.25rem);
  transform: rotate(-8deg);
  animation: float-b 9s ease-in-out -2s infinite;
}

.doodle--orbit {
  right: 4.5%;
  bottom: 12%;
  width: clamp(6rem, 12vw, 9.5rem);
  animation: float-a 11s ease-in-out -4s infinite reverse;
}

.doodle--zig {
  bottom: 8%;
  left: 6%;
  width: clamp(5rem, 10vw, 8rem);
  animation: float-b 8.5s ease-in-out -1s infinite;
}

.doodle--wave {
  top: 47%;
  left: -2.5%;
  width: clamp(7.5rem, 14vw, 12rem);
  transform: rotate(84deg);
  animation: breathe 9s ease-in-out infinite;
}

.doodle--spark {
  top: 40%;
  right: 4%;
  width: clamp(3.8rem, 7vw, 6rem);
  animation: float-a 6.5s ease-in-out -3s infinite;
}

.doodle--spark .doodle__fill {
  fill: var(--yellow);
}

.doodle--curl {
  right: 23%;
  bottom: 2%;
  width: clamp(6rem, 11vw, 9rem);
  transform: rotate(12deg);
  animation: breathe 8s ease-in-out -3s infinite reverse;
}

.site-footer {
  position: fixed;
  z-index: 10;
  right: max(1.15rem, calc(env(safe-area-inset-right) + 0.65rem));
  bottom: max(1.15rem, calc(env(safe-area-inset-bottom) + 0.65rem));
}

.github-link {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  background: rgba(255,255,255,0.42);
  box-shadow: 0 0.25rem 0.8rem rgba(4, 61, 101, 0.16);
  backdrop-filter: blur(12px);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.github-link:hover {
  color: white;
  background: var(--ink);
  transform: translateY(-2px) rotate(-4deg);
}

.github-link:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

.github-link svg {
  width: 1.12rem;
  fill: currentColor;
}

@keyframes float-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
  50% { transform: translate3d(0.35rem, -0.8rem, 0) rotate(3deg); }
}

@keyframes float-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(5deg); }
  50% { transform: translate3d(-0.45rem, 0.65rem, 0) rotate(-2deg); }
}

@keyframes breathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.045; }
}

@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) rotate(-2deg) scale(1); }
  to { transform: translate3d(3%, 4%, 0) rotate(4deg) scale(1.06); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 200, 188, 0.55); }
  60%, 100% { box-shadow: 0 0 0 0.5rem rgba(16, 200, 188, 0); }
}

@media (max-width: 700px) {
  .page-shell {
    padding:
      max(3.25rem, calc(env(safe-area-inset-top) + 1.1rem))
      max(2rem, calc(env(safe-area-inset-right) + 1.35rem))
      max(3.25rem, calc(env(safe-area-inset-bottom) + 1.1rem))
      max(2rem, calc(env(safe-area-inset-left) + 1.35rem));
  }

  .glass-card {
    width: min(100%, 26rem);
    min-height: min(24rem, calc(100vh - 6.5rem));
    min-height: min(24rem, calc(100dvh - 6.5rem));
    max-height: 100%;
    padding: clamp(1.35rem, 6vw, 2rem) clamp(1.2rem, 6vw, 1.8rem);
    border-radius: 2rem;
  }

  h1 {
    font-size: clamp(2.1rem, min(12vw, 6.8dvh), 3.35rem);
    letter-spacing: -0.055em;
    line-height: 0.98;
  }

  h1 strong {
    margin-block: 0.1em 0.07em;
    font-size: 1em;
    letter-spacing: -0.06em;
    line-height: 0.98;
    -webkit-text-stroke: max(1.5px, 0.035em) var(--ink);
    text-shadow: 0.035em 0.045em 0 var(--ink);
  }

  .promise {
    margin-top: clamp(0.9rem, 2.2dvh, 1.25rem);
    font-size: clamp(0.95rem, 4vw, 1.08rem);
  }

  .status {
    margin-top: clamp(1rem, 2.8dvh, 1.5rem);
    padding: 0.56rem 0.82rem 0.56rem 0.65rem;
    font-size: 0.66rem;
  }

  .doodle--asterisk { top: 5%; left: 1%; }
  .doodle--loop { top: 7%; right: -3%; }
  .doodle--orbit { right: -3%; bottom: 10%; }
  .doodle--zig { left: 0; bottom: 8%; }
  .doodle--wave { display: none; }
  .doodle--spark { top: 46%; right: -2%; }
  .doodle--curl { right: 29%; bottom: 1%; }
}

@media (max-height: 620px) {
  .glass-card {
    min-height: 0;
    padding-block: 1.25rem;
  }

  h1 {
    font-size: clamp(2rem, 10vh, 3.4rem);
  }

  .promise {
    margin-top: 0.75rem;
  }

  .status {
    margin-top: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .glass-card {
    transform: none !important;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .glass-card {
    background: rgba(219, 250, 255, 0.91);
  }
}
