:root {
  --bg: #0b1018;
  --bg-soft: #101726;
  --surface: #151c2b;
  --surface-2: #1b2436;
  --line: rgba(232, 238, 247, 0.1);
  --text: #eef2f8;
  --muted: #9aa6bb;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --header-h: 4.25rem;
  --max: 72rem;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: #08201c;
  border-radius: 0.6rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(11, 16, 24, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.nav-desktop,
.footer-nav,
.header-actions,
.btn-row,
.lang-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
}

.nav-desktop a,
.footer-nav a,
.nav-mobile a {
  color: var(--muted);
  padding: 0.35rem 0.15rem;
  white-space: nowrap;
}

.nav-desktop a[aria-current="page"],
.nav-mobile a[aria-current="page"],
.nav-desktop a:hover,
.footer-nav a:hover,
.nav-mobile a:hover {
  color: var(--text);
}

.header-actions {
  justify-content: flex-end;
}

.lang-switch {
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  gap: 0.15rem;
}

.lang-btn {
  min-width: 2.4rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
}

.lang-btn[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--text);
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -5px;
}

.menu-bars::after {
  top: 5px;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  background: #0e1520;
  padding: 0.75rem 1rem 1.1rem;
}

.nav-mobile {
  display: grid;
  gap: 0.15rem;
}

.nav-mobile a {
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

main {
  min-height: calc(100vh - 12rem);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
}

.hero::before {
  width: min(28rem, 80vw);
  height: min(28rem, 80vw);
  right: -6rem;
  top: -7rem;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.22), transparent 68%);
}

.hero::after {
  width: min(22rem, 70vw);
  height: min(22rem, 70vw);
  left: -5rem;
  bottom: -8rem;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.16), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(12rem, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.8rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.page-head h1,
.product-head h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.3rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.hero-title {
  display: grid;
  gap: 0.15rem;
}

.hero-title span {
  display: block;
  font-size: clamp(1.7rem, 5vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead,
.page-head p,
.product-head .lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-visual {
  min-width: 0;
  aspect-ratio: 1;
  max-width: 22rem;
  margin-left: auto;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(94, 234, 212, 0.12), transparent 42%),
    linear-gradient(340deg, rgba(129, 140, 248, 0.16), var(--surface));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  position: relative;
}

.hero-visual span {
  font-size: clamp(5rem, 14vw, 8rem);
  font-weight: 750;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section,
.page-head,
.product-head {
  padding: clamp(2.8rem, 6vw, 5rem) 0;
}

.page-head,
.product-head {
  padding-bottom: 0.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr));
  gap: 1rem;
}

.card,
.feature-card,
.legal {
  min-width: 0;
  background: linear-gradient(180deg, var(--surface), #121927);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, 0.28);
}

.app-card-top {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.app-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.95rem;
  flex-shrink: 0;
}

.app-icon-fallback {
  background: var(--accent-soft);
}

.app-card-meta {
  min-width: 0;
  flex: 1;
}

.app-card-meta h3,
.feature-card h3,
.legal h2 {
  margin: 0 0 0.15rem;
  overflow-wrap: anywhere;
}

.app-tagline {
  color: var(--text);
  font-weight: 650;
}

.muted,
.empty,
.app-card p,
.feature-card p,
.legal p,
.legal li {
  color: var(--muted);
  overflow-wrap: break-word;
}

.empty {
  padding: 1.4rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.status,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8rem;
  white-space: nowrap;
}

.chip {
  cursor: pointer;
}

.chip.is-active {
  background: var(--accent-soft);
  border-color: rgba(94, 234, 212, 0.35);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1rem;
}

.btn,
.btn-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  text-align: center;
}

.btn-row {
  margin-top: 1rem;
  gap: 0.6rem;
}

.btn-primary {
  background: linear-gradient(135deg, #5eead4, #67e8f9);
  color: #08201c;
  font-weight: 700;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn-disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.btn-compact {
  min-height: 2.3rem;
  padding-inline: 0.85rem;
}

.about-band {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.feature-card h3 {
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}

.shots img {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: #090d13;
}

.footer-copy {
  padding-bottom: 1.4rem;
  color: var(--muted);
}

.legal + .legal {
  margin-top: 1rem;
}

.legal h2 {
  color: var(--text);
  font-size: 1.15rem;
}

.legal ul {
  padding-left: 1.1rem;
}

.legal code {
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.noscript {
  margin: 1rem auto;
  width: min(100% - 2rem, var(--max));
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

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

@media (min-width: 861px) {
  .mobile-panel {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .nav-desktop,
  .header-github {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

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

  .hero-visual {
    margin: 0;
    max-width: 16rem;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 1.4rem, var(--max));
  }

  .brand span {
    letter-spacing: 0.08em;
  }

  .btn {
    min-height: 2.85rem;
  }
}

@media (max-width: 360px) {
  .brand span {
    font-size: 0.95rem;
  }

  .lang-btn {
    min-width: 2.1rem;
    padding-inline: 0.4rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
