:root {
  color-scheme: dark;
  --color-canvas: #050607;
  --color-surface: #0e1117;
  --color-surface-raised: #131722;
  --color-text-primary: #f5f7fb;
  --color-text-secondary: #c4c9d4;
  --color-text-muted: #828998;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-strong: rgba(255, 255, 255, 0.17);
  --color-accent: #8aa4ff;
  --color-accent-hover: #9bb2ff;
  --color-accent-soft: rgba(138, 164, 255, 0.1);
  --color-success: #63df9d;
  --radius-small: 8px;
  --radius-control: 10px;
  --radius-panel: 12px;
  --radius-marketing: 16px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --font-caption: 11px;
  --font-small: 12px;
  --font-label: 13px;
  --font-body: 16px;
  --font-lead: 18px;
  --font-card-title: 21px;
  --motion-fast: 160ms;
  --motion-standard: 200ms;
  --shadow-window: 0 24px 64px rgba(0, 0, 0, 0.38);
  --shadow-raised: 0 16px 40px rgba(0, 0, 0, 0.24);
  --subtitle-preview-height: 136px;
  --subtitle-preview-height-mobile: 112px;
  --shell: min(1120px, calc(100vw - 48px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-canvas);
  color: var(--color-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control);
  background: var(--color-text-primary);
  color: var(--color-canvas);
  font-size: var(--font-label);
  font-weight: 650;
  transform: translateY(-180%);
  transition: transform var(--motion-fast) ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: rgba(5, 6, 7, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-body);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: #000;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
}

.primary-nav a {
  color: var(--color-text-secondary);
  font-size: var(--font-label);
  font-weight: 550;
  transition: color var(--motion-fast) ease;
}

.primary-nav a:hover {
  color: var(--color-text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.language-control {
  display: flex;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
}

.language-option {
  display: flex;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  padding: 5px var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-small);
  font-weight: 650;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.language-option[aria-current="page"],
a.language-option:hover {
  background: var(--color-surface-raised);
  color: var(--color-text-primary);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

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

.button-small {
  min-height: 36px;
  padding-inline: var(--space-4);
  font-size: var(--font-label);
}

.button-primary {
  background: var(--color-accent);
  color: var(--color-canvas);
}

.button-primary:hover {
  background: var(--color-accent-hover);
}

.button-secondary {
  border-color: var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--color-surface-raised);
}

.hero {
  display: grid;
  min-height: 660px;
  align-items: center;
  overflow: clip;
  grid-template-columns: minmax(0, 0.94fr) minmax(480px, 1.06fr);
  gap: var(--space-16);
  padding-block: 80px 96px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  color: var(--color-accent);
  font-size: var(--font-small);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 680px;
  margin-bottom: var(--space-6);
  font-size: clamp(48px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

h2 {
  margin-bottom: var(--space-4);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h3 {
  margin-bottom: var(--space-2);
  font-size: var(--font-card-title);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hero-body {
  max-width: 580px;
  margin-bottom: var(--space-8);
  color: var(--color-text-secondary);
  font-size: var(--font-lead);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: var(--space-6) 0 0;
  padding: 0;
  color: var(--color-text-muted);
  font-size: var(--font-small);
  font-weight: 550;
  list-style: none;
}

.hero-meta li {
  position: relative;
}

.hero-meta li + li::before {
  position: absolute;
  top: 50%;
  left: -14px;
  width: 3px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-text-muted);
  content: "";
}

.hero-visual {
  position: relative;
}

.app-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-panel);
  background: var(--color-canvas);
  box-shadow: var(--shadow-window);
}

.subtitle-stage {
  display: flex;
  height: var(--subtitle-preview-height);
  align-items: flex-end;
  padding: var(--space-6);
  background: #000;
}

.subtitle-stage p {
  display: -webkit-box;
  max-width: 520px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-control-bar {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: var(--space-4);
  padding-inline: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.92);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-small);
  font-weight: 500;
}

.source-control {
  display: flex;
  min-width: 0;
  max-width: 220px;
  align-items: center;
  gap: var(--space-2);
}

.source-control > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-icon {
  position: relative;
  width: 15px;
  height: 11px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.source-icon::after {
  position: absolute;
  bottom: -4px;
  left: 4px;
  width: 7px;
  height: 1px;
  background: currentColor;
  content: "";
}

.app-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.app-status {
  max-width: 150px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-toggle {
  display: flex;
  width: 34px;
  height: 20px;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.session-toggle span {
  width: 14px;
  height: 14px;
  margin-left: auto;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tool-control {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: var(--radius-small);
  color: rgba(255, 255, 255, 0.8);
}

.captions-control {
  border: 1px solid currentColor;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.settings-control {
  font-size: 17px;
  line-height: 1;
}

.section {
  padding-block: 96px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: var(--space-12);
}

.section-heading > p:last-child {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-lead);
}

.section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading-centered .eyebrow {
  justify-content: center;
}

.section-heading-centered > p:last-child {
  margin-inline: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.feature-card {
  position: relative;
  min-height: 232px;
  overflow: hidden;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
  transition: border-color var(--motion-standard) ease, background var(--motion-standard) ease;
}

.feature-card:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-raised);
}

.feature-card p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--color-text-secondary);
}

.feature-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-8);
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-surface-raised);
  color: var(--color-text-primary);
  font-size: var(--font-label);
  font-weight: 650;
}

.feature-card-wide {
  min-height: 280px;
}

.feature-card-accent {
  border-color: var(--color-border-strong);
}

.app-picker-preview,
.keychain-preview {
  position: absolute;
  right: var(--space-6);
  bottom: var(--space-6);
  display: flex;
  min-width: 176px;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-canvas);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  font-weight: 550;
}

.mini-app-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--space-1);
  background: var(--color-accent);
}

.picker-check {
  margin-left: auto;
  color: var(--color-success);
}

.keychain-preview {
  min-width: 192px;
}

.keyhole {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-accent);
  border-radius: 6px;
}

.keyhole::before {
  position: absolute;
  top: -8px;
  left: 3px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--color-accent);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
}

.section-steps {
  border-block: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.015);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.step-card {
  min-height: 224px;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
}

.step-number {
  display: inline-block;
  margin-bottom: var(--space-12);
  color: var(--color-accent);
  font-size: var(--font-small);
  font-weight: 650;
}

.step-card p {
  margin-bottom: 0;
  color: var(--color-text-secondary);
}

.access-panel {
  display: grid;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-marketing);
  background: var(--color-surface);
  box-shadow: var(--shadow-raised);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(48px, 7vw, 80px);
}

.access-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin-bottom: var(--space-8);
  color: var(--color-text-secondary);
  font-size: 17px;
}

.access-options {
  display: grid;
  gap: var(--space-3);
}

.access-option {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-canvas);
}

.access-option-highlighted {
  border-color: rgba(138, 164, 255, 0.3);
  background: var(--color-accent-soft);
}

.access-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-accent);
  font-size: var(--font-caption);
  font-weight: 650;
}

.access-option h3 {
  margin-bottom: var(--space-1);
  font-size: 24px;
}

.access-option p {
  margin-bottom: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.access-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-caption);
  text-align: center;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(480px, 1.28fr);
  gap: clamp(48px, 8vw, 96px);
}

.faq-section .section-heading {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

details {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}

details:hover,
details[open] {
  border-color: var(--color-border-strong);
  background: var(--color-surface-raised);
}

summary {
  position: relative;
  padding: 18px 48px 18px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before,
summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 12px;
  height: 1px;
  background: var(--color-text-muted);
  content: "";
  transition: transform var(--motion-fast) ease;
}

summary::after {
  transform: rotate(90deg);
}

details[open] summary::after {
  transform: rotate(0);
}

details p {
  max-width: 700px;
  margin: 0;
  padding: 0 44px 20px 20px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.document-main {
  padding-block: var(--space-16);
  line-height: 1.75;
}

.document-shell {
  max-width: 760px;
}

.document-header {
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border);
}

.document-intro {
  margin-bottom: var(--space-6);
  color: var(--color-text-secondary);
  font-size: var(--font-lead);
}

.effective-date {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: var(--font-small);
}

.document-sections {
  line-height: 1.75;
}

.document-section {
  margin-top: 48px;
}

.document-section p,
.document-section li {
  color: var(--color-text-secondary);
}

.document-section p:last-child,
.document-section ul:last-child {
  margin-bottom: 0;
}

.provider-main {
  padding-block: var(--space-16);
}

.provider-summary {
  margin-top: var(--space-8);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
}

.provider-summary dl {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.provider-resources {
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: #030405;
}

.footer-main,
.footer-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  padding-block: var(--space-12);
}

.footer-brand {
  margin-bottom: var(--space-4);
}

.footer-main p,
.footer-grid p {
  max-width: 440px;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: var(--font-label);
  font-weight: 550;
  transition: color var(--motion-fast) ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: 20px 28px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--font-caption);
}

@media (max-width: 980px) {
  .primary-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 72px 88px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(680px, 100%);
    margin-inline: auto;
  }

  .access-panel,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .faq-section {
    gap: var(--space-12);
  }
}

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

  html {
    scroll-padding-top: 72px;
  }

  .header-inner {
    min-height: 62px;
    gap: var(--space-3);
  }

  .language-option {
    min-width: 38px;
    padding-inline: var(--space-2);
  }

  .header-download {
    display: none;
  }

  .hero {
    gap: var(--space-12);
    padding-block: var(--space-16) 80px;
  }

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

  h2 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .hero-body {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    display: grid;
    gap: 5px;
  }

  .hero-meta li + li::before {
    display: none;
  }

  .subtitle-stage {
    height: var(--subtitle-preview-height-mobile);
    padding: var(--space-4);
  }

  .subtitle-stage p {
    font-size: clamp(20px, 6.5vw, 24px);
  }

  .section {
    padding-block: 72px;
  }

  .section-heading {
    margin-bottom: var(--space-8);
  }

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

  .feature-card,
  .feature-card-wide {
    min-height: 240px;
  }

  .steps-grid {
    gap: var(--space-2);
  }

  .step-card {
    min-height: 200px;
  }

  .step-number {
    margin-bottom: var(--space-8);
  }

  .provider-summary dl {
    grid-template-columns: 1fr;
  }

  .access-panel {
    padding: var(--space-6) 20px;
    gap: var(--space-8);
  }

  .access-copy .button,
  .footer-main .button,
  .footer-grid .button {
    width: 100%;
  }

  .footer-main,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 440px) {
  .language-option {
    min-width: 34px;
    padding-inline: 6px;
    font-size: var(--font-caption);
  }

  .app-control-bar {
    gap: var(--space-2);
    padding-inline: var(--space-3);
  }

  .subtitle-stage p {
    font-size: var(--font-lead);
  }

  .app-status {
    display: none;
  }

  .source-control {
    max-width: 132px;
  }

  .feature-card,
  .feature-card-wide {
    min-height: 0;
  }

  .app-picker-preview,
  .keychain-preview {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: var(--space-6);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
