@font-face {
  font-family: 'Inter';
  src: url('/assets/inter-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/inter-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050606;
  --ink: #f5f7f6;
  --muted: #9da7a4;
  --line: rgba(218, 229, 225, 0.16);
  --accent: #70ded7;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 52%, rgba(90, 200, 193, 0.065), transparent 32rem), var(--bg);
  color: var(--ink);
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.page-shell {
  width: min(1600px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: max(22px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.masthead {
  min-width: 0;
  min-height: 52px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.brand,
.app-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
  text-decoration: none;
}

.brand {
  flex: 0 0 auto;
  gap: 11px;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  transform-origin: 50% 50%;
  animation: brand-mark-spin 10s linear infinite;
  will-change: transform;
}

.app-link {
  min-width: 0;
  justify-content: flex-end;
  color: var(--accent);
  white-space: nowrap;
  transition: color 160ms ease;
}

.app-link:hover {
  color: var(--ink);
}

.brand:focus-visible,
.app-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

main {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
}

.hero {
  width: 100%;
  min-width: 0;
  padding-block: clamp(42px, 8vh, 104px);
  display: grid;
  place-items: center;
}

.hero-copy {
  width: min(100%, 1200px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 clamp(22px, 3.5vh, 36px);
  color: var(--accent);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 7.2vw, 104px);
  font-weight: 500;
  letter-spacing: -0.067em;
  line-height: 0.92;
  text-wrap: balance;
}

h1 span {
  display: block;
}

h1 span:nth-child(2) {
  color: #c9cecc;
}

h1 span:nth-child(3) {
  color: var(--accent);
}

.intro {
  max-width: 680px;
  margin: clamp(28px, 4.5vh, 48px) auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.6;
  text-wrap: balance;
}

@keyframes brand-mark-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }

  .masthead {
    min-height: 48px;
    padding-bottom: 12px;
    gap: 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding-block: 36px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  h1 {
    font-size: clamp(38px, 12vw, 48px);
    letter-spacing: -0.062em;
    line-height: 0.94;
  }

  .intro {
    max-width: 300px;
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-height: 650px) {
  .page-shell {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .masthead {
    min-height: 44px;
    padding-bottom: 8px;
  }

  .hero {
    padding-block: 24px;
  }

  .eyebrow {
    margin-bottom: 15px;
  }

  h1 {
    font-size: clamp(34px, min(7.2vw, 10vh), 88px);
  }

  .intro {
    margin-top: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark {
    animation: none;
    will-change: auto;
  }

  .app-link {
    transition: none;
  }
}

@media (forced-colors: active) {
  :root {
    --bg: Canvas;
    --ink: CanvasText;
    --muted: CanvasText;
    --line: CanvasText;
    --accent: CanvasText;
  }

  body {
    background: Canvas;
  }
}
