/* ==========================================================================
   ANDA Exchange — Site stylesheet
   Layered on top of Tailwind (Play CDN). Holds brand tokens, the metallic
   logo treatment, scroll-reveal motion, and a few component patterns that are
   cleaner as classes than as long utility strings.

   Palette drawn from the AE monogram: deep navy + brushed-steel gradient.
   Type: EB Garamond (display, authoritative) · Lato (body) · IBM Plex Mono (data)
   ========================================================================== */

:root {
  /* Brand — navy (from the AE mark) */
  --navy-950: #081726;
  --navy-900: #0c2236;
  --navy-800: #123049;
  --navy-700: #1a4063;   /* primary */
  --navy-600: #265683;
  --navy-500: #356a9c;

  /* Brushed steel (the metallic highlight in the logo) */
  --steel-500: #6f86a0;
  --steel-400: #8a9db4;
  --steel-300: #b4c2d4;
  --steel-200: #d6deea;
  --steel-100: #eef2f7;

  /* Accent — confident azure for CTAs */
  --accent: #0c6fb1;
  --accent-deep: #0a5c93;

  /* Neutrals */
  --ink: #0b1623;        /* primary text */
  --slate: #47576b;      /* secondary text — AA on white */
  --muted: #6b7c91;      /* tertiary */
  --paper: #f5f8fc;      /* page background */
  --surface: #ffffff;
  --border: #e1e8f1;
  --border-strong: #cdd8e6;

  /* Semantic */
  --success: #157a52;
  --warning: #b7791f;
  --danger: #c0392b;

  /* Type */
  --display: "EB Garamond", Georgia, "Times New Roman", serif;
  --body: "Lato", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 35, .06), 0 1px 3px rgba(11, 22, 35, .08);
  --shadow-md: 0 6px 16px -6px rgba(12, 34, 54, .18);
  --shadow-lg: 0 24px 48px -16px rgba(12, 34, 54, .28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--navy-900); }

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-deep); }

.font-display { font-family: var(--display); }
.font-mono { font-family: var(--mono); }

::selection { background: var(--navy-700); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Layout helpers ---- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow--light { color: var(--steel-300); }
.lede { font-size: 1.15rem; color: var(--slate); line-height: 1.7; }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 200;
  background: var(--navy-700); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 8px; transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ==========================================================================
   Brand mark — recreates the brushed-steel feel beside the PNG when needed
   ========================================================================== */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b {
  font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  color: var(--navy-900); letter-spacing: .01em;
}
.brand-word span {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.site-header.on-dark .brand-word b { color: #fff; }
.site-header.on-dark .brand-word span { color: var(--steel-300); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: .95rem;
  padding: 13px 24px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-800); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--navy-700); background: var(--surface); color: var(--navy-800); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--steel-100); color: var(--navy-900); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header.on-dark {
  background: rgba(8,23,38,.72); border-bottom-color: rgba(255,255,255,.08);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav-menu { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--slate); font-weight: 600; font-size: .94rem;
  padding: 9px 14px; border-radius: 8px; transition: all .16s ease;
}
.nav-links > li > a:hover { color: var(--navy-900); background: var(--steel-100); }
.nav-links > li > a.active { color: var(--navy-900); }
.site-header.on-dark .nav-links > li > a { color: var(--steel-200); }
.site-header.on-dark .nav-links > li > a:hover,
.site-header.on-dark .nav-links > li > a.active { color: #fff; background: rgba(255,255,255,.08); }

/* The "List your ANDA" CTA is a primary button — keep its text white in every
   header state (the .nav-links link colours above otherwise win on specificity). */
.nav-links > li > a.nav-cta,
.nav-links > li > a.nav-cta:hover,
.nav-links > li > a.nav-cta.active,
.site-header.on-dark .nav-links > li > a.nav-cta,
.site-header.on-dark .nav-links > li > a.nav-cta:hover { color: #fff; }

.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px);
  opacity: .6; transition: transform .18s ease;
}
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--slate); font-weight: 600; font-size: .9rem;
}
.dropdown a:hover { background: var(--steel-100); color: var(--navy-900); }
.dropdown a small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: 2px; }

.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--border-strong);
  border-radius: 8px; padding: 8px 12px; font-family: var(--mono);
  font-size: .72rem; letter-spacing: .12em; font-weight: 600; cursor: pointer;
  color: var(--navy-800);
}
.site-header.on-dark .nav-toggle { color: #fff; border-color: rgba(255,255,255,.3); }

/* ==========================================================================
   Sections / cards
   ========================================================================== */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 14px; }
.section-head .lede { margin-top: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-500));
  color: #fff; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card p { color: var(--slate); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   Dark band (hero / CTA)
   ========================================================================== */
.band-dark {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% -10%, rgba(53,106,156,.40), transparent 60%),
    radial-gradient(640px 420px at 10% 110%, rgba(12,111,177,.30), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: #fff;
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lede { color: var(--steel-200); }

/* faint grid texture for the hero */
.grid-texture::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 78%);
}

/* ---- Interactive hero FX: gooey metaball gradients + cursor-following blob ----
   Vanilla adaptation of the Aceternity / 21st.dev BackgroundGradientAnimation,
   recolored to the navy / steel / azure brand palette. The blobs are merged
   with an SVG "goo" filter so they meld like a lava lamp. */
.bd-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bd-goo {
  --size: 80%;
  --blend: screen;
  position: absolute; inset: 0;
  filter: url(#bd-goo-filter) blur(40px);
}
.bd-goo.is-safari { filter: blur(52px); }   /* Safari: skip the SVG goo filter */

.bd-goo .g {
  position: absolute;
  width: var(--size); height: var(--size);
  top: calc(50% - var(--size) / 2);
  left: calc(50% - var(--size) / 2);
  mix-blend-mode: var(--blend);
  background-repeat: no-repeat;
  will-change: transform;
  opacity: .95;
}
.bd-goo .g1 { background: radial-gradient(circle at center, rgba(12,111,177,.9) 0, rgba(12,111,177,0) 50%);  transform-origin: center center; animation: bd-moveVertical 30s ease infinite; }
.bd-goo .g2 { background: radial-gradient(circle at center, rgba(125,185,240,.85) 0, rgba(125,185,240,0) 50%); transform-origin: calc(50% - 400px); animation: bd-moveInCircle 20s reverse infinite; }
.bd-goo .g3 { background: radial-gradient(circle at center, rgba(53,106,156,.85) 0, rgba(53,106,156,0) 50%);  transform-origin: calc(50% + 400px); animation: bd-moveInCircle 40s linear infinite; }
.bd-goo .g4 { background: radial-gradient(circle at center, rgba(110,134,160,.8) 0, rgba(110,134,160,0) 50%); transform-origin: calc(50% - 200px); animation: bd-moveHorizontal 40s ease infinite; opacity: .7; }
.bd-goo .g5 { background: radial-gradient(circle at center, rgba(10,92,147,.85) 0, rgba(10,92,147,0) 50%);    transform-origin: calc(50% - 800px) calc(50% + 800px); animation: bd-moveInCircle 20s ease infinite; }

/* cursor-following blob (melds into the goo) */
.bd-pointer {
  position: absolute; width: 100%; height: 100%; top: -50%; left: -50%;
  mix-blend-mode: var(--blend); opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(circle at center, rgba(135,195,245,.85) 0, rgba(135,195,245,0) 50%) no-repeat;
  will-change: transform;
}
.band-dark.is-hover .bd-pointer { opacity: .8; }

@keyframes bd-moveVertical { 0% { transform: translateY(-50%); } 50% { transform: translateY(50%); } 100% { transform: translateY(-50%); } }
@keyframes bd-moveInCircle { 0% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes bd-moveHorizontal { 0% { transform: translateX(-50%) translateY(-10%); } 50% { transform: translateX(50%) translateY(10%); } 100% { transform: translateX(-50%) translateY(-10%); } }

@media (prefers-reduced-motion: reduce) {
  .bd-goo .g { animation: none !important; }
  .bd-pointer { display: none; }
}

/* ==========================================================================
   Stat ledger
   ========================================================================== */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.ledger.on-dark { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.12); }
.ledger-cell { background: var(--surface); padding: 28px 24px; }
.ledger.on-dark .ledger-cell { background: transparent; }
.ledger-num { font-family: var(--display); font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 600; color: var(--navy-800); line-height: 1; }
.ledger.on-dark .ledger-num { color: #fff; }
.ledger-label { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.ledger.on-dark .ledger-label { color: var(--steel-300); }

/* ==========================================================================
   Process steps
   ========================================================================== */
.step { position: relative; padding-left: 0; }
.step-num {
  font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--accent);
  border: 1.5px solid var(--border-strong); border-radius: 999px;
  width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: .98rem; }

/* ==========================================================================
   Listings
   ========================================================================== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm);
}
.filter-bar .search { flex: 1 1 280px; }
.search { position: relative; }
.search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.input, .select {
  width: 100%; font-family: var(--body); font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: 10px; padding: 12px 14px; transition: border-color .16s ease, box-shadow .16s ease;
}
.search .input { padding-left: 42px; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(12,111,177,.15); }
label { font-weight: 600; font-size: .9rem; color: var(--navy-800); display: block; margin-bottom: 7px; }

/* table wrapper: no scroll container on desktop (so the sticky header works);
   horizontal-scroll safety net only in the mid range */
.table-wrap { overflow: visible; }
@media (min-width: 861px) and (max-width: 1100px) { .table-wrap { overflow-x: auto; } }

.listings-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); }
.listings-table th {
  text-align: left; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
  padding: 12px 9px; background: var(--steel-100); border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none; white-space: nowrap;
  position: sticky; top: 76px; z-index: 5;   /* freeze header below the sticky site nav */
}
/* round the table corners manually (no overflow:hidden, which would break sticky) */
.listings-table thead th:first-child { border-top-left-radius: 14px; }
.listings-table thead th:last-child { border-top-right-radius: 14px; }
.listings-table tbody tr:last-child td:first-child { border-bottom-left-radius: 14px; }
.listings-table tbody tr:last-child td:last-child { border-bottom-right-radius: 14px; }
.listings-table th:first-child, .listings-table td:first-child { padding-left: 16px; }
.listings-table th[aria-sort] .arrow { opacity: 1; }
.listings-table th .arrow { opacity: .3; margin-left: 4px; }
.listings-table td { padding: 11px 9px; border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--slate); vertical-align: middle; }
.listings-table tbody tr:last-child td { border-bottom: none; }
.listings-table tbody tr { transition: background .14s ease; cursor: pointer; }
.listings-table tbody tr:hover { background: var(--steel-100); }
.mol { font-weight: 700; color: var(--navy-900); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
/* keep numeric columns compact */
.listings-table td.num, .listings-table th[data-sort="market"], .listings-table th[data-sort="competitors"] { white-space: nowrap; }
/* compact action column */
.listings-table th.col-action, .listings-table td.col-action { width: 1%; text-align: right; padding-left: 4px; }
.req-icon {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--steel-100); color: var(--accent); border: 1px solid var(--border);
  transition: background .16s ease, color .16s ease, transform .16s ease; flex: none;
}
.req-icon svg { width: 15px; height: 15px; }
.listings-table tbody tr:hover .req-icon { background: var(--accent); color: #fff; transform: translateX(2px); }
/* Mid widths (small laptops / tablets): drop the two numeric columns
   (5 = Market Size, 6 = Competitors) so the table fits without horizontal scroll;
   they return on full desktops. Below 860px the table becomes cards instead. */
@media (min-width: 861px) and (max-width: 1100px) {
  .listings-table th:nth-child(5), .listings-table td:nth-child(5),
  .listings-table th:nth-child(6), .listings-table td:nth-child(6) { display: none; }
}

/* Mobile: turn each row into a full-width stacked card */
@media (max-width: 860px) {
  .listings-table { border: none; box-shadow: none; background: transparent; border-radius: 0; }
  .listings-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .listings-table, .listings-table tbody, .listings-table tr, .listings-table td { display: block; width: auto; }
  .listings-table tr { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 16px 18px; margin-bottom: 14px; }
  .listings-table tbody tr:hover { background: var(--surface); }
  .listings-table td { border: none; padding: 7px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 18px; font-size: .92rem; text-align: right; white-space: normal; }
  .listings-table td::before { content: attr(data-label); font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; text-align: left; flex: 0 0 auto; align-self: center; }
  .listings-table td.mol { display: block; text-align: left; font-size: 1.2rem; padding: 0 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
  .listings-table td.mol::before { display: none; }
  .listings-table td.mol .mol-note { max-width: none; }
  .listings-table td.num { font-size: .92rem; }
  .listings-table td.col-action { display: block; width: auto; text-align: left; padding: 12px 0 2px; }
  .listings-table td.col-action::before { display: none; }
  .req-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: auto; border-radius: 10px; padding: 11px 16px; background: var(--accent); color: #fff; border: none; gap: 8px; }
  .req-icon svg { order: 2; }
  .listings-table tbody tr:hover .req-icon { transform: none; background: var(--accent); color: #fff; }
  .req-icon::after { order: 1; content: "Request details"; font-weight: 700; font-size: .92rem; font-family: var(--body); }
  .sort-hint { display: none; }
}

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; font-family: var(--mono); letter-spacing: .02em; white-space: nowrap; }
.tag-green { background: #e3f3ec; color: var(--success); }
.tag-amber { background: #fbf0db; color: var(--warning); }
.tag-steel { background: var(--steel-100); color: var(--navy-700); }
.tag-blue { background: #e3eefb; color: var(--accent-deep); }
.tag-red { background: #fdecea; color: var(--danger); }

/* "Request details" / inline forward link */
.req { font-weight: 700; font-size: .85rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.req::after { content: "\2192"; transition: transform .16s ease; }
.req:hover::after { transform: translateX(3px); }
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Our Network — sister-site logo box (definite height; SVGs collapse at auto) */
.net-logo { height: 88px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.net-logo img { height: 88px; width: auto; max-width: 92%; object-fit: contain; }

/* listing cards (mobile + buyers preview) */
.listing-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
textarea.input { resize: vertical; min-height: 130px; }
.help { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.required { color: var(--danger); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: var(--steel-200); padding-block: 64px 32px; }
.site-footer h4 { color: #fff; font-family: var(--body); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: var(--steel-300); font-weight: 400; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--steel-400); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: fixed; inset: 76px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .26s ease; padding: 16px var(--gutter) 24px;
  }
  .site-header.on-dark .nav-menu { background: var(--navy-900); }
  .nav-menu.open { transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-links > li > a { padding: 13px 14px; font-size: 1rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 6px 14px; min-width: 0; }
  .has-dropdown > a::after { display: none; }
  .nav-cta { margin: 8px 0 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ledger { grid-template-columns: 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover, .listing-card:hover { transform: none !important; }
}
