@font-face {
  font-family: "Rubik";
  src: url("../assets/fonts/rubik/Rubik-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../assets/fonts/rubik/Rubik-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../assets/fonts/rubik/Rubik-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../assets/fonts/rubik/Rubik-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-0: #06080c;
  --bg-2: rgba(28, 32, 40, 0.9);
  --line: #23272f;
  --text: #f2f3f5;
  --muted: #9aa1ab;

  --accent: #00abff;
  --accent-soft: rgba(0, 171, 255, 0.14);
  --on-accent: #04121c;

  --accent-2: #ff7a1c;
  --accent-2-soft: rgba(255, 122, 28, 0.14);

  --font-ui: "Rubik", "Segoe UI", system-ui, sans-serif;
  --font-mono: Consolas, "Cascadia Mono", ui-monospace, "Courier New", monospace;

  --shell: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 64px;
  --speed: 0.18s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(60% 45% at 50% 38%, rgba(0, 171, 255, 0.1) 0%, rgba(0, 171, 255, 0) 70%),
    radial-gradient(40% 35% at 22% 62%, rgba(0, 140, 220, 0.07) 0%, rgba(0, 140, 220, 0) 70%),
    radial-gradient(34% 30% at 80% 26%, rgba(0, 171, 255, 0.06) 0%, rgba(0, 171, 255, 0) 70%);
}

#bg-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body > *:not(#bg-field) {
  position: relative;
  z-index: 1;
}

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

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

a {
  color: var(--text);
}

p a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.accent {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.shell-narrow {
  max-width: 820px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--speed);
}

.skip-link:focus-visible {
  top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    180deg,
    rgba(6, 8, 12, 0.95) 0%,
    rgba(6, 8, 12, 0.8) 55%,
    rgba(6, 8, 12, 0) 100%
  );
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

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

.brand-mark {
  color: var(--text);
  flex: none;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  translate: 0 1px;
}

.brand-beta {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  translate: 0 -6px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-radius: 6px;
  transition: color var(--speed), background-color var(--speed);
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-2);
}

.lang-item {
  margin-left: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.lang-btn {
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 2px 6px;
  background: none;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--speed), background-color var(--speed);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn[aria-pressed="true"] {
  color: var(--on-accent);
  background: var(--accent);
  font-weight: 700;
}

.lang-sep {
  color: var(--line);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.menu-bar {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--speed), opacity var(--speed);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 28px 0 0;
  text-align: center;
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
}

.hero-version {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.hero-mock {
  width: min(100%, 900px);
  margin-top: clamp(20px, 3vw, 32px);
  margin-inline: auto;
}

.hero-mock img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-window {
  position: relative;
  width: min(100%, 900px);
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(10, 12, 16, 0.9);
  box-shadow: 0 -8px 60px rgba(0, 171, 255, 0.1), 0 24px 64px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.hero-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 45%, var(--bg-0) 100%);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.window-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.window-glyphs {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 24px);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
}

.hero-mark {
  width: clamp(40px, 6vw, 62px);
  height: auto;
  flex: none;
}

.hero-name {
  letter-spacing: 0.28em;
  margin-right: -0.28em;
}

.hero-beta {
  align-self: flex-start;
  margin-left: calc(-1 * clamp(14px, 2.4vw, 24px) + 8px);
  font-size: clamp(0.6rem, 1.1vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 7px;
  translate: 0 6px;
}

.hero-slogan {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  max-width: 26em;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--muted);
  max-width: 40em;
  margin-bottom: 18px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {

  .hero-brand,
  .hero-slogan,
  .hero-lead,
  .hero-content .btn,
  .hero-version {
    animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .hero-slogan {
    animation-delay: 0.08s;
  }

  .hero-lead {
    animation-delay: 0.14s;
  }

  .hero-content .btn {
    animation-delay: 0.2s;
  }

  .hero-version {
    animation-delay: 0.26s;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

.section {
  padding: 28px 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 4px 0;
}

.card-wide {
  grid-column: span 4;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0 28px;
}

.card-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}


.stat-value {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.stat-unit {
  color: var(--muted);
  font-size: 0.5em;
  font-weight: 700;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color var(--speed), border-color var(--speed), color var(--speed);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 40px;
  font-size: 0.92rem;
  border-radius: 10px;
}

.btn:hover {
  background: #23272d;
  border-color: #33383f;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: #38c0ff;
  border-color: #38c0ff;
}

.btn-ghost {
  background: none;
}

.band {
  position: relative;
  padding: clamp(48px, 6vw, 88px) 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  margin-bottom: 14px;
}

.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--accent);
  flex: none;
}

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 36px;
  max-width: 24em;
}

.band-ghosting {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
}

.band-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.band-ghosting::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 8, 12, 0.96) 0%,
    rgba(6, 8, 12, 0.86) 46%,
    rgba(6, 8, 12, 0.55) 100%
  );
  z-index: 1;
}

.band-inner {
  position: relative;
  z-index: 2;
}

.display-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.display-sub {
  display: block;
  font-size: 0.38em;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--accent-2);
  margin-top: 12px;
}

#ghosting .band-inner {
  text-align: center;
}

.ghosting-facts {
  max-width: 44em;
  margin: 0 auto;
}

.ghosting-facts p {
  color: var(--muted);
  margin-bottom: 14px;
}

.ghosting-facts strong {
  color: var(--text);
}

.ghosting-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.ghosting-more {
  border-color: var(--accent-2);
  color: var(--accent-2);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.ghosting-more:hover,
.ghosting-more:focus-visible {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--bg-0);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.step {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-text {
  font-size: 0.88rem;
  color: var(--muted);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}

.check-list {
  list-style: none;
}

.check-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.check-list h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.check-list h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  flex: none;
}

.check-list p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 40em;
}

.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}

.feature {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.feature h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-soon {
  border-top-style: dashed;
}

.feature-soon h3 {
  color: var(--accent);
}

.changelog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.changelog-head .section-title {
  margin-bottom: 0;
}

.changelog-list {
  list-style: none;
  margin-top: 32px;
  columns: 2;
  column-gap: 56px;
}

.changelog-list li {
  break-inside: avoid;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
}

.changelog-list li::before {
  content: "+";
  position: absolute;
  left: 2px;
  top: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 48px 18px 0;
  font-weight: 700;
  position: relative;
  border-radius: var(--radius);
  transition: color var(--speed);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  transition: rotate var(--speed);
}

.faq-item[open] summary::after {
  rotate: 45deg;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding: 0 0 20px;
  color: var(--muted);
  max-width: 60em;
}

.site-footer {
  padding: clamp(40px, 5vw, 56px) 0 56px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: start;
}

.footer-devs {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: color var(--speed);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-legal {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 62em;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  opacity: 0.72;
}

@media (min-width: 901px) and (max-height: 900px) {
  .hero {
    padding-top: 20px;
  }

  .hero-panel {
    min-height: min(52vh, 400px);
    padding: clamp(28px, 5vh, 56px) clamp(20px, 5vw, 64px);
  }

  .hero-brand {
    font-size: clamp(2.2rem, 5.4vh, 3.6rem);
  }

  .hero-lead {
    font-size: 1rem;
  }
}

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

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

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .card-wide {
    grid-column: span 1;
  }
}

@media (max-width: 1080px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .step {
    border-left: 1px solid var(--line);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 32px;
  }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .changelog-list {
    columns: 1;
  }

  .js .menu-toggle {
    display: flex;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 8, 12, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .js .site-nav[data-open="true"] {
    display: block;
  }

  @media (scripting: enabled) {
    .menu-toggle {
      display: flex;
    }

    .site-nav {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: rgba(6, 8, 12, 0.97);
      border-bottom: 1px solid var(--line);
      display: none;
    }

    .site-nav[data-open="true"] {
      display: block;
    }
  }

  .header-row {
    flex-wrap: wrap;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .nav-link {
    display: block;
    padding: 14px 8px;
    font-size: 0.95rem;
    border-radius: 6px;
  }

  .lang-item {
    margin: 16px 0 0;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
    padding: 8px;
  }

  .lang-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 16px 0 0;
  }

  .hero-panel {
    min-height: 0;
    padding: 40px 20px;
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .band {
    padding: 48px 0;
  }

  .band-ghosting {
    padding: 56px 0;
  }

  .hero-brand {
    gap: 12px;
    margin-bottom: 18px;
  }

  .card {
    padding: 20px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
