/* ============================================================
   HDVue Tech - Design tokens
   ============================================================ */
:root {
    /* Text + surface tokens - these are what change between color schemes.
       See /docs/COLOR-SCHEMES.md for the 4 preset value sets. */
    /* Default = "Signature Light" from docs/COLOR-SCHEMES.md */
    --color-ink: #16181d;         /* headings */
    --color-ink-soft: #262a33;    /* body text / nav links */
    --color-slate: #5b6472;       /* muted paragraph text */
    --color-slate-light: #94a3b8;
    --color-paper: #ffffff;       /* card + body background */
    --color-mist: #f6f7f9;        /* alternate section background */
    --color-line: #e4e7ec;        /* borders */

    /* The hero/CTA/footer "band" is always a dark surface, in every scheme -
       it's a fixed brand element, independent of light/dark scheme choice. */
    --color-band: #101317;

    /* Brand accent - matches the HDVue Tech logo gradient exactly. */
    --color-accent-start: #ef4136;
    --color-accent-end: #fbb040;
    --color-accent: #f0743c;      /* solid fallback (links, borders, etc.) */
    --color-accent-dark: #d94726;
    --color-accent-mist: #fdeadd; /* icon/eyebrow tint background */

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.25);
    --container: 1140px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.accent-grad-text {
    background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--color-ink-soft);
    background: var(--color-paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }
h1, h2, h3, h4 { color: var(--color-ink); font-weight: 800; line-height: 1.2; margin: 0 0 16px; }
p { margin: 0 0 16px; color: var(--color-slate); }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-mist { background: var(--color-mist); }
.section-dark { background: var(--color-band); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #cbd5e1; }

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: var(--color-accent-mist);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.eyebrow-on-band {
    background: color-mix(in srgb, var(--color-accent-start) 20%, transparent);
    color: var(--color-accent-end);
}
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 18px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end)); color: #fff; }
.btn-primary:hover { filter: brightness(0.93); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--color-line); color: var(--color-ink); background: transparent; }
.btn-outline:hover { border-color: var(--color-ink); color: var(--color-ink); }
.btn-outline-light { border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--color-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--color-ink); font-size: 18px; }
.brand-mark-icon { width: 34px; height: 34px; }
.brand-name-sub { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-slate); margin-top: -2px; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) { color: var(--color-ink-soft); font-weight: 500; font-size: 15px; }
.site-nav a:not(.btn):hover { color: var(--color-accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-ink); border-radius: 2px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    background: linear-gradient(160deg, var(--color-band) 0%, color-mix(in srgb, var(--color-band) 80%, #16213e) 100%);
    color: #fff;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(600px circle at 85% 20%, color-mix(in srgb, var(--color-accent-start) 25%, transparent), transparent 60%),
        radial-gradient(500px circle at 10% 80%, color-mix(in srgb, var(--color-accent-end) 18%, transparent), transparent 60%);
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.hero h1 { font-size: 52px; color: #fff; margin-bottom: 20px; }
.hero .accent { background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: #cbd5e1; max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 30px; color: #fff; }
.hero-stat span { font-size: 14px; color: var(--color-slate-light); }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }

.card {
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--color-accent-mist); color: var(--color-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 20px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 15px; }
.card ul { margin: 16px 0 0; padding-left: 20px; color: var(--color-slate); font-size: 14px; }
.card ul li { margin-bottom: 6px; }

.card-dark {
    background: var(--color-band);
    border-color: var(--color-band);
}
.card-dark h3, .card-dark p { color: #fff; }
.card-dark p { color: #cbd5e1; }
.card-dark .icon { background: color-mix(in srgb, var(--color-accent-start) 20%, transparent); }

/* ============================================================
   Two-column feature rows
   ============================================================ */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row.reverse .feature-visual { order: 2; }
.feature-visual {
    border-radius: var(--radius);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
.feature-visual svg { width: 100%; height: auto; max-width: 340px; }

.stat-badge-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.stat-badge {
    background: var(--color-mist);
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-ink-soft);
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-card {
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.testimonial-card p.quote { font-size: 17px; color: var(--color-ink-soft); font-style: italic; }
.testimonial-card .who { font-weight: 700; color: var(--color-ink); font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
    background: var(--color-band);
    border-radius: var(--radius);
    padding: 64px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    background: radial-gradient(500px circle at 50% 0%, color-mix(in srgb, var(--color-accent-start) 30%, transparent), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cbd5e1; }

/* ============================================================
   Case studies (Proven Pipelines)
   ============================================================ */
.filter-tabs {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter-tab {
    font-family: var(--font);
    font-size: 14px; font-weight: 600;
    padding: 10px 20px; border-radius: 999px;
    border: 1.5px solid var(--color-line);
    background: var(--color-paper); color: var(--color-slate);
    cursor: pointer;
    transition: all 0.15s ease;
}
.filter-tab:hover { border-color: var(--color-accent); color: var(--color-ink); }
.filter-tab.active {
    background: var(--color-ink); 
    border-color: var(--color-ink); 
    color: #fff;
}
.case-study.is-hidden { display: none; }

.case-study {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-paper);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}
.case-study-header { padding: 36px 36px 0; }
.case-study-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.case-study-tag {
    font-size: 12px; font-weight: 700;
    padding: 5px 13px; border-radius: 999px;
    background: var(--color-accent-mist); color: var(--color-accent-dark);
}
.case-study-header h3 { font-size: 24px; margin-bottom: 6px; }
.case-study-header p.subtitle { color: var(--color-slate); font-size: 15px; margin-bottom: 0; }

.case-study-body {
    padding: 32px 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.case-study-col h4 {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--color-ink); margin-bottom: 10px;
}
.case-study-col h4 .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.case-study-col .dot-problem { background: #dc4a3f; }
.case-study-col .dot-approach { background: var(--color-accent); }
.case-study-col .dot-outcome { background: #16a34a; }
.case-study-col p { font-size: 15px; margin-bottom: 0; }

.case-study-visual {
    background: var(--color-mist);
    padding: 28px 36px;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}
.case-study-visual svg { width: 100%; height: auto; max-width: 720px; margin: 0 auto; display: block; }

.case-study-outcome-band {
    background: var(--color-band);
    color: #fff;
    padding: 24px 36px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.case-study-outcome-band .icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: color-mix(in srgb, var(--color-accent-start) 25%, transparent);
    color: var(--color-accent-end);
    display: flex; align-items: center; justify-content: center;
}
.case-study-outcome-band p { margin: 0; color: #fff; font-size: 15px; font-weight: 500; }
.case-study-outcome-band strong { color: var(--color-accent-end); }

@media (max-width: 800px) {
    .case-study-body { grid-template-columns: 1fr; }
    .case-study-header, .case-study-body, .case-study-visual, .case-study-outcome-band { padding-left: 20px; padding-right: 20px; }
}

/* ============================================================
   Forms
   ============================================================ */
.form-panel {
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--color-ink); margin-bottom: 8px; }
.field input, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-line);
    font-family: var(--font);
    font-size: 15px;
    color: var(--color-ink-soft);
    background: var(--color-mist);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field-error { color: #b91c1c; font-size: 13px; margin-top: 6px; }
.validation-summary-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.honeypot {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-detail .icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--color-accent-mist); color: var(--color-accent);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail h4 { margin: 0 0 4px; font-size: 15px; }
.contact-detail p { margin: 0; font-size: 15px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--color-band); color: #cbd5e1; padding-top: 56px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 12px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-tagline { color: #94a3b8; font-size: 14px; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #cbd5e1; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-contact p { color: #94a3b8; font-size: 14px; margin: 0 0 8px; }
.footer-contact a { color: #cbd5e1; }
.footer-bottom { padding: 20px 24px; text-align: center; }
.footer-bottom p { color: #64748b; font-size: 13px; margin: 0; }

/* ============================================================
   Utility / responsive
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.thanks-box { text-align: center; padding: 100px 0; }
.thanks-box .icon-circle {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--color-accent-mist); color: var(--color-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; margin: 0 auto 24px;
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
    .feature-row.reverse .feature-visual { order: 0; }
    .footer-inner { grid-template-columns: 1fr; }
    .hero h1 { font-size: 38px; }
}

@media (max-width: 760px) {
    .site-nav {
        position: absolute;
        top: 76px; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-line);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 18px;
        display: none;
    }
    .site-nav.open { display: flex; }
    .nav-toggle { display: flex; }
    section { padding: 56px 0; }
    .cta-band { padding: 40px 24px; }
    .form-panel { padding: 24px; }
    .hero { padding: 90px 0 64px; }
}
