:root {
  color-scheme: dark;
  --bg: #151515;
  --bg-soft: #1b1d1f;
  --panel: #222427;
  --panel-strong: #2b2d30;
  --text: #f4f1ea;
  --muted: #b7b2a8;
  --line: rgba(255, 255, 255, 0.14);
  --amber: #ffcf3d;
  --cyan: #60d7e8;
  --rose: #f05d8f;
  --green: #88d18a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 320px),
    radial-gradient(circle at 22% 14%, rgba(96, 215, 232, 0.14), transparent 26rem),
    #151515;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, black, transparent 64%);
}

a {
  color: inherit;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(21, 21, 21, 0.84);
  backdrop-filter: blur(18px);
}

.brand-link,
.nav-links,
.language-switcher,
.meta-pills,
.hero-actions,
.card-actions {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--amber);
  color: #141414;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(255, 207, 61, 0.22);
}

.nav-links {
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.language-switcher {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.language-switcher {
  gap: 8px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.language-switcher select {
  max-width: 148px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.hero,
.band,
.page-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
  padding: clamp(46px, 8vw, 86px) 0 clamp(38px, 7vw, 74px);
}

.hub-hero {
  min-height: min(680px, calc(100svh - 72px));
}

.app-hero {
  grid-template-columns: minmax(310px, 0.72fr) minmax(520px, 1.28fr);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 0.98;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
}

h3 {
  margin: 16px 0 10px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

p {
  line-height: 1.72;
}

.lead {
  max-width: 720px;
  margin: 24px 0 12px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

.hero-copy > p:not(.eyebrow, .lead, .small-note) {
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions,
.card-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--amber), var(--rose) 52%, var(--cyan));
  color: #111;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.small-note {
  color: var(--muted);
  font-size: 13px;
}

.meta-pills {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.hero-visual {
  min-width: 0;
}

.phone-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(166px, 1fr));
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  width: 100%;
  max-width: 100%;
}

.phone-row.compact {
  transform: rotate(-2deg);
}

.phone-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 393 / 852;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: #050505;
  box-shadow: var(--shadow);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 35%;
  height: 22px;
  border-radius: 999px;
  background: #020202;
  transform: translateX(-50%);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-frame figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.66);
  color: var(--text);
  font-size: 12px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.shot-1 {
  transform: translateY(22px);
}

.shot-2 {
  transform: translateY(-18px);
}

.shot-3 {
  transform: translateY(38px);
}

.band {
  padding: clamp(44px, 8vw, 82px) 0;
  border-top: 1px solid var(--line);
}

.directory {
  padding-top: clamp(34px, 5vw, 58px);
}

.directory .section-heading {
  display: block;
  margin-bottom: 22px;
}

.directory .section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.app-card-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  height: clamp(150px, 15vw, 188px);
  overflow: hidden;
  min-height: 0;
  background: #050505;
}

.app-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.app-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-self: stretch;
  padding: 18px;
}

.app-card-body .meta-pills {
  margin-top: 0;
}

.app-card-body h3 {
  margin: 14px 0 8px;
  font-size: clamp(22px, 2vw, 26px);
}

.app-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.app-card .card-actions {
  margin-top: auto;
  padding-top: 18px;
}

.app-card .button {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 0 14px;
  font-size: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 122px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.feature-card span {
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
}

.feature-card p {
  margin: 0;
  color: var(--text);
}

.faq-list,
.policy-list {
  display: grid;
  gap: 12px;
}

details,
.policy-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
  line-height: 1.4;
}

details p,
.policy-section p {
  margin: 12px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: clamp(48px, 9vw, 96px) 0 clamp(28px, 5vw, 48px);
}

.page-hero.slim h1 {
  max-width: 920px;
  font-size: clamp(40px, 7vw, 76px);
}

.policy-list {
  max-width: 920px;
}

.policy-section {
  padding: 22px;
}

.policy-section h2 {
  font-size: clamp(22px, 3vw, 34px);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--text);
}

@media (max-width: 960px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

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

  .hub-hero {
    min-height: auto;
  }

  .phone-row {
    display: flex;
    overflow-x: auto;
    padding: 12px 6px 28px;
    scroll-snap-type: x mandatory;
  }

  .phone-frame {
    flex: 0 0 clamp(210px, 31vw, 280px);
    scroll-snap-align: center;
  }

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

@media (max-width: 640px) {
  .site-nav {
    min-height: 66px;
    gap: 12px;
    width: 100vw;
    max-width: 100vw;
  }

  .brand-link span:last-child,
  .language-switcher span {
    display: none;
  }

  .language-switcher {
    position: fixed;
    top: 13px;
    right: 14px;
    left: 72px;
    z-index: 40;
    width: auto;
    padding: 0 8px;
  }

  .language-switcher select {
    width: 100%;
    max-width: none;
  }

  .hero,
  .band,
  .page-hero {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 48px);
  }

  .app-card-media {
    height: 148px;
  }

  .app-card-body {
    padding: 16px;
  }

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

  .section-heading {
    display: block;
  }

  .phone-row {
    padding-left: 0;
    padding-right: 0;
  }

  .phone-frame {
    flex-basis: min(76vw, 280px);
  }

  .hub-hero .phone-row {
    gap: 10px;
    padding-bottom: 10px;
  }

  .hub-hero .phone-frame {
    flex-basis: 116px;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  }

  .hub-hero .phone-frame::before {
    top: 6px;
    height: 10px;
  }

  .hub-hero .phone-frame figcaption {
    display: none;
  }
}
