/* =========================================================================
   ARG website — design system (refreshed, on-brand). Single stylesheet.
   Tokens → base → layout → components. Edit tokens to restyle globally.
   ========================================================================= */
:root {
  /* Brand */
  --navy: #024192;          /* primary brand / hero / CTA */
  --navy-700: #01336f;
  --navy-050: #eef3fb;      /* navy tint — icon plates, chips */
  --blue: #007aff;          /* links, accents (sparingly) */
  --ink: #1d1d1f;           /* headings */
  --grey: #6e6e73;          /* body text */
  --grey-400: #86868b;
  --line: #e6e6e9;          /* hairline borders */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;       /* alt sections / image bg */
  --bg-softer: #fafafa;
  --white: #ffffff;
  --ok: #1a7f37;
  --err: #cf2e2e;

  /* Type — clean modern system stack (no web-font dependency = faster) */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --h1: clamp(2.2rem, 5vw, 3.6rem);
  --h2: clamp(1.7rem, 3.2vw, 2.4rem);
  --h3: 1.25rem;
  --lead: clamp(1.05rem, 1.6vw, 1.3rem);

  /* Shape / spacing */
  --radius: 12px;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
  --container: 1160px;
  --gap: 1.25rem;
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.14; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: var(--h1); } h2 { font-size: var(--h2); } h3 { font-size: var(--h3); }
h4 { font-size: 1.05rem; }
p { color: var(--grey); margin: 0 0 1rem; }
ul, ol { color: var(--grey); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: 760px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); margin: 0 0 .6rem; }
.hero .eyebrow, .cta-band .eyebrow { color: rgba(255,255,255,.7); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--navy); color:#fff; padding:.5rem .75rem; border-radius:8px; z-index:100; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display:inline-block; padding:.72rem 1.35rem; border-radius:999px; font-weight:600; font-size:.95rem; line-height:1.1; border:1px solid transparent; cursor:pointer; transition:.15s; }
.btn:hover { text-decoration:none; }
.btn-primary { background:var(--navy); color:#fff; }
.btn-primary:hover { background:var(--navy-700); }
.btn-ghost { background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover { border-color:var(--ink); }
.btn-light { background:#fff; color:var(--navy); }
.btn-light:hover { background:var(--bg-soft); }
.btn + .btn { margin-left:.5rem; }

/* text link with arrow */
.arrow-link { font-weight:600; display:inline-block; }

/* ---------- Header / nav ---------- */
.site-header { position:sticky; top:0; z-index:50; background:rgba(255,255,255,.85); backdrop-filter:saturate(180%) blur(12px); -webkit-backdrop-filter:saturate(180%) blur(12px); border-bottom:1px solid var(--line); }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:var(--header-h); }
.brand img { height:46px; width:auto; }
.nav-list { list-style:none; display:flex; align-items:center; gap:1.4rem; margin:0; padding:0; }
.nav-item > a { color:var(--ink); font-weight:500; font-size:.95rem; padding:.5rem 0; }
.nav-item > a:hover { text-decoration:none; color:var(--navy); }
.nav-item[aria-current] > a, .nav-item > a[aria-current] { color:var(--navy); }
.nav-item.has-menu { position:relative; }
.submenu, .megamenu { position:absolute; top:100%; left:0; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:.6rem; min-width:250px; opacity:0; visibility:hidden; transform:translateY(6px); transition:.15s; }
.megamenu { left:50%; transform:translate(-50%,6px); min-width:640px; }
.nav-item.has-menu:hover .submenu, .nav-item.has-menu:hover .megamenu,
.nav-item.has-menu:focus-within .submenu, .nav-item.has-menu:focus-within .megamenu { opacity:1; visibility:visible; transform:translateY(0); }
.megamenu:hover, .nav-item.has-menu:hover .megamenu, .nav-item.has-menu:focus-within .megamenu { transform:translate(-50%,0); }
.submenu ul, .megamenu ul { list-style:none; margin:0; padding:0; }
.submenu a, .megamenu a { display:block; padding:.45rem .6rem; border-radius:8px; color:var(--grey); font-size:.9rem; }
.submenu a:hover, .megamenu a:hover { background:var(--bg-soft); color:var(--ink); text-decoration:none; }
.megamenu-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:.5rem 1.5rem; }
.mm-heading { display:block; font-weight:600; color:var(--ink); padding:.4rem .6rem; }
.mm-heading:hover { color:var(--navy); text-decoration:none; }
.nav-cta { margin-left:.4rem; }
.nav-toggle { display:none; flex-direction:column; gap:5px; background:none; border:0; padding:.5rem; cursor:pointer; }
.nav-toggle span { width:24px; height:2px; background:var(--ink); border-radius:2px; transition:.2s; }

/* ---------- Sections & layout helpers ---------- */
section { padding-block: var(--section-y); }
.section-soft { background:var(--bg-soft); }
.section-tight { padding-block: clamp(2rem,4vw,3rem); }
.center { text-align:center; }
.lead { font-size:var(--lead); color:var(--grey); max-width:62ch; }
.center .lead { margin-inline:auto; }
.section-head { max-width:56ch; }
.center .section-head { margin-inline:auto; }
.mt-1{margin-top:.5rem} .mt-2{margin-top:1rem} .mt-3{margin-top:1.75rem} .mt-4{margin-top:2.5rem}

/* Hero (centered, navy) */
.hero { background:var(--navy); color:#fff; text-align:center; }
.hero h1 { color:#fff; max-width:18ch; margin-inline:auto; }
.hero p { color:rgba(255,255,255,.85); font-size:var(--lead); max-width:58ch; margin:1rem auto 1.75rem; }
.hero .hero-sub { font-size:var(--lead); font-weight:600; color:#fff; margin:.25rem auto .5rem; max-width:40ch; }
.hero .btn + .btn { margin-left:.5rem; }

/* Product hero (image + copy) */
.hero-product { background:var(--navy); color:#fff; }
.hero-product .hero-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:2.5rem; align-items:center; }
.hero-product h1 { color:#fff; }
.hero-product .hero-sub { font-size:var(--lead); font-weight:600; color:#fff; margin:.25rem 0 .75rem; }
.hero-product p { color:rgba(255,255,255,.85); }
.hero-figure { background:#fff; border-radius:var(--radius-lg); padding:1.75rem; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); }
.hero-figure img { max-height:340px; width:auto; object-fit:contain; }

/* Stats */
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); text-align:center; }
.stats-4 { grid-template-columns:repeat(4,1fr); }
.stat .num { font-size:clamp(1.5rem,2.6vw,2.4rem); font-weight:700; color:var(--navy); letter-spacing:-.03em; line-height:1.1; }
.stat .label { color:var(--grey); font-size:.92rem; }
.stat-band .stat .num { color:var(--navy); }

/* Card grid */
.grid { display:grid; gap:var(--gap); }
.grid-2 { grid-template-columns:repeat(2,1fr); }
.grid-3 { grid-template-columns:repeat(3,1fr); }
.grid-4 { grid-template-columns:repeat(4,1fr); }
.grid-2.align-center { align-items:center; }
.card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition:.15s; display:block; color:inherit; }
a.card:hover { text-decoration:none; }
.card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.card img { aspect-ratio:16/10; object-fit:cover; width:100%; background:var(--bg-soft); }
/* Product-render cards: show the whole part (contain) on a soft plate, not cropped */
.card img.showcase-img { object-fit:contain; padding:.85rem; }
.card .card-body { padding:1rem 1.15rem 1.25rem; }
.card-ph { aspect-ratio:16/10; background:linear-gradient(135deg,var(--navy-050),#dbe7f8); display:flex; align-items:center; justify-content:center; color:var(--navy); font-weight:600; font-size:.85rem; text-align:center; padding:1rem; }
.card h3, .card h4 { font-size:1.02rem; margin-bottom:.3rem; color:var(--ink); }
.card p { font-size:.92rem; margin:0; }

/* Feature / application cards (icon + title + text) */
.feature { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:1.4rem 1.35rem; transition:.15s; }
.feature:hover { box-shadow:var(--shadow-sm); }
.feature .ficon { width:44px; height:44px; border-radius:12px; background:var(--navy-050); display:flex; align-items:center; justify-content:center; font-size:1.4rem; margin-bottom:.9rem; }
.feature h3, .feature h4 { font-size:1.05rem; margin-bottom:.35rem; }
.feature p { font-size:.93rem; margin:0; }

/* Detail lists (capability "what we bring" blocks) */
.detail { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:1.5rem; }
.detail h3, .detail h4 { font-size:1.05rem; margin-bottom:.75rem; }
/* Optional header image inside a .detail card (bleeds to the card edges) */
.detail-img { display:block; width:calc(100% + 3rem); margin:-1.5rem -1.5rem 1.25rem; aspect-ratio:16/10; object-fit:contain; background:var(--bg-soft); padding:.85rem; border-radius:var(--radius) var(--radius) 0 0; }
.spec-list { list-style:none; margin:0; padding:0; }
.spec-list li { position:relative; padding-left:1.35rem; margin-bottom:.55rem; font-size:.93rem; color:var(--grey); }
.spec-list li::before { content:""; position:absolute; left:0; top:.55em; width:7px; height:7px; border-radius:2px; background:var(--blue); }
.spec-list li:last-child { margin-bottom:0; }

/* Numbered process steps */
.steps { display:grid; gap:var(--gap); grid-template-columns:repeat(3,1fr); counter-reset:step; }
.steps-4 { grid-template-columns:repeat(4,1fr); }
.step { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:1.5rem; }
.step .step-n { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:999px; background:var(--navy); color:#fff; font-weight:700; margin-bottom:.9rem; }
.step h3, .step h4 { font-size:1.05rem; margin-bottom:.3rem; }
.step p { font-size:.93rem; margin:0; }

/* Specs table (product pages) */
.specs { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.specs caption { text-align:left; font-weight:600; color:var(--ink); padding:.4rem 0 .7rem; font-size:1rem; }
.specs th, .specs td { text-align:left; padding:.75rem 1rem; border-bottom:1px solid var(--line); font-size:.93rem; vertical-align:top; overflow-wrap:anywhere; }
.specs th[scope="row"] { width:34%; color:var(--ink); font-weight:600; background:var(--bg-softer); }
.specs thead th { background:var(--navy-050); color:var(--ink); font-weight:600; }
.specs tbody tr:last-child th, .specs tbody tr:last-child td { border-bottom:0; }
.table-wrap { overflow-x:auto; }

/* Documentation download buttons */
.docs-row { display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center; }

/* FAQ (details/summary accordion) */
.faq { max-width:820px; margin-inline:auto; }
.faq details { background:#fff; border:1px solid var(--line); border-radius:var(--radius); margin-bottom:.6rem; overflow:hidden; }
.faq summary { list-style:none; cursor:pointer; padding:1rem 1.2rem; font-weight:600; color:var(--ink); display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-weight:400; font-size:1.4rem; color:var(--blue); line-height:1; }
.faq details[open] summary::after { content:"–"; }
.faq details[open] summary { border-bottom:1px solid var(--line); }
.faq .faq-body { padding:1rem 1.2rem 1.2rem; }
.faq .faq-body p { margin:0; font-size:.95rem; }
.faq-note { text-align:center; font-size:.82rem; color:var(--grey-400); margin-top:1.5rem; }

/* Callout (platform pages) */
.callout { background:var(--navy-050); border:1px solid #d5e2f5; border-left:4px solid var(--navy); border-radius:var(--radius); padding:1.1rem 1.35rem; margin:1.5rem 0 0; font-size:1rem; color:var(--ink); max-width:70ch; }
.center .callout { margin-inline:auto; }

/* Mono code-ish chip (topic strings) */
.mono { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:.86em; background:var(--bg-soft); padding:.1rem .4rem; border-radius:6px; overflow-wrap:anywhere; }

/* CTA band */
.cta-band { background:var(--navy); color:#fff; text-align:center; }
.cta-band h2 { color:#fff; }
.cta-band p { color:rgba(255,255,255,.85); max-width:52ch; margin-inline:auto; }

/* ---------- Depth on navy surfaces (heros + CTA) ----------
   Layered, image-free: opaque diagonal gradient (base) → whisper blueprint grid
   → soft top glow. Adds dimensionality without noise; tune the alphas to taste. */
.hero, .hero-product, .cta-band {
  background-color: var(--navy);
  background-image:
    radial-gradient(1100px 460px at 50% -14%, rgba(255,255,255,.12), transparent 60%),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.028) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 48px),
    linear-gradient(158deg, var(--navy-700) 0%, var(--navy) 55%, #0a4aa0 100%);
  background-repeat: no-repeat, repeat, repeat, no-repeat;
}

/* Prose (privacy, long-form) */
.prose { max-width:760px; }
.prose h2 { margin-top:2rem; font-size:1.4rem; }
.prose ul { padding-left:1.2rem; }
.prose li { margin-bottom:.5rem; }

/* ---------- Forms ---------- */
.form-layout { display:grid; grid-template-columns:1fr 340px; gap:3rem; align-items:start; }
.form { max-width:640px; }
.form .field { margin-bottom:1.1rem; }
.form label { display:block; font-weight:600; font-size:.92rem; color:var(--ink); margin-bottom:.35rem; }
.form .req { color:var(--blue); }
.form input, .form select, .form textarea { width:100%; padding:.7rem .85rem; border:1px solid var(--line); border-radius:10px; font:inherit; color:var(--ink); background:#fff; }
.form textarea { min-height:130px; resize:vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color:var(--blue); outline:none; box-shadow:0 0 0 3px rgba(0,122,255,.15); }
.form-status { margin-top:1rem; font-size:.95rem; }
.form-status.ok { color:var(--ok); } .form-status.err { color:var(--err); }
.aside-card { background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius); padding:1.5rem; }
.aside-card h3 { font-size:1.02rem; margin-bottom:.3rem; }
.aside-card p { font-size:.92rem; }
.aside-card + .aside-card { margin-top:1rem; }
/* Honeypot spam trap — off-screen, skipped by AT & tab order; not display:none (bots detect that) */
.hp-field { position:absolute !important; left:-9999px !important; top:auto; width:1px; height:1px; overflow:hidden; }

/* ---------- Footer ---------- */
.site-footer { background:var(--bg-soft); border-top:1px solid var(--line); padding-block:3rem 1.5rem; margin-top:0; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr; gap:2rem; }
.footer-brand img { height:44px; width:auto; margin-bottom:1rem; }
.footer-block { margin:.75rem 0; font-size:.92rem; }
.footer-label { font-weight:600; color:var(--ink); }
.footer-links ul { list-style:none; margin:0 0 1rem; padding:0; display:grid; gap:.5rem; }
.footer-links a { color:var(--grey); }
.footer-social { color:var(--grey); font-weight:600; }
.footer-legal { margin-top:2rem; padding-top:1rem; border-top:1px solid var(--line); color:var(--grey); font-size:.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-product .hero-grid { grid-template-columns:1fr; }
  .hero-figure { order:-1; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4, .steps, .steps-4 { grid-template-columns:repeat(2,1fr); }
  .stats-4 { grid-template-columns:repeat(2,1fr); }
  .megamenu, .megamenu-grid { grid-template-columns:1fr; min-width:auto; }
  .form-layout { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display:flex; }
  .primary-nav { position:fixed; inset:var(--header-h) 0 auto 0; background:#fff; border-bottom:1px solid var(--line); padding:1rem 1.25rem; transform:translateY(-120%); transition:.25s; max-height:calc(100vh - var(--header-h)); overflow:auto; box-shadow:var(--shadow); }
  .primary-nav.open { transform:translateY(0); }
  .nav-list { flex-direction:column; align-items:stretch; gap:.25rem; }
  .nav-cta { margin:.5rem 0 0; }
  .submenu, .megamenu { position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; padding:.25rem 0 .5rem 1rem; min-width:auto; }
  .grid-2, .grid-3, .grid-4, .stats, .stats-4, .steps, .steps-4 { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .btn + .btn { margin-left:0; margin-top:.5rem; display:inline-block; }
}
@media (prefers-reduced-motion: reduce) { * { transition:none !important; scroll-behavior:auto; } }
