/* Hyperdrive-branded pages (homepage, get started, sign in). Tokens match hyperdrivebio.com and the
   July 2026 Hyperdrive Brand Guidelines (dark theme). Labs' own directories stay white-label and don't use this file. */
.hd {
    --bg: #07091D;
    --surface: #0F1330;
    --surface-quiet: #0B0E24;
    --text: #FBFFFF;
    --text-body: #E5E6E8;
    --muted: #ABB9CE;
    --faint: #7F8191;
    --accent: #3771FF;
    --accent-200: #D9E7FF;
    --accent-300: #8EBBFF;
    --accent-700: #1438E1;
    --section: #06205B;
    --signal: #F75A3C;
    --hd-blue: #0B30BD;
    --divider: color-mix(in srgb, #FBFFFF 14%, transparent);
    --grad: linear-gradient(100deg, #8ECCFB, #3771FF);
    --font-heading: "Manrope", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --edge: clamp(16px, 5vw, 72px);
    --measure: 1240px;
    --radius: 14px;

    min-height: 100vh;
    background: var(--bg);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}
body:has(.hd) { background: #07091D; }
.hd h1, .hd h2, .hd h3 { font-family: var(--font-heading); color: var(--text); margin: 0; letter-spacing: -0.02em; }
.hd p { margin: 0; }
.hd a { color: var(--accent-300); }
.hd :focus-visible { outline: 2px solid var(--accent-300); outline-offset: 3px; border-radius: 6px; }

.hd-wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--edge); }

/* Nav */
.hd-nav { position: relative; z-index: 2; }
.hd-nav .hd-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.hd-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.hd-brand img { height: 26px; width: auto; display: block; }
.hd-brand span { font-family: var(--font-heading); font-weight: 500; color: var(--muted); font-size: 15px; padding-left: 12px; border-left: 1px solid var(--divider); }
.hd-nav-links { display: flex; align-items: center; gap: 8px; }
.hd-nav-links .hd-link { color: var(--text-body); text-decoration: none; font-family: var(--font-heading); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.hd-nav-links .hd-link:hover { color: var(--text); background: var(--surface); }
@media (max-width: 720px) { .hd-nav-links .hd-hide-sm, .hd-brand span { display: none; } }

/* Buttons */
.hd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px;
    font-family: var(--font-heading); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.hd .hd-btn-primary { background: var(--accent); color: var(--text); }
.hd .hd-btn-primary:hover { background: var(--accent-700); }
.hd .hd-btn-ghost { background: transparent; border-color: var(--divider); color: var(--text); }
.hd .hd-btn-ghost:hover { border-color: var(--accent-300); }
.hd-btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.hd-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero, with the Orbitals motif */
.hd-hero { position: relative; padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); }
.hd-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: min(900px, 120vw); aspect-ratio: 1; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, #3771FF 30%, transparent), transparent 70%); }
.hd-orbits { position: absolute; right: -14%; top: -10%; width: min(820px, 110vw); height: auto; opacity: .55; pointer-events: none; }
.hd-hero .hd-wrap { position: relative; }
.hd-eyebrow { font-family: var(--font-heading); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-300); }
.hd-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; font-weight: 600; max-width: 15ch; margin-top: 18px; }
.hd-grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hd-lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; margin-top: 22px; }
.hd-hero .hd-btn-row { margin-top: 34px; }
.hd-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.hd-proof span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }

/* Sections */
.hd-section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--divider); }
.hd-section-head { max-width: 720px; margin-bottom: 40px; }
.hd-section-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; font-weight: 600; margin-top: 12px; }
.hd-section-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }

/* Glass Window UI cards */
.hd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.hd-card { background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--divider); border-radius: var(--radius);
    padding: 26px; backdrop-filter: blur(12px); }
.hd-card h3 { font-size: 19px; font-weight: 600; margin-top: 16px; }
.hd-card p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.hd-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, #3771FF 18%, transparent); color: var(--accent-300); }

/* Steps */
.hd-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; }
.hd-step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface-quiet); border: 1px solid var(--divider); }
.hd-step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--grad); color: #07091D; font-family: var(--font-heading); font-weight: 700; }
.hd-step h3 { font-size: 19px; margin-top: 16px; }
.hd-step p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* Live demo in a window frame */
.hd-window { border-radius: 16px; border: 1px solid var(--divider); background: var(--surface); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(55, 113, 255, .35); }
.hd-window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--divider); background: var(--surface-quiet); }
.hd-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline, #414149); }
.hd-window-bar span { margin-left: 10px; font-size: 13px; color: var(--faint); font-family: var(--font-heading); }
.hd-window-body { background: #F6F8FB; max-height: 760px; overflow-y: auto; }
.hd-window-note { color: var(--faint); font-size: 14px; margin-top: 14px; }

/* Call to action band */
.hd-cta { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(32px, 5vw, 56px); background: linear-gradient(135deg, #0B30BD, #06205B 70%); border: 1px solid var(--divider); }
.hd-cta h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; max-width: 22ch; }
.hd-cta p { color: var(--accent-200); margin-top: 12px; max-width: 56ch; }
.hd-cta .hd-btn-row { margin-top: 28px; }
.hd-cta .hd-btn-primary { background: var(--text); color: #07091D; }
.hd-cta .hd-btn-primary:hover { background: var(--accent-200); }

/* Footer */
.hd-footer { border-top: 1px solid var(--divider); padding: 32px 0 40px; margin-top: clamp(56px, 8vw, 104px); }
.hd-footer .hd-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--faint); font-size: 14px; }
.hd-footer img { height: 20px; width: auto; display: block; }
.hd-footer a { color: var(--muted); text-decoration: none; }
.hd-footer a:hover { color: var(--text); }

/* Narrow pages: get started, sign in */
.hd-narrow { max-width: 760px; margin: 0 auto; padding: clamp(24px, 6vw, 72px) var(--edge) 0; }
.hd-panel { background: var(--surface); border: 1px solid var(--divider); border-radius: 18px; padding: clamp(22px, 4vw, 36px); }
.hd-panel h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 600; }
.hd-form-frame { width: 100%; min-height: 720px; border: 0; border-radius: 12px; background: #fff; display: block; }

/* Sign-in form on the dark page */
.hd .hd-field { display: flex; flex-direction: column; gap: 6px; }
.hd .hd-field label { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--text); }
.hd .hd-input { min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--divider); background: var(--surface-quiet); color: var(--text); font: inherit; }
.hd .hd-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, #3771FF 35%, transparent); }
.hd .hd-check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hd .hd-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hd .hd-alert { padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, #F75A3C 16%, transparent); border: 1px solid color-mix(in srgb, #F75A3C 45%, transparent); color: #FFD0C7; font-size: 14px; }
.hd .hd-note { padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, #3771FF 14%, transparent); border: 1px solid color-mix(in srgb, #3771FF 40%, transparent); color: var(--accent-200); font-size: 14px; }
.hd .validation-message { color: #FFB0A1; font-size: 13px; }
