/* ==========================================================================
   GelSight — Tactile Intelligence · demo site   (v4)
   Blue-tint dark theme (brand slate blue #5c80b0 from 2025 logo master),
   orange #FF8F1C reserved for section-heading overlines + spec-table
   headings only · green #00B176 secondary accent (icons, standout specs).
   Typography discipline per awesome-design-md (NVIDIA pattern).
   ========================================================================== */

:root {
  /* palette — v2 blue-tint scheme */
  --bg: #0b0e14;
  --bg-2: #0f141d;
  --surface: #121826;
  --surface-2: #1a2233;
  --ink: #f2f4f8;
  --ink-2: #c6cdd8;
  --ink-3: #9aa4b4;
  --line: #1e2634;
  --line-strong: #2e3a50;

  --accent: #3a8baa;           /* electric blue — presentation template */
  --accent-bright: #5fb3d1;
  --accent-deep: #2d6e87;
  --orange: #ff8f1c;           /* gs_orange — headings only (overlines, table heads) */
  --orange-bright: #ffa63f;
  --green: #00b176;            /* gs_green */
  --blue: #6590b3;
  --blue-med: #236192;
  --blue-dark: #0e325b;

  /* compatibility aliases */
  --dark: #0b0e14;
  --dark-2: #121826;
  --dark-line: #1e2634;
  --dark-text: #f2f4f8;
  --dark-text-2: #9aa4b4;

  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --max-w: 1120px;
  --radius: 10px;
  --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- type scale ------------------------------------------------------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: #fff; }
.display { font-size: clamp(2.6rem, 5.6vw, 4.2rem); letter-spacing: -0.035em; font-weight: 750; }
.h-xl { font-size: clamp(2rem, 3.8vw, 2.8rem); }
.h-lg { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.h-md { font-size: 1.3rem; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 42em; }
.muted { color: var(--ink-3); }
p { color: var(--ink-2); }

/* section label — big, bold, orange. The "signal" voice.
   NOTE: the ONLY orange besides the spec-table headings. */
.overline {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.overline::before { content: ""; width: 32px; height: 3px; background: var(--orange); }
.overline.ol-green { color: var(--green); }
.overline.ol-green::before { background: var(--green); }

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.92rem; font-weight: 600;
  padding: 10px 20px; border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary { background: #fff; color: #0b0e14; }
.btn-primary:hover { background: #d9d9d9; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; font-weight: 700; }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn-link { color: var(--accent); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.btn-link::after { content: "→"; transition: transform .15s ease; }
.btn-link:hover::after { transform: translateX(3px); }

/* --- staging notice ------------------------------------------------------ */
.staging-banner {
  background: var(--surface-2); color: var(--ink-3); font-size: .78rem;
  text-align: center; padding: 7px 16px; border-bottom: 1px solid var(--line);
}
.staging-banner a { color: var(--accent-bright); text-decoration: underline; }

/* --- utility bar -------------------------------------------------------- */
.utilbar {
  background: #070a10; color: var(--ink-3);
  font-size: 0.8rem; border-bottom: 1px solid var(--line);
}
.utilbar .wrap { display: flex; justify-content: flex-end; gap: 22px; padding-top: 7px; padding-bottom: 7px; }
.utilbar a { color: var(--ink-3); transition: color .15s; font-weight: 500; }
.utilbar a:hover { color: var(--accent-bright); }
.utilbar a.util-hot { color: #fff; }
.utilbar a.util-hot::before { content: "●"; color: var(--accent); font-size: .6rem; margin-right: 6px; vertical-align: 1px; }

/* --- header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 14, 20, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand .brand-sub {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  border-left: 1px solid var(--line-strong); padding-left: 12px;
}
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav > .navitem { position: relative; }
.mainnav > .navitem > a {
  display: block; padding: 8px 13px; font-size: 0.92rem; font-weight: 600;
  color: var(--ink-2); border-radius: 7px; transition: all .15s;
}
.mainnav > .navitem > a:hover,
.mainnav > .navitem > a.active { color: #fff; background: var(--surface-2); }
.mainnav > .navitem > a.active { color: var(--accent-bright); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 260px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all .16s ease;
}
.navitem:hover .dropdown, .navitem:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: .9rem; color: var(--ink-2);
}
.dropdown a:hover { background: var(--surface-2); color: var(--accent-bright); }
.dropdown .dd-label {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent);
  padding: 10px 12px 4px;
}
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 8px; }

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

/* --- hero ---------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(58,139,170,.20), transparent 60%),
    radial-gradient(900px 500px at 12% 110%, rgba(0,177,118,.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before { /* fine measurement grid */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  opacity: .6;
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .45;
  filter: saturate(.9);
}
.hero::after { /* scrim for text legibility over video */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,14,20,.92) 0%, rgba(11,14,20,.72) 45%, rgba(11,14,20,.30) 100%),
    linear-gradient(180deg, rgba(11,14,20,.55) 0%, transparent 30%, transparent 65%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 96px; }
.hero .tagline {
  font-family: var(--font-mono); font-size: .9rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px;
}
.hero .tagline b { color: var(--accent); font-weight: 700; }
.hero h1 { color: #fff; max-width: 15em; }
.hero .lede { color: var(--ink-2); margin-top: 20px; }
.hero .hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero .hero-meta {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; gap: 48px; flex-wrap: wrap;
}
.hero .hero-meta div b {
  display: block; font-size: 1.45rem; color: var(--green); font-weight: 700; letter-spacing: -0.02em;
}
.hero .hero-meta div span { font-size: 1rem; color: var(--ink-3); }

/* page hero (inner pages) */
.page-hero { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-hero .wrap { padding: 72px 24px 56px; }
.page-hero h1 { margin-top: 16px; max-width: 18em; }
.page-hero .lede { margin-top: 16px; }
.page-hero .hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* --- sections ----------------------------------------------------------- */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 44px; max-width: 50em; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; }

/* --- cards / grids ------------------------------------------------------ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all .18s ease;
  display: flex; flex-direction: column;
}
a.card:hover, .card.hoverable:hover {
  border-color: rgba(58,139,170,.65);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transform: translateY(-2px);
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: .92rem; color: var(--ink-3); }
.card .card-kicker {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.card .card-go { margin-top: auto; padding-top: 16px; font-size: .88rem; font-weight: 600; color: var(--accent-bright); }
.card .card-go::after { content: " →"; }
.card-img {
  border-radius: var(--radius); background: var(--surface-2); margin-bottom: 18px;
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
.card-img.contain { object-fit: contain; background: #f2f4f7; padding: 12px; }

/* industry icon tiles (layout borrowed from gelsight.com/industries) */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ind-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 20px 26px; text-align: center; transition: all .18s ease;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px;
}
.ind-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.ind-card .ind-icon {
  width: 64px; height: 64px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.ind-card .ind-icon img { width: 56px; height: 56px; object-fit: contain; }
.ind-card h3 { font-size: 1rem; margin: 0; line-height: 1.3; }
.ind-card .ind-go {
  margin-top: auto;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green);
}

/* two-track panels */
.track {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
  display: flex; flex-direction: column;
}
.track .track-body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.track img, .track video { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.track h3 { font-size: 1.35rem; }
.track .flow {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 20px;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
}
.track .flow span {
  border: 1px solid rgba(58,139,170,.55); border-radius: 999px;
  padding: 4px 12px; color: var(--accent-bright); background: rgba(58,139,170,.10);
}
.track .flow em { align-self: center; color: var(--ink-3); font-style: normal; }
.track .track-body .btn-link { margin-top: auto; }

/* spec table — industrial grid, eye-catching headings */
.spec-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 960px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th {
  font-size: 1.1rem; font-weight: 700; color: var(--orange); line-height: 1.3;
  border-bottom: 3px solid var(--orange);
  background: #151b28;
}
.spec-table thead th small {
  display: block; font-size: .74rem; font-weight: 400; color: var(--ink-3); margin-top: 5px; letter-spacing: 0; text-transform: none;
}
.spec-table thead th:first-child {
  color: #fff; font-family: var(--font-mono); font-size: .88rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.spec-table tbody tr:nth-child(odd) { background: rgba(255,255,255,.03); }
.spec-table tbody tr:hover { background: rgba(58,139,170,.08); }
.spec-table td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.spec-table td:first-child {
  color: var(--orange-bright); font-weight: 700; white-space: nowrap;
  border-right: 1px solid var(--line);
}
.spec-table td.hl { color: var(--green); font-weight: 600; }
.spec-badge {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700; background: rgba(0,177,118,.12);
  color: var(--green); border: 1px solid rgba(0,177,118,.4); padding: 2px 9px; border-radius: 4px;
}
.spec-badge.no { background: transparent; color: var(--ink-3); border-color: var(--line-strong); font-weight: 400; }

/* logo strip */
.logo-strip { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.logo-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.logo-strip .strip-label { font-family: var(--font-mono); font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.logo-strip .logos { display: flex; gap: 36px; flex-wrap: wrap; align-items: center; }
.logo-strip .logos span { font-weight: 700; letter-spacing: -0.01em; color: var(--ink-3); font-size: 1.02rem; }

/* split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); }
.split .overline { margin-bottom: 14px; }
.split h2, .split h3 { margin-bottom: 14px; }
.split p + p { margin-top: 12px; }
.split ul { margin: 16px 0 0 0; list-style: none; }
.split ul li { padding: 7px 0 7px 28px; position: relative; color: var(--ink-2); font-size: .95rem; }
.split ul li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 16px; height: 3px; background: var(--accent);
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(900px 400px at 85% 120%, rgba(58,139,170,.16), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-band .wrap {
  padding-top: 72px; padding-bottom: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { max-width: 18em; }
.cta-band p { color: var(--ink-2); margin-top: 10px; max-width: 36em; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- footer -------------------------------------------------------------- */
.site-footer { background: #070a10; color: var(--ink-3); border-top: 1px solid var(--line); font-size: .88rem; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.footer-grid a { display: block; padding: 4px 0; color: var(--ink-3); }
.footer-grid a:hover { color: var(--accent-bright); }
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-brand p { max-width: 26em; line-height: 1.7; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem;
}
.footer-bottom a { color: var(--ink-3); margin-left: 18px; }
.footer-bottom a:hover { color: var(--accent-bright); }

/* --- forms ---------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label.f-label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: .93rem;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-2);
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
select option { background: var(--surface); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58,139,170,.25);
}

/* --- chat widget ----------------------------------------------------------- */
#gs-chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  transition: transform .18s ease, background .18s;
}
#gs-chat-fab:hover { transform: scale(1.06); background: var(--accent-deep); }
#gs-chat-fab svg { width: 24px; height: 24px; }
#gs-chat-fab .fab-dot {
  position: absolute; top: 3px; right: 3px; width: 12px; height: 12px;
  background: var(--green); border-radius: 50%; border: 2px solid var(--bg);
}

#gs-chat-panel {
  position: fixed; right: 24px; bottom: 94px; z-index: 999;
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 130px);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 16px; box-shadow: 0 24px 64px rgba(0,0,0,.6);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98);
  transition: all .22s cubic-bezier(.2,.8,.25,1);
}
#gs-chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.gs-chat-head {
  background: #070a10; color: #fff; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.gs-chat-head .gs-avatar {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
}
.gs-chat-head .t { font-size: .95rem; font-weight: 700; line-height: 1.2; }
.gs-chat-head .s { font-size: .72rem; color: var(--ink-3); font-family: var(--font-mono); }
.gs-chat-head .s .live { color: var(--green); }
.gs-chat-close { margin-left: auto; background: none; border: none; color: var(--ink-3); cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 4px; }
.gs-chat-close:hover { color: #fff; }

.gs-chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); }
.gs-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.gs-msg.bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink-2); }
.gs-msg.user { background: var(--accent); color: #fff; font-weight: 500; border-bottom-right-radius: 4px; align-self: flex-end; }
.gs-msg a { color: var(--accent-bright); text-decoration: underline; }
.gs-msg.user a { color: #fff; }
.gs-msg .typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.gs-msg .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: gsblink 1.2s infinite; }
.gs-msg .typing i:nth-child(2) { animation-delay: .18s; }
.gs-msg .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes gsblink { 0%, 70%, 100% { opacity: .25; } 35% { opacity: 1; } }

.gs-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 10px; background: var(--bg-2); }
.gs-chips button {
  font: inherit; font-size: .76rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: all .14s;
}
.gs-chips button:hover { border-color: var(--accent); color: var(--accent-bright); }

.gs-chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.gs-chat-input input { flex: 1; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 14px; font: inherit; font-size: .9rem; background: var(--bg-2); color: var(--ink); }
.gs-chat-input input:focus { outline: none; border-color: var(--accent); }
.gs-chat-input button {
  background: var(--accent); color: #fff; border: none; border-radius: 10px;
  width: 42px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.gs-chat-input button:hover { background: var(--accent-deep); }
.gs-chat-foot { font-family: var(--font-mono); font-size: .62rem; text-align: center; color: var(--ink-3); padding: 6px 0 10px; background: var(--surface); }

/* --- compatibility shims ---------------------------------------------------- */
.on-dark .btn-ghost { border-color: var(--line-strong); color: #fff; }
.on-dark .btn-ghost:hover { border-color: var(--accent); }

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 980px) {
  .grid-4, .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .section { padding: 60px 0; }
  .utilbar .wrap { justify-content: center; gap: 16px; }
}

/* --- responsive nav (hamburger) ------------------------------------------ */
.nav-toggle {
  display: none; background: none; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 9px 10px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 1px;
  background: var(--ink-2); margin: 4px 0; transition: transform .2s, opacity .2s;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.dd-toggle { display: none; }

/* tier 1: tighten before anything can collide with the brand */
@media (max-width: 1280px) {
  .brand .brand-sub { display: none; }
  .mainnav { gap: 0; }
  .mainnav > .navitem > a { padding: 8px 9px; font-size: .88rem; }
}

/* tier 2: hamburger + slide-down panel */
@media (max-width: 1080px) {
  .mainnav { display: none; }
  .nav-toggle { display: block; }
  /* toggle sits beside the logo; CTA stays pinned right */
  .site-header .wrap { justify-content: flex-start; gap: 14px; }
  .nav-cta { margin-left: auto; }

  .site-header.nav-open .mainnav {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11, 14, 20, .98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 18px 40px rgba(0,0,0,.5);
    max-height: calc(100vh - 110px); overflow-y: auto;
    padding: 8px 24px 16px;
  }
  .site-header.nav-open .mainnav > .navitem {
    display: flex; flex-wrap: wrap; align-items: center;
    border-top: 1px solid var(--line);
  }
  .site-header.nav-open .mainnav > .navitem:first-child { border-top: 0; }
  .site-header.nav-open .mainnav > .navitem > a { flex: 1; padding: 13px 4px; font-size: 1rem; }

  .site-header.nav-open .dd-toggle {
    display: block; background: none; border: 0; cursor: pointer;
    width: 42px; height: 42px; position: relative;
  }
  .site-header.nav-open .dd-toggle::before {
    content: ""; position: absolute; top: 14px; left: 15px;
    width: 9px; height: 9px;
    border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
    transform: rotate(45deg); transition: transform .18s;
  }
  .site-header.nav-open .navitem.open .dd-toggle::before { transform: rotate(225deg); top: 18px; }

  /* dropdowns become inline, tap-expanded sections */
  .site-header.nav-open .dropdown {
    display: none; position: static; flex-basis: 100%;
    opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none;
    min-width: 0; padding: 0 0 10px 14px;
  }
  .site-header.nav-open .navitem.open .dropdown { display: block; }
}
@media (max-width: 640px) {
  .nav-cta .btn { padding: 8px 12px; font-size: .85rem; }
}
