/* Seaquence website — shared stylesheet
   Colours follow the Seaquence application (day theme): navy primary on white.
   Navy = hsl(214 52% 25%) = #1E3A5F, identical to the logo tile. */

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

:root {
  --navy:      #1E3A5F;
  --navy-deep: #122036;
  --sea:       #1f5cad;
  --sea-light: #9fc1ea;
  --ink:       #1a2230;
  --muted:     #5d6b7d;
  --rule:      #dce3ea;
  --wash:      #f4f7fa;
  --white:     #ffffff;
  --band-h:    64px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 44rem; }

/* ── Header band (navy, like the application) ───────────────────────── */
.band { background: var(--navy); color: var(--white); }
.band-inner {
  min-height: var(--band-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 24px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand .mark { width: 32px; height: 32px; flex: none; }
.brand .wordmark { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.nav a {
  color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.95rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }
.nav .login {
  color: var(--white); border: 1px solid rgba(255,255,255,0.5); border-radius: 999px;
  padding: 6px 14px; margin-left: 6px;
}
.nav .login:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; font-weight: 600; font-size: 0.98rem; text-decoration: none;
  border-radius: 8px; padding: 0.72em 1.35em; border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: #e9f0f8; color: var(--navy); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--wash); color: var(--navy); }

/* ── Hero (start page) ─────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  min-height: calc(100vh - var(--band-h));
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 9vh 24px 7vh;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 26px; max-width: 46rem; }
.eyebrow {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sea); margin-bottom: 14px;
}
.hero .eyebrow { color: var(--sea-light); margin-bottom: 0; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 600; line-height: 1.08;
  letter-spacing: -0.022em; max-width: 19ch;
}
.hero .lede { font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.62; color: rgba(255,255,255,0.8); max-width: 36rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.hero .status {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-indent: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 6px;
}

/* the globe and the port layer share one centred frame inside the hero */
.bg-globe, .ports-layer {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(96vw, 96vh); height: min(96vw, 96vh); z-index: 0; pointer-events: none;
}
.bg-globe { opacity: 0.16; animation: fadeBackdrop 1.6s ease-out both; }
@keyframes fadeBackdrop { from { opacity: 0; } to { opacity: 0.16; } }
.bg-globe .waves { animation: waveDrift 21s linear infinite; }
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(100px); } }
.bg-globe .meridian { animation: meridianSpin 21s linear infinite; }
@keyframes meridianSpin { 0%, 100% { rx: 46px; } 50% { rx: 1px; } }
.bg-globe .m-left  { animation: meridianSpin 21s linear infinite, meridianShade 21s linear infinite -10.5s; }
.bg-globe .m-right { animation: meridianSpin 21s linear infinite, meridianShade 21s linear infinite; }
@keyframes meridianShade { 0% { opacity: 1; } 25% { opacity: 0.22; } 50%, 100% { opacity: 1; } }
.port { fill: #ffffff; opacity: 0; filter: drop-shadow(0 0 1.5px rgba(255,255,255,0.85)); animation: portPulse 80s linear infinite; }
@keyframes portPulse {
  0%, 0.3% { opacity: 0;    r: 0.18px; transform: translateX(-3.5px); }
  0.9%     { opacity: 0.85; r: 0.6px; }
  1.2%     { opacity: 0.85; r: 0.6px; }
  2.2%     { opacity: 0;    r: 0.95px; transform: translateX(3.5px); }
  100%     { opacity: 0;    r: 0.95px; transform: translateX(3.5px); }
}
.rise { animation: rise 1s ease-out both; }
.rise-2 { animation: rise 1s ease-out 0.12s both; }
.rise-3 { animation: rise 1s ease-out 0.24s both; }
.rise-4 { animation: rise 1s ease-out 0.34s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ── Teasers below the hero ────────────────────────────────────────── */
.teasers { padding: 72px 0 80px; }
.teasers .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.teaser { border-top: 2px solid var(--navy); padding-top: 18px; }
.teaser h2 { font-size: 1.12rem; color: var(--navy); margin-bottom: 10px; }
.teaser p { color: var(--muted); font-size: 0.98rem; margin-bottom: 12px; }
.teaser a { font-weight: 600; font-size: 0.95rem; }

/* ── Content pages ─────────────────────────────────────────────────── */
.page { padding: 60px 0 88px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.018em; color: var(--navy); margin-bottom: 22px; }
.page h2 { font-size: 1.28rem; font-weight: 600; color: var(--navy); margin: 44px 0 12px; line-height: 1.25; }
.page h3 { font-size: 1.02rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.page p { font-size: 1.05rem; line-height: 1.66; margin-bottom: 16px; }
.page p.small { font-size: 0.92rem; color: var(--muted); }
.page ul, .page ol { margin: 0 0 16px 1.2em; }
.page li { font-size: 1.05rem; line-height: 1.6; margin-bottom: 10px; }
.page li b, .page p b { color: var(--navy); font-weight: 700; }
.page .next { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); }
.page .next a { font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 30px 0 10px; }
.stat { border-left: 3px solid var(--navy); padding: 2px 0 2px 14px; }
.stat .n { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.stat .n small { font-size: 1rem; font-weight: 600; margin-left: 4px; }
.stat .t { font-size: 0.95rem; color: var(--muted); line-height: 1.4; margin-top: 8px; }
.src { font-size: 0.86rem; color: var(--muted); margin: 0 0 8px; }

.steps { list-style: none; margin: 8px 0 0; counter-reset: step; }
.steps li { position: relative; padding-left: 52px; margin-bottom: 26px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.steps p { margin-bottom: 0; }

.facts { list-style: none; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.facts li { border-left: 2px solid var(--navy); padding-left: 14px; margin: 0; }
.facts p { font-size: 1rem; margin-bottom: 0; }

.cta {
  background: var(--wash); border-radius: 12px; padding: 28px; margin-top: 44px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.cta p { margin: 0; font-size: 1.02rem; }
.cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }

dl.facts-list { display: grid; grid-template-columns: 13rem 1fr; gap: 10px 24px; margin-bottom: 8px; }
dl.facts-list dt { color: var(--muted); font-size: 0.98rem; }
dl.facts-list dd { font-size: 1.02rem; }

/* ── Footer ────────────────────────────────────────────────────────── */
.foot { background: var(--wash); border-top: 1px solid var(--rule); padding: 28px 0; font-size: 0.9rem; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.foot nav, .foot .contact { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--navy); text-decoration: underline; }

/* ── Small screens ─────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .teasers .grid, .stats, .facts { grid-template-columns: 1fr; }
  dl.facts-list { grid-template-columns: 1fr; gap: 2px 0; }
  dl.facts-list dd { margin-bottom: 12px; }
  .hero { min-height: auto; padding: 72px 24px 64px; }
  .band-inner { justify-content: center; }
  .nav { justify-content: center; gap: 4px 14px; }
  .nav a { font-size: 0.92rem; }
  .nav .login { margin-left: 0; padding: 5px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .rise-2, .rise-3, .rise-4, .bg-globe, .bg-globe .waves, .bg-globe .meridian, .port { animation: none; }
}
