:root {
  --font-heading:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Avenir Next", "Segoe UI", sans-serif;
  --font-body:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Avenir Next", "Segoe UI", sans-serif;

  --bg: #eef7fb;
  --bg-soft: #f8fcff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --surface-ink: #07131f;
  --ink: #102132;
  --muted: #526479;
  --line: rgba(38, 88, 122, 0.16);
  --line-strong: rgba(38, 88, 122, 0.3);

  --brand-blue: #3b82f6;
  --brand-teal: #22a2c4;
  --brand-emerald: #10b981;

  --shadow-lg: 0 28px 80px rgba(7, 19, 31, 0.12);
  --shadow-md: 0 18px 42px rgba(7, 19, 31, 0.1);
  --shadow-sm: 0 10px 24px rgba(7, 19, 31, 0.08);
  --focus: rgba(59, 130, 246, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #04111d;
    --bg-soft: #091a2a;
    --surface: rgba(9, 26, 42, 0.84);
    --surface-strong: rgba(12, 30, 48, 0.96);
    --surface-ink: #e7f6ff;
    --ink: #e7f6ff;
    --muted: #9eb5c7;
    --line: rgba(102, 157, 204, 0.18);
    --line-strong: rgba(102, 157, 204, 0.32);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.24);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.22);
    --focus: rgba(96, 165, 250, 0.44);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 12%, rgba(16, 185, 129, 0.18), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(59, 130, 246, 0.22), transparent 26%),
    radial-gradient(circle at 78% 84%, rgba(34, 162, 196, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 48%, #e3f0f8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 72%);
  opacity: 0.42;
}

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

a {
  color: var(--brand-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--brand-emerald);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.page-shell {
  overflow-x: hidden;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: rgba(238, 247, 251, 0.72);
  border-bottom: 1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(4, 17, 29, 0.72);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-link img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-links a {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.56);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
}

@media (prefers-color-scheme: dark) {
  .nav-links a {
    background: rgba(9, 26, 42, 0.72);
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    background: rgba(12, 30, 48, 0.96);
  }
}

.header-cta {
  white-space: nowrap;
}

main {
  padding: 1.2rem 0 4rem;
}

.section {
  margin-top: 1.4rem;
}

.section-panel,
.stack-card,
.legal-card,
.band {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.section-panel {
  padding: clamp(1.3rem, 2.8vw, 2rem);
}

.page-hero,
.hero {
  border-radius: 34px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(234, 246, 252, 0.94) 100%);
  border: 1px solid rgba(38, 88, 122, 0.14);
  box-shadow: var(--shadow-lg);
}

@media (prefers-color-scheme: dark) {
  .page-hero,
  .hero {
    background:
      linear-gradient(145deg, rgba(9, 26, 42, 0.92) 0%, rgba(12, 30, 48, 0.96) 100%);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.eyebrow,
.feature-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.feature-kicker {
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
strong {
  font-family: var(--font-heading);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  color: var(--surface-ink);
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

h3 {
  font-size: clamp(1.05rem, 2.4vw, 1.32rem);
}

.lead,
.micro-copy,
.section-intro p,
.feature-card p,
.signal-card p,
.carousel-copy p,
.stack-card p,
.stack-card li,
.legal-card p,
.legal-card li,
.band p,
.site-footer p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
}

.action-row,
.band-actions,
.carousel-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-emerald) 100%);
  box-shadow: 0 16px 28px rgba(59, 130, 246, 0.22);
}

.button-primary:hover {
  color: #ffffff;
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
}

.button-text {
  color: var(--brand-blue);
  background: transparent;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.app-store-badge:hover {
  color: inherit;
  opacity: 0.88;
  transform: translateY(-1px);
}

.app-store-badge img {
  display: block;
  width: 168px;
  height: auto;
}

.header-cta.app-store-badge img {
  width: 140px;
}

@media (prefers-color-scheme: dark) {
  .button-secondary {
    background: rgba(12, 30, 48, 0.9);
  }
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-list li {
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 600;
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  .tag-list li {
    background: rgba(12, 30, 48, 0.9);
  }
}

.hero-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.hero-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  color: var(--surface-ink);
  box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
  .hero-note {
    background: rgba(12, 30, 48, 0.88);
  }
}

.device-frame {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(180deg, #09111a 0%, #18202c 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.device-frame img,
.device-frame video {
  width: 100%;
  height: auto;
}

.device-frame-phone {
  width: 100%;
  max-width: 320px;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(180deg, #141922 0%, #05070b 52%, #171d26 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 0 4px rgba(5, 7, 11, 0.72) inset;
}

.device-frame-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 10px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.device-frame-phone > * {
  position: relative;
  z-index: 1;
}

.device-frame-phone img,
.device-frame-phone video {
  border-radius: 30px;
  background: #000000;
}

.hero-primary {
  justify-self: end;
}

.hero-secondary {
  justify-self: start;
  margin-top: 2.2rem;
}

.section-intro {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.signal-grid,
.feature-grid,
.support-layout,
.legal-grid {
  display: grid;
  gap: 1rem;
}

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

.signal-card,
.feature-card {
  padding: 1.1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.94));
  display: grid;
  gap: 0.55rem;
}

@media (prefers-color-scheme: dark) {
  .signal-card,
  .feature-card {
    background: linear-gradient(180deg, rgba(9, 26, 42, 0.82), rgba(12, 30, 48, 0.96));
  }
}

.signal-label {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(16, 185, 129, 0.18));
  color: var(--brand-blue);
  font-weight: 700;
}

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

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

.availability-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 1.25rem;
  align-items: center;
}

.availability-copy {
  display: grid;
  gap: 0.9rem;
}

.availability-stage {
  display: flex;
  justify-content: center;
}

.availability-device {
  width: min(100%, 520px);
}

.availability-device img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.carousel-shell {
  display: grid;
  gap: 1rem;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 24px;
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-stage {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.carousel-media {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0;
}

.carousel-copy {
  display: grid;
  gap: 0.55rem;
  max-width: 31rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.carousel-button {
  min-width: 84px;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .carousel-button {
    background: rgba(12, 30, 48, 0.9);
  }
}

.carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.carousel-thumb {
  display: grid;
  gap: 0.45rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-thumb:hover {
  transform: translateY(-1px);
}

.carousel-thumb-media {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(7, 19, 31, 0.08);
  aspect-ratio: 1 / 1;
}

.carousel-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-thumb-label {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--surface-ink);
}

.carousel-thumb.is-active {
  border-color: rgba(59, 130, 246, 0.38);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

@media (prefers-color-scheme: dark) {
  .carousel-thumb {
    background: rgba(12, 30, 48, 0.9);
  }
}

.page-hero-compact {
  display: grid;
  gap: 0.85rem;
  max-width: 840px;
}

.support-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stack-card,
.legal-card {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.stack-card ul,
.legal-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

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

.faq-grid {
  display: grid;
  gap: 0.8rem;
}

.faq-grid details {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

@media (prefers-color-scheme: dark) {
  .faq-grid details {
    background: rgba(12, 30, 48, 0.88);
  }
}

.faq-grid summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--surface-ink);
}

.faq-grid details p {
  margin-top: 0.7rem;
}

.band {
  padding: clamp(1.3rem, 2.8vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.14)),
    var(--surface);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

@media (prefers-color-scheme: dark) {
  .site-footer {
    background: rgba(9, 26, 42, 0.54);
  }
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0 2rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

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

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

  .signal-grid,
  .availability-layout,
  .support-layout,
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner,
  .band {
    flex-direction: column;
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-stage,
  .signal-grid,
  .feature-grid,
  .feature-grid-compact,
  .availability-layout,
  .support-layout,
  .legal-grid,
  .carousel-stage {
    grid-template-columns: 1fr;
  }

  .hero-primary,
  .hero-secondary {
    justify-self: center;
    margin-top: 0;
  }

  .footer-links {
    justify-items: start;
  }

  .carousel-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1rem, 1120px);
  }

  .carousel-controls {
    align-items: flex-start;
  }

  .carousel-button {
    min-width: 72px;
  }

  .header-cta.app-store-badge img {
    width: 132px;
  }

  .carousel-thumbs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    scroll-snap-type: x proximity;
  }

  .carousel-thumb {
    min-width: 96px;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
