/* winterchill homepage — dark aurora / wintry theme.
   Static, dependency-free. Fluid type via clamp() (mobile -> desktop, no breakpoints).
   The interactive snow is a full-viewport <canvas> (snow.js); the aurora is pure CSS. */

:root {
  --bg: #060912;
  --bg-top: #0c1730;
  --ink: #f6f9ff;
  --muted: #9fb0d0;
  --line: rgba(190, 210, 255, 0.16);
  --aurora-teal: #1f9c8a;
  --aurora-blue: #5b6cff;
  --aurora-violet: #9a6bff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, var(--bg-top), transparent 60%),
    var(--bg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Interactive snow canvas ---- */
#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  display: block;
}

/* ---- Aurora glow (decorative, GPU-cheap) ---- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

.blob-1 {
  width: 62vmax;
  height: 62vmax;
  left: -14vmax;
  top: -24vmax;
  background: radial-gradient(circle at center, var(--aurora-teal), transparent 62%);
  animation: drift-1 24s ease-in-out infinite;
}

.blob-2 {
  width: 54vmax;
  height: 54vmax;
  right: -16vmax;
  top: -18vmax;
  background: radial-gradient(circle at center, var(--aurora-blue), transparent 62%);
  animation: drift-2 30s ease-in-out infinite;
}

.blob-3 {
  width: 48vmax;
  height: 48vmax;
  left: 28vmax;
  top: -28vmax;
  background: radial-gradient(circle at center, var(--aurora-violet), transparent 62%);
  animation: drift-3 34s ease-in-out infinite;
}

@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vmax, 6vmax) scale(1.12); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1.05); }
  50% { transform: translate(-7vmax, 5vmax) scale(0.92); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(4vmax, 8vmax) scale(1.1); }
}

/* ---- Top navigation ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.9rem, 2.5vw, 1.5rem) clamp(1.25rem, 6vw, 3rem);
  padding-top: max(clamp(0.9rem, 2.5vw, 1.5rem), env(safe-area-inset-top));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  letter-spacing: -0.01em;
  color: #dce5f7;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.brand:hover {
  opacity: 1;
}
.brand img {
  display: block;
  width: 24px;
  height: 24px;
}

.menu {
  position: relative;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5em 1.05em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: clamp(0.82rem, 1.8vw, 0.92rem);
  font-weight: 500;
  color: #dce5f7;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 0.2s, background 0.2s;
}
.menu summary::-webkit-details-marker {
  display: none;
}
/* chevron */
.menu summary::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  margin-top: -0.18em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
  transition: transform 0.2s, margin-top 0.2s;
}
.menu[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.1em;
}
.menu summary:hover,
.menu[open] summary {
  border-color: rgba(190, 210, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  min-width: 230px;
  max-width: calc(100vw - 2.5rem);
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 18, 38, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: #eaf1ff;
  transition: background 0.15s;
}
.menu-item:hover {
  background: rgba(255, 255, 255, 0.07);
}
.mi-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.94rem;
  font-weight: 500;
}
.mi-text small {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.mi-arrow {
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.15s, color 0.15s;
}
.menu-item:hover .mi-arrow {
  transform: translate(2px, -2px);
  color: #cfe0ff;
}

/* ---- Content ---- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(0.9rem, 2.2vw, 1.5rem);
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 6vw, 4rem);
  max-width: 60rem;
  margin: 0 auto;
}

.kicker {
  margin: 0;
  font-size: clamp(0.7rem, 1.6vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.wordmark {
  margin: 0;
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 13vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: linear-gradient(104deg, #eaf4ff 0%, #88d6ff 38%, #b7a6ff 72%, #eaf4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(120, 170, 255, 0.25);
}

.tagline {
  margin: 0;
  max-width: 24ch;
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 3.6vw, 2rem);
  line-height: 1.25;
  color: #e7eefc;
}

.tagline .accent {
  background: linear-gradient(100deg, #6ee7d6, #7db8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(0.98rem, 2.2vw, 1.18rem);
  font-weight: 300;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem clamp(0.6rem, 1.5vw, 0.9rem);
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.tags li {
  padding: 0.42em 1.05em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: clamp(0.78rem, 1.7vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #d5e1f7;
}

/* ---- Footer ---- */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.1rem, 3vw, 1.8rem) clamp(1.25rem, 6vw, 3rem);
  padding-bottom: max(clamp(1.1rem, 3vw, 1.8rem), env(safe-area-inset-bottom));
  font-size: clamp(0.76rem, 1.6vw, 0.9rem);
  color: var(--muted);
  border-top: 1px solid rgba(190, 210, 255, 0.08);
}

.footer .founders strong {
  font-weight: 600;
  color: #e7eefc;
}

.footer .copy {
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .footer {
    justify-content: center;
    text-align: center;
  }
}

/* ---- Accessibility: calm the motion ---- */
@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }
}
