/* Keelchain site — shared styles. Palette from brand/README.md. */
:root {
  --sea-1: #081C36; --sea-2: #0F2F5B; --sea-3: #143A6B;
  --teal: #2DD4BF; --teal-dim: #1AA592; --gold: #F5C451;
  --ink: #E8EFF8; --muted: #9DB1CB; --line: rgba(157,177,203,.18);
  --card: rgba(255,255,255,.04); --card-hover: rgba(255,255,255,.07);
  --radius: 16px; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--sea-1);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(45,212,191,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(245,196,81,.10), transparent 60%),
    linear-gradient(180deg, var(--sea-2) 0%, var(--sea-1) 60%);
  background-attachment: fixed;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
pre { margin: 0; padding: 18px 20px; overflow: auto; background: #061426; border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; line-height: 1.55; }
pre code { background: none; padding: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.eyebrow { color: var(--teal); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; margin-bottom: 12px; }

/* header */
header.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(8,28,54,.72); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
header.top img { height: 30px; display: block; }
header.top nav { display: flex; gap: 22px; align-items: center; font-size: .95rem; }
header.top nav a { color: var(--ink); opacity: .85; }
header.top nav a:hover { opacity: 1; text-decoration: none; color: var(--teal); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .82rem; color: var(--muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(45,212,191,.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(45,212,191,.18) } 50% { box-shadow: 0 0 0 8px rgba(45,212,191,.05) } }

/* hero */
.hero { position: relative; padding: 88px 0 56px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: transform .15s, background .15s; }
.btn:hover { text-decoration: none; background: var(--card-hover); transform: translateY(-1px); }
.btn.primary { background: var(--teal); color: #05202B; border-color: transparent; }
.btn.primary:hover { background: #3FE0CC; }
.btn.gold { background: var(--gold); color: #2A1E00; border-color: transparent; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin-left: auto; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.keel-line { stroke: var(--teal); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s ease-out forwards; }
.keel-fill { fill: url(#hull); opacity: 0; animation: fade 1.2s 1.8s ease-out forwards; }
.keel-gold { stroke: var(--gold); stroke-width: 4; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s .9s ease-out forwards; }
.wave { fill: none; stroke: rgba(45,212,191,.35); stroke-width: 2; animation: drift 9s linear infinite; }
.wave.w2 { stroke: rgba(245,196,81,.28); animation-duration: 13s; animation-direction: reverse; }
@keyframes draw { to { stroke-dashoffset: 0 } }
@keyframes fade { to { opacity: 1 } }
@keyframes drift { from { transform: translateX(0) } to { transform: translateX(-120px) } }
.orbit { position: absolute; inset: -6%; border-radius: 50%; border: 1px dashed rgba(157,177,203,.18); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 0; }
.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.stat b { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.stat span { font-size: .8rem; color: var(--muted); }

/* sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: background .2s, transform .2s; }
.card:hover { background: var(--card-hover); transform: translateY(-2px); }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(135deg, rgba(45,212,191,.25), rgba(245,196,81,.18)); color: var(--teal); font-weight: 800; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 24px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step::before { counter-increment: s; content: counter(s); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(245,196,81,.15); color: var(--gold); border: 1px solid rgba(245,196,81,.35); }
.step p { margin: 0; color: var(--muted); }
.note { border-left: 3px solid var(--gold); background: rgba(245,196,81,.07); padding: 12px 16px; border-radius: 0 12px 12px 0; color: var(--ink); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 28px; }
.shot { border-radius: 18px; padding: 10px; background: linear-gradient(160deg, rgba(45,212,191,.25), rgba(245,196,81,.12)); }
.shot img { width: 100%; display: block; border-radius: 12px; border: 1px solid rgba(0,0,0,.35); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.shot figcaption { font-size: .85rem; color: var(--muted); padding: 10px 6px 2px; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 24px; }
.dl a.card { display: block; color: var(--ink); }
.dl a.card:hover { text-decoration: none; }
.dl .tag { display: inline-block; font-size: .72rem; padding: 3px 8px; border-radius: 999px; background: rgba(157,177,203,.15); color: var(--muted); margin-bottom: 10px; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--gold), rgba(157,177,203,.25)); }
.tl { padding-top: 30px; position: relative; padding-right: 20px; }
.tl::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--sea-1); border: 3px solid var(--teal); }
.tl:nth-child(2)::before { border-color: var(--gold); } .tl:nth-child(3)::before { border-color: rgba(157,177,203,.45); }
.tl b { display: block; margin-bottom: 4px; } .tl p { color: var(--muted); font-size: .95rem; margin: 0; }
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
footer h4 { color: var(--ink); margin: 0 0 10px; font-size: .95rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
@media (max-width: 860px) {
  .hero { padding: 56px 0 40px; } .hero .grid, .two, footer .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; margin: 0 auto; } .stats { grid-template-columns: repeat(2, 1fr); }
  header.top nav { gap: 14px; font-size: .88rem; } header.top nav a.hide-sm { display: none; }
  .timeline { grid-template-columns: 1fr; gap: 18px; } .timeline::before { display: none; }
}
