/* HMC design tokens, reset and primitives. Dark, industrial, one hot accent: molten orange. */
:root {
    --bg: #0a0c0f;
    --bg-2: #0f1216;
    --panel: #14181d;
    --panel-2: #1a1f26;
    --line: #232a33;
    --line-2: #2e3742;
    --text: #eef1f5;
    --text-2: #c3cad3;
    --muted: #8a95a3;
    --accent: #ff6a1a;
    --accent-2: #ffb347;
    --accent-soft: #ff6a1a1f;
    --steel: #7cc4ff;
    --green: #3ddc84;
    --red: #ff5d5d;
    --gold: #f7d65b;

    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 20px 60px -20px #000c, 0 0 0 1px #ffffff08;
    --container: 1240px;
    --header-h: 68px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #111; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.025em; font-weight: 750; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
p { margin: 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--text-2); line-height: 1.6; max-width: 60ch; }
.lead strong { color: var(--text); font-weight: 650; }
.text-gradient { background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 18px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow--live { color: var(--text-2); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent); color: #111; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
    --btn-bg: var(--panel-2); --btn-fg: var(--text); --btn-bd: var(--line-2);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 10px 20px;
    border: 1px solid var(--btn-bd); border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-fg);
    font-size: .95rem; font-weight: 650; letter-spacing: -.005em; line-height: 1;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: #140a03; --btn-bd: transparent; box-shadow: 0 8px 30px -8px #ff6a1a99, inset 0 1px 0 #ffffff55; }
.btn--primary:hover { --btn-bg: #ff7c35; box-shadow: 0 12px 40px -8px #ff6a1acc, inset 0 1px 0 #ffffff55; }
.btn--ghost { --btn-bg: #ffffff08; }
.btn--ghost:hover { --btn-bg: #ffffff12; --btn-bd: #ffffff33; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: .88rem; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .2s, gap .2s; }
.link-arrow::after { content: "→"; color: var(--accent); }
.link-arrow:hover { border-color: var(--accent); gap: 12px; }

/* Badges, dots, swatches */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #0a0c0fcc; border: 1px solid var(--line-2); color: var(--text-2); font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pulse-dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; color: var(--accent); opacity: 0; animation: pulse 2s ease-out infinite; }
.pulse-dot--green { background: var(--green); }
.pulse-dot--green::after { color: var(--green); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

.swatch { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 3px; background: var(--swatch, #889); box-shadow: inset 0 0 0 1px #ffffff30; }
.swatch--crs { --swatch: #6d7782; }
.swatch--hrpo { --swatch: #3f4650; }
.swatch--ss { --swatch: #d5dbe2; }
.swatch--al { --swatch: #a9c3d9; }
.swatch--galv { --swatch: #9fb1a6; }

.demo-note { margin-top: 12px; color: var(--muted); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; text-align: right; }

.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 3 3 5-6' fill='none' stroke='%23ff6a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Scroll reveal: content is visible by default; JS opts in by adding .js-reveal to <html>. */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js-reveal [data-reveal] { opacity: 1; transform: none; }
}
