@import url("../font/clash/WEB/css/clash-grotesk.css");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap");

:root {
  --bg-base: #F4F4F4;
  --core-dark: #201D1D;
  --core-muted: #EAEAEA;
  --brand-purple: #5A31F4;
  --accent-lime: #A1FF62;
  --border-width: 2px;
  --page-gutter: clamp(16px, 2.6vw, 28px);
  --frame-inset: clamp(12px, 1.8vw, 22px);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 4rem;
  --space-5: 8rem;
  --stack-gap-language-status: 1rem;
  --stack-gap-status-logo: clamp(1.9rem, 3.4vw, 2.9rem);
  --stack-gap-logo-copy: clamp(1rem, 2vw, 1.25rem);
  --stack-gap-copy-actions: clamp(1.5rem, 2.2vw, 2rem);
  --hero-rhythm-major: clamp(2.35rem, 4.8vw, 4.25rem);
  --hero-rhythm-medium: clamp(1.15rem, 2vw, 1.7rem);
  --hero-rhythm-minor: clamp(0.8rem, 1.4vw, 1.05rem);
  --logo-pad-top: clamp(1rem, 2.8vw, 2rem);
  --logo-pad-bottom: clamp(0.75rem, 2vw, 1.25rem);
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono-ui: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --font-display: "ClashGrotesk-Medium", "ClashGrotesk-Variable", "Arial Black", "Helvetica Neue", Arial, sans-serif;
}

html {
  color-scheme: light;
}

* {
  box-sizing: border-box;
  border-radius: 0;
  box-shadow: none;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg-base);
  color: var(--core-dark);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

::selection {
  background: var(--core-muted);
  color: var(--core-dark);
}

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

button {
  font: inherit;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.splash {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
  background: var(--bg-base);
}

.splash::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.splash::before {
  inset: var(--frame-inset);
  border: 1px solid var(--core-muted);
}

.chip,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: var(--border-width) solid var(--core-dark);
  background: var(--bg-base);
  color: var(--core-dark);
  font-family: var(--font-mono-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.68rem;
}

.chip-availability {
  background: var(--accent-lime);
  color: var(--core-dark);
  border: 0;
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: var(--border-width) solid var(--core-muted);
  background: var(--bg-base);
}

.language-toggle-button {
  min-width: 68px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-left: var(--border-width) solid var(--core-muted);
  background: var(--bg-base);
  color: var(--core-dark);
  font-family: var(--font-mono-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.language-toggle-button:first-child {
  border-left: 0;
}

.language-toggle-button[aria-pressed="true"] {
  background: var(--core-muted);
  color: var(--core-dark);
}

.language-toggle-button:focus-visible {
  outline: none;
  background: var(--core-muted);
  color: var(--core-dark);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(2rem, 5vw, 3.5rem) var(--page-gutter) clamp(2.5rem, 6vw, 4.5rem);
}

.hero-utility {
  position: absolute;
  top: var(--frame-inset);
  right: var(--frame-inset);
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.hero-brand {
  position: absolute;
  top: calc(var(--frame-inset) + var(--brandmark-offset));
  left: var(--frame-inset);
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}

.hero-utility,
.hero-status,
.hero-headline,
.hero-subline,
.actions {
  transition: opacity 220ms ease-in, transform 220ms ease-in;
  will-change: opacity, transform;
}

.splash.is-intro-active .hero-utility,
.splash.is-intro-active .hero-status,
.splash.is-intro-active .hero-headline,
.splash.is-intro-active .hero-subline,
.splash.is-intro-active .actions {
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
}

.splash.is-intro-active.is-reveal-headline .hero-headline,
.splash.is-intro-active.is-reveal-subline .hero-subline,
.splash.is-intro-active.is-reveal-status .hero-status,
.splash.is-intro-active.is-reveal-actions .actions,
.splash.is-intro-active.is-reveal-toggle .hero-utility,
.splash.is-intro-complete .hero-utility,
.splash.is-intro-complete .hero-status,
.splash.is-intro-complete .hero-headline,
.splash.is-intro-complete .hero-subline,
.splash.is-intro-complete .actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.button-primary {
  background: var(--brand-purple);
  color: var(--bg-base);
  border-color: var(--brand-purple);
}

.button:hover,
.button:focus-visible {
  background: var(--core-dark);
  color: var(--bg-base);
  border-color: var(--core-dark);
  outline: none;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--core-dark);
  border-color: var(--core-dark);
}

.hero-inner {
  width: min(100%, 52rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 42rem);
  max-width: 100%;
  margin-left: 0;
  text-align: center;
}

.hero-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0;
  width: min(100%, 42rem);
  margin-left: 0;
}

.status-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple);
}

.status-mark svg {
  width: auto;
  height: clamp(40px, 3.4vw, 48px);
  display: block;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.1;
  text-transform: uppercase;
}

.logo-frame {
  width: min(100%, 640px);
  padding: var(--logo-pad-top) 0 var(--logo-pad-bottom);
}

.logo-stack {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 500px);
  margin: 0 auto;
  overflow: visible;
}

.hero-brand .logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  width: auto;
}

.hero-brand .logo-stack {
  width: auto;
  height: 38px;
  margin: 0;
}

.hero-brand .stack-logo {
  margin-bottom: 0;
}

.logo-layer {
  grid-area: 1 / 1;
  width: 100%;
  display: block;
}

.logo-wordmark {
  z-index: 1;
  opacity: 0;
  will-change: opacity;
}

.logo-eight-solid {
  z-index: 2;
  opacity: 0;
  color: var(--core-dark);
  transform: translateY(0.5rem) scale(0.94);
  will-change: opacity, transform;
}

.hero-brand .logo-eight-solid {
  width: auto;
  height: 100%;
  color: var(--brand-purple);
}

.hero-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: var(--hero-rhythm-medium);
}

.hero-eight-lockup {
  width: clamp(72px, 8.4vw, 108px);
  margin: 0;
}

.hero-eight-lockup .logo-eight-solid {
  color: var(--brand-purple);
  transform-origin: center center;
}

.logo-stack.is-sketching .logo-eight-solid {
  animation: eightEaseIn 360ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logo-stack.is-complete .logo-eight-solid {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-headline {
  max-width: 11.4ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5.2vw, 5.35rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-subline {
  max-width: 36ch;
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.52;
  color: var(--core-dark);
  text-wrap: pretty;
}

.stack-status {
  margin-bottom: var(--hero-rhythm-major);
}

.stack-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: var(--hero-rhythm-medium);
  text-align: center;
  margin-bottom: calc(var(--hero-rhythm-major) - 0.2rem);
}

@keyframes eightEaseIn {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--hero-rhythm-minor);
  margin-top: 0;
}

.actions .button {
  min-width: clamp(168px, 16vw, 184px);
}

@media (max-width: 1180px) {
  .hero-inner {
    width: min(100%, 48rem);
  }

  .hero-headline {
    max-width: 11ch;
    font-size: clamp(3rem, 5.1vw, 4.7rem);
  }

  .hero-subline {
    max-width: 34ch;
    font-size: clamp(1rem, 1.45vw, 1.16rem);
  }
}

@media (max-width: 1024px) {
  .hero {
    padding-top: clamp(2rem, 4vw, 2.5rem);
    padding-bottom: clamp(2.5rem, 5.8vw, 3.25rem);
  }

  .hero-inner {
    width: min(100%, 42rem);
  }

  .hero-headline {
    max-width: 10.8ch;
    font-size: clamp(2.9rem, 4.9vw, 4.85rem);
  }

  .hero-main,
  .hero-status {
    width: min(100%, 36rem);
    margin-left: 0;
  }

  .hero-subline {
    max-width: 33ch;
  }
}

@media (max-width: 820px) {
  .chip,
  .button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.68rem;
  }

  .language-toggle-button {
    min-width: 64px;
    min-height: 36px;
    padding: 0 12px;
  }

  .hero-headline {
    max-width: 10.6ch;
    font-size: clamp(2.5rem, 4.9vw, 3.85rem);
  }

  .hero-eight-lockup {
    width: clamp(64px, 10vw, 88px);
  }

  .hero-main,
  .hero-status {
    width: min(100%, 32rem);
    margin-left: 0;
  }

  .hero-subline {
    max-width: 31ch;
    font-size: 1.05rem;
  }

  .actions {
    gap: 0.85rem;
  }

}

@media (max-width: 640px) {
  :root {
    --stack-gap-language-status: 1rem;
    --stack-gap-status-logo: 1.55rem;
    --stack-gap-logo-copy: 1rem;
    --stack-gap-copy-actions: 1.5rem;
    --logo-pad-top: 1.5rem;
    --logo-pad-bottom: 1rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .hero-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
  }

  .hero-headline {
    max-width: 10.1ch;
    font-size: clamp(2.05rem, 7vw, 2.85rem);
    line-height: 0.96;
  }

  .hero-lockup {
    gap: 0.8rem;
  }

  .hero-eight-lockup {
    width: clamp(56px, 14vw, 76px);
  }

  .hero-main,
  .hero-status {
    width: min(100%, 30rem);
    margin-left: 0;
  }

  .hero-subline {
    max-width: 29ch;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .actions {
    width: min(100%, 18.75rem);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
  }

  .actions .button {
    width: 100%;
    min-height: 44px;
    min-width: 0;
  }

}

@media (max-width: 430px) {
  :root {
    --stack-gap-status-logo: 1.35rem;
    --stack-gap-logo-copy: 1rem;
    --stack-gap-copy-actions: 1.35rem;
    --logo-pad-top: 1.5rem;
    --logo-pad-bottom: 1rem;
  }

  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-inner {
    width: 100%;
  }

  .hero-headline {
    max-width: 10.2ch;
    font-size: 1.92rem;
  }

  .hero-subline {
    max-width: 27ch;
    font-size: 0.95rem;
    line-height: 1.42;
  }

}

@media (max-width: 390px) {
  .chip,
  .button {
    min-height: 36px;
    font-size: 0.62rem;
  }

  .language-toggle-button {
    min-width: 60px;
    min-height: 36px;
    font-size: 0.62rem;
  }

  .status-mark svg {
    height: 32px;
  }

  .hero-headline {
    max-width: 10.3ch;
    font-size: 1.8rem;
  }

  .hero-subline {
    max-width: 26ch;
    font-size: 0.93rem;
    line-height: 1.42;
  }

}

@media (max-height: 900px) and (min-width: 1024px) {
  :root {
    --stack-gap-status-logo: 1.45rem;
    --stack-gap-copy-actions: 1.35rem;
  }

  .hero {
    padding-top: 1.6rem;
    padding-bottom: 2rem;
  }

  .hero-eight-lockup {
    width: clamp(66px, 6vw, 84px);
  }

  .hero-headline {
    font-size: clamp(2.75rem, 4.3vw, 4.45rem);
    line-height: 0.92;
  }

  .hero-subline {
    max-width: 30ch;
    font-size: 1.02rem;
  }

  .actions .button {
    min-height: 42px;
  }
}

@media (max-height: 760px) and (min-width: 1024px) {
  .hero {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 4vw, 4rem);
  }

  .hero-subline {
    max-width: 29ch;
    font-size: 0.98rem;
  }

  .chip,
  .button {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-utility,
  .hero-status,
  .hero-headline,
  .hero-subline,
  .actions {
    transition: none;
  }

  .splash.is-intro-active .hero-utility,
  .splash.is-intro-active .hero-status,
  .splash.is-intro-active .hero-headline,
  .splash.is-intro-active .hero-subline,
  .splash.is-intro-active .actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .logo-stack.is-sketching .logo-eight-solid {
    animation: none;
  }

  .logo-stack.is-complete .logo-eight-solid {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
