/* Super Ocean — landing site styles. No external resources: fonts are
   self-hosted (injected by tool/build_site.py) or come from the system. */

:root {
  --bg: #031526;
  --bg-deep: #020b16;
  --text: #eaf6ff;
  --text-soft: #c3dcee;
  --text-muted: #9dbbd2;
  --cyan: #3ddcff;
  --cyan-soft: #9debff;
  --coral: #ff7a59;
  --sun: #ffd166;
  --ink: #06203a;
  --line: rgba(143, 220, 255, 0.16);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --gallery-pad: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  --font-sans: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

/* Self-hosted Nunito (SIL Open Font License 1.1), generated by tool/build_site.py */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/nunito-400.544b9f0480.woff2") format("woff2");
  unicode-range: U+0020-007E,U+00A0-0132,U+0134-017E,U+0181,U+018A,U+018F,U+0192,U+01A0-01A1,U+01AF-01B0,U+01B3-01B4,U+01C4-01CE,U+01D4,U+01E5-01E7,U+01E9-01EB,U+01EF,U+01FA-021B,U+021F,U+0226-0228,U+022A-022D,U+0230-0233,U+0237,U+0259,U+02B9-02BC,U+02BE-02BF,U+02C6-02CC,U+02D8-02DD,U+0300-0304,U+0306-030C,U+030F,U+0311-0312,U+031B,U+0323-0324,U+0326-0328,U+032E,U+0331,U+0335,U+0337-0338,U+0400-045F,U+0462-0463,U+046A-046B,U+0472-0475,U+048A-04A5,U+04A8-04FF,U+1E08-1E09,U+1E0C-1E0F,U+1E14-1E17,U+1E1C-1E1D,U+1E20-1E21,U+1E24-1E25,U+1E2A-1E2B,U+1E2E-1E2F,U+1E36-1E37,U+1E3A-1E3B,U+1E42-1E49,U+1E4C-1E53,U+1E5A-1E5B,U+1E5E-1E69,U+1E6C-1E6F,U+1E78-1E7B,U+1E80-1E85,U+1E8E-1E8F,U+1E92-1E93,U+1E97,U+1E9E,U+1EA0-1EF9,U+2007-200B,U+2010,U+2012-2015,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2032-2033,U+2039-203A,U+2044,U+2052,U+2070,U+2074-2079,U+2080-2089,U+20A1,U+20A3-20A4,U+20A6-20A7,U+20A9,U+20AB-20AE,U+20B1-20B2,U+20B4-20B5,U+20B8-20BA,U+20BC-20BD,U+2113,U+2116,U+2122,U+2126,U+212E,U+2212,U+2215,U+2248,U+2260,U+2264-2265;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/nunito-700.5d078b1828.woff2") format("woff2");
  unicode-range: U+0020-007E,U+00A0-0132,U+0134-017E,U+0181,U+018A,U+018F,U+0192,U+01A0-01A1,U+01AF-01B0,U+01B3-01B4,U+01C4-01CE,U+01D4,U+01E5-01E7,U+01E9-01EB,U+01EF,U+01FA-021B,U+021F,U+0226-0228,U+022A-022D,U+0230-0233,U+0237,U+0259,U+02B9-02BC,U+02BE-02BF,U+02C6-02CC,U+02D8-02DD,U+0300-0304,U+0306-030C,U+030F,U+0311-0312,U+031B,U+0323-0324,U+0326-0328,U+032E,U+0331,U+0335,U+0337-0338,U+0400-045F,U+0462-0463,U+046A-046B,U+0472-0475,U+048A-04A5,U+04A8-04FF,U+1E08-1E09,U+1E0C-1E0F,U+1E14-1E17,U+1E1C-1E1D,U+1E20-1E21,U+1E24-1E25,U+1E2A-1E2B,U+1E2E-1E2F,U+1E36-1E37,U+1E3A-1E3B,U+1E42-1E49,U+1E4C-1E53,U+1E5A-1E5B,U+1E5E-1E69,U+1E6C-1E6F,U+1E78-1E7B,U+1E80-1E85,U+1E8E-1E8F,U+1E92-1E93,U+1E97,U+1E9E,U+1EA0-1EF9,U+2007-200B,U+2010,U+2012-2015,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2032-2033,U+2039-203A,U+2044,U+2052,U+2070,U+2074-2079,U+2080-2089,U+20A1,U+20A3-20A4,U+20A6-20A7,U+20A9,U+20AB-20AE,U+20B1-20B2,U+20B4-20B5,U+20B8-20BA,U+20BC-20BD,U+2113,U+2116,U+2122,U+2126,U+212E,U+2212,U+2215,U+2248,U+2260,U+2264-2265;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-800.1028182267.woff2") format("woff2");
  unicode-range: U+0020-007E,U+00A0-0132,U+0134-017E,U+0181,U+018A,U+018F,U+0192,U+01A0-01A1,U+01AF-01B0,U+01B3-01B4,U+01C4-01CE,U+01D4,U+01E5-01E7,U+01E9-01EB,U+01EF,U+01FA-021B,U+021F,U+0226-0228,U+022A-022D,U+0230-0233,U+0237,U+0259,U+02B9-02BC,U+02BE-02BF,U+02C6-02CC,U+02D8-02DD,U+0300-0304,U+0306-030C,U+030F,U+0311-0312,U+031B,U+0323-0324,U+0326-0328,U+032E,U+0331,U+0335,U+0337-0338,U+0400-045F,U+0462-0463,U+046A-046B,U+0472-0475,U+048A-04A5,U+04A8-04FF,U+1E08-1E09,U+1E0C-1E0F,U+1E14-1E17,U+1E1C-1E1D,U+1E20-1E21,U+1E24-1E25,U+1E2A-1E2B,U+1E2E-1E2F,U+1E36-1E37,U+1E3A-1E3B,U+1E42-1E49,U+1E4C-1E53,U+1E5A-1E5B,U+1E5E-1E69,U+1E6C-1E6F,U+1E78-1E7B,U+1E80-1E85,U+1E8E-1E8F,U+1E92-1E93,U+1E97,U+1E9E,U+1EA0-1EF9,U+2007-200B,U+2010,U+2012-2015,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2032-2033,U+2039-203A,U+2044,U+2052,U+2070,U+2074-2079,U+2080-2089,U+20A1,U+20A3-20A4,U+20A6-20A7,U+20A9,U+20AB-20AE,U+20B1-20B2,U+20B4-20B5,U+20B8-20BA,U+20BC-20BD,U+2113,U+2116,U+2122,U+2126,U+212E,U+2212,U+2215,U+2248,U+2260,U+2264-2265;
}
:root {
  --font-sans: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep) linear-gradient(180deg, #0a3a60 0, #0a3a60 800px, #06294a 1500px, #041c35 45%, #03132a 75%, #020b16 100%) no-repeat;
  background: var(--bg-deep) linear-gradient(180deg, #0a3a60 0, #0a3a60 max(600px, min(100svh, 1000px)), #06294a calc(max(600px, min(100svh, 1000px)) + 700px), #041c35 45%, #03132a 75%, #020b16 100%) no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img,
svg,
canvas {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cyan-soft);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

h1,
h2,
h3 {
  font-weight: 800;
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: 860px;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
  color: var(--ink);
}

/* ---------- Buttons, chips, badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.35em;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

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

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

.btn-primary {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 12px 28px -12px rgba(255, 209, 102, 0.75), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: #ffdc8a;
  color: var(--ink);
}

.btn-secondary {
  background: rgba(3, 21, 38, 0.4);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover {
  background: rgba(3, 21, 38, 0.6);
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

.btn-lg {
  min-height: 56px;
  padding: 0.8em 1.6em;
  font-size: 1.1rem;
}

.btn-sm {
  min-height: 40px;
  padding: 0.5em 1.1em;
  font-size: 0.95rem;
}

.btn-icon {
  flex: none;
  margin-left: -0.2em;
}

.chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-cyan {
  background: rgba(3, 21, 38, 0.35);
  color: #c4f5ff;
  box-shadow: inset 0 0 0 1.5px rgba(61, 220, 255, 0.55);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.badge-free {
  background: var(--sun);
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-coral {
  background: rgba(255, 122, 89, 0.14);
  color: #ffc2b2;
  box-shadow: inset 0 0 0 1.5px rgba(255, 122, 89, 0.55);
}

.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.85);
}

.icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(3, 21, 38, 0.8);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  transition: opacity 0.25s ease;
}

.js .page-home .site-header:not(.is-scrolled):not(.menu-open)::before {
  opacity: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  flex: none;
  width: 36px;
  height: 36px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: #f2f9ff;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.header-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(143, 220, 255, 0.3);
  border-radius: 12px;
  background: rgba(3, 21, 38, 0.35);
  color: #fff;
  cursor: pointer;
}

.nav-toggle-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  transform-origin: 12px 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-top {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-mid {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bot {
  transform: translateY(-5px) rotate(-45deg);
}

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

  .js .nav-toggle {
    display: inline-grid;
  }

  .header-cta {
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    margin-left: 0;
  }

  .menu-open .nav-list {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.6);
  }

  .menu-open .nav-list a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1.1rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 640px;
  min-height: max(600px, min(100svh, 1000px));
  padding: calc(var(--header-h) + clamp(28px, 6vh, 72px)) 0 clamp(104px, 15vh, 150px);
  overflow: hidden;
  background: linear-gradient(180deg, #11729f 0%, #0c5886 30%, #0a4470 62%, #0a3a60 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-canvas.is-ready {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 21, 38, 0.38) 0, rgba(3, 21, 38, 0) 150px),
    radial-gradient(90% 70% at 18% 45%, rgba(3, 21, 38, 0.26), rgba(3, 21, 38, 0) 70%);
}

.hero-inner {
  position: relative;
}

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

.hero-title {
  margin: 18px 0 0;
  font-size: clamp(3rem, 1.3rem + 7vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 30px rgba(2, 19, 36, 0.35);
}

.hero-tagline {
  max-width: 36ch;
  margin: 20px 0 0;
  color: #e4f5ff;
  font-size: clamp(1.18rem, 1rem + 1vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(2, 19, 36, 0.4);
}

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

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #e2f3fd;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(3, 21, 38, 0.65);
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.22);
}

.hero-scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  border-radius: 14px;
  color: #d6eefc;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateX(-50%);
}

.hero-scroll:hover {
  color: #fff;
}

.hero-scroll svg {
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@media (max-height: 600px) {
  .hero-scroll {
    display: none;
  }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(28px, 4.5vw, 52px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
}

.section-note {
  margin: 24px 0 0;
  color: var(--text-soft);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature h3 {
  margin: 18px 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.feature-icon,
.platform-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: var(--cyan);
  background: radial-gradient(circle at 30% 25%, rgba(61, 220, 255, 0.32), rgba(61, 220, 255, 0.07) 70%);
  box-shadow: inset 0 0 0 1px rgba(61, 220, 255, 0.28);
}

.feature-icon--coral {
  color: var(--coral);
  background: radial-gradient(circle at 30% 25%, rgba(255, 122, 89, 0.32), rgba(255, 122, 89, 0.07) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 89, 0.3);
}

.languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: clamp(20px, 3vw, 28px);
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.languages-title {
  margin: 0;
  font-size: 1.05rem;
}

.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-list li {
  padding: 3px 12px;
  border: 1px solid rgba(61, 220, 255, 0.22);
  border-radius: 999px;
  background: rgba(61, 220, 255, 0.07);
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- Dive sites ---------- */
.site-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site {
  position: relative;
  padding: 18px 20px 18px 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.site--deepest {
  border-color: rgba(255, 122, 89, 0.45);
  background: linear-gradient(160deg, rgba(255, 122, 89, 0.12), rgba(255, 122, 89, 0.02) 60%);
}

.site--deepest .site-meta {
  color: #ffb29e;
}

.site-dot {
  position: absolute;
  top: 21px;
  left: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.zone-sunlit {
  background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd166 60%, #f3a93a);
}

.zone-canyon {
  background: linear-gradient(180deg, #ffd166 0%, #3ddcff 50%, #7c6cff 100%);
}

.zone-polar {
  background: radial-gradient(circle at 35% 30%, #ffffff, #bdeeff 60%, #6fc0e3);
}

.zone-midnight {
  background: radial-gradient(circle at 35% 30%, #c3bbff, #7c6cff 60%, #4b3fbf);
}

.zone-hadal {
  background: radial-gradient(circle at 35% 30%, #ffc0ad, #ff7a59 60%, #d9492a);
}

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.site-name {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

.site-meta {
  margin: 2px 0 6px;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* ---------- Science ---------- */
.section-science::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(50% 40% at 85% 20%, rgba(61, 220, 255, 0.08), transparent 70%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(61, 220, 255, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(61, 220, 255, 0.1), rgba(61, 220, 255, 0.02) 60%);
}

.stat-value {
  order: -1;
  margin: 0;
  color: var(--sun);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin: 10px 0 6px;
  font-size: 1.12rem;
}

.stat-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.formula {
  margin: 20px 0 0;
  padding: 22px 24px;
  border: 1.5px dashed rgba(61, 220, 255, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(2, 11, 22, 0.45);
}

.formula-caption {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.formula-math {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 0.92rem + 0.45vw, 1.18rem);
  line-height: 1.7;
}

.formula-main {
  margin-right: 0.35em;
  color: #fff;
  font-size: 1.3em;
  font-weight: 800;
  white-space: nowrap;
}

.formula-note {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ---------- Gallery ---------- */
.gallery {
  position: relative;
}

.gallery-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 24px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gallery-pad);
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(61, 220, 255, 0.45) transparent;
  scrollbar-width: thin;
}

.gallery-viewport:focus-visible {
  outline-offset: -3px;
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  width: max-content;
  margin: 0;
  padding: 0 var(--gallery-pad);
  list-style: none;
}

.shot {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
}

.shot img {
  display: block;
  max-width: none;
  border: 5px solid #0d2236;
  border-radius: 24px;
  background: #061a2d;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(143, 220, 255, 0.18);
}

.shot--portrait img {
  width: auto;
  height: clamp(320px, 64vh, 580px);
}

.shot--landscape img {
  width: min(86vw, 760px);
  height: auto;
}

.shot--desktop img {
  width: min(88vw, 920px);
  height: auto;
  border-radius: 14px;
}

.gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.gallery-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(143, 220, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.gallery-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.gallery-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-placeholder {
  display: grid;
  justify-items: center;
  gap: 32px;
}

.phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 3vw, 30px);
  width: 100%;
  margin: 0;
  padding: 20px 0 0;
  list-style: none;
}

.phone {
  flex: 0 1 210px;
  min-width: 0;
  aspect-ratio: 9 / 19;
  padding: clamp(4px, 0.8vw, 7px);
  border-radius: clamp(18px, 3vw, 32px);
  background: #0d2236;
  box-shadow: 0 0 0 1px rgba(143, 220, 255, 0.22), 0 40px 60px -30px rgba(0, 0, 0, 0.9);
}

.phone:nth-child(2) {
  flex-basis: 240px;
  transform: translateY(-20px);
}

.phone-screen {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(14px, 2.4vw, 25px);
}

.phone-screen svg {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-note {
  max-width: 52ch;
  margin: 0;
  color: var(--text-soft);
  text-align: center;
}

/* ---------- Download ---------- */
.download-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.download-card h3 {
  margin: 10px 0 0;
  font-size: 1.3rem;
}

.download-card p {
  margin: 0;
  color: var(--text-soft);
}

.download-action {
  margin-top: auto;
  padding-top: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 22px 8px 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.8), inset 0 -3px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.store-badge:hover {
  background: #e9f8ff;
  color: var(--ink);
  transform: translateY(-1px);
}

.store-badge svg {
  flex: none;
  width: 28px;
  height: 28px;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-badge-small {
  font-size: 0.74rem;
  font-weight: 700;
}

.store-badge-big {
  font-size: 1.2rem;
  font-weight: 800;
}

.soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: var(--text-muted);
  font-weight: 700;
}

/* ---------- Pricing ---------- */
.plan {
  display: flex;
  flex-direction: column;
}

.plan-name {
  margin: 0;
  font-size: 1.2rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 2px;
}

.plan-amount {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan-currency {
  color: var(--text-soft);
  font-size: 1.1rem;
  font-weight: 800;
}

.plan-for {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 700;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 6px;
  width: 7px;
  height: 13px;
  border: solid var(--cyan);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.plan-featured {
  border-color: rgba(255, 209, 102, 0.55);
  background: linear-gradient(170deg, rgba(255, 209, 102, 0.15), rgba(255, 209, 102, 0.02) 55%), var(--card-bg);
  box-shadow: 0 30px 70px -40px rgba(255, 209, 102, 0.5);
}

.plan-featured .checklist li::before {
  border-color: var(--sun);
}

.plan-ribbon {
  position: absolute;
  top: -13px;
  left: 24px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plan-note {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.plan-cta {
  align-self: flex-start;
  margin-top: auto;
}

.plan .checklist + .plan-cta {
  margin-top: 24px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.faq[open] {
  border-color: rgba(61, 220, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.faq summary {
  position: relative;
  display: block;
  padding: 18px 58px 18px 22px;
  border-radius: var(--radius);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 26px;
  width: 10px;
  height: 10px;
  border: solid var(--cyan);
  border-width: 0 3px 3px 0;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq-a {
  padding: 0 22px 20px;
  color: var(--text-soft);
}

.faq-a p {
  margin: 0 0 12px;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

/* ---------- Closing CTA ---------- */
.section-cta {
  padding-bottom: clamp(64px, 9vw, 112px);
}

.cta-box {
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(61, 220, 255, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.035);
  text-align: center;
}

.cta-box p {
  margin: 12px auto 0;
  color: var(--text-soft);
  font-size: 1.15rem;
}

.cta-actions,
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  background: rgba(1, 6, 12, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  max-width: 40ch;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.footer-heading {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--gutter);
  left: var(--gutter);
  border-top: 1px solid rgba(143, 220, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  max-width: 72ch;
  font-size: 0.8rem;
}

/* ---------- Privacy / documents ---------- */
.page-doc main,
.page-404 main {
  padding-top: var(--header-h);
}

.doc {
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(64px, 9vw, 104px);
}

.doc h1 {
  margin: 0;
  font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.doc-meta {
  margin: 12px 0 0;
  color: var(--cyan);
  font-weight: 700;
}

.doc h2 {
  margin: 48px 0 12px;
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  line-height: 1.2;
}

.doc p,
.doc li {
  color: var(--text-soft);
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li + li {
  margin-top: 6px;
}

.doc a {
  overflow-wrap: anywhere;
}

.doc strong {
  color: var(--text);
}

.doc-summary {
  margin-top: 36px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(61, 220, 255, 0.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(61, 220, 255, 0.1), rgba(61, 220, 255, 0.02) 60%);
}

.doc-summary h2 {
  margin-top: 0;
}

.doc .checklist {
  padding-left: 0;
}

.doc .checklist li + li {
  margin-top: 0;
}

.doc-kids {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.1);
}

.doc-toc {
  margin-top: 36px;
}

.doc-toc h2 {
  margin-top: 0;
}

.doc-toc ol {
  columns: 2;
  column-gap: 40px;
  margin: 0;
}

.doc-callout {
  padding: 16px 18px;
  border-left: 4px solid var(--coral);
  border-radius: 12px;
  background: rgba(255, 122, 89, 0.09);
}

/* ---------- 404 ---------- */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-top: 40px;
  padding-bottom: 80px;
  text-align: center;
}

.notfound-art {
  width: min(100%, 480px);
  height: auto;
  margin-bottom: 8px;
}

.notfound h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  line-height: 1.1;
}

.notfound .lead {
  margin-inline: auto;
}

/* ---------- Responsive ---------- */
/* two-column range of the 3-card grids: let the last card use the full row */
@media (min-width: 600px) and (max-width: 939.98px) {
  .download-grid > li:last-child:nth-child(odd),
  .pricing-grid > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .doc-toc ol {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .feature,
  .download-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 16px;
  }

  .feature-icon,
  .platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .feature h3,
  .download-card h3 {
    margin: 0;
  }

  .feature p,
  .download-card p,
  .download-action {
    grid-column: 1 / -1;
  }

  .feature p,
  .download-card > p {
    margin-top: 12px;
  }

  .pricing-grid {
    gap: 30px;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .notfound-actions .btn {
    flex: 1 1 100%;
  }

  .phone:nth-child(2) {
    transform: translateY(-12px);
  }
}

@media (max-width: 374px) {
  .brand {
    gap: 8px;
    font-size: 1.02rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .cta-extra {
    display: none;
  }

  .chip {
    padding: 5px 12px;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .card,
  .faq,
  .site {
    border: 1px solid CanvasText;
  }
}
