/* ---------- Tokens ---------- */
:root {
  --ink: #0F2333;
  --navy: #0B131E;
  --navy-soft: #142230;
  --primary: #1D6FA0;
  --primary-dark: #15537A;
  --teal: #22B8D6;
  --surface: #F2F6F7;
  --surface-alt: #D4DCDE;
  --signal: #E8A33D;
  --white: #FFFFFF;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container-width: 1120px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

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

/* ---------- Focus & a11y ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.card-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.section-heading {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  max-width: 32ch;
  margin-bottom: 2.5rem;
}
.prose {
  max-width: 65ch;
  display: grid;
  gap: 1.1rem;
}
.prose p {
  color: #3B5266;
  font-size: 1.02rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark {
  border-radius: 8px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.3rem 0.15rem;
}
.site-nav a:hover {
  color: var(--teal);
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
}
.lang-switch a {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.2rem;
}
.lang-switch a:hover {
  color: var(--teal);
}
.lang-switch .lang-current {
  color: var(--white);
}
.lang-switch .lang-sep {
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding-block: 3.5rem 4rem;
  text-align: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hero-logo {
  width: min(360px, 100%);
  height: auto;
  border-radius: var(--radius-lg);
}
.hero-title {
  font-weight: 700;
  font-size: clamp(1.8rem, 1.4rem + 2vw, 2.75rem);
  max-width: 22ch;
  color: var(--white);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

/* ---------- Store badge ---------- */
.store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.15s ease;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { height: auto; }
.store-badge-hero img { width: 207px; }
.store-badge-footer img { width: 155px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-primary:hover {
  background: #3fcbe6;
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ---------- Screens gallery ---------- */
.screens {
  background: var(--navy);
  padding-block: 3rem 3.5rem;
}
.screens-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin: 0 -1.25rem;
  padding-inline: 1.25rem;
  scroll-snap-type: x proximity;
  list-style: none;
}
.screens-strip li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
/* Auto margins center the strip when it fits, without clipping it when it scrolls */
.screens-strip li:first-child { margin-left: auto; }
.screens-strip li:last-child { margin-right: auto; }
.screens-thumb {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-md);
  overflow: hidden;
  line-height: 0;
  transition: transform 0.15s ease;
}
.screens-thumb:hover,
.screens-thumb:focus-visible {
  transform: translateY(-3px);
}
.screens-thumb img {
  width: 150px;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 640px) {
  .screens-thumb img { width: 190px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 30, 0.92);
}
.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-inline: 3.5rem;
}
.lightbox-image {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
@media (min-width: 640px) {
  .lightbox-prev { left: 1.5rem; }
  .lightbox-next { right: 1.5rem; }
}

/* ---------- About ---------- */
.about {
  background: var(--surface);
  padding-block: 4rem;
}
.about-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.promo-video-player {
  display: block;
  width: 100%;
  max-width: 420px;
  justify-self: center;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--navy);
  box-shadow: 0 18px 40px rgba(15, 35, 51, 0.18);
}
@media (min-width: 960px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 3.5rem;
  }
}

/* ---------- Steps ---------- */
.steps {
  background: var(--surface-alt);
  padding-block: 4rem;
}
.steps-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(15, 35, 51, 0.06);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step-card p {
  color: #3B5266;
  font-size: 0.95rem;
}
.step-card strong {
  color: var(--ink);
}

/* ---------- Features ---------- */
.features {
  background: var(--surface);
  padding-block: 4rem;
}
.features-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 35, 51, 0.06);
  border: 1px solid rgba(15, 35, 51, 0.06);
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  color: var(--white);
  margin-bottom: 1rem;
}
.icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: #3B5266;
  font-size: 0.95rem;
}
.audience-card h3 {
  font-size: 1.05rem;
}

/* ---------- Audience ---------- */
.audience {
  background: var(--surface-alt);
  padding-block: 4rem;
}
.audience-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .audience-grid { grid-template-columns: repeat(4, 1fr); }
}
.audience-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(15, 35, 51, 0.06);
}

/* ---------- Founder note ---------- */
.founder-note {
  background: var(--surface);
  padding-block: 4rem;
}
.founder-quote {
  border-left: 3px solid var(--teal);
  padding-left: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 3rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.brand-footer .brand-name { color: var(--white); }
.footer-contact a {
  color: var(--teal);
  font-weight: 600;
}
.footer-contact a:hover { text-decoration: underline; }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 600;
}
.footer-social svg { color: #1877f2; background: var(--white); border-radius: 50%; }
.footer-social:hover span { text-decoration: underline; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.footer-legal a:hover { color: var(--teal); }
.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

/* ---------- Legal pages ---------- */
.legal-page {
  background: var(--surface);
}
.legal-inner {
  padding-block: 4rem;
  max-width: 68ch;
}
.legal-inner h1 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  margin-bottom: 0.6rem;
}
.legal-updated {
  color: #5C7387;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}
.legal-inner h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-inner h2:first-of-type {
  margin-top: 0;
}
.legal-inner h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-inner p {
  color: #3B5266;
  margin-bottom: 1.1rem;
}
.legal-inner ul {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  color: #3B5266;
}
.legal-inner strong {
  color: var(--ink);
}
.legal-inner a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-inner a:hover {
  color: var(--primary-dark);
}
.legal-back {
  margin-top: 3rem;
}
.legal-inner .btn-primary {
  background: var(--primary);
  color: var(--white);
}
.legal-inner .btn-primary:hover { background: var(--primary-dark); }
