:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #4b5563;
  --faint: #7c8796;
  --canvas: #f4f7fa;
  --surface: #ffffff;
  --surface-raised: #f8fafc;
  --border: #d5e0ea;
  --navy: #08111f;
  --navy-2: #111b2b;
  --navy-3: #172237;
  --gold: #d7a541;
  --gold-2: #b9822f;
  --blue: #3578d4;
  --green: #2fa66a;
  --red: #e25555;
  --shadow: 0 18px 48px rgba(8, 17, 31, .18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 247, 250, .92);
  border-bottom: 1px solid rgba(213, 224, 234, .8);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-links {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.language-links a {
  min-width: 32px;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.language-links a:hover {
  color: var(--ink);
}

.language-links a[aria-current="page"] {
  color: #08111f;
  background: var(--gold);
}

.brand:focus-visible,
.nav-links a:focus-visible,
.language-links a:focus-visible,
.footer-links a:focus-visible,
.button:focus-visible,
.email-link:focus-visible {
  outline: 3px solid rgba(53, 120, 212, .42);
  outline-offset: 4px;
  border-radius: 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #f7fafc;
  background:
    linear-gradient(135deg, rgba(53, 120, 212, .2) 0%, rgba(53, 120, 212, 0) 38%),
    linear-gradient(145deg, #08111f 0%, #0c1728 52%, #111b2b 100%),
    var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(90deg, rgba(8, 17, 31, .42), rgba(8, 17, 31, 0));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 80px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .74fr);
  gap: 62px;
  align-items: center;
}

.hero-copy {
  width: min(620px, 100%);
}

.eyebrow {
  color: #8fc2ff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  margin-top: 14px;
  font-size: 58px;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 20px 0 0;
  color: #dbe6f3;
  font-size: 19px;
  max-width: 560px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.button.primary {
  background: var(--gold);
  color: #08111f;
}

.button.primary:hover {
  background: #e1b453;
}

.button.secondary {
  border-color: rgba(248, 250, 252, .28);
  color: #f7fafc;
  background: rgba(248, 250, 252, .08);
}

.button.secondary:hover {
  background: rgba(248, 250, 252, .14);
}

.page-actions .button.secondary {
  color: var(--ink);
  border-color: var(--border);
  background: var(--surface);
}

.page-actions .button.secondary:hover {
  background: var(--surface-raised);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  color: #b2bed0;
  font-size: 14px;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(178, 190, 208, .2);
  border-radius: 8px;
  background: rgba(17, 27, 43, .58);
}

.hero-meta li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero-visual {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
}

.hero-phone {
  width: min(344px, 100%);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .42);
}

.hero-caption {
  max-width: 380px;
  margin: 0;
  color: #cbd8e8;
  text-align: center;
  font-size: 15px;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--surface);
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: 38px;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

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

.feature-card,
.support-card,
.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}

.feature-card h3,
.support-card h3,
.policy-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.feature-card p,
.support-card p,
.policy-card p {
  margin: 0;
  color: var(--muted);
}

.signal {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--blue);
  font-weight: 900;
}

.screenshots-section {
  background:
    linear-gradient(180deg, #f4f7fa 0%, #ffffff 100%);
}

.simulator-render {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-device {
  width: min(374px, 100%);
  margin: 0;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .48));
}

.gallery-shell {
  position: relative;
  display: grid;
  gap: 22px;
}

.gallery-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.gallery-intro {
  max-width: 560px;
}

.gallery-intro p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.mode-toggle {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(8, 17, 31, .08);
}

.mode-toggle legend,
.mode-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.mode-toggle label {
  min-width: 86px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.mode-toggle label:hover {
  color: var(--ink);
}

.mode-radio:focus-visible + label {
  outline: 3px solid rgba(53, 120, 212, .42);
  outline-offset: 3px;
}

.gallery-shell:has(#gallery-mode-light:checked) label[for="gallery-mode-light"],
.gallery-shell:has(#gallery-mode-dark:checked) label[for="gallery-mode-dark"] {
  color: #08111f;
  background: var(--gold);
  box-shadow: 0 5px 16px rgba(215, 165, 65, .28);
}

.showcase-stage {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(360px, 1fr);
  align-items: center;
  gap: 34px;
  min-height: 720px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 18%, rgba(53, 120, 212, .14), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #f4f7fa 100%);
  box-shadow: 0 18px 54px rgba(8, 17, 31, .1);
}

.screen-tabs {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  border: 0;
}

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

.screen-tabs label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.screen-tabs label:hover {
  color: var(--ink);
  border-color: rgba(53, 120, 212, .34);
}

.screen-tabs span {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.screen-tabs strong {
  color: var(--ink);
  font-size: 18px;
}

.screen-tabs small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.gallery-shell:has(#screen-dashboard:focus-visible) .screen-tabs label[for="screen-dashboard"],
.gallery-shell:has(#screen-accounts:focus-visible) .screen-tabs label[for="screen-accounts"],
.gallery-shell:has(#screen-transactions:focus-visible) .screen-tabs label[for="screen-transactions"],
.gallery-shell:has(#screen-settings:focus-visible) .screen-tabs label[for="screen-settings"] {
  outline: 3px solid rgba(53, 120, 212, .42);
  outline-offset: 3px;
}

.gallery-shell:has(#screen-dashboard:checked) label[for="screen-dashboard"],
.gallery-shell:has(#screen-accounts:checked) label[for="screen-accounts"],
.gallery-shell:has(#screen-transactions:checked) label[for="screen-transactions"],
.gallery-shell:has(#screen-settings:checked) label[for="screen-settings"] {
  background: #ffffff;
  border-color: rgba(215, 165, 65, .7);
  box-shadow: 0 16px 34px rgba(8, 17, 31, .1);
}

.gallery-shell:has(#screen-dashboard:checked) label[for="screen-dashboard"] span,
.gallery-shell:has(#screen-accounts:checked) label[for="screen-accounts"] span,
.gallery-shell:has(#screen-transactions:checked) label[for="screen-transactions"] span,
.gallery-shell:has(#screen-settings:checked) label[for="screen-settings"] span {
  color: #08111f;
  background: var(--gold);
  border-color: var(--gold);
}

.showcase-preview {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.showcase-progress {
  justify-self: end;
  min-width: 68px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 900;
}

.showcase-progress span {
  display: none;
}

.gallery-shell:has(#screen-dashboard:checked) .progress-dashboard,
.gallery-shell:has(#screen-accounts:checked) .progress-accounts,
.gallery-shell:has(#screen-transactions:checked) .progress-transactions,
.gallery-shell:has(#screen-settings:checked) .progress-settings {
  display: inline;
}

.showcase-device-stack {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 898 / 1800;
  filter: drop-shadow(0 34px 62px rgba(8, 17, 31, .22));
}

.showcase-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.985);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.gallery-shell:has(#screen-dashboard:checked) .slide-dashboard,
.gallery-shell:has(#screen-accounts:checked) .slide-accounts,
.gallery-shell:has(#screen-transactions:checked) .slide-transactions,
.gallery-shell:has(#screen-settings:checked) .slide-settings {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.showcase-slide .shot-light,
.showcase-slide .shot-dark,
.mobile-phone .shot-light,
.mobile-phone .shot-dark {
  transition: opacity .22s ease, visibility .22s ease;
}

.showcase-slide .shot-dark,
.mobile-phone .shot-dark {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
}

.gallery-shell:has(#gallery-mode-dark:checked) .shot-light {
  opacity: 0;
  visibility: hidden;
}

.gallery-shell:has(#gallery-mode-dark:checked) .shot-dark {
  opacity: 1;
  visibility: visible;
}

.mobile-screenshot-track {
  display: none;
}

.mobile-screen-card h3 {
  font-size: 22px;
}

.mobile-screen-card p {
  margin: 0;
  color: var(--muted);
}

.mobile-phone {
  position: relative;
  width: min(220px, 100%);
  margin: 0 auto 16px;
  filter: drop-shadow(0 18px 34px rgba(8, 17, 31, .18));
}

.privacy-band {
  color: #f7fafc;
  background: var(--navy);
}

.privacy-band .section-heading p,
.privacy-band .feature-card p {
  color: #cbd8e8;
}

.privacy-band .feature-card {
  background: var(--navy-2);
  border-color: #2c3b52;
}

.privacy-band .signal {
  background: var(--navy-3);
  border-color: #2c3b52;
  color: var(--gold);
}

.cta-band {
  padding: 70px 0;
  background: #eef4fa;
  border-top: 1px solid var(--border);
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.cta-panel h2 {
  font-size: 34px;
}

.cta-panel p {
  color: var(--muted);
  margin: 12px 0 0;
}

.site-footer {
  padding: 32px 0;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

.legal-page {
  padding: 72px 0 84px;
}

.legal-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-shell h1 {
  color: var(--ink);
  font-size: 42px;
}

.legal-shell .updated {
  color: var(--muted);
  margin: 14px 0 36px;
}

.legal-section {
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-section ul {
  padding-left: 22px;
}

.email-link {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 820px) {
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .nav-menu {
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
  }

  .hero-inner {
    width: min(100% - 28px, 1120px);
    padding: 68px 0 64px;
  }

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

  .hero-visual {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .section {
    padding: 62px 0;
  }

  .container,
  .footer-inner,
  .legal-shell {
    width: min(100% - 28px, 1120px);
  }

  .section-heading,
  .cta-panel {
    grid-template-columns: 1fr;
  }

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

  .gallery-toolbar {
    display: grid;
    align-items: start;
  }

  .mode-toggle {
    justify-self: start;
  }

  .showcase-stage {
    display: none;
  }

  .mobile-screenshot-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 78vw);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 4px 18px;
    margin: 0 -4px;
  }

  .mobile-screenshot-track::-webkit-scrollbar {
    height: 8px;
  }

  .mobile-screenshot-track::-webkit-scrollbar-thumb {
    background: rgba(124, 135, 150, .34);
    border-radius: 999px;
  }

  .mobile-screen-card {
    scroll-snap-align: center;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(8, 17, 31, .08);
  }
}

@media (max-width: 520px) {
  .nav {
    min-height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .brand span {
    display: none;
  }

  .nav-menu {
    margin-left: auto;
    gap: 8px;
  }

  .nav-links {
    gap: 10px;
    font-size: 12px;
  }

  .language-links {
    padding: 2px;
  }

  .language-links a {
    min-width: 28px;
    padding: 4px 5px;
    font-size: 11px;
  }

  .hero-actions,
  .page-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .gallery-intro p {
    font-size: 15px;
  }

  .mode-toggle {
    width: 100%;
  }

  .mode-toggle label {
    min-width: 0;
  }

  .mobile-screenshot-track {
    grid-auto-columns: minmax(252px, calc(100vw - 52px));
  }

  .mobile-phone {
    width: min(214px, 100%);
  }
}

@media (max-width: 380px) {
  .nav-menu {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    gap: 8px;
  }
}

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

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