:root {
  color-scheme: dark;
  --bg: #02030f;
  --bg-2: #08071b;
  --text: #f8fbff;
  --muted: rgba(248, 251, 255, 0.7);
  --quiet: rgba(248, 251, 255, 0.12);
  --cyan: #17caff;
  --blue: #2468ff;
  --pink: #ff2de7;
  --nav: rgba(2, 3, 15, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(23, 202, 255, 0.13), transparent 28rem),
    linear-gradient(225deg, rgba(255, 45, 231, 0.12), transparent 30rem),
    linear-gradient(180deg, #02030f 0%, #060516 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

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

button {
  font: inherit;
}

::selection {
  background: rgba(255, 45, 231, 0.28);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 0.7rem 0.9rem;
  transition: transform 160ms ease;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: 1rem;
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--quiet);
  background: rgba(2, 3, 15, 0.84);
  backdrop-filter: blur(18px);
  padding-block: 0.7rem;
}

.nav {
  width: min(1120px, calc(100% - 2rem));
  min-height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(23, 202, 255, 0.24));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--quiet);
  border-radius: 8px;
  background: var(--nav);
  padding: 0.3rem;
  backdrop-filter: blur(16px);
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--quiet);
  border-radius: 8px;
  background: var(--nav);
  color: var(--text);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  overflow: hidden;
  padding: 6.2rem 1rem 3.2rem;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: -2;
  width: min(82rem, 120vw);
  height: min(34rem, 62vw);
  transform: translate(-50%, -50%);
  background:
    linear-gradient(90deg, transparent 0%, rgba(23, 202, 255, 0.18) 28%, rgba(255, 45, 231, 0.18) 65%, transparent 100%);
  filter: blur(72px);
  opacity: 0.75;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  pointer-events: none;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.snowfall {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.snowflake {
  position: absolute;
  top: -10vh;
  left: var(--flake-left);
  width: var(--flake-size);
  height: var(--flake-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  opacity: var(--flake-opacity);
  box-shadow: 0 0 var(--flake-glow) rgba(255, 255, 255, 0.5);
  filter: blur(var(--flake-blur));
  animation:
    snow-fall var(--flake-duration) linear infinite,
    snow-drift var(--flake-drift-duration) ease-in-out infinite alternate;
  animation-delay: var(--flake-delay);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

@keyframes snow-fall {
  from {
    translate: 0 -12vh;
    rotate: 0deg;
  }

  to {
    translate: 0 104vh;
    rotate: 360deg;
  }
}

@keyframes snow-drift {
  from {
    margin-left: calc(var(--flake-drift) * -1);
  }

  to {
    margin-left: var(--flake-drift);
  }
}

.hero-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  display: grid;
  place-items: center;
}

.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 80px rgba(36, 104, 255, 0.2));
}

.hero-logo-square {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.05rem, 5vw, 4.3rem);
  font-weight: 900;
  line-height: 1.04;
}

.hero-content p,
.section-inner p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-weight: 900;
  isolation: isolate;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  border-color: rgba(255, 255, 255, 0.16);
  background: #171b47;
  color: var(--text);
  box-shadow:
    0 20px 56px rgba(255, 45, 231, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.button-primary::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(100deg, #2468ff 0%, #7857ff 48%, #ff2de7 100%);
  pointer-events: none;
}

.button-secondary {
  border-color: var(--quiet);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.about,
.contact {
  border-top: 1px solid var(--quiet);
  padding: clamp(4rem, 8vw, 6.5rem) 1rem;
}

.about {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.04));
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(280px, 1fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: end;
}

.about-inner p:not(.eyebrow) {
  padding-bottom: 0.35rem;
}

.about-copy {
  display: grid;
  gap: 1.35rem;
}

.principle-list {
  display: grid;
  gap: 0.8rem;
}

.principle-list article {
  border: 1px solid var(--quiet);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.principle-list h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.principle-list p {
  margin-top: 0.45rem;
  font-size: 0.96rem;
}

.contact {
  background:
    linear-gradient(135deg, rgba(23, 202, 255, 0.08), transparent 38%),
    linear-gradient(225deg, rgba(255, 45, 231, 0.09), transparent 44%),
    #03030f;
}

.contact-inner {
  max-width: 840px;
}

.contact-inner p:not(.eyebrow) {
  margin-top: 1rem;
}

.contact-link {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  margin-top: 1.4rem;
  border-bottom: 2px solid var(--pink);
  color: var(--text);
  font-size: clamp(1.35rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .nav {
    width: min(100% - 1rem, 1120px);
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    top: 4.45rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.45rem;
    background: rgba(2, 3, 15, 0.94);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.45rem);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
  }

  .hero {
    min-height: 86svh;
    padding: 5.75rem 1rem 2.4rem;
  }

  .hero-stage {
    width: min(82vw, 420px);
  }

  .snowflake:nth-child(n + 73) {
    display: none;
  }

  .hero-logo-wide {
    display: none;
  }

  .hero-logo-square {
    display: block;
  }

  .hero-content p,
  .section-inner p {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 430px) {
  .hero-stage {
    width: min(74vw, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .snowfall {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
