/* ==========================================================================
   Coinfish Trading Company - Site Stylesheet
   Bolder modern fintech. Navy base, teal + gold accents.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #0A2342;
  --navy-900: #061629;
  --navy-800: #0d2c52;
  --navy-700: #143866;
  --teal: #1CA9B6;
  --teal-bright: #25c5d4;
  --gold: #D4AF37;
  --gold-bright: #e6c24f;

  /* Neutrals */
  --ink: #4B4B4B;
  --line: #E9E9E9;
  --off-white: #F9F9F9;
  --white: #FFFFFF;

  /* Derived */
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.18);
  --glow-teal: rgba(28, 169, 182, 0.35);
  --glow-gold: rgba(212, 175, 55, 0.30);

  /* Type */
  --f-head: 'Inter', system-ui, sans-serif;
  --f-display: 'Spectral', Georgia, serif;
  --f-body: 'Open Sans', system-ui, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--navy-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--white);
}

.eyebrow {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
}

.serif {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,0.72); max-width: 60ch; }

.grad-text {
  background: linear-gradient(100deg, var(--teal-bright), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold);
  --fg: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 100px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px var(--glow-gold); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--teal { --bg: var(--teal); --fg: var(--white); }
.btn--teal:hover { box-shadow: 0 14px 34px -12px var(--glow-teal); }

.btn--ghost {
  --bg: transparent; --fg: var(--white);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover { background: rgba(255,255,255,0.05); box-shadow: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 22, 41, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand b {
  font-family: var(--f-head); font-weight: 700; color: var(--white);
  font-size: 1.05rem; letter-spacing: -0.01em;
}
.brand span { color: var(--gold); }
.site-header .brand img { width: 54px; height: 54px; border-radius: 12px; }
.site-header .brand b { font-size: 1.42rem; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--f-head); font-weight: 500; font-size: 0.92rem;
  color: rgba(255,255,255,0.78); position: relative; padding: 6px 0;
  transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Backgrounds ---------- */
.bg-navy { background: var(--navy-900); }
.bg-navy-grad {
  background:
    radial-gradient(60% 70% at 80% -10%, rgba(28,169,182,0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
}
.bg-panel { background: var(--navy-800); }


/* Faint grid texture for fintech feel */
.grid-tex::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(70px, 11vw, 150px); }
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  margin-top: 22px;
}
.hero p { margin-top: 26px; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.ticker {
  margin-top: 56px; border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 0;
}
.ticker .cell {
  flex: 1 1 160px; padding: 20px 22px; border-left: 1px solid var(--hairline);
}
.ticker .cell:first-child { border-left: 0; padding-left: 0; }
.ticker .k { font-family: var(--f-head); font-weight: 700; font-size: 1.7rem; color: var(--white); }
.ticker .k .grad-text { font-weight: 700; }
.ticker .v { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 4px; letter-spacing: 0.02em; }

/* ---------- Feature rows ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.feature--rev .feature-media { order: 2; }
.feature h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-top: 18px; }
.feature p { margin-top: 18px; color: rgba(255,255,255,0.70); }
.feature .pull { color: var(--white); }
.feature .pull b { color: var(--gold); }
.feature .pull i { color: var(--teal-bright); font-style: normal; }
.feature .more { margin-top: 24px; }

.media-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--hairline-strong);
  background: var(--navy-800);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7);
}
.media-card img { width: 100%; }
.media-card .tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--f-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy-900);
  background: var(--gold); padding: 6px 12px; border-radius: 100px;
}

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-weight: 600; font-size: 0.9rem; color: var(--teal-bright);
}
.link-more .arrow { transition: transform .3s var(--ease); }
.link-more:hover .arrow { transform: translateX(4px); }

/* ---------- Section heading block ---------- */
.sec-head { max-width: 720px; }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 16px; }
.sec-head p { margin-top: 18px; }

/* ---------- Cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.card {
  background: var(--navy-800);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--hairline-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.card:hover::after { transform: scaleX(1); }
.card .ic {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(28,169,182,0.12); color: var(--teal-bright); margin-bottom: 20px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: rgba(255,255,255,0.65); font-size: 0.96rem; margin: 0 0 18px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; counter-reset: s; }
.step { padding: 30px; border: 1px solid var(--hairline); border-radius: var(--radius); background: rgba(255,255,255,0.02); }
.step .n {
  font-family: var(--f-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em;
  color: var(--gold); display: block; margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,0.62); font-size: 0.94rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: clamp(16px, 3vw, 28px);
  border: 1px solid var(--hairline-strong);
  padding: clamp(40px, 7vw, 80px);
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(28,169,182,0.22), transparent 60%),
    linear-gradient(180deg, var(--navy-700), var(--navy-900));
}
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.cta-band p { margin: 18px auto 0; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Newsletter inline ---------- */
.subscribe { display: flex; gap: 10px; max-width: 480px; margin: 30px auto 0; flex-wrap: wrap; }
.subscribe input {
  flex: 1 1 220px; padding: 15px 18px; border-radius: 100px;
  border: 1px solid var(--hairline-strong); background: rgba(255,255,255,0.04);
  color: var(--white); font-family: var(--f-body); font-size: 0.95rem;
}
.subscribe input::placeholder { color: rgba(255,255,255,0.45); }
.subscribe input:focus { outline: none; border-color: var(--teal); }
.note { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); border-top: 1px solid var(--hairline); padding-block: 64px 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--f-head); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-grid a { color: rgba(255,255,255,0.66); font-size: 0.94rem; }
.foot-grid a:hover { color: var(--white); }
.foot-about p { color: rgba(255,255,255,0.6); max-width: 38ch; margin: 16px 0 0; font-size: 0.94rem; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--hairline); color: rgba(255,255,255,0.7); transition: .25s; }
.socials a:hover { color: var(--navy-900); background: var(--gold); border-color: var(--gold); }
.foot-bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
}
.disclaimer { font-size: 0.74rem; color: rgba(255,255,255,0.34); line-height: 1.7; margin-top: 20px; max-width: 90ch; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-block: clamp(60px, 9vw, 120px) clamp(40px, 6vw, 70px); position: relative; z-index: 2; display: flex; align-items: center; min-height: clamp(400px, 40vw, 500px); }
.page-hero > .wrap { width: 100%; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); margin-top: 20px; }
.page-hero p { margin-top: 22px; max-width: 62ch; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 48px; }
.prose h3 { font-size: 1.3rem; margin-top: 34px; color: var(--white); }
.prose p { color: rgba(255,255,255,0.74); margin-top: 16px; }
.prose strong { color: var(--white); }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.stats .s { background: var(--navy-800); padding: 30px 24px; }
.stats .s b { font-family: var(--f-head); font-weight: 700; font-size: 2rem; color: var(--white); display: block; }
.stats .s span { font-size: 0.84rem; color: rgba(255,255,255,0.55); }

/* ---------- Pricing / tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; align-items: stretch; }
.tier { display: flex; flex-direction: column; background: var(--navy-800); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 34px 30px; }
.tier.feat { border-color: var(--gold); box-shadow: 0 30px 70px -34px var(--glow-gold); }
.tier .badge { font-family: var(--f-head); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.tier h3 { font-size: 1.4rem; }
.tier .price { font-family: var(--f-head); font-weight: 700; color: var(--white); font-size: 2.4rem; margin: 14px 0 4px; }
.tier .price small { font-size: 0.9rem; font-weight: 400; color: rgba(255,255,255,0.5); }
.tier .price .was { font-size: 1.4rem; font-weight: 500; color: rgba(255,255,255,0.4); text-decoration: line-through; margin-right: 8px; }
.tier.feat .price .was { color: rgba(255,255,255,0.45); }
.tier ul { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 13px; }
.tier li { color: rgba(255,255,255,0.74); font-size: 0.94rem; display: flex; gap: 10px; }
.tier li svg { flex: none; color: var(--teal-bright); margin-top: 3px; }
.tier .btn { margin-top: auto; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--f-head); font-weight: 600; color: var(--white); font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { color: var(--gold); transition: transform .3s; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq p { color: rgba(255,255,255,0.68); margin: 0 0 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form { background: var(--navy-800); border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--f-head); font-weight: 500; font-size: 0.85rem; color: rgba(255,255,255,0.78); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong); background: rgba(255,255,255,0.04);
  color: var(--white); font-family: var(--f-body); font-size: 0.95rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); }
.contact-info .row { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.contact-info .row .ic { width: 44px; height: 44px; border-radius: 11px; flex: none; display: grid; place-items: center; background: rgba(212,175,55,0.12); color: var(--gold); }
.contact-info .row b { color: var(--white); font-family: var(--f-head); display: block; margin-bottom: 4px; }
.contact-info .row span { color: rgba(255,255,255,0.62); font-size: 0.94rem; }

/* ---------- Reveal animation ---------- */
/* Visible by default so content NEVER disappears if the script is cached/blocked.
   JS adds .armed to enable the fade-up; the observer then adds .in. */
.reveal { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.armed { opacity: 0; transform: translateY(24px); }
.reveal.armed.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.armed { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile nav drawer ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid var(--hairline);
    padding: 12px var(--gut) 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--hairline); font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feature { grid-template-columns: 1fr; }
  .feature--rev .feature-media { order: 0; }
  .cards, .steps, .tiers { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cards, .steps, .tiers { grid-template-columns: 1fr; }
  .ticker .cell { flex-basis: 50%; border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Blog listing ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 54px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--navy-800); border: 1px solid var(--hairline);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.post-card:hover { transform: translateY(-6px); border-color: var(--hairline-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.post-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-700); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .cat {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--f-head); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy-900); background: var(--gold);
  padding: 5px 11px; border-radius: 100px;
}
.post-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-family: var(--f-head); font-size: 0.74rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); text-transform: uppercase; margin-bottom: 12px; }
.post-card h3 { font-size: 1.18rem; line-height: 1.25; margin-bottom: 10px; }
.post-card p { color: rgba(255,255,255,0.64); font-size: 0.93rem; margin: 0 0 18px; }
.post-card .link-more { margin-top: auto; }

.featured-post {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin-top: 48px;
  background: var(--navy-800); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); overflow: hidden;
}
.featured-post .thumb { aspect-ratio: auto; min-height: 320px; background: var(--navy-700); position: relative; }
.featured-post .thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-post .body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.featured-post h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 14px 0 14px; }
.featured-post p { color: rgba(255,255,255,0.7); margin: 0 0 24px; }

/* ---------- Article (single post) ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article-head { max-width: 820px; margin-inline: auto; text-align: center; }
.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-top: 18px; }
.article-meta { margin-top: 22px; font-family: var(--f-head); font-size: 0.85rem; color: rgba(255,255,255,0.55); display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-hero-img { margin: 44px auto 0; max-width: 980px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hairline-strong); }
.article-hero-img img { display: block; width: 100%; height: auto; }
.article-body { margin-top: 44px; }
.article-body p { color: rgba(255,255,255,0.78); margin-top: 20px; font-size: 1.05rem; line-height: 1.8; }
.article-body h2 { font-size: 1.6rem; margin-top: 44px; }
.article-body h3 { font-size: 1.25rem; margin-top: 32px; color: var(--white); }
.article-body ul { margin-top: 20px; padding-left: 22px; color: rgba(255,255,255,0.78); }
.article-body li { margin-bottom: 10px; line-height: 1.7; }
.article-body strong { color: var(--white); }
.article-body blockquote {
  margin: 34px 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--gold);
  font-family: var(--f-display); font-style: italic; font-size: 1.3rem; color: var(--white);
}
.author-row { display: flex; align-items: center; gap: 14px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.author-row .av { width: 46px; height: 46px; border-radius: 50%; background: var(--navy-700); display: grid; place-items: center; color: var(--gold); font-family: var(--f-head); font-weight: 700; }
.author-row b { color: var(--white); font-family: var(--f-head); display: block; }
.author-row span { color: rgba(255,255,255,0.55); font-size: 0.86rem; }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .thumb { min-height: 220px; }
}
@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- Login nav link ---------- */
.login-link {
  font-family: var(--f-head); font-weight: 500; font-size: 0.92rem;
  color: rgba(255,255,255,0.82); padding: 6px 4px; transition: color .2s;
}
.login-link:hover { color: var(--white); }

/* ---------- 4-column footer override ---------- */
.foot-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 620px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-legal-line { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-legal-line a { color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.foot-legal-line a:hover { color: var(--white); }

/* ---------- Sticky email capture bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(6,22,41,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline-strong);
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.sticky-bar.show { transform: none; }
.sticky-bar .inner {
  max-width: var(--maxw); margin-inline: auto; padding: 14px var(--gut);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.sticky-bar .msg { flex: 1 1 280px; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.sticky-bar .msg b { color: var(--white); font-family: var(--f-head); }
.sticky-bar form { display: flex; gap: 8px; flex: 0 1 auto; flex-wrap: wrap; }
.sticky-bar input {
  padding: 11px 15px; border-radius: 100px; border: 1px solid var(--hairline-strong);
  background: rgba(255,255,255,0.05); color: var(--white); font-family: var(--f-body); min-width: 200px;
}
.sticky-bar input:focus { outline: none; border-color: var(--teal); }
.sticky-bar .btn { padding: 11px 22px; }
.sticky-bar .close {
  background: none; border: 0; color: rgba(255,255,255,0.5); cursor: pointer;
  font-size: 1.4rem; line-height: 1; padding: 4px 8px;
}
.sticky-bar .close:hover { color: var(--white); }
@media (max-width: 640px) { .sticky-bar .msg { flex-basis: 100%; } }

/* ---------- Track record ---------- */
.tr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.tr-stats .s { background: var(--navy-800); padding: 28px 22px; text-align: center; }
.tr-stats .s b { font-family: var(--f-head); font-weight: 700; font-size: 2.1rem; color: var(--white); display: block; }
.tr-stats .s.win b { color: var(--teal-bright); }
.tr-stats .s.loss b { color: #e08a8a; }
.tr-stats .s span { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius); }
table.trades { width: 100%; border-collapse: collapse; min-width: 640px; }
table.trades th, table.trades td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--hairline); font-size: 0.92rem; }
table.trades th { font-family: var(--f-head); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); background: var(--navy-800); position: sticky; top: 0; }
table.trades td { color: rgba(255,255,255,0.8); }
table.trades tr:last-child td { border-bottom: 0; }
.pill { font-family: var(--f-head); font-weight: 600; font-size: 0.72rem; padding: 4px 11px; border-radius: 100px; display: inline-block; }
.pill.w { background: rgba(28,169,182,0.16); color: var(--teal-bright); }
.pill.l { background: rgba(224,138,138,0.16); color: #e9a5a5; }
.tr-note { font-size: 0.84rem; color: rgba(255,255,255,0.45); margin-top: 16px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.quote { background: var(--navy-800); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 30px; }
.quote p { color: rgba(255,255,255,0.82); font-size: 1rem; margin: 0 0 20px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-700); display: grid; place-items: center; color: var(--gold); font-family: var(--f-head); font-weight: 700; }
.quote .who b { color: var(--white); font-family: var(--f-head); display: block; font-size: 0.92rem; }
.quote .who span { color: rgba(255,255,255,0.5); font-size: 0.82rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } .tr-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Glossary ---------- */
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.term { background: var(--navy-800); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 24px 26px; }
.term b { color: var(--white); font-family: var(--f-head); font-size: 1.05rem; display: block; margin-bottom: 8px; }
.term span { color: rgba(255,255,255,0.66); font-size: 0.93rem; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.founder .portrait { aspect-ratio: 1; border-radius: var(--radius); background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); border: 1px solid var(--hairline-strong); display: grid; place-items: center; }
.founder .portrait .mono { font-family: var(--f-head); font-weight: 700; font-size: 4rem; color: var(--gold); }
.founder h2 { margin-top: 14px; }
.founder p { color: rgba(255,255,255,0.74); margin-top: 16px; }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } .founder .portrait { max-width: 260px; } }

/* ---------- Login ---------- */
.login-wrap { max-width: 440px; margin-inline: auto; }
.login-card { background: var(--navy-800); border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(30px, 4vw, 46px); }
.login-card .alt { text-align: center; margin-top: 22px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.login-card .alt a { color: var(--teal-bright); }
.login-card .forgot { font-size: 0.82rem; color: var(--teal-bright); }

/* ---------- Legal prose ---------- */
.legal { max-width: 800px; margin-inline: auto; }
.legal p, .legal li { color: rgba(255,255,255,0.74); margin-top: 14px; font-size: 0.97rem; line-height: 1.75; }
.legal h2 { font-size: 1.35rem; margin-top: 40px; }
.legal h3 { font-size: 1.1rem; margin-top: 26px; color: var(--white); }
.legal ul { padding-left: 22px; }
.legal .updated { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 8px; }

/* ---------- Events ---------- */
.events { margin-top: 48px; display: grid; gap: 14px; }
.event { display: flex; gap: 22px; align-items: center; background: var(--navy-800); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px 26px; }
.event .date { flex: none; text-align: center; width: 70px; }
.event .date .d { font-family: var(--f-head); font-weight: 700; font-size: 1.7rem; color: var(--white); line-height: 1; }
.event .date .m { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.event .info { flex: 1; }
.event .info b { color: var(--white); font-family: var(--f-head); }
/* ---------- Animal art beside the page title (home + every page hero) ---------- */
.hero--framed .hero-inner { margin-inline: auto; max-width: 760px; text-align: center; }
.hero--framed .eyebrow { justify-content: center; }
.hero--framed .lead { margin-inline: auto; }
.hero--framed .hero-actions { justify-content: center; }
.hero--framed .ticker { text-align: left; }

.hero-band { position: relative; --title-half: 390px; --art-gap: clamp(16px, 2.2vw, 46px); }
.page-hero { --title-half: 415px; --art-gap: clamp(16px, 2.2vw, 46px); }

.hero-creature {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4; pointer-events: none; opacity: 0.5;
  height: clamp(210px, 24vw, 320px); width: auto; max-width: none;
}
.hero-creature--l { right: calc(50% + var(--title-half) + var(--art-gap)); left: auto; }
.hero-creature--r { left: calc(50% + var(--title-half) + var(--art-gap)); right: auto; }

@media (max-width: 1280px) {
  .hero-creature { display: none; }
  .hero--framed .hero-inner { margin-inline: 0; text-align: left; max-width: 880px; }
  .hero--framed .eyebrow, .hero--framed .hero-actions { justify-content: flex-start; }
  .hero--framed .lead { margin-inline: 0; }
}

/* ---------- Nav layout tweaks: brand spacing + Log in after the button ---------- */
.brand { margin-right: 40px; }
.nav-cta .btn { order: 1; }
.nav-cta .login-link { order: 2; margin-left: 4px; }
.nav-cta .nav-toggle { order: 3; }
/* nav fit refinement: tighter link spacing, no text wrapping, modest brand gap */
.nav-links { gap: 22px; }
.nav-links a, .login-link, .btn { white-space: nowrap; }
.brand { margin-right: 48px; }
.nav-cta { margin-left: 48px; }
/* shrink header CTA + tighten links so the nav fits and the two gaps render evenly */
.site-header .nav-cta .btn { padding: 9px 18px; font-size: 0.82rem; gap: 6px; }
.site-header .nav-links { gap: 18px; }

/* Platform logo marquee (continuous loop) */
.logo-carousel {
  position: relative; margin-top: 54px; overflow: hidden; padding-block: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.lc-track { display: flex; width: max-content; animation: lc-marquee 40s linear infinite; }
.logo-carousel:hover .lc-track { animation-play-state: paused; }
.lc-item {
  flex: 0 0 auto; margin-right: 18px;
  width: clamp(150px, 18vw, 190px); min-height: 110px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 18px 16px;
  text-decoration: none; text-align: center;
  transition: transform .3s var(--ease);
}
.lc-item:hover { transform: scale(1.14) translateY(-3px); }
.lc-logo {
  height: 42px; max-width: 168px; width: auto; object-fit: contain;
  opacity: .9; transition: opacity .35s var(--ease);
}
.lc-item:hover .lc-logo { opacity: 1; }
.lc-cap { font-family: var(--f-head); font-size: .82rem; color: rgba(255,255,255,0.55); transition: color .4s var(--ease); }
.lc-item:hover .lc-cap { color: var(--gold-bright); }
@keyframes lc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lc-track { animation: none; } }
