:root {
  --bg: #07090d;
  --surface: #0d1117;
  --text: #f4f6f8;
  --muted: #9aa4b2;
  --accent: #dce1e8;
  --line: #1d2530;
  --line-soft: rgba(220, 225, 232, 0.11);
  --shell: min(1180px, calc(100vw - 48px));
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(220, 225, 232, 0.22);
  color: #fff;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 99;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #06080b;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -25%, rgba(117, 132, 151, 0.13), transparent 48%),
    linear-gradient(180deg, #080b10 0%, #07090d 48%, #06080b 100%);
}

.ambient__glow {
  position: absolute;
  width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
}

.ambient__glow--one {
  top: -310px;
  right: 6vw;
  background: #8d9caf;
}

.ambient__glow--two {
  bottom: -410px;
  left: -130px;
  background: #415268;
  opacity: .13;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 88%);
}

.ambient__grain {
  position: absolute;
  inset: -50%;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  transform: rotate(8deg);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
  opacity: .96;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.45));
}

.header-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
}

.header-status__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4dae2;
  box-shadow: 0 0 0 4px rgba(212,218,226,.07);
}

main {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding-block: clamp(18px, 3svh, 40px) 16px;
}

.hero__content {
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}

.wordmark-wrap {
  width: min(360px, 58vw);
  margin: 0 auto clamp(18px, 3svh, 28px);
  animation: rise 1.05s var(--ease) both;
}

.wordmark {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,.16))
    drop-shadow(0 14px 34px rgba(0,0,0,.45));
}

h1 {
  max-width: 960px;
  margin: 0 auto;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 570;
  text-wrap: balance;
  animation: rise 1.05s .12s var(--ease) both;
}

.hero__about {
  max-width: 690px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.7;
  letter-spacing: -.01em;
  text-wrap: pretty;
  animation: rise 1.05s .22s var(--ease) both;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
  animation: rise 1.05s .32s var(--ease) both;
}

.button {
  min-width: 154px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-inline: 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -.01em;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--primary {
  background: linear-gradient(180deg, #f5f7f9 0%, #d9dee5 100%);
  color: #0a0d12;
  box-shadow: inset 0 1px 0 #fff, 0 13px 30px rgba(0,0,0,.26);
}

.button--secondary {
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.045);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary:hover {
  box-shadow: inset 0 1px 0 #fff, 0 16px 36px rgba(0,0,0,.34);
}

.button--secondary:hover {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.07);
}

.button:focus-visible,
.brand:focus-visible {
  outline: 2px solid #eef2f6;
  outline-offset: 4px;
}

.hero__instrument {
  position: relative;
  height: 64px;
  margin-top: clamp(18px, 3svh, 40px);
  color: rgba(235,239,244,.45);
  animation: fade 1.4s .52s ease both;
}

.instrument__rail {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.11) 12%, rgba(255,255,255,.11) 88%, transparent);
}
.instrument__rail--top { top: 20px; }
.instrument__rail--bottom { top: 42px; opacity: .5; }

.instrument__node {
  position: absolute;
  top: 16px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(236,240,244,.43);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 5px rgba(255,255,255,.018);
}
.instrument__node--one { left: 9%; }
.instrument__node--two { left: 50%; transform: translateX(-50%); }
.instrument__node--three { right: 9%; }

.instrument__label {
  position: absolute;
  top: 49px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .19em;
}
.instrument__label--left { left: 9%; transform: translateX(-12%); }
.instrument__label--middle { left: 50%; transform: translateX(-50%); }
.instrument__label--right { right: 9%; transform: translateX(12%); }

.site-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.065);
  color: #778290;
  font-size: 12px;
  letter-spacing: .025em;
}

.site-footer__line { text-align: right; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 32px, 1180px); }

  .site-header { min-height: 76px; }
  .header-status span:last-child { display: none; }

  .hero {
    padding-block: clamp(16px, 3svh, 28px) 16px;
  }

  .wordmark-wrap {
    width: min(300px, 70vw);
    margin-bottom: clamp(14px, 3svh, 22px);
  }

  h1 { font-size: clamp(40px, 12vw, 62px); }

  .hero__about {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero__actions {
    margin-top: 32px;
  }

  .button {
    min-width: min(172px, 46vw);
  }

  .hero__instrument {
    margin-top: clamp(16px, 3svh, 30px);
  }

  .instrument__node--one { left: 4%; }
  .instrument__node--three { right: 4%; }
  .instrument__label--left { left: 4%; }
  .instrument__label--right { right: 4%; }

  .site-footer {
    min-height: 92px;
    padding-block: 22px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
  .site-footer__line { text-align: center; }
}

@media (max-width: 430px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .button { width: 100%; }

  .instrument__label {
    font-size: 8px;
    letter-spacing: .12em;
  }
}

@media (max-width: 640px) {
  .brand__mark {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
