/* ==========================================================================
   Tsop Tech — one-page site
   Brand: Quicksand · primary #249BE5 · accent #0277BD · navy #192266
          muted #ABABC7 · indigo #110345 → abyss #0A0204 · orange #D47600
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --primary: #249BE5;
  --primary-hi: #4FB4F2;
  --accent: #0277BD;
  --navy: #192266;
  --indigo: #110345;
  --abyss: #0A0204;
  --text: #ABABC7;
  --white: #FFFFFF;
  --orange: #D47600;
  --orange-hi: #F08A0A;
  --cyan: #5FDCFF;
  --purple: #8A6CFF;

  --line: rgba(171, 171, 199, .16);
  --line-strong: rgba(171, 171, 199, .28);
  --card: rgba(255, 255, 255, .035);
  --card-hi: rgba(255, 255, 255, .06);
  --shadow: 6px 6px 10px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);

  --radius: 3px;
  --radius-card: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  /* The dive: lighter indigo at the surface, near-black in the abyss */
  background-color: var(--abyss);
  background-image: linear-gradient(180deg,
    #1a2a82 0%,
    #192266 7%,
    #140b55 22%,
    #110345 42%,
    #0c0230 68%,
    #0A0204 100%);
  background-repeat: no-repeat;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary-hi); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }
h1, h2, h3, h4 { color: var(--white); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: var(--white); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only, .sr-defs { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-defs { width: 0; height: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--primary); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 16px; color: var(--white); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Buttons (2px outline, 3px corners) ---------- */
.btn {
  --b: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border: 2px solid var(--b);
  border-radius: var(--radius);
  background: var(--b);
  color: var(--white);
  font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.2; text-align: center;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
  box-shadow: var(--shadow);
}
.btn:hover { background: transparent; color: var(--white); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--outline { background: transparent; box-shadow: none; }
.btn--outline:hover { background: var(--b); }
.btn--ghost { --b: var(--line-strong); background: transparent; box-shadow: none; }
.btn--ghost:hover { --b: var(--white); background: transparent; }
.btn--pro { --b: var(--orange); }
.btn--pro:hover { color: var(--orange-hi); }
.btn--sm { padding: .55rem 1rem; font-size: .78rem; box-shadow: none; }
.btn--block { width: 100%; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #1a0f63 0%, var(--indigo) 45%, var(--abyss) 100%);
  transition: opacity .8s var(--ease), visibility .8s, clip-path 1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader__glow {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 172, 216, .18), transparent 60%);
  animation: glow 3s ease-in-out infinite;
}
.loader__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 0 24px; }
.loader__logo { width: min(340px, 70vw); height: auto; overflow: visible; }
.loader__bar { width: min(220px, 50vw); height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: bar 1.3s ease-in-out infinite; }
.loader__text { margin: 0; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text); }
.loader.is-done { opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0); }
.loader.is-done .loader__inner { transform: translateY(-30px); transition: transform .8s var(--ease); }
@keyframes bar { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes glow { 0%, 100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* ---------- Ambient canvas & depth gauge ---------- */
.ocean { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, .footer { position: relative; z-index: 1; }

.gauge {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: none; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none; opacity: 0; transition: opacity .6s;
}
body.is-ready .gauge { opacity: 1; }
.gauge__readout { color: var(--white); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.gauge__readout small { font-size: .7rem; color: var(--text); margin-left: 2px; }
.gauge__zone { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text); margin: 6px 0; }
.gauge__track {
  position: relative; width: 3px; height: 34vh; background: var(--line); border-radius: 3px;
  pointer-events: auto; cursor: grab; touch-action: none; outline: none;
  transition: background .25s, width .25s;
}
.gauge__track::before { content: ""; position: absolute; left: -16px; right: -16px; top: -12px; bottom: -12px; }  /* bigger grab area */
.gauge__track:hover, .gauge.is-dragging .gauge__track { background: var(--line-strong); width: 4px; }
.gauge__track:focus-visible { box-shadow: 0 0 0 2px var(--indigo), 0 0 0 4px var(--cyan); }
.gauge.is-dragging .gauge__track { cursor: grabbing; }
.gauge__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(var(--cyan), var(--primary), var(--purple)); border-radius: 3px; }
.gauge__fill::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transition: transform .2s var(--ease), box-shadow .2s;
}
.gauge__track:hover .gauge__fill::after, .gauge__track:focus-visible .gauge__fill::after, .gauge.is-dragging .gauge__fill::after {
  transform: scale(1.5); box-shadow: 0 0 0 4px rgba(95, 220, 255, .18), 0 0 18px var(--cyan);
}
.gauge__tip {
  position: absolute; right: 20px; bottom: -11px; white-space: nowrap; pointer-events: none;
  padding: 3px 9px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: rgba(10, 2, 30, .92); color: var(--white); font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s var(--ease);
}
.gauge__track:hover .gauge__tip, .gauge__track:focus-visible .gauge__tip { opacity: 1; transform: none; }
.gauge.is-dragging .gauge__tip { opacity: 0; }
body.is-scrubbing, body.is-scrubbing * { user-select: none !important; cursor: grabbing !important; }
@media (min-width: 1380px) { .gauge { display: flex; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-solid {
  background: rgba(17, 3, 69, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 120px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; }
.nav ul a { display: block; padding: .5rem .75rem; color: var(--white); font-weight: 600; font-size: .95rem; border-radius: var(--radius); position: relative; }
.nav ul a::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .25rem; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav ul a:hover::after, .nav ul a.is-active::after { transform: scaleX(1); }
.nav__cta { display: flex; gap: 10px; }
.depth-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.depth-line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--primary), var(--purple)); }

.burger { display: none; width: 44px; height: 44px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: transparent; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: 24px var(--gutter) 40px;
    background: rgba(10, 2, 30, .97);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { font-size: 1.25rem; padding: .9rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav ul a::after { display: none; }
  .nav__cta { flex-direction: column; }
  .nav__cta .btn { padding: .9rem 1rem; font-size: .88rem; }
  .site-header.menu-open { background: rgba(10, 2, 30, .97); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 8vw, 110px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.section-head p { font-size: 1.08rem; }
.depth-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: 1rem; padding: .3rem .8rem .3rem .6rem;
  border: 1px solid rgba(36, 155, 229, .45); border-radius: 100px;
  color: var(--cyan); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(36, 155, 229, .08);
}
.depth-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.lead { font-size: 1.12rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 180px; overflow: visible; }
.hero__rays { position: absolute; inset: -20% 0 0; pointer-events: none; overflow: hidden; }
.hero__rays i {
  position: absolute; top: -10%; width: 16vw; height: 130%;
  background: linear-gradient(180deg, rgba(95, 220, 255, .16), rgba(95, 220, 255, 0) 70%);
  filter: blur(18px); transform-origin: top center;
  animation: ray 9s ease-in-out infinite alternate;
}
.hero__rays i:nth-child(1) { left: 8%; transform: rotate(14deg); }
.hero__rays i:nth-child(2) { left: 32%; width: 9vw; transform: rotate(8deg); animation-delay: -3s; opacity: .7; }
.hero__rays i:nth-child(3) { left: 58%; width: 13vw; transform: rotate(-4deg); animation-delay: -5s; }
.hero__rays i:nth-child(4) { left: 80%; width: 8vw; transform: rotate(-12deg); animation-delay: -1s; opacity: .6; }
@keyframes ray { from { opacity: .35; translate: -2vw 0; } to { opacity: 1; translate: 2vw 0; } }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px; }
.hero__eyebrow { color: var(--primary-hi); font-weight: 700; font-size: 1.1rem; letter-spacing: .3em; text-transform: uppercase; margin-bottom: .5rem; }
.hero__title { font-size: clamp(3rem, 9vw, 6.4rem); font-weight: 700; line-height: .98; margin-bottom: .3em; }
.hero__title span { display: block; font-size: .42em; font-weight: 600; letter-spacing: .02em; margin-top: .25em; line-height: 1.3; padding-bottom: .08em; background: linear-gradient(90deg, var(--cyan), var(--primary) 45%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__rotator { font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--white); font-weight: 600; margin-bottom: 1rem; min-height: 1.6em; }
.rotator { display: inline-block; color: var(--orange-hi); border-bottom: 2px solid currentColor; transition: opacity .35s, transform .35s var(--ease); }
.rotator.is-out { opacity: 0; transform: translateY(-10px); }
.hero__lead { max-width: 560px; font-size: 1.12rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 2.6rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px 32px; padding-top: 1.6rem; border-top: 1px solid var(--line); max-width: 720px; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { color: var(--white); font-size: 1.6rem; line-height: 1.1; }
.hero__facts span { font-size: .85rem; }

.hero__art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: end; width: 100%; display: grid; place-items: center; }
.hero__ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px solid rgba(95, 220, 255, .25); animation: spin 40s linear infinite; }
.hero__ring::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cyan); background: var(--indigo); }
.hero__ring--2 { inset: 22%; border-color: rgba(138, 108, 255, .25); animation-duration: 28s; animation-direction: reverse; }
.hero__ring--2::before { border-color: var(--purple); top: auto; bottom: -5px; }
.hero__diver { position: relative; width: clamp(110px, 16vw, 170px); animation: diver 7s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .45)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes diver { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-14px, 18px) rotate(-4deg); } }

.hero__waves { position: absolute; left: 0; right: 0; bottom: -120px; width: 100%; height: 330px; pointer-events: none; z-index: 0; }
.wave path { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.wave circle { fill: var(--indigo); stroke-width: 2; }
.wave--a path, .wave--a circle { stroke: rgba(95, 220, 255, .45); }
.wave--b path, .wave--b circle { stroke: rgba(138, 108, 255, .4); }
.wave--c path, .wave--c circle { stroke: rgba(36, 155, 229, .35); }
.wave { animation: sway 10s ease-in-out infinite alternate; }
.wave--b { animation-duration: 13s; animation-delay: -4s; }
.wave--c { animation-duration: 16s; animation-delay: -8s; }
@keyframes sway { from { transform: translateX(-30px); } to { transform: translateX(30px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue__mouse { width: 24px; height: 38px; border: 2px solid var(--line-strong); border-radius: 14px; position: relative; }
.scroll-cue__mouse i { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 860px) {
  .hero { padding-bottom: 160px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { position: absolute; right: -30px; top: -20px; width: 200px; opacity: .55; z-index: -1; }
  .hero__waves { height: 210px; bottom: -80px; }
}

/* ---------- Services ---------- */
.services { overflow: hidden; }
.reef-fish { position: absolute; inset: 0; pointer-events: none; }
.clown { position: absolute; width: 34px; }
.clown--1 { top: 13%; right: 12%; animation: swim 14s ease-in-out infinite; }
.clown--2 { top: 19%; right: 20%; width: 26px; animation: swim 17s ease-in-out -5s infinite; opacity: .85; }
@keyframes swim {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-40px, -12px); }
  50% { transform: translate(-70px, 6px); }
  75% { transform: translate(-30px, 14px); }
}

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), border-color .3s, background .3s;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(36, 155, 229, .16), transparent 40%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-6px); border-color: rgba(36, 155, 229, .55); background: var(--card-hi); }
.card:hover::before { opacity: 1; }
.card__icon { width: 44px; height: 44px; margin-bottom: 20px; fill: none; stroke: url(#ig); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(36, 155, 229, .35)); }
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card p { font-size: .95rem; flex: 1; }
.card__link { font-weight: 700; font-size: .9rem; display: inline-flex; gap: .35rem; align-items: center; }
.card__link span { transition: transform .3s var(--ease); }
.card:hover .card__link span { transform: translateX(4px); }
.card__link::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Approach ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 26px; right: 26px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--primary), var(--purple)); opacity: .5; }
.step { position: relative; padding-right: 12px; }
.step__num { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 50%; border: 2px solid var(--primary); background: var(--indigo); color: var(--white); font-weight: 700; box-shadow: 0 0 0 6px rgba(36, 155, 229, .08); }
.step h3 { font-size: 1.2rem; }
.step p { font-size: .95rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Clients marquee ---------- */
.clients { padding-bottom: clamp(60px, 8vw, 110px); }
.marquee {
  display: grid; gap: 18px;
  overflow: hidden;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee var(--dur, 50s) linear infinite; }
.marquee__track[data-direction="right"] { animation-direction: reverse; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 9px)); } }

.client {
  position: relative; flex: none;
  width: 230px; height: 128px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--card);
  overflow: hidden;
  transition: border-color .3s, background .3s;
}
.client img { max-width: 168px; max-height: 48px; width: auto; height: auto; opacity: .88; transition: opacity .3s, transform .4s var(--ease); }
.client--square img { max-height: 70px; }
.client__info {
  position: absolute; inset: 0; padding: 10px 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  background: radial-gradient(ellipse at center, rgba(14, 6, 52, .94), rgba(10, 2, 30, .9));
  opacity: 0; transform: scale(.96); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.client__info b { display: block; color: var(--white); font-size: .88rem; line-height: 1.25; }
.client__info small { display: block; font-size: .72rem; color: var(--cyan); line-height: 1.35; }
.client__info small.client__desc { color: var(--text); font-size: .7rem; }
.client__link { position: absolute; inset: 0; display: grid; place-items: center; color: inherit; border-radius: inherit; }
.client__link:hover { color: inherit; }
.client__link:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
.client:hover, .client:focus-within { border-color: rgba(36, 155, 229, .55); background: var(--card-hi); }
.client:hover img, .client:focus-within img { opacity: .25; transform: scale(.92); }
.client:hover .client__info, .client:focus-within .client__info { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .client { width: 180px; height: 104px; }
  .client img { max-width: 124px; max-height: 38px; }
  .client--square img { max-height: 56px; }
}

/* ---------- Platforms intro ---------- */
.platforms { padding-bottom: 40px; }
.platform-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.platform-pill {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 16px; min-width: 280px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-card);
  background: var(--card); color: var(--white);
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.platform-pill:hover { border-color: var(--primary); transform: translateY(-3px); background: var(--card-hi); color: var(--white); }
.platform-pill svg { width: 42px; height: 42px; padding: 8px; border-radius: 8px; background: rgba(36, 155, 229, .12); fill: none; stroke: url(#ig); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.platform-pill svg .fill { fill: url(#ig); stroke: none; }
.platform-pill strong { display: block; font-size: 1.05rem; }
.platform-pill small { display: block; color: var(--text); font-size: .82rem; }

/* ---------- Split layout & shared product bits ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse { grid-template-columns: 1.05fr 1fr; }
.split--reverse .split__copy { order: 2; }
.split__copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.product-badge { display: inline-block; margin: 0 0 1rem; padding: .3rem .75rem; border-radius: var(--radius); background: rgba(212, 118, 0, .14); border: 1px solid rgba(212, 118, 0, .5); color: #FFB45A; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.styx .product-badge { background: rgba(138, 108, 255, .14); border-color: rgba(138, 108, 255, .5); color: #C3B4FF; }
.styx .depth-tag { display: flex; width: max-content; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: rgba(36, 155, 229, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235FDCFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks--pro li::before { background-color: rgba(212, 118, 0, .22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB45A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }
.ticks strong { color: var(--white); }
@media (max-width: 960px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__copy { order: 0; }
}

/* Browser frame used by product illustrations */
.browser { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: #0b1433; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, .3), 0 0 80px -20px rgba(36, 155, 229, .35); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.browser__bar i:nth-child(1) { background: #ff5f57; } .browser__bar i:nth-child(2) { background: #febc2e; } .browser__bar i:nth-child(3) { background: #28c840; }
.browser__bar span { margin-left: 10px; font-size: .78rem; color: var(--text); padding: 2px 12px; border-radius: 20px; background: rgba(0, 0, 0, .25); }

/* ---------- AIS ---------- */
.ais-visual__stage { position: relative; }
.ais-map { width: 100%; height: auto; }
.ais-map .ships use { animation: drift 12s ease-in-out infinite alternate; transform-box: fill-box; }
.ais-map .ships use:nth-child(3n) { animation-duration: 16s; }
.ais-map .ships use:nth-child(3n+1) { animation-duration: 9s; animation-delay: -3s; }
@keyframes drift { to { translate: 6px -4px; } }
.quake__ring { animation: quake 2.2s ease-out infinite; transform-origin: 126px 214px; }
@keyframes quake { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.storm { animation: storm 6s linear infinite; transform-origin: 500px 150px; transform-box: view-box; }
@keyframes storm { from { rotate: 0deg; } to { rotate: -360deg; } }

.ais-ui { position: absolute; font-size: .72rem; color: var(--white); background: rgba(10, 18, 50, .88); border: 1px solid var(--line-strong); border-radius: 8px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ais-ui--search { top: 12px; left: 12px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; color: var(--text); width: 46%; }
.ais-ui--search svg { width: 14px; height: 14px; fill: none; stroke: var(--text); stroke-width: 2; flex: none; }
.ais-ui--feeds { top: 12px; right: 12px; display: flex; padding: 3px; gap: 2px; }
.ais-ui--feeds span { padding: 4px 8px; border-radius: 5px; color: var(--text); }
.ais-ui--feeds span.on { background: var(--primary); color: var(--white); }
.ais-ui--insights { right: 12px; top: 56px; width: 150px; padding: 10px 12px; }
.ais-ui--insights strong { display: block; font-size: .72rem; margin-bottom: 6px; letter-spacing: .06em; text-transform: uppercase; }
.bar { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.bar span { height: 5px; width: var(--w); max-width: 70px; flex: none; background: var(--c); border-radius: 3px; }
.bar em { font-style: normal; color: var(--text); font-size: .66rem; }
.ais-ui--ticker { left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; }
.ais-ui--ticker b { background: var(--orange); padding: 1px 6px; border-radius: 3px; font-size: .62rem; letter-spacing: .08em; }
.skeleton { height: 6px; flex: 1; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .22), rgba(255, 255, 255, .08)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.skeleton--s { flex: .5; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ais-ui--search { white-space: nowrap; overflow: hidden; }
@media (max-width: 560px) { .ais-ui--insights { display: none; } .ais-ui--search { width: 36%; font-size: .64rem; } .ais-ui--feeds { font-size: .6rem; } }

.tiers { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; margin-top: clamp(60px, 8vw, 96px); align-items: start; }
.tier { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow); }
.tier h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.tier__price { color: var(--white); font-size: 2.4rem; font-weight: 700; line-height: 1.1; margin: .6rem 0 1.4rem; }
.tier__price small { display: block; font-size: .9rem; font-weight: 600; color: var(--text); margin-top: 6px; }
.tier .ticks { margin-bottom: 1.6rem; }
.tier .ticks li { font-size: .95rem; }
.tier--pro { border-color: rgba(212, 118, 0, .55); background: linear-gradient(160deg, rgba(212, 118, 0, .1), rgba(255, 255, 255, .03) 45%); box-shadow: var(--shadow), 0 0 60px -20px rgba(212, 118, 0, .45); }
.tier__flag { position: absolute; top: -12px; right: 24px; padding: .2rem .8rem; border-radius: var(--radius); background: var(--orange); color: var(--white); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.tier__quote { font-style: italic; color: #D9D9EA; margin-bottom: 1rem; }
.billing { display: inline-flex; padding: 4px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(0, 0, 0, .2); }
.billing__opt { border: 0; background: transparent; padding: .45rem 1rem; border-radius: 5px; font-weight: 700; font-size: .85rem; color: var(--text); cursor: pointer; transition: background .25s, color .25s; }
.billing__opt em { font-style: normal; font-size: .7rem; color: #FFB45A; margin-left: 4px; }
.billing__opt.is-on { background: var(--orange); color: var(--white); }
.billing__opt.is-on em { color: var(--white); opacity: .9; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 1.6rem; font-size: .82rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 11px solid var(--c); }
.unlock { counter-reset: u; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--line-strong); font-size: .88rem; }
.unlock li { counter-increment: u; position: relative; padding-left: 34px; margin-bottom: .7rem; }
.unlock li::before { content: counter(u); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--orange); color: #FFB45A; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.unlock em { color: var(--white); font-style: normal; font-weight: 700; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } .tier { padding: 26px 22px; } }

.audiences { margin-top: clamp(56px, 7vw, 88px); }
.audiences__title { font-size: 1.4rem; text-align: center; margin-bottom: 1.6rem; }
.audiences__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aud { padding: 20px; border-left: 2px solid var(--primary); background: linear-gradient(90deg, rgba(36, 155, 229, .08), transparent); border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.aud strong { color: var(--white); display: block; margin-bottom: .3rem; font-size: 1.05rem; }
.aud p { font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .audiences__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .audiences__grid { grid-template-columns: 1fr; } }

.disclaimer { margin: 48px auto 0; max-width: 820px; text-align: center; font-size: .8rem; color: rgba(171, 171, 199, .8); }
.disclaimer strong { color: var(--text); }

/* ---------- STYX ---------- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 1.6rem; }
.feature { display: flex; gap: 14px; }
.feature svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 8px; background: rgba(138, 108, 255, .12); fill: none; stroke: url(#ig); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.feature p { font-size: .9rem; margin: 0; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.styx-art { position: relative; padding-bottom: 28px; }
.styx-visual { overflow: visible; }
.styx-visual .browser__bar { border-radius: 12px 12px 0 0; }
.styx-visual .styx-side { border-bottom-left-radius: 12px; }
.styx-visual__body { position: relative; display: grid; grid-template-columns: 52px 1fr; min-height: 330px; }
.styx-side { display: flex; flex-direction: column; gap: 12px; padding: 16px 12px; border-right: 1px solid var(--line); background: rgba(0, 0, 0, .15); }
.styx-side span { width: 28px; height: 28px; border-radius: 7px; background: rgba(255, 255, 255, .06); }
.styx-side span.on { background: linear-gradient(135deg, var(--primary), var(--purple)); }
.styx-main { padding: 18px 20px 22px; }
.styx-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.styx-head strong { color: var(--white); font-size: 1rem; }
.styx-head em { font-style: normal; font-size: .74rem; color: var(--text); }
.styx-list li { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: .8rem; }
.styx-list b { color: var(--white); font-weight: 700; }
.styx-list span { color: var(--text); font-size: .72rem; }
.styx-list small { color: var(--cyan); font-size: .72rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--sea { background: #3CC47C; box-shadow: 0 0 8px #3CC47C; }
.dot--port { background: #F5C518; }
.styx-sync { margin-top: 14px; font-size: .74rem; }
.styx-sync__bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin-top: 6px; overflow: hidden; }
.styx-sync__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--purple)); animation: sync 4s var(--ease) infinite; }
@keyframes sync { 0% { width: 0; } 70%, 100% { width: 100%; } }
.styx-call { position: absolute; right: 16px; bottom: -22px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 12px; background: rgba(18, 10, 70, .96); border: 1px solid rgba(138, 108, 255, .5); box-shadow: var(--shadow-lg); font-size: .8rem; animation: bob 5s ease-in-out infinite; }
.styx-call b { display: block; color: var(--white); }
.styx-call small { color: var(--text); }
.styx-call__icon { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #3CC47C; }
.styx-call__icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #3CC47C; animation: ringout 1.6s ease-out infinite; }
.styx-call__icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
@keyframes ringout { from { transform: scale(1); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 560px) { .styx-list li { grid-template-columns: 12px 1fr auto; } .styx-list small { display: none; } .styx-call { right: 8px; left: 8px; } }

/* Anglerfish + glowing lure */
.angler-wrap { position: absolute; pointer-events: none; }
.angler-wrap img { width: 100%; position: relative; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.lure { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 214, 90, .95) 0%, rgba(255, 170, 40, .5) 30%, rgba(255, 170, 40, 0) 70%); animation: lure 2.8s ease-in-out infinite; z-index: 2; mix-blend-mode: screen; }
.lure::after { content: ""; position: absolute; left: 50%; top: 50%; width: 900%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 80, .14), transparent 60%); }
.lure--left { left: 15%; top: 29%; }
.lure--right { left: 94%; top: 38%; }
@keyframes lure { 0%, 100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.25; } }
.angler-wrap--styx { width: 130px; left: -70px; bottom: -110px; animation: lurk 11s ease-in-out infinite; }
.angler-wrap--contact { position: relative; width: 140px; margin-top: 40px; animation: lurk 13s ease-in-out -4s infinite; }
@keyframes lurk { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(18px, -10px) rotate(-3deg); } }
@media (max-width: 960px) { .angler-wrap--styx { left: auto; right: 0; bottom: -150px; width: 100px; } }

/* ---------- Partners & shop ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.logos li { background: #fff; border-radius: var(--radius-card); padding: 10px 18px; box-shadow: var(--shadow); transition: transform .35s var(--ease); display: grid; place-items: center; }
.logos li:hover { transform: translateY(-4px) rotate(-.5deg); }
.logos img { width: 100%; max-width: 220px; }
@media (max-width: 760px) { .logos { grid-template-columns: 1fr 1fr; } }

.shop { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(56px, 8vw, 96px); padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-card); background: linear-gradient(120deg, var(--navy), rgba(2, 119, 189, .55)); border: 1px solid rgba(36, 155, 229, .35); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.shop::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 0 0 30px rgba(255, 255, 255, .03), 0 0 0 60px rgba(255, 255, 255, .02); pointer-events: none; }
.shop h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .2rem; }
.shop p { margin: 0; color: #D6DCF5; }
.shop .btn { position: relative; z-index: 1; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; color: var(--white); font-weight: 700; font-size: 1.08rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--primary); background: linear-gradient(var(--primary-hi), var(--primary-hi)) center / 10px 2px no-repeat, linear-gradient(var(--primary-hi), var(--primary-hi)) center / 2px 10px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.qa[open] summary::after { transform: rotate(45deg); background-color: rgba(36, 155, 229, .2); }
.qa p { padding: 0 44px 22px 0; margin: 0; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__intro h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.contact__list { margin-top: 2rem; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; border: 1px solid var(--line-strong); fill: none; stroke: url(#ig); stroke-width: 1.8; }
.contact__list small { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.contact__list a { color: var(--white); font-weight: 700; font-size: 1.15rem; }
.contact__list a:hover { color: var(--primary-hi); }

.form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-card); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .82rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.field input, .field select, .field textarea, .news input {
  width: 100%; padding: .8rem .95rem;
  background: rgba(10, 2, 30, .55); color: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ABABC7' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px; padding-right: 2.5rem; }
.field select option { background: var(--indigo); }
.field input::placeholder, .field textarea::placeholder, .news input::placeholder { color: rgba(171, 171, 199, .6); }
.field input:focus, .field select:focus, .field textarea:focus, .news input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(36, 155, 229, .18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b7d; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 4px 0 20px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.check.is-invalid span { color: #ff9aa5; }
.form__status { margin: 14px 0 0; font-size: .9rem; min-height: 1.4em; }
.form__status.is-ok { color: #6BE3A4; }
.form__status.is-err { color: #ff9aa5; }
.form button[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } .angler-wrap--contact { display: none; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.footer { padding: 90px 0 30px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 2, 4, 0), rgba(10, 2, 4, .6)); overflow: hidden; }
.footer__seabed { position: absolute; left: 0; right: 0; top: 0; height: 60px; background: radial-gradient(ellipse at 20% 0, rgba(36, 155, 229, .12), transparent 60%), radial-gradient(ellipse at 80% 0, rgba(138, 108, 255, .1), transparent 60%); pointer-events: none; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 40px; }
.footer__brand img { width: 150px; margin-bottom: 1rem; }
.footer__brand p { font-size: .92rem; max-width: 280px; }
.footer h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; }
.footer__col li { margin-bottom: .55rem; }
.footer__col a { color: var(--text); font-size: .94rem; }
.footer__col a:hover { color: var(--white); }
.footer__news p { font-size: .92rem; }
.news { display: flex; flex-wrap: wrap; gap: 8px; }
.news input { flex: 1 1 180px; padding: .6rem .8rem; }
.news .btn { flex: none; }
.news .form__status { flex-basis: 100%; margin: 4px 0 0; font-size: .82rem; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2rem; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--white); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.social a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.social svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .84rem; }
.footer__bottom p { margin: 0; }
.to-top { font-weight: 700; color: var(--white); }
.to-top span { display: inline-block; transition: transform .3s var(--ease); }
.to-top:hover span { transform: translateY(-4px); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); }
  .marquee__track [aria-hidden="true"] { display: none; }
}

/* ---------- Legal pages ---------- */
.legal-page { min-height: 100vh; display: flex; flex-direction: column; }
.legal-page main { flex: 1; }
.legal { padding: calc(var(--header-h) + 56px) 0 80px; }
.legal__inner { max-width: 880px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
.legal__body { font-size: 1rem; }
.legal__body h2 { font-size: 1.2rem; letter-spacing: .03em; margin: 2.4em 0 .8em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__body h3 { font-size: 1.05rem; margin: 1.6em 0 .6em; }
.legal__body strong { color: #E4E4F2; }
.legal__body ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.legal__body ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1em; }
.legal__body li { margin-bottom: .4em; }
.legal__body a { word-break: break-word; }
.legal__body table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.4em; font-size: .92rem; }
.legal__body th, .legal__body td { border: 1px solid var(--line-strong); padding: .6em .8em; vertical-align: top; text-align: left; }
.legal__body th { color: var(--white); background: rgba(255, 255, 255, .04); }
.legal__body [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal__updated { margin: -.4rem 0 2rem; font-size: .92rem; }
.legal__intro { font-size: 1.08rem; }
.legal__summary { margin: 2rem 0; padding: clamp(20px, 3vw, 28px); border: 1px solid rgba(36, 155, 229, .35); border-radius: var(--radius-card); background: rgba(36, 155, 229, .06); }
.legal__summary h2 { margin: 0 0 1rem; padding: 0; border: 0; color: var(--cyan); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.legal__summary ul { margin: 0; }
.legal__summary li:last-child { margin-bottom: 0; }
.legal__toc { margin: 0 0 2.4rem; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); }
.legal__toc h2 { margin: 0 0 1rem; padding: 0; border: 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.legal__toc ol { margin: 0; columns: 2 260px; column-gap: 2rem; }
.legal__toc li { break-inside: avoid; }
.legal__toc a { color: var(--text); text-decoration: none; }
.legal__toc a:hover, .legal__toc a:focus-visible { color: var(--primary-hi); text-decoration: underline; }
.legal__body address { font-style: normal; margin: 0 0 1em; }
.footer--slim { padding: 28px 0; }
.footer--slim .footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.footer--slim .footer__bottom p { margin: 0; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.lost__inner { max-width: 560px; }
.lost h1 { font-size: clamp(3.4rem, 12vw, 6rem); margin-bottom: .1em; }
.lost h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
.lost .angler-wrap { position: relative; width: 150px; margin: 0 auto 28px; animation: lurk 9s ease-in-out infinite; }
.lost .actions { justify-content: center; }
