/* InferenceIntegra — one CSS file, no frameworks.
   Identity: the inspection certificate. Deep navy world, electric cyan used
   ONLY as the data/signal color, Archivo for everything spoken,
   IBM Plex Mono for everything stamped (eyebrows, codes, ticker, form labels).
   Colors: edit the 7 vars. */
:root {
  --deep: #071426;     /* darkest navy — header, hero, process, CTA, footer */
  --ink: #0B1E3B;      /* brand navy — text on light, mid-dark surfaces */
  --card-dark: #0D2440; /* card surface on dark sections */
  --signal: #22D3EE;   /* electric cyan — data & accents on dark (9.5:1 on deep) */
  --accent: #0E7490;   /* deep cyan — eyebrows, stamps, numbers on light (5.4:1 w/ white) */
  --paper: #f4f7fb;
  --muted: #4a5872;    /* secondary text on light — 7.2:1 */
  --mist: #9FB0C9;     /* secondary text on dark — 7.4:1 on deep */
}
:root {
  --sans: "Archivo", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "SF Mono", monospace;
  --line: #dfe6f0;                        /* hairlines on light */
  --line-dark: rgba(255,255,255,.09);     /* hairlines on dark */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; }
h1, h2 { text-wrap: balance; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 640px; }

/* Browser chrome, themed from the palette. */
::selection { background: var(--signal); color: var(--deep); }
html { scrollbar-color: #c2cede transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #c2cede; border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }

a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
header a:focus-visible, .hero a:focus-visible, .dark a:focus-visible { outline-color: var(--signal); }

/* ---------- Header ---------- */
header { position: sticky; top: 0; background: rgba(7,20,38,.97);
  border-bottom: 1px solid var(--line-dark); z-index: 10; }
nav { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: #fff; }
.logo span { color: var(--signal); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: #C9D4E6; text-decoration: none; font-size: 0.95rem; padding: 8px 0; }
.nav-links a:not(.btn):hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 14px 28px;
  border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; transition: background .15s ease-out, border-color .15s ease-out; }
.btn:hover { background: #155E75; }
.btn.small { padding: 11px 20px; font-size: 0.9rem; }
.btn.signal { background: var(--signal); color: var(--deep); }
.btn.signal:hover { background: #7CE4F5; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn.ghost:hover { border-color: rgba(255,255,255,.65); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden;
  background: linear-gradient(172deg, var(--deep) 0%, var(--ink) 74%, #0E2A49 100%);
  color: #fff; padding: 118px 0 0; }
/* Blueprint grid — engineering-paper texture, fades out downward. */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(159,176,201,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,176,201,.10) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 96%); }
/* One quiet cyan glow, top right — like a scan lamp. */
.hero::after { content: ""; position: absolute; width: 760px; height: 760px; right: -220px;
  top: -300px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(34,211,238,.14), transparent 72%); }
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--signal); }
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.1rem); line-height: 1.06; letter-spacing: -0.03em;
  max-width: 780px; font-weight: 700; margin-top: 20px; }
.hero .sub { margin: 24px 0 36px; color: var(--mist); max-width: 600px; font-size: 1.06rem; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Eyebrows — the numbered document thread ---------- */
.eyebrow { font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.dark .eyebrow { color: var(--signal); }

/* ---------- The ticker — real model names, real deal terms ---------- */
.ticker { margin-top: 92px; overflow: hidden; position: relative; z-index: 1;
  border-top: 1px solid rgba(34,211,238,.28); border-bottom: 1px solid rgba(34,211,238,.28);
  background: rgba(255,255,255,.025); }
.ticker-track { display: flex; width: max-content; animation: ticker 42s linear infinite;
  will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--signal);
  white-space: nowrap; padding: 15px 0; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: #fff; }
.section[id] { scroll-margin-top: 80px; } /* anchored jumps clear the sticky 64px header */
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-top: 14px;
  letter-spacing: -0.02em; font-weight: 700; }

/* ---------- Cards (light sections) ---------- */
.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
#faq .grid { gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px;
  transition: transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out; }
.section.alt .card { background: var(--paper); }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11,30,59,.10);
  border-color: #d3dde9; }
.card .code { font-family: var(--mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: block;
  margin-bottom: 14px; }
.cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cardhead h3 { margin-bottom: 0; }
.cardhead + p { margin-top: 10px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; font-weight: 700; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card > .stamp { margin-top: 16px; display: inline-block; }

/* Status stamps — set like inspection-report fields. */
.stamp { font-family: var(--mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(14,116,144,.4); border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.dark .stamp { color: var(--signal); border-color: rgba(34,211,238,.45); }

/* ---------- Process — the loud section, on dark ---------- */
.dark { background: linear-gradient(172deg, var(--ink) 0%, var(--deep) 88%); color: #fff; }
.dark .section-head h2 { color: #fff; }
.process-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* the thread connecting every step */
.process-grid::before { content: ""; position: absolute; top: 17px; left: 24px; right: 24px;
  height: 1px; background: rgba(34,211,238,.28); }
.step { position: relative; background: var(--card-dark); border: 1px solid var(--line-dark);
  border-radius: 12px; padding: 24px;
  transition: transform .18s ease-out, border-color .18s ease-out; }
.step:hover { transform: translateY(-2px); border-color: rgba(34,211,238,.4); }
.step .num { position: relative; width: 34px; height: 34px; border-radius: 8px;
  background: var(--deep); border: 1px solid rgba(34,211,238,.5); color: var(--signal);
  font-family: var(--mono); font-weight: 600; font-size: .8rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step h3 { font-size: 1.08rem; margin-bottom: 8px; font-weight: 700; letter-spacing: -0.01em; }
.step p { color: var(--mist); font-size: 0.95rem; }
.step .stamp { margin-top: 16px; display: inline-block; }
/* THE moment — the only card that glows: your money is protected here. */
.step.shield { border-color: rgba(34,211,238,.65);
  box-shadow: 0 0 0 1px rgba(34,211,238,.25), 0 16px 48px rgba(2,10,20,.5), 0 0 32px rgba(34,211,238,.12); }
.step.shield .num { background: rgba(34,211,238,.12); }
.process-note { margin-top: 36px; font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mist); text-align: center; }
.process-note strong { color: var(--signal); font-weight: 600; }

/* ---------- About ---------- */
.about-lede { font-size: 1.06rem; }
.ticks { list-style: none; margin-top: 24px; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  border-radius: 5px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2322D3EE'%20stroke-width='3.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2012.5l5.2%205L20%206.5'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }

/* ---------- FAQ ---------- */
.card h3 { margin-bottom: 8px; }

/* ---------- CTA + RFQ form ---------- */
.cta { text-align: center; padding: 96px 0; }
.cta .eyebrow { justify-content: center; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.4rem); margin: 14px 0 10px;
  letter-spacing: -0.02em; font-weight: 700; }
.cta > .container > p { color: var(--mist); margin-bottom: 36px; }
.rfq { max-width: 640px; margin: 0 auto; text-align: left; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mist); margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; background: rgba(255,255,255,.05);
  border: 1px solid var(--line-dark); border-radius: 8px; color: #fff; font-family: var(--sans);
  font-size: .97rem; padding: 12px 14px; transition: border-color .15s ease-out; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(159,176,201,.55); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none;
  border-color: var(--signal); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.rfq-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.rfq-note { font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mist); }
.rfq-mail { margin-top: 22px; font-size: .92rem; color: var(--mist); }
.rfq-mail a { color: var(--signal); text-decoration: none; }
.rfq-mail a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer { background: var(--deep); color: var(--mist); border-top: 1px solid var(--line-dark); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 40px 0 32px; }
.footer-brand .logo { font-size: 1.1rem; }
.footer-brand p { font-size: .9rem; margin-top: 8px; max-width: 300px; }
.footer-col { text-align: right; }
.footer-nav { margin-bottom: 10px; }
.footer-nav a { color: var(--mist); text-decoration: none; margin-left: 18px; }
.footer-nav a:hover { color: #fff; }
.footer-mail { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; }
.footer-mail a { color: var(--signal); text-decoration: none; }
.footer-mail a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid var(--line-dark); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(159,176,201,.75); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero .container > * { animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero .container > *:nth-child(2) { animation-delay: 0.08s; }
  .hero .container > *:nth-child(3) { animation-delay: 0.16s; }
  .hero .container > *:nth-child(4) { animation-delay: 0.24s; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .grid.three, .grid.four, .process-grid, .field-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 84px; }
  .hero h1 { font-size: clamp(2.1rem, 8vw, 2.9rem); }
  .ticker { margin-top: 64px; }
  .section { padding: 72px 0; }
  .process-grid::before { display: none; }
  .footer-col { text-align: left; }
  .footer-nav a { margin: 0 18px 0 0; }
}
