/* Nimai TradeHub — design system
   Brand colours sampled from the NTH logo: deep navy #003180, royal #064bac, bright #006ce2. */
:root {
  --navy-950: #020817;
  --navy-900: #041235;
  --navy-800: #07205c;
  --navy-700: #003180;
  --blue-600: #064bac;
  --blue-500: #0a5ad8;
  --blue-400: #006ce2;
  --blue-300: #4b9bff;
  --cyan: #7cc4ff;

  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --ink: #0a1530;
  --ink-2: #3c4a68;
  --muted: #66738f;
  --line: #dfe5f0;
  --brand: var(--blue-500);
  --brand-ink: #0645b8;
  --focus: #0a5ad8;
  --shadow-sm: 0 1px 2px rgba(6, 20, 60, .06), 0 2px 8px rgba(6, 20, 60, .05);
  --shadow-md: 0 10px 30px -12px rgba(6, 30, 90, .25);
  --shadow-lg: 0 30px 80px -30px rgba(4, 26, 90, .45);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font-display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #030a1d; --surface: #071330; --surface-2: #0a1a40; --ink: #eaf0ff; --ink-2: #b7c3de;
    --muted: #8d9bbb; --line: #16285a; --brand: #4b9bff; --brand-ink: #7cb7ff; --focus: #7cc4ff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 14px 34px -14px rgba(0,0,0,.7);
    --shadow-lg: 0 30px 80px -30px rgba(0,0,0,.85); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #030a1d; --surface: #071330; --surface-2: #0a1a40; --ink: #eaf0ff; --ink-2: #b7c3de;
  --muted: #8d9bbb; --line: #16285a; --brand: #4b9bff; --brand-ink: #7cb7ff; --focus: #7cc4ff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 14px 34px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 30px 80px -30px rgba(0,0,0,.85); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--font-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); letter-spacing: -.035em; font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.85rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blue-400), var(--cyan)); }

/* header */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s var(--ease), box-shadow .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav.is-solid, .nav.is-light { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; }
.brand .mark-dark { display: none; }
.brand b { display: block; font: 600 1.12rem/1 var(--font-display); letter-spacing: -.01em; }
.brand small { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-top: 5px; }
.nav.is-solid .brand, .nav.is-light .brand { color: var(--ink); }
.nav.is-solid .mark-light, .nav.is-light .mark-light { display: none; }
.nav.is-solid .mark-dark, .nav.is-light .mark-dark { display: block; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .25s, color .25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.nav.is-solid .nav-links a, .nav.is-light .nav-links a { color: var(--ink-2); }
.nav.is-solid .nav-links a:hover, .nav.is-light .nav-links a:hover, .nav.is-solid .nav-links a[aria-current="page"], .nav.is-light .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; cursor: pointer; }
.nav.is-solid .menu-btn, .nav.is-light .menu-btn { color: var(--ink); border-color: var(--line); }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .3s var(--ease); border-radius: 2px; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* buttons */
.btn { --bx: 0px; --by: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transform: translate(var(--bx), var(--by)); transition: transform .35s var(--ease), background .3s, box-shadow .3s, color .3s, border-color .3s; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue-400), var(--blue-600)); box-shadow: 0 10px 30px -10px rgba(0,108,226,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(0,108,226,.95), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }
.btn-line { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-line:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }

/* dark stage (hero + inner hero + CTA) */
.stage { position: relative; color: #e8efff; background:
  radial-gradient(1200px 600px at 75% 30%, rgba(0,108,226,.28), transparent 60%),
  radial-gradient(900px 500px at 10% 90%, rgba(6,75,172,.35), transparent 60%),
  linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, #05184a); overflow: hidden; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; pointer-events: none;
  background-image: linear-gradient(rgba(124,196,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(124,196,255,.07) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); }
.stage .spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(500px circle at var(--sx, 50%) var(--sy, 40%), rgba(75,155,255,.14), transparent 60%); }
.stage a:not(.btn) { color: var(--cyan); }

.hero { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .45em; font-size: clamp(2.1rem, 4vw, 3.8rem); }
.hero h1 .grad, .grad { background: linear-gradient(100deg, #fff 10%, var(--cyan) 50%, var(--blue-300) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: #b9c8ea; max-width: 40em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .74rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.stage .eyebrow { color: var(--cyan); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .78rem; font-weight: 500; letter-spacing: .02em; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(124,196,255,.22); background: rgba(124,196,255,.06); color: #cfe0ff; }
.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.hero-visual .fallback { position: absolute; inset: 12%; opacity: .95; filter: drop-shadow(0 30px 80px rgba(0,108,226,.55)); transition: opacity .8s; animation: floaty 9s ease-in-out infinite; }
.hero-visual.webgl-on .fallback { opacity: 0; }
#scene { max-width: none; position: absolute; inset: -20%; width: 140%; height: 140%; opacity: 0; transition: opacity 1.4s var(--ease); }
.webgl-on #scene { opacity: 1; }
.orbit { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(124,196,255,.18); animation: spin 60s linear infinite; pointer-events: none; }
.orbit::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(2deg); } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 20px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; border-radius: var(--r-md); overflow: hidden; background: rgba(124,196,255,.14); border: 1px solid rgba(124,196,255,.14); }
.hero-stats div { background: rgba(4,18,53,.72); backdrop-filter: blur(10px); padding: 22px 24px; }
.hero-stats b { display: block; font: 600 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--font-display); color: #fff; letter-spacing: -.02em; }
.hero-stats span { font-size: .84rem; color: #9fb2da; }

/* marquee */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 22px 0; }
.marquee-label { text-align: center; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marq 48s linear infinite; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 600 1.05rem/1 var(--font-display); color: var(--ink-2); white-space: nowrap; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--brand); opacity: .5; }
@keyframes marq { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 760px; margin-inline: auto; }
.answer { font-size: 1.12rem; color: var(--ink-2); max-width: 60em; border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; }

/* product family cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--r-lg); text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .4s, border-color .4s; transform-style: preserve-3d; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(10,90,216,.12), transparent 50%); }
.card:hover { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card:hover::before { opacity: 1; }
.card .num { position: absolute; top: 26px; right: 28px; font: 500 .8rem/1 var(--font-display); color: var(--muted); letter-spacing: .1em; }
.icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 26px; color: #fff; transform: translateZ(40px);
  background: linear-gradient(145deg, var(--blue-400), var(--navy-700)); box-shadow: 0 14px 30px -12px rgba(0,80,200,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.icon svg { width: 30px; height: 30px; }
.card h3 { transform: translateZ(24px); }
.card p { color: var(--ink-2); font-size: .96rem; }
.card ul { list-style: none; padding: 0; margin: 6px 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.card ul li { font-size: .78rem; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.card .more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--brand-ink); display: inline-flex; gap: 8px; align-items: center; }
.card .more svg { width: 16px; transition: transform .3s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }

/* buyers */
.buyers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.buyer { padding: 28px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); }
.buyer h3 { font-size: 1.05rem; }
.buyer ul { list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: .93rem; }
.buyer li { padding: 7px 0; border-top: 1px dashed var(--line); }
.buyer li:first-child { border-top: 0; }

/* process */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps.has-line::before, .steps.has-line::after { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); }
.steps.has-line::after { background: linear-gradient(90deg, var(--blue-400), var(--cyan)); transform-origin: 0 50%; transform: scaleX(var(--draw, 0)); transition: transform 1.6s var(--ease) .2s; }
.steps li::before { z-index: 1; }
.mt-l { margin-top: 44px; } .mt-xl { margin-top: 64px; }
.steps li { position: relative; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 22px; position: relative;
  font: 600 1rem/1 var(--font-display); color: var(--brand-ink); background: var(--surface); border: 2px solid var(--brand); box-shadow: 0 0 0 8px var(--bg); }
.section-alt .steps li::before { box-shadow: 0 0 0 8px var(--surface); }
.steps p { color: var(--ink-2); font-size: .95rem; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

/* credentials */
.creds { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); font-size: .95rem; }
.creds th, .creds td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.creds tr:last-child td { border-bottom: 0; }
.creds thead th { background: var(--surface-2); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.creds code { font: 600 .9rem/1.3 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); }
.copy { margin-left: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 8px; font-size: .72rem; padding: 3px 8px; cursor: pointer; }
.copy:hover { color: var(--brand-ink); border-color: var(--brand); }
.table-wrap { overflow-x: auto; border-radius: var(--r-md); }
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.cert { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 12px; cursor: zoom-in; text-align: left; color: var(--ink); font: inherit; transition: transform .4s var(--ease), box-shadow .4s; }
.cert:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cert img { border-radius: 8px; aspect-ratio: 3 / 4.2; object-fit: cover; object-position: top; width: 100%; background: #fff; }
.cert span { display: block; font-weight: 600; font-size: .9rem; margin-top: 10px; }
.cert small { color: var(--muted); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(900px, 94vw); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(2,8,23,.82); backdrop-filter: blur(6px); }
dialog.lightbox img { max-height: 86vh; width: auto; margin: auto; border-radius: 10px; }
dialog.lightbox button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; cursor: pointer; }

/* faq */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.08rem; font-weight: 500; }
.faq summary::after { content: ""; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: linear-gradient(var(--ink), var(--ink)) center/12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 12px no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 52em; }

/* quote builder */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.quote-card { background: rgba(255,255,255,.04); border: 1px solid rgba(124,196,255,.18); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); backdrop-filter: blur(12px); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .84rem; font-weight: 500; color: #b9c8ea; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: #fff; background: rgba(2,8,23,.5); border: 1px solid rgba(124,196,255,.22); border-radius: 12px; padding: 12px 14px; }
.field textarea { min-height: 110px; resize: vertical; }
.field select option { color: #000; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(124,196,255,.2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.note { font-size: .8rem; color: #8ea2cc; margin-top: 12px; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--cyan); margin-top: 3px; }
.contact-list small { display: block; color: #8ea2cc; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

/* inner pages */
.page-hero { padding: 150px 0 80px; }
.page-hero .wrap { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.page-hero .mini { position: relative; aspect-ratio: 1; max-width: 300px; justify-self: center; width: 100%; }
.crumbs { font-size: .84rem; color: #8ea2cc; margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: #cfe0ff; text-decoration: none; }
.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.item { padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.item h3 { display: flex; align-items: center; gap: 12px; }
.item h3::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--brand); flex-shrink: 0; }
.item p { color: var(--ink-2); }
.item dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .9rem; }
.item dt { color: var(--muted); font-weight: 500; }
.item dd { margin: 0; color: var(--ink-2); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: transform .4s var(--ease), border-color .3s; }
.related a:hover { transform: translateY(-4px); border-color: var(--brand); }
.related small { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 4px; }

/* CTA band */
.cta-band { border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: #b9c8ea; margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* footer */
.footer { background: var(--navy-950); color: #9fb2da; padding: 80px 0 32px; font-size: .92rem; }
.footer .brand { color: #fff; margin-bottom: 18px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { color: #cfe0ff; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(124,196,255,.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .82rem; }
.theme-toggle { background: transparent; border: 1px solid rgba(124,196,255,.25); color: #cfe0ff; border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: .8rem; }

/* floating WhatsApp */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #1faa53; box-shadow: 0 12px 30px -8px rgba(31,170,83,.7); transition: transform .3s var(--ease); }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 28px; height: 28px; }

/* reveal motion */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .split-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.js .split-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 120ms + 150ms); }
.js .ready .split-line > span, .ready .split-line > span { transform: none; }

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .buyers { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav-links { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); transform: translateY(-120%); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .3s, visibility .45s; }
  .menu-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a, .nav.is-solid .nav-links a { color: var(--ink); padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-cta { margin: 14px 0 0; }
  .nav-links .btn { color: #fff; border-bottom: 0; border-radius: 999px; }
  .menu-open .nav { background: var(--surface); }
  .menu-open .nav .brand { color: var(--ink); }
  .menu-open .nav .mark-light { display: none; } .menu-open .nav .mark-dark { display: block; }
  .menu-open .menu-btn { color: var(--ink); border-color: var(--line); }
  .hero-grid, .page-hero .wrap, .split, .quote, .section-head, .cta-band { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero-visual { max-width: 380px; order: -1; margin-bottom: -20px; }
  .page-hero .mini { display: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps.has-line::before, .steps.has-line::after { display: none; }
  .items, .related { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cards, .buyers, .certs { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div { padding: 18px; }
  .steps { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 280px; }
  .scroll-cue { display: none; }
  .creds thead { display: none; }
  .creds, .creds tbody, .creds tr, .creds td { display: block; width: 100%; }
  .creds tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .creds tr:last-child { border-bottom: 0; }
  .creds td { border: 0; padding: 2px 0; }
  .creds td:first-child { font-weight: 600; }
  .creds td:nth-child(3), .creds td:nth-child(4) { font-size: .85rem; color: var(--muted); }
  .btn { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .split-line > span { opacity: 1; transform: none; }
}
@media print {
  .nav, .wa, .progress, #scene, .scroll-cue, .marquee { display: none !important; }
  .stage { background: #fff; color: #000; }
}

/* keep hero text above the 3D canvas */
.hero-grid > div:first-child, .page-hero .wrap > div:first-child { position: relative; z-index: 2; }
.hero-visual { z-index: 1; }
