/* Track and Pack — trackandpack.com */

:root {
  --ink: #0f1b2d;
  --ink-2: #33415a;
  --muted: #5d6b82;
  --line: #d9e0ea;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --panel: #ffffff;
  --navy: #0f1b2d;
  --navy-2: #172a45;
  --navy-line: #2b4166;
  --on-navy: #e8eef7;
  --on-navy-muted: #a9b7cc;
  --accent: #f2a900;          /* label-stock amber */
  --accent-ink: #1a1300;
  --accent-soft: #fff4d6;
  --blue: #2f6fed;
  --live: #1f9d55;
  --radius: 14px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef7;
    --ink-2: #c6d1e1;
    --muted: #93a3bb;
    --line: #26354f;
    --bg: #0b1422;
    --bg-alt: #0f1b2d;
    --panel: #13223a;
    --accent-soft: #2a2208;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 750; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 720; }
h3 { font-size: 1.1rem; font-weight: 680; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--navy) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; font-weight: 720; font-size: 1.15rem; letter-spacing: -.01em; }
.brand em { font-style: normal; font-weight: 450; color: var(--on-navy-muted); }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--on-navy-muted); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a:focus-visible { color: var(--on-navy); }
@media (max-width: 860px) { .nav { display: none; } .header-row .btn-small { margin-left: auto; } }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 650; text-decoration: none; border: 2px solid var(--accent);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(242, 169, 0, .3); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn-small { padding: 8px 14px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--on-navy); border-color: var(--navy-line); }
.btn-ghost:hover { box-shadow: none; border-color: var(--on-navy-muted); }
.btn-block { display: block; text-align: center; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(47, 111, 237, .22), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-navy);
  padding: 72px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.lead { font-size: 1.15rem; color: var(--on-navy-muted); max-width: 36em; }
.lead-cloud { color: var(--on-navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--on-navy-muted); border: 1px solid var(--navy-line); border-radius: 999px; padding: 5px 14px; margin-bottom: 22px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-live { background: var(--live); box-shadow: 0 0 0 4px rgba(31, 157, 85, .2); }
.dot-build { background: var(--accent); box-shadow: 0 0 0 4px rgba(242, 169, 0, .2); }
.notice .dot-build { margin-top: 7px; }

.hero-figure { margin: 0; background: rgba(255, 255, 255, .03); border: 1px solid var(--navy-line); border-radius: 18px; padding: 18px; }
.hero-figure svg { display: block; width: 100%; height: auto; }
.flow-line path { stroke: #4f6a93; stroke-width: 2; fill: none; stroke-dasharray: 5 6; }
.arrow-head { fill: #4f6a93; }
.node rect { fill: #1d3354; stroke: #3a5580; stroke-width: 1.2; }
.node text, .cnode text { fill: var(--on-navy); font: 600 14px var(--font); text-anchor: middle; }
.node .sub, .cnode .sub { fill: var(--on-navy-muted); font-weight: 400; font-size: 12px; }
.node-accent rect { fill: var(--accent); stroke: var(--accent); }
.node-accent text, .node-accent .sub { fill: var(--accent-ink); }
.caption { fill: var(--on-navy-muted); font: 400 12.5px var(--font); text-anchor: middle; }

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-navy); }
.section-dark .section-lead { color: var(--on-navy-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.eyebrow-light { color: var(--accent); }
.section-lead { font-size: 1.08rem; color: var(--muted); max-width: 44em; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.split-reverse { grid-template-columns: 1.05fr .95fr; }
.split-even { grid-template-columns: 1fr 1fr; }
@media (max-width: 920px) { .split, .split-reverse, .split-even { grid-template-columns: 1fr; } }

/* End-to-end stages */
.stages { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: s; }
@media (max-width: 1040px) { .stages { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .stages { grid-template-columns: 1fr; } }
.stage { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 18px; box-shadow: var(--shadow); }
.stage p { color: var(--muted); font-size: .95rem; margin: 0; }
.stage-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); font-weight: 750; font-size: .92rem; margin-bottom: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }

/* Lists */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23b37d00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.checks strong { color: var(--ink); }
.plain { padding-left: 1.1em; margin: 0 0 1.2em; color: var(--ink-2); }
.plain li { margin-bottom: 6px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 10px; box-shadow: var(--shadow); }
.panel h3 { margin-top: 4px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.cards-dark { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .cards-dark { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-dark { grid-template-columns: 1fr; } }
.cards-dark .card { background: rgba(255, 255, 255, .04); border-color: var(--navy-line); box-shadow: none; }
.cards-dark .card h3 { color: var(--on-navy); }
.cards-dark .card p { color: var(--on-navy-muted); }

/* Quality chart */
.chart-panel { margin: 0; padding: 22px; }
.chart-panel svg { display: block; width: 100%; height: auto; }
.chart-panel figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.limit { stroke: #d2564a; stroke-width: 1.5; stroke-dasharray: 6 5; }
.mean { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; }
.run { fill: none; stroke: var(--blue); stroke-width: 2; }
.pts circle { fill: var(--panel); stroke: var(--blue); stroke-width: 2; }
.chart-label { fill: var(--muted); font: 500 11.5px var(--font); }

/* Cloud */
.notice { display: flex; gap: 12px; align-items: flex-start; background: rgba(242, 169, 0, .08); border: 1px solid rgba(242, 169, 0, .35); border-radius: 12px; padding: 14px 18px; color: var(--on-navy); max-width: 52em; margin: 22px 0 8px; }
.notice strong { color: var(--accent); }

/* Security */
.roles { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 13px; font-size: .9rem; color: var(--ink-2); }

/* Hardware */
.hw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 920px) { .hw { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hw { grid-template-columns: 1fr; } }
.hw > div { border-top: 3px solid var(--accent); background: var(--panel); border-radius: 0 0 var(--radius) var(--radius); padding: 18px; box-shadow: var(--shadow); }
.hw p { color: var(--muted); margin: 0; font-size: .95rem; }
.fineprint { color: var(--muted); font-size: .9rem; margin-top: 22px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: rgba(255, 255, 255, .04); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.contact-card .btn { white-space: nowrap; }
.contact-line { color: var(--on-navy); text-align: center; text-decoration: none; font-weight: 600; }
.contact-line:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: .9rem; border-top: 1px solid var(--navy-line); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 20px; }
.provenance { margin: 22px 0 0; font-size: .9rem; color: var(--on-navy-muted); letter-spacing: .01em; }
.kicker { margin: 0 0 14px; font-size: .95rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.callout { margin-top: 28px; padding: 24px 26px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-left: 5px solid var(--accent); }
.callout h3 { margin-bottom: .4em; }
.callout p { margin: 0; color: var(--ink-2); max-width: 62em; }
