/* ===== JoomShark — filler site ===== */
:root {
  --ink: #031019;
  --sea-1: #0b4a68;
  --sea-2: #0d6f80;
  --foam: #5ee6d0;
  --sun: #ffd38a;
  --fin: #cfdde6;
  --text: #eef6fa;
  --muted: #a6c3d1;
  --line: rgba(255, 255, 255, .12);
  --d: 0; /* depth 0..1, set by main.js */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--ink); font: 400 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--foam); outline-offset: 3px; border-radius: 6px; }

/* Ocean that darkens with depth */
.depth-bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(80% 60% at 70% 0%, rgba(255, 211, 138, calc(.28 * (1 - var(--d) * 3))), transparent 60%),
    linear-gradient(180deg, #0f6f8f 0%, var(--sea-1) 45%, #072a3d 100%);
}
.depth-bg::after { content: ""; position: absolute; inset: 0; background: #01060b; opacity: calc(var(--d) * .96); }
.bubbles { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 48px); transition: background .3s, backdrop-filter .3s; }
.nav.is-scrolled { background: rgba(3, 16, 25, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.3rem var(--font-display); letter-spacing: -0.01em; }
.brand b { color: var(--foam); font-weight: 800; }
.brand svg { width: 36px; height: 36px; }
.brand .fin { fill: var(--fin); }
.brand .bw { fill: none; stroke: var(--foam); stroke-width: 2.2; stroke-linecap: round; }
.links { display: flex; gap: 26px; }
.links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.links a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: 14px 24px; border-radius: 999px; font-weight: 600; color: #03222c; background: linear-gradient(100deg, var(--foam), #9ff3e6); box-shadow: 0 12px 30px -12px rgba(94, 230, 208, .7); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(94, 230, 208, .85); }
.btn--ghost { color: var(--text); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--foam); }

/* Hero / surface */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px clamp(16px, 6vw, 96px) 200px; overflow: hidden; }
.sun { position: absolute; right: 12%; top: 14%; width: clamp(140px, 18vw, 240px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff3d6 0 30%, var(--sun) 55%, rgba(255, 211, 138, 0) 72%); filter: blur(2px); opacity: .9; animation: sun 8s ease-in-out infinite alternate; }
@keyframes sun { to { transform: translateY(10px) scale(1.03); } }
.hero__copy { position: relative; z-index: 2; max-width: 680px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--foam); margin-bottom: 18px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 800; letter-spacing: -0.04em; }
.hero h1 span { background: linear-gradient(100deg, var(--foam), #b6fff2 60%, var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.sea { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: 1; }
.wave { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; background-size: 720px 100%; }
.wave--back { height: 150px; opacity: .45; animation: swell 26s linear infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 150' preserveAspectRatio='none'%3E%3Cpath d='M0 60c90 0 90-36 180-36s90 36 180 36 90-36 180-36 90 36 180 36v90H0z' fill='%2311839a'/%3E%3C/svg%3E"); }
.wave--mid { height: 120px; opacity: .7; animation: swell 18s linear infinite reverse; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 120' preserveAspectRatio='none'%3E%3Cpath d='M0 50c60 0 60-26 120-26s60 26 120 26 60-26 120-26 60 26 120 26 60-26 120-26 60 26 120 26v70H0z' fill='%230b5f78'/%3E%3C/svg%3E"); }
.wave--front { height: 92px; animation: swell 12s linear infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 92' preserveAspectRatio='none'%3E%3Cpath d='M0 40c90 0 90-22 180-22s90 22 180 22 90-22 180-22 90 22 180 22v52H0z' fill='%23083f57'/%3E%3C/svg%3E"); }
@keyframes swell { to { background-position-x: 720px; } }
.fin-swim { position: absolute; bottom: 62px; width: 92px; height: 54px; fill: var(--fin); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); animation: glide 22s linear infinite, bob 3s ease-in-out infinite alternate; }
@keyframes glide { from { left: 105%; } to { left: -12%; } }
@keyframes bob { to { translate: 0 6px; } }

/* Sections */
.facts, .depths { padding: clamp(80px, 12vw, 140px) clamp(16px, 6vw, 96px); }
.head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.head h2, .bottom h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
.sub { color: var(--muted); font-size: 1.1rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; }
.card { padding: 34px 30px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .4s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-6px); border-color: rgba(94, 230, 208, .45); }
.card h3 { font-size: 1.45rem; }
.card p { color: var(--muted); margin: 0; }
.card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; background: rgba(94, 230, 208, .1); border: 1px solid rgba(94, 230, 208, .3); }
.card__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--foam); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Depth zones */
.zones { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; position: relative; }
.zones::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--foam), rgba(94, 230, 208, .05)); opacity: .6; }
.zone { position: relative; min-height: 62vh; padding: 0 0 0 56px; display: flex; flex-direction: column; justify-content: center; }
.zone::before { content: ""; position: absolute; left: 0; top: calc(50% - 12px); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 2px solid var(--foam); box-shadow: 0 0 0 6px rgba(94, 230, 208, .12), 0 0 24px rgba(94, 230, 208, .5); }
.zone__m { font: 700 .9rem var(--font-display); color: var(--foam); letter-spacing: .08em; margin-bottom: 10px; }
.zone h3 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
.zone p { color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.bottom { text-align: center; padding: 18vh 0 4vh; }
.bottom__line { color: var(--foam); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }

/* Depth gauge */
.gauge { position: fixed; right: clamp(12px, 2.4vw, 32px); top: 50%; translate: 0 -50%; z-index: 15; display: grid; justify-items: center; gap: 8px; padding: 14px 10px; border-radius: 16px; background: rgba(3, 16, 25, .5); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s; }
.gauge.is-on { opacity: 1; }
.gauge__label { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gauge__value { font: 700 .95rem var(--font-display); color: var(--foam); min-width: 6ch; text-align: center; }
.gauge__bar { width: 6px; height: 140px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.gauge__bar i { display: block; width: 100%; height: calc(var(--d) * 100%); background: linear-gradient(var(--foam), #2d8cff); border-radius: inherit; }

.footer { text-align: center; padding: 30px 16px 40px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.footer p { margin: 0; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; }
  .sun { right: -30px; top: 10%; opacity: .6; }
  .gauge { display: none; }
}
@media (max-width: 560px) {
  .links { display: none; }
  .hero { padding-bottom: 170px; }
  .zone { min-height: 50vh; padding-left: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .fin-swim { left: 60%; }
}
