:root {
  --ink: #0b1f33;
  --ink-soft: #3a5168;
  --muted: #6b8299;
  --paper: #f4f8fc;
  --white: #ffffff;
  --line: rgba(11, 31, 51, 0.1);
  --brand: #3d6ef5;
  --brand-deep: #2550c9;
  --aqua: #3ec8f0;
  --foam: #dff6ff;
  --sand: #e8f1f8;
  --danger: #c63b3b;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(15, 45, 80, 0.14);
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(62, 200, 240, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(61, 110, 245, 0.16), transparent 55%),
    linear-gradient(180deg, #eef6fb 0%, var(--paper) 40%, #eaf3f9 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
.btn {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 252, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 148px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 14px 30px rgba(61, 110, 245, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.store-row img {
  height: 48px;
  width: auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  overflow: hidden;
  padding: 2.5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(11, 31, 51, 0.78) 0%, rgba(11, 31, 51, 0.35) 42%, rgba(61, 110, 245, 0.2) 100%),
    url("../images/hero-12.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--paper));
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: end;
  min-height: calc(100vh - 140px);
}

.hero-copy {
  color: white;
  padding-bottom: 3rem;
  max-width: 34rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0 0 1.1rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.hero-brand span {
  display: inline-block;
  background: linear-gradient(90deg, #fff 20%, #9fe8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}

.hero-copy p {
  margin: 0 0 1.6rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34ch;
}

.hero-visual {
  justify-self: end;
  width: min(100%, 280px);
  display: flex;
  justify-content: center;
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Phone device mockup */
.phone-mock {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin-inline: auto;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(160deg, #1a1f2e 0%, #0a0d16 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(8, 16, 36, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phone-mock--md {
  max-width: 250px;
}

.phone-mock--lg {
  max-width: 270px;
}

.phone-mock--float {
  animation: floatPhone 5.5s ease-in-out infinite;
}

.phone-mock--light {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 28px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.phone-mock__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #05070d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.phone-mock img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
  border-radius: 26px;
  background: #0b1224;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.section-lead {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
  font-size: 1.05rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.service {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--foam), #cfe0ff);
  color: var(--brand-deep);
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.service h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.service p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
}

.split-copy p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.steps {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
}

.band {
  margin: 1rem 0;
  padding: 4.5rem 0;
  background:
    linear-gradient(120deg, rgba(61, 110, 245, 0.95), rgba(37, 80, 201, 0.92)),
    url("../images/bg-dotted.png");
  color: white;
}

.band .section-title,
.band .section-lead {
  color: white;
}

.band .section-lead {
  opacity: 0.88;
}

.download-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.download-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  opacity: 0.85;
}

.shot-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: start;
}

.shot {
  margin: 0;
  text-align: center;
  min-width: 0;
}

.shot .phone-mock {
  max-width: 200px;
}

.shot figcaption {
  margin-top: 0.95rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.phone-stack {
  display: flex;
  justify-content: center;
}

/* Legal pages */
.legal-hero {
  padding: 3.5rem 0 2rem;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.legal-meta {
  color: var(--muted);
  margin: 0;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
}

.legal-nav a {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
}

.legal-nav a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.toc strong {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
}

.toc a {
  display: block;
  padding: 0.35rem 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

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

.legal-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}

.legal-panel + .legal-panel {
  margin-top: 2rem;
}

.legal-panel h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 2rem 0 0.7rem;
  scroll-margin-top: 100px;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel h3 {
  font-size: 1.08rem;
  margin: 1.3rem 0 0.45rem;
}

.legal-panel p,
.legal-panel li {
  color: var(--ink-soft);
}

.legal-panel ul {
  padding-left: 1.2rem;
}

.legal-panel li {
  margin: 0.35rem 0;
}

.notice {
  margin: 1rem 0 0;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #fff6e8;
  border: 1px solid #f0d7a8;
  color: #7a5314;
  font-size: 0.95rem;
}

.important {
  background: #fff1f1;
  border-color: #f0bcbc;
  color: #8a2f2f;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: rgba(255, 255, 255, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h4 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--ink-soft);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.4rem 0;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .download-grid,
  .legal-layout,
  .footer-grid,
  .services {
    grid-template-columns: 1fr;
  }

  /* Keep gallery horizontal with scroll instead of stacking */
  .shot-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem 0.2rem 1rem;
    margin-inline: -0.4rem;
  }

  .shot {
    flex: 0 0 180px;
    scroll-snap-align: center;
  }

  .shot .phone-mock {
    max-width: 170px;
  }

  .hero-grid {
    min-height: auto;
    align-items: start;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 220px);
    order: -1;
  }

  .phone-mock--lg {
    max-width: 220px;
  }

  .hero-copy {
    padding-bottom: 1rem;
  }

  .toc {
    position: static;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    padding: 0.65rem 0;
  }
}
