/* OnTrend HR brand + sign-in gate. Rules copied from the OnTrend founder blueprint (hr-venture/public/blueprint.css). */
/* OnTrend HR — founder blueprint. Plain CSS, no build step.
   Visual language: an "operating dossier". Two coded accents run throughout:
   signal orange = people and judgment; indigo = systems and EMP. */

:root {
    --canvas: #f4f5f8;
    --surface: #ffffff;
    --ink: #101330;
    --ink-2: #262a4d;
    --muted: #555a76;
    --line: rgba(16, 19, 48, .12);
    --line-strong: rgba(16, 19, 48, .28);

    --indigo: #4338ca;
    --indigo-2: #6366f1;
    --indigo-deep: #312a9e;
    --indigo-soft: #e8e9fb;
    --signal: #ef5a2a;
    --signal-ink: #b23c12;
    --signal-soft: #fdebe3;
    --mint: #7ee0b5;

    --night: #101330;
    --night-2: #181c43;
    --night-3: #0b0d24;
    --on-night: #eceefa;
    --on-night-muted: #a9aed2;
    --line-night: rgba(236, 238, 250, .14);
    --indigo-on-night: #a5a8ff;
    --signal-on-night: #ff8a5c;

    /* Context tokens (overridden in dark sections) */
    --fg: var(--ink);
    --fg-muted: var(--muted);
    --rule: var(--line);
    --rule-strong: var(--line-strong);
    --card: var(--surface);
    --sys: var(--indigo);
    --human: var(--signal-ink);
    --focus: var(--indigo);

    --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --display: "Segoe UI Variable Display", "SF Pro Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;

    --gutter: clamp(20px, 4.5vw, 64px);
    --radius: 16px;
    --sidebar-w: 256px;
    --scroll-offset: 24px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--scroll-offset); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; color: var(--fg-muted); }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; color: var(--fg); font-family: var(--display); text-wrap: balance; }
b, strong { font-weight: 650; }
small { display: block; font-size: 13px; line-height: 1.6; color: var(--fg-muted); }
figure { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

:where(a, button, input, textarea, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.kicker { margin: 0 0 22px; font: 600 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); }
.kicker-num { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--fg); color: var(--canvas); letter-spacing: .04em; }
.kicker-sep { margin-inline: 6px; opacity: .45; }

/* ---------- Buttons and links ---------- */
.button, .outline {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
    border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.button { border: 0; background: var(--ink); color: #fff; }
.button:hover { background: var(--indigo); }
.button span { transition: transform .2s var(--ease); }
.button:hover span { transform: translateX(3px); }
.outline { border: 1.5px solid var(--rule-strong); background: transparent; color: var(--fg); }
.outline:hover { border-color: var(--fg); }
.textlink { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--rule-strong); }
.textlink:hover { text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.bm-1 { fill: var(--signal); }
.bm-2 { fill: var(--indigo); }
.bm-3 { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.brand-word { font: 700 21px/1 var(--display); letter-spacing: -.025em; white-space: nowrap; }
.brand-hr { display: inline-block; margin-left: 5px; padding: 3px 6px 2px; border-radius: 5px; background: var(--ink); color: #fff; font: 700 11px/1.2 var(--mono); letter-spacing: .08em; vertical-align: 3px; }
/* ---------- Layered figure (hero + gate) ---------- */
.layers .lg-guides line { stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 3 6; }

.layers .lg-people .lg-face { fill: #fff; stroke: rgba(16, 19, 48, .3); stroke-width: 1.2; }
.layers .lg-people .lg-side-l { fill: #e2e4ef; }
.layers .lg-people .lg-side-r { fill: #d1d4e6; }
.layers .lg-links line { stroke: var(--signal); stroke-width: 1.4; opacity: .55; }
.layers .lg-team circle { fill: var(--signal); }
.layers .lg-core { fill: var(--ink); stroke: #fff; stroke-width: 3; }

.layers .lg-emp .lg-face { fill: var(--indigo); }
.layers .lg-emp .lg-side-l { fill: var(--indigo-deep); }
.layers .lg-emp .lg-side-r { fill: #262083; }
.layers .lg-tiles polygon { fill: rgba(255, 255, 255, .16); stroke: rgba(255, 255, 255, .42); stroke-width: 1; }

.layers .lg-vendor .lg-face { fill: var(--canvas); stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 5 4; }
.layers .lg-vendor .lg-side-l, .layers .lg-vendor .lg-side-r { fill: rgba(16, 19, 48, .06); }
.layers .lg-slabs polygon { fill: #fff; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }

.layers .lg-node { fill: var(--ink); }
.layers .lg-lead { stroke: var(--ink); stroke-width: 1.2; }
.layers .lg-label { font: 700 14px var(--mono); letter-spacing: .06em; fill: var(--ink); }
.layers .lg-sub { font: 400 14px var(--sans); fill: var(--muted); }
/* ---------- Login gate ---------- */
.gate-body { background: var(--canvas); }
.gate { display: grid; min-height: 100vh; min-height: 100dvh; }
.gate-panel {
    --focus: #ffb08f;
    position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    padding: clamp(24px, 4vw, 48px); background: var(--night); color: var(--on-night); overflow: hidden; isolation: isolate;
}
.gate-panel::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(var(--line-night) 1px, transparent 1px), linear-gradient(90deg, var(--line-night) 1px, transparent 1px);
    background-size: 44px 44px; opacity: .5;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 70%);
    mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 70%);
}
.gate-panel .brand { color: var(--on-night); }
.gate-panel .bm-3 { stroke: var(--on-night); }
.gate-panel .brand-hr { background: var(--signal-on-night); color: var(--night); }
.gate-figure { width: 100%; max-width: 300px; margin-inline: auto; }
.gate-note { margin: 0; font: 600 11.5px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-muted); }

.gate-panel .layers .lg-guides line { stroke: rgba(236, 238, 250, .3); }
.gate-panel .layers .lg-people .lg-face { fill: #222660; stroke: rgba(236, 238, 250, .3); }
.gate-panel .layers .lg-people .lg-side-l { fill: #191c4a; }
.gate-panel .layers .lg-people .lg-side-r { fill: #14173d; }
.gate-panel .layers .lg-links line { stroke: var(--signal-on-night); }
.gate-panel .layers .lg-team circle { fill: var(--signal-on-night); }
.gate-panel .layers .lg-core { fill: var(--on-night); stroke: var(--night); }
.gate-panel .layers .lg-emp .lg-face { fill: var(--indigo-2); }
.gate-panel .layers .lg-emp .lg-side-l { fill: var(--indigo); }
.gate-panel .layers .lg-emp .lg-side-r { fill: var(--indigo-deep); }
.gate-panel .layers .lg-vendor .lg-face { fill: var(--night); stroke: rgba(236, 238, 250, .38); }
.gate-panel .layers .lg-vendor .lg-side-l, .gate-panel .layers .lg-vendor .lg-side-r { fill: rgba(236, 238, 250, .06); }
.gate-panel .layers .lg-slabs polygon { fill: var(--night-2); stroke: rgba(236, 238, 250, .5); }

.gate-form { display: flex; align-items: center; justify-content: center; padding: clamp(40px, 7vw, 96px) var(--gutter); }
.gate-inner { width: 100%; max-width: 420px; }
.gate-inner h1 { margin-bottom: 18px; font-size: clamp(38px, 4.6vw, 58px); line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.gate-lead { margin-bottom: 32px; font-size: 17px; }
.gate-fields { display: grid; gap: 10px; }
.gate-fields label { font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.gate-fields input {
    width: 100%; min-height: 54px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: 12px;
    background: var(--surface); font-size: 17px; transition: border-color .2s var(--ease);
}
.gate-fields input:hover { border-color: var(--ink-2); }
.gate-fields input:focus { border-color: var(--indigo); }
.gate-fields input[aria-invalid="true"] { border-color: var(--signal-ink); }
.gate-fields .button { justify-content: center; margin-top: 12px; min-height: 54px; }
.field-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--signal-soft); color: var(--signal-ink); font-size: 14px; font-weight: 600; }
@media (min-width: 860px) { .gate { grid-template-columns: 1fr 1fr; } .gate-figure { max-width: 440px; } }
@media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise .8s var(--ease) both; }
    @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
