/* Optimum Quants — site styles
   Palette from the logo (petrol blue + antique gold); deep blue hero and contact bands. */
:root {
  --bg: #F6F8F9;
  --surface: #FFFFFF;
  --ink: #0F2F3E;
  --muted: #52646E;
  --line: #DCE3E7;
  --brand: #114861;
  --deep-ink: #EEF3F5;
  --deep-muted: #B3C6CF;
  --logo-word: #114861;
  --logo-gold: #9C7B2E;
  --gold: #7E6224;
  --gold-bright: #C6A04A;
  --gold-soft: #F4EEE0;
  --ok: #1F7A45;
  --error: #B42318;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --maxw: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1C24; --surface: #10262F; --ink: #E6EEF1; --muted: #A0B3BC; --line: #21404D;
    --brand: #5FA3BF; --deep-ink: #E6EEF1; --deep-muted: #A0B3BC;
    --logo-word: #E6EEF1; --logo-gold: #C6A04A; --gold: #D6B466; --gold-bright: #C6A04A; --gold-soft: #2A2617;
    --ok: #5FD08F; --error: #FF8A80;
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 4px; }
.skip-link:focus { left: 16px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 22px; font-weight: 500; }
p { margin: 0; }
.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.lede { color: var(--muted); max-width: 60ch; }
.lede, .service p, .steps p, .why-list li > div, .faq details p, .legal p, .legal li { text-align: justify; text-justify: inter-word; -webkit-hyphens: manual; hyphens: manual; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 4px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--font-body); transition: background .15s, border-color .15s, filter .15s; white-space: nowrap; }
.btn-gold { background: var(--gold-bright); color: #0B2A38; }
.btn-gold:hover { background: #D3AE58; }
.btn-gold[disabled] { opacity: .6; cursor: wait; }
.btn-brand { background: radial-gradient(ellipse 80% 120% at 90% 0%, rgba(56, 189, 248, .35), transparent 65%), linear-gradient(125deg, #020B18 0%, #05264A 55%, #0A4C8C 100%); color: #FFFFFF; border-color: rgba(92, 200, 245, .35); }
.btn-brand:hover { filter: brightness(1.15); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.06); }

/* Logo */
.logo { display: inline-flex; text-decoration: none; }
.logo svg { display: block; height: 30px; width: auto; }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav ul a { text-decoration: none; color: var(--ink); padding-block: 4px; border-bottom: 2px solid transparent; }
.nav ul a:hover { border-bottom-color: var(--logo-gold); }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* Deep blue bands: hero and contact */
.hero, .contact {
  --hero-1: #020B18; --hero-2: #05264A; --hero-3: #0A4C8C; --hero-glow: rgba(56, 189, 248, .28); --hero-cyan: #5CC8F5;
  background:
    radial-gradient(ellipse 60% 80% at 85% 15%, var(--hero-glow), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 110%, rgba(10, 76, 140, .45), transparent 70%),
    linear-gradient(125deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  color: var(--deep-ink); position: relative; overflow: hidden;
}
.hero::before, .contact::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(140, 210, 255, .16) 1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%); mask-image: linear-gradient(100deg, transparent 30%, #000 85%); }
.hero::after, .contact::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--hero-cyan), transparent); opacity: .6; }
.contact::after { top: 0; bottom: auto; }

/* Hero */
.hero { padding-block: 64px 72px; }
.hero-copy { max-width: 680px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 4.3vw, 52px); margin-top: 16px; }
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero .lede { color: var(--deep-muted); margin-top: 20px; font-size: 18px; }
.hero .eyebrow { color: var(--gold-bright); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.frameworks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; list-style: none; padding: 0; }
.frameworks li { font-family: var(--font-body); font-weight: 700; font-size: 12.5px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; color: var(--deep-muted); }
.hero-art { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: min(620px, 58%); height: auto; pointer-events: none; }
.hero-art path { fill: none; stroke-linecap: round; }

/* Sections */
section.block { padding-block: 96px; }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 52px; }

.audience { border-bottom: 1px solid var(--line); background: var(--surface); }
.audience .wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding-block: 26px; }
.audience ul { display: flex; flex-wrap: wrap; gap: 12px 40px; list-style: none; margin: 0; padding: 0; font-family: var(--font-display); font-size: 21px; color: var(--brand); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: 32px 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; background: var(--surface); min-width: 0; transition: background .15s; }
.service:hover { background: var(--gold-soft); }
.service .tag { font-family: var(--font-body); font-weight: 700; font-size: 12px; color: var(--gold); }
.service p { color: var(--muted); font-size: 15.5px; }
.service .out { font-size: 14px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 12px; text-align: left; }
.service .out b { font-weight: 600; }

.process-bg { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { padding: 0 20px 0 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--gold); padding-bottom: 14px; border-bottom: 2px solid var(--logo-gold); }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); font-size: 15px; }

.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why h2 { margin-top: 14px; }
.why-list { display: grid; list-style: none; margin: 0; padding: 0; }
.why-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.why-list li:first-child { border-top: 1px solid var(--line); }
.why-list svg { width: 20px; height: 20px; margin-top: 4px; stroke: var(--gold); fill: none; stroke-width: 2; }
.why-list strong { display: block; font-weight: 600; }
.why-list span { color: var(--muted); font-size: 15.5px; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding-block: 22px; font-family: var(--font-display); font-size: 22px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 700; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 68ch; }

/* Contact */
.contact .wrap { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.contact h2 { margin-top: 14px; }
.contact .lede { color: var(--deep-muted); margin-top: 18px; }
.contact .eyebrow { color: var(--gold-bright); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; font-family: var(--font-mono); font-size: 15px; }
.email-row a { padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; overflow-wrap: anywhere; text-decoration: none; }
.email-row a:hover { border-color: var(--gold-bright); }
.expect { margin-top: 36px; display: grid; gap: 10px; font-size: 15px; color: var(--deep-muted); list-style: none; padding: 0; }
.expect li::before { content: "→ "; color: var(--gold-bright); }
form.inquiry { background: var(--surface); color: var(--ink); border-radius: 6px; padding: 30px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { margin-top: 4px; }
form.inquiry .btn { grid-column: 1 / -1; }
.form-msg { grid-column: 1 / -1; font-size: 14px; min-height: 1.2em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--error); }

/* Footer */
footer.site { background: var(--surface); color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; }
footer .logo svg { height: 22px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer nav a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding-block: 64px 96px; }
.legal .wrap > * { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 4.5vw, 48px); margin: 12px 0 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal ul { color: var(--muted); margin: 0 0 14px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--brand); }
.back { display: inline-block; margin-top: 40px; font-weight: 600; text-decoration: none; color: var(--brand); }

/* Responsive */
@media (max-width: 960px) {
  .nav ul { display: none; }
  .why, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { opacity: .5; width: 90%; right: -30%; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0; }
  .audience .wrap { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .logo svg { height: 20px; }
  .nav { padding-block: 12px; gap: 12px; }
  .nav .btn { padding: 8px 12px; font-size: 13px; }
  .hero { padding-block: 44px 52px; }
  .hero .lede { font-size: 16.5px; }
  .hero-art { display: none; }
  section.block { padding-block: 64px; }
  .services { grid-template-columns: 1fr; }
  form.inquiry { grid-template-columns: 1fr; padding: 22px; }
  .audience ul { font-size: 18px; gap: 6px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
