/* ============================================================
   HBCC TECH — AI-Assisted Software Engineering
   Brand system (built fresh on the HBCC interlock mark)
   - Ink navy canvas  : depth / premium dark-first surfaces
   - Warm gradient     : the "CC" interlock signature (orange -> amber)
   - Electric blue     : secondary / data + Microsoft-stack accent
   Type: Space Grotesk (display) + Inter (text)
   ============================================================ */

:root {
    --ink: #0B1422;
    --ink-2: #0F1C30;
    --ink-3: #16263d;
    --ink-line: #21344f;

    --orange: #F7651E;
    --amber: #FFB020;
    --blue: #1C76BE;
    --sky: #5AB0F5;

    --paper: #ffffff;
    --mist: #F6F9FD;
    --mist-2: #EDF3FA;
    --line: #E4ECF6;

    --head: #0B1422;
    --body: #46566a;
    --muted: #7c8c9c;

    --grad-warm: linear-gradient(100deg, #F7651E 0%, #FF8A1B 50%, #FFB020 100%);
    --grad-blue: linear-gradient(120deg, #1C76BE 0%, #5AB0F5 100%);

    --radius: 16px;
    --radius-sm: 11px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 10px rgba(11, 20, 34, .06);
    --shadow: 0 16px 40px rgba(11, 20, 34, .10);
    --shadow-lg: 0 30px 70px rgba(11, 20, 34, .18);
    --shadow-warm: 0 14px 34px rgba(247, 101, 30, .32);

    --container: 1180px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
    --text: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--text);
    color: var(--body);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--display);
    color: var(--head);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.85rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--orange); }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }
strong { color: var(--head); font-weight: 600; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }
.max-58 { max-width: 58ch; }
.mx-auto { margin-left: auto; margin-right: auto; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--display);
    font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad-warm); border-radius: 2px; }
.eyebrow.on-dark { color: var(--amber); }

.lead { font-size: 1.2rem; color: var(--body); max-width: 60ch; }
.section-head { max-width: 62ch; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }

.grad-text {
    background: var(--grad-warm);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--display); font-weight: 600; font-size: .98rem;
    padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-warm); color: #fff; box-shadow: var(--shadow-warm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(247, 101, 30, .42); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--head); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11, 20, 34, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.nav-links {
    display: flex; align-items: center; gap: 4px; list-style: none;
    margin-left: auto;
}
.nav-links a {
    font-family: var(--display); font-weight: 500; font-size: .95rem;
    color: rgba(255, 255, 255, .82); padding: 9px 14px; border-radius: 9px;
    transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
    content: ""; display: block; height: 2px; width: 20px; margin: 3px auto 0;
    background: var(--grad-warm); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 20px; font-size: .92rem; }
.nav-toggle {
    display: none; background: none; border: 1px solid rgba(255,255,255,.2);
    border-radius: 9px; padding: 7px; cursor: pointer; color: #fff;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: radial-gradient(1100px 540px at 78% -8%, rgba(247, 101, 30, .22), transparent 60%),
                radial-gradient(900px 520px at 8% 12%, rgba(28, 118, 190, .22), transparent 55%),
                linear-gradient(180deg, #0B1422 0%, #0E1A2C 100%);
    padding: 96px 0 104px;
}
.hex-bg {
    position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0l28 16v34L28 66 0 50V16zM28 66l28 16v34L28 132 0 116V82z' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1.4'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
/* Let columns shrink below their content's intrinsic width so the code block's
   long pre lines scroll inside their own box instead of forcing the track wide
   (which clipped the hero on narrow screens). */
.hero-grid > *, .split > * { min-width: 0; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, .76); font-size: 1.22rem; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px; padding: 7px 15px 7px 11px; margin-bottom: 26px;
    font-size: .85rem; color: rgba(255,255,255,.85); font-family: var(--display); font-weight: 500;
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-warm); box-shadow: 0 0 0 4px rgba(247,101,30,.18); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.hero-meta div { font-size: .9rem; color: rgba(255,255,255,.6); }
.hero-meta b { display: block; font-family: var(--display); font-size: 1.7rem; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.hero-meta b .grad-text { display: inline; }

/* Code/terminal card in hero */
.code-card {
    background: linear-gradient(180deg, rgba(22, 38, 61, .92), rgba(15, 28, 48, .92));
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: .86rem; line-height: 1.85;
}
.code-card .bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.code-card .bar i:nth-child(1){ background:#ff5f56;} .code-card .bar i:nth-child(2){ background:#ffbd2e;} .code-card .bar i:nth-child(3){ background:#27c93f;}
.code-card .bar span { margin-left: 8px; color: rgba(255,255,255,.5); font-size: .78rem; }
.code-card pre { margin: 0; padding: 20px 22px; color: #c8d6e8; white-space: pre; overflow-x: auto; }
.code-card .c-key { color: #5AB0F5; } .code-card .c-str { color: #FFB020; } .code-card .c-fn { color: #ff8a5b; } .code-card .c-cm { color: #5b6f86; } .code-card .c-ai { color: #FF8A1B; font-style: italic; }

/* ---------- Marquee / tech strip ---------- */
.stack-strip { background: var(--ink-2); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); padding: 26px 0; }
.stack-strip .label { color: rgba(255,255,255,.45); font-family: var(--display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; margin-bottom: 18px; }
.stack-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; }
.stack-row span { color: rgba(255,255,255,.72); font-family: var(--display); font-weight: 500; font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; }
.stack-row span::before { content: ""; width: 7px; height: 7px; background: var(--amber); border-radius: 2px; transform: rotate(45deg); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
    height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7e3f1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--body); margin-bottom: 0; font-size: .98rem; }
.card-icon {
    width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(247,101,30,.12), rgba(255,176,32,.12));
    color: var(--orange); margin-bottom: 18px;
}
.card-icon.blue { background: linear-gradient(135deg, rgba(28,118,190,.12), rgba(90,176,245,.12)); color: var(--blue); }
.card-icon svg { width: 26px; height: 26px; }
.card .tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.pill { font-size: .76rem; font-family: var(--display); font-weight: 500; color: var(--blue); background: var(--mist-2); border-radius: 999px; padding: 4px 11px; }

/* feature card variant on tinted bg */
.bg-mist { background: var(--mist); }
.bg-ink { background: var(--ink); color: rgba(255,255,255,.78); }
.bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }
.bg-ink .lead { color: rgba(255,255,255,.74); }

/* ---------- Steps (AI approach) ---------- */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.step .n { font-family: var(--display); font-weight: 700; font-size: 1rem; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--grad-warm); margin-bottom: 16px; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .94rem; margin: 0; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 4vw, 2.9rem); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .92rem; }
.bg-ink .stat span { color: rgba(255,255,255,.6); }
.bg-ink .stat b { color: #fff; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .ck { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, rgba(247,101,30,.14), rgba(255,176,32,.14)); color: var(--orange); display: grid; place-items: center; margin-top: 2px; }
.feature-list .ck svg { width: 15px; height: 15px; }
.feature-list b { color: var(--head); }
.bg-ink .feature-list b { color: #fff; }

/* Panel mock (used in splits) */
.panel {
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
    border: 1px solid var(--ink-line); border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow-lg); color: rgba(255,255,255,.8);
}
.panel .row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.1); font-size: .92rem; }
.panel .row:last-child { border-bottom: none; }
.panel .row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
.panel .row .dot.blue { background: var(--sky); }
.panel .row .dot.green { background: #27c93f; }
.panel .row .meta { margin-left: auto; color: rgba(255,255,255,.45); font-size: .8rem; font-family: var(--display); }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg);
    background: radial-gradient(700px 360px at 85% -20%, rgba(247,101,30,.5), transparent 60%),
                linear-gradient(120deg, #0B1422, #14253c);
    border: 1px solid var(--ink-line);
    padding: 64px 56px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.76); max-width: 56ch; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--display); font-weight: 500; font-size: .92rem; color: var(--head); margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--text); font-size: 1rem; color: var(--head); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(247,101,30,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.text-danger, .field-validation-error { color: #d63b1f; font-size: .85rem; display: block; margin-top: 5px; }
.input-validation-error { border-color: #d63b1f !important; }
.alert-success { background: #e8f8ef; border: 1px solid #b7e6cb; color: #166b3e; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 22px; font-size: .95rem; }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info .ci { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ci .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; color: var(--amber); }
.contact-info .ci .ic svg { width: 20px; height: 20px; }
.contact-info h4 { margin: 0 0 3px; font-size: 1rem; }
.contact-info p, .contact-info a { color: rgba(255,255,255,.72); margin: 0; font-size: .95rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(800px 420px at 82% -30%, rgba(247,101,30,.2), transparent 60%),
                linear-gradient(180deg, #0B1422, #0E1A2C);
    padding: 72px 0 80px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: rgba(255,255,255,.76); }
.breadcrumb { font-family: var(--display); font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.7); }

/* ---------- Tech stack matrix ---------- */
.stack-cat { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.stack-cat .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(247,101,30,.12), rgba(255,176,32,.12)); color: var(--orange); }
.stack-cat .ic.blue { background: linear-gradient(135deg, rgba(28,118,190,.12), rgba(90,176,245,.12)); color: var(--blue); }
.stack-cat .ic svg { width: 21px; height: 21px; }
.stack-cat h3 { margin: 0; font-size: 1.15rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tech-tags span { font-family: var(--display); font-weight: 500; font-size: .9rem; color: var(--head); background: var(--mist); border: 1px solid var(--line); border-radius: 9px; padding: 7px 13px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 30px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; font-size: .94rem; color: rgba(255,255,255,.6); }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--display); }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { color: rgba(255,255,255,.62); font-size: .94rem; }
.site-footer ul a:hover { color: var(--amber); }
.site-footer .muted { color: rgba(255,255,255,.4); font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--ink-line); margin-top: 48px; padding-top: 24px; font-size: .86rem; color: rgba(255,255,255,.45); }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
/* Hidden state only applies when JS is available (html.js), so content is
   always visible if JS is disabled, slow, or for non-JS crawlers. */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
    .cols-3, .cols-4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-meta b { font-size: 1.45rem; }
}
@media (max-width: 900px) {
    /* Collapse to the hamburger before the 6 links + CTA crowd/wrap on tablets */
    .nav-links, .nav-cta .btn { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-links.open {
        display: flex; flex-direction: column; align-items: stretch; gap: 4px;
        position: absolute; left: 16px; right: 16px; top: 70px;
        background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius);
        padding: 14px; box-shadow: var(--shadow-lg); margin: 0;
    }
    .nav-links.open a { padding: 12px 14px; }
    .nav-links.open a.active::after { display: none; }
}
@media (max-width: 680px) {
    .section { padding: 68px 0; }
    .cols-3, .cols-4, .steps, .stats, .cols-2, .field-row { grid-template-columns: 1fr; }
    .cta-band { padding: 44px 26px; }
    .form-card { padding: 26px; }
}
@media (max-width: 420px) {
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal { opacity: 1; transform: none; transition: none; }
}
