/* Kolstar coming-soon page. Values come from Figma frame "coming soon - kolstar" (1512 × 982). */

:root {
  --bg: #1c1c1c;
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --accent-top: #fee500;
  --accent-bottom: #ffa100;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* The glow bands are 1714.586px wide on the 1512px design frame; keep that ratio on every screen. */
  --glow-w: calc(100vw * 1714.586 / 1512);
  --glow-h: 170.511px;
}

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

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* ---------- Glow bands ---------- */

.glows {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  left: 50%;
  width: var(--glow-w);
  height: var(--glow-h);
}

.glow img {
  position: absolute;
  display: block;
  max-width: none;
  width: auto;
  height: auto;
}

/* Each SVG bleeds past its box by the blur radius (insets from Figma). */
.glow--1 img { inset: -46.03% -4.58%; width: calc(100% + 2 * 4.58%); height: calc(100% + 2 * 46.03%); }
.glow--2 img { inset: -25.32% -2.52%; width: calc(100% + 2 * 2.52%); height: calc(100% + 2 * 25.32%); }
.glow--3 img,
.glow--4 img { inset: -18.41% -1.83%; width: calc(100% + 2 * 1.83%); height: calc(100% + 2 * 18.41%); }
.glow--4 { mix-blend-mode: plus-lighter; }

/* Top: tilted 3.82° and flipped. Centres sit 37.7 / 10.5 / -14.4 / -37.7px from the top edge. */
.glow--top { transform: translateX(-50%) rotate(3.82deg) scaleY(-1); }
.glow--top.glow--1 { top: -47.53px; margin-left: -2.52px; }
.glow--top.glow--2 { top: -74.77px; margin-left: -0.7px; }
.glow--top.glow--3 { top: -99.67px; margin-left: 0.97px; }
.glow--top.glow--4 { top: -123px; margin-left: 2.52px; }

/* Bottom: flat, mirrored. Centres sit 13.4 / 41.4 / 66.4 / 89.7px below the bottom edge. */
.glow--bottom { transform: translateX(-50%) scaleX(-1); }
.glow--bottom.glow--1 { bottom: -98.66px; }
.glow--bottom.glow--2 { bottom: -126.67px; }
.glow--bottom.glow--3 { bottom: -151.64px; }
.glow--bottom.glow--4 { bottom: -175px; }

/* ---------- Hero ---------- */

/* No z-index here: a stacking context would stop the logo's "lighten" blend from reaching the page background. */
.hero {
  position: relative;
  width: min(529.38px, 100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.mark {
  width: 77.601px;
  height: 77.601px;
  mix-blend-mode: lighten;
}

.mark__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.hero__title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -1.92px;
}

.hero__body {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.32px;
  color: var(--text-muted);
}

/* ---------- Call to action ---------- */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 180px;
  padding: 8px 24px;
  border: 1px solid #fff;
  border-radius: 500px;
  background: linear-gradient(to bottom, var(--accent-top), var(--accent-bottom));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.64px;
  white-space: nowrap;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

/* Soft halo: the same pill blurred by 1px underneath. */
.button::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border: 1px solid #fff;
  border-radius: inherit;
  background: inherit;
  filter: blur(1px);
}

.button__icon {
  display: block;
  flex: none;
}

.button:hover {
  filter: brightness(1.06);
}

.button:active {
  transform: scale(0.98);
}

.button:focus-visible {
  outline: 2px solid var(--accent-top);
  outline-offset: 3px;
}

.cta__count {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.24px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Keep the line's height while hidden so the layout matches the design either way. */
.cta__count[hidden] {
  display: block;
  visibility: hidden;
  min-height: 18px;
}

/* ---------- Footer ---------- */

.footer {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  line-height: 0;
}

.footer img {
  display: block;
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  .hero__title {
    font-size: 40px;
    letter-spacing: -1.6px;
  }
}

/* Short screens (phones in landscape): let the page scroll instead of overlapping the logo. */
@media (max-height: 560px) {
  body {
    overflow: auto;
    place-items: start center;
    padding: 64px 0 120px;
  }

  .glows {
    position: absolute;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
