/* ═══════════════════════════════════════════════════════════════
   SEAMAN APP — seamanapp.com
   Deep-ocean, gamified, glass. Built like it matters.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #04101f;
  --bg-2: #071a30;
  --ink: #eaf3fd;
  --muted: #8fa8c2;
  --gold: #f5b942;
  --gold-2: #ffd27a;
  --cyan: #35e0ff;
  --teal: #2dd4bf;
  --glass: rgba(13, 32, 58, 0.55);
  --glass-brd: rgba(120, 180, 255, 0.14);
  --card: rgba(10, 26, 48, 0.72);
  --radius: 22px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
::selection { background: rgba(53, 224, 255, 0.35); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; position: relative; }

h1, h2, h3, .brand, .stat b { font-family: var(--font-display); }

/* ── Ambient ocean glow ─────────────────────────────────────── */
.sea {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(45, 130, 210, 0.22), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(45, 212, 191, 0.13), transparent 60%),
    radial-gradient(800px 700px at 60% 110%, rgba(245, 185, 66, 0.10), transparent 55%),
    linear-gradient(180deg, #04101f 0%, #050f1d 50%, #030b16 100%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb.a { width: 480px; height: 480px; background: rgba(41, 121, 199, 0.35); top: -140px; right: -80px; }
.orb.b { width: 380px; height: 380px; background: rgba(45, 212, 191, 0.22); bottom: 10%; left: -140px; animation-delay: -8s; }
.orb.c { width: 300px; height: 300px; background: rgba(245, 185, 66, 0.16); top: 45%; right: 8%; animation-delay: -14s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, 60px, 0) scale(1.15); }
}

/* subtle star-noise */
.sea::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 70%);
}

/* ── Nav ─────────────────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
header.scrolled {
  background: rgba(5, 15, 29, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--glass-brd);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.18rem; letter-spacing: 0.4px;
}
.brand .logo {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #0d2c50, #123a68);
  border: 1px solid rgba(245, 185, 66, 0.45);
  box-shadow: 0 0 22px rgba(245, 185, 66, 0.25), inset 0 0 14px rgba(53, 224, 255, 0.12);
}
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav a.link { color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color .2s; }
.nav a.link:hover { color: var(--cyan); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 12px 26px; border-radius: 14px; font-size: 0.98rem;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s;
}
.btn.gold {
  color: #1d1503;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #e09c1e);
  box-shadow: 0 6px 28px rgba(245, 185, 66, 0.35), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(245, 185, 66, 0.5); }
.btn.ghost {
  color: var(--ink); border: 1px solid var(--glass-brd); background: rgba(255,255,255,0.03);
}
.btn.ghost:hover { border-color: rgba(53, 224, 255, 0.5); color: var(--cyan); transform: translateY(-2px); }
.btn.big { padding: 16px 38px; font-size: 1.08rem; border-radius: 16px; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { padding: 150px 0 40px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(53, 224, 255, 0.35); color: var(--cyan);
  background: rgba(53, 224, 255, 0.07);
  border-radius: 999px; padding: 7px 16px; font-size: 0.8rem;
  letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600;
  margin-bottom: 26px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.06; letter-spacing: -1px; font-weight: 700;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(92deg, var(--gold-2) 0%, var(--gold) 40%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { color: var(--muted); font-size: 1.16rem; max-width: 540px; margin-bottom: 34px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .hint { color: var(--muted); font-size: 0.85rem; margin-top: 16px; }
.hero .hint b { color: var(--teal); }

/* ── Phone mockup ────────────────────────────────────────────── */
.stage { position: relative; display: grid; place-items: center; perspective: 1200px; }
.phone {
  width: 300px; border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, #16283f, #0a1526 70%);
  border: 1px solid rgba(150, 200, 255, 0.18);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(53, 224, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform .4s ease;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -14px; } }
.stage:hover .phone { transform: rotateY(-2deg) rotateX(1deg); }
.screen {
  border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, #0b1f38 0%, #081627 100%);
  border: 1px solid rgba(120, 180, 255, 0.1);
}
.s-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 10px; color: var(--ink); font-weight: 700; font-family: var(--font-display);
  font-size: 0.95rem;
}
.s-head .lvl {
  font-size: 0.66rem; color: #10243d; background: linear-gradient(135deg, var(--gold-2), var(--gold));
  padding: 3px 9px; border-radius: 999px; font-weight: 800; letter-spacing: .4px;
}
.s-card {
  margin: 8px 12px; padding: 13px 14px; border-radius: 16px;
  background: rgba(19, 42, 72, 0.65); border: 1px solid rgba(120, 180, 255, 0.12);
}
.s-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.s-title { font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.s-sub { font-size: 0.66rem; color: var(--muted); margin-top: 2px; }
.chip {
  font-size: 0.6rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.chip.ok { color: #7ef0c0; background: rgba(45, 212, 191, 0.12); border: 1px solid rgba(45, 212, 191, 0.4); }
.chip.warn { color: #ffcf7d; background: rgba(245, 185, 66, 0.12); border: 1px solid rgba(245, 185, 66, 0.45); }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); margin-top: 10px; overflow: hidden; }
.bar > i {
  display: block; height: 100%; width: 66%; border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 0 12px rgba(53, 224, 255, 0.6);
  animation: fill 2.4s ease forwards;
}
@keyframes fill { from { width: 12%; } }
.s-sync {
  display: flex; align-items: center; gap: 7px; justify-content: center;
  color: var(--teal); font-size: 0.62rem; padding: 10px 0 14px;
}
.s-sync .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: pulse 1.6s infinite; }

/* floating toasts around the phone */
.toast {
  position: absolute; z-index: 2;
  background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px);
  border-radius: 14px; padding: 9px 14px;
  font-size: 0.74rem; font-weight: 700; color: var(--ink);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}
.toast small { display: block; font-weight: 500; color: var(--muted); font-size: 0.62rem; }
.toast.t1 { top: 8%; right: -4%; animation-delay: -1.5s; border-color: rgba(245,185,66,.4); }
.toast.t2 { bottom: 20%; left: -10%; animation-delay: -3s; border-color: rgba(45,212,191,.4); }
.toast.t3 { bottom: -3%; right: 2%; animation-delay: -4.5s; border-color: rgba(53,224,255,.35); }

/* ── Stats band ──────────────────────────────────────────────── */
.stats { padding: 60px 0 8px; }
.stats .row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.stat {
  text-align: center; padding: 26px 12px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--glass-brd);
}
.stat b {
  display: block; font-size: 2rem; letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--gold-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-size: 0.86rem; }

/* ── Sections ────────────────────────────────────────────────── */
section { padding: 90px 0; position: relative; }
.kicker {
  color: var(--cyan); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.2px; margin-bottom: 12px;
}
h2.title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.6px; margin-bottom: 14px; }
p.lead { color: var(--muted); max-width: 640px; font-size: 1.05rem; margin-bottom: 48px; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cardx {
  grid-column: span 2;
  background: var(--card); border: 1px solid var(--glass-brd);
  border-radius: var(--radius); padding: 30px 28px;
  position: relative; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.cardx:hover {
  transform: translateY(-6px);
  border-color: rgba(53, 224, 255, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(53, 224, 255, 0.08);
}
.cardx.wide { grid-column: span 3; }
.cardx .ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(53, 224, 255, 0.14), rgba(45, 212, 191, 0.08));
  border: 1px solid rgba(53, 224, 255, 0.25);
}
.cardx.goldc .ico { background: linear-gradient(140deg, rgba(245,185,66,.16), rgba(245,185,66,.05)); border-color: rgba(245,185,66,.4); }
.cardx h3 { font-size: 1.16rem; margin-bottom: 8px; }
.cardx p { color: var(--muted); font-size: 0.94rem; }
.cardx .glow {
  position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(53, 224, 255, 0.09); filter: blur(60px);
  top: -100px; right: -80px; pointer-events: none;
}

/* quest demo inside wide card */
.quest { margin-top: 18px; display: grid; gap: 9px; }
.q-item {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(120,180,255,0.1);
  padding: 9px 13px; border-radius: 12px; font-size: 0.82rem;
}
.q-item .tick {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.6rem;
  background: rgba(45, 212, 191, 0.16); color: #7ef0c0; border: 1px solid rgba(45,212,191,.5);
}
.q-item.off .tick { background: rgba(255,255,255,0.05); color: var(--muted); border-color: rgba(255,255,255,.15); }
.q-item.off { opacity: 0.75; }
.q-item .xp { margin-left: auto; color: var(--gold-2); font-weight: 700; font-size: 0.72rem; }

/* ── Principle quote ─────────────────────────────────────────── */
.principle { text-align: center; }
.principle blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.35; letter-spacing: -0.3px;
  max-width: 820px; margin: 0 auto;
}
.principle blockquote b { color: var(--gold-2); }
.principle .rule {
  width: 72px; height: 3px; margin: 30px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  box-shadow: 0 0 18px rgba(245, 185, 66, 0.5);
}

/* ── Steps ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step {
  background: var(--card); border: 1px solid var(--glass-brd);
  border-radius: var(--radius); padding: 30px 26px; position: relative;
}
.step .num {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  color: #12253f; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 11px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 0 22px rgba(53, 224, 255, 0.35);
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ── Coming soon marquee ─────────────────────────────────────── */
.soon { padding: 30px 0 90px; }
.soon .strip {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.tagchip {
  border: 1px dashed rgba(245, 185, 66, 0.4); color: var(--gold-2);
  background: rgba(245, 185, 66, 0.05);
  padding: 9px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}

/* ── CTA ─────────────────────────────────────────────────────── */
.cta-sec { text-align: center; }
.cta-box {
  max-width: 780px; margin: 0 auto; padding: 64px 34px;
  border-radius: 28px; position: relative; overflow: hidden;
  background:
    radial-gradient(500px 240px at 50% -40%, rgba(245, 185, 66, 0.16), transparent),
    var(--card);
  border: 1px solid rgba(245, 185, 66, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.cta-box h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.cta-box p { color: var(--muted); margin-bottom: 30px; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--glass-brd);
  background: rgba(4, 12, 23, 0.8);
  padding: 40px 0; font-size: 0.9rem; color: var(--muted);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; margin-right: 20px; transition: color .2s; }
footer a:hover { color: var(--cyan); }

/* ── Legal pages ─────────────────────────────────────────────── */
.legal { max-width: 780px; margin: 0 auto; padding: 140px 24px 90px; }
.legal h1 { font-size: 2.1rem; letter-spacing: -0.5px; margin-bottom: 6px; }
.legal p.updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; color: var(--gold-2); }
.legal p, .legal li { color: #c6d6e8; }
.legal ul, .legal ol { margin: 10px 0 10px 24px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--cyan); }
.notice {
  background: rgba(53, 224, 255, 0.05); border: 1px solid var(--glass-brd);
  border-left: 3px solid var(--gold); border-radius: 14px;
  padding: 18px 22px; margin: 24px 0;
}

/* ── Reveal on scroll ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .stage { order: 2; }
  .toast.t1 { right: 0; }
  .toast.t2 { left: 0; }
  .toast.t3 { right: 4%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cardx, .cardx.wide { grid-column: span 2; }
  .nav nav a.link { display: none; }
}
@media (max-width: 520px) {
  .phone { width: 260px; }
}
