/* Site-wide finishing layer. Page layouts and their spacing stay in their own stylesheets. */
:root {
    --bg: #f4f6fa;
    --surface: #fffdfd;
    --muted: #64748b;
    --accent: #4f46e5;
    --accent-dark: #4338ca;
    --accent-600: #6366f1;
    --card: #ffffff;
    --glass: rgba(255, 255, 255, .6);
    --border-soft: rgba(15, 23, 42, .09);
    --gradient-main: linear-gradient(135deg, #4f46e5, #2563eb, #7c3aed);
    --footer-soft: #0b1220;
    --footer-bg: #050814;
    --footer-accent: #4f46e5;
    --footer-accent-2: #7c3aed;
    --footer-gradient: linear-gradient(135deg, #4f46e5, #2563eb, #7c3aed);
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { background: #f4f6fa; }
main { position: relative; background: #f4f6fa; }
main::before,
main::after { content: none; }

/* Match the header to the existing footer palette. */
.site-header,
.main-header {
    background-color: var(--footer-soft);
    background-image:
        radial-gradient(700px 300px at 14% 0%, rgba(79,70,229,.13), transparent 70%),
        radial-gradient(700px 300px at 90% 100%, rgba(124,58,237,.10), transparent 70%),
        linear-gradient(180deg, var(--footer-soft), var(--footer-bg));
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 30px rgba(5,8,20,.16);
}
.main-header { position: sticky; top: 0; z-index: 1000; color: #e2e8f0; }
.main-header .header-wrapper { width: 100%; min-height: 88px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand-logo2 { display: block; width: min(230px, 22vw); height: auto; max-height: 64px; margin: 0; object-fit: contain; }
.header-top { border-color: rgba(255,255,255,.08); }
.main-nav a::after { background: var(--footer-gradient); }
.header-calculator { background: var(--footer-gradient); color: #fff; }
.header-calculator:hover { color: #fff; }
.news-toggle { border-color: rgba(255,255,255,.08); }

/* Use the footer's navy and indigo range for the opening panel on each page. */
.hero,
.about-hero,
.calculator-hero,
.services-section,
.work-hero,
.tech-hero {
    background-color: var(--footer-soft);
    background-image:
        radial-gradient(750px 430px at 88% 0%, rgba(79,70,229,.17), transparent 68%),
        radial-gradient(620px 380px at 5% 100%, rgba(124,58,237,.11), transparent 72%),
        linear-gradient(180deg, var(--footer-soft), var(--footer-bg));
}
.hero { color: #e2e8f0; }
.hero h1,
.about-hero h1,
.calculator-hero h1,
.services-section h1,
.work-hero h1,
.tech-hero h1 { color: #fff; }
.hero .lead,
.about-hero p,
.calculator-hero p,
.services-section p,
.work-hero p,
.tech-hero p { color: #cbd5e1; }
.hero .highlight { color: #a5b4fc; }
.hero .eyebrow,
.hero .visual-label,
.hero .visual-status,
.about-hero .about-eyebrow,
.calculator-hero .calculator-label,
.services-section .services-label,
.work-hero .work-label { color: #a5b4fc; }
.hero .cta-smart2 { background: var(--footer-gradient); color: #fff; }
.hero .cta-smart2:hover { color: #fff; }
.mockup-box {
    display: block !important;
    height: auto !important;
    min-height: 380px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(165,180,252,.2);
    border-radius: 22px;
    background: linear-gradient(145deg, #111a2e, #080d19 75%);
    color: #e2e8f0;
    box-shadow: 0 28px 70px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.05);
}
.hero-image .mockup-box { background: linear-gradient(145deg, #111a2e, #080d19 75%); color: #e2e8f0; }
.dashboard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 3px 16px; border-bottom: 1px solid rgba(255,255,255,.09); color: #8b98b0; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.dashboard-dots { display: flex; gap: 5px; }
.dashboard-dots i { width: 6px; height: 6px; border-radius: 50%; background: #475569; }
.dashboard-live { display: inline-flex; align-items: center; gap: 6px; color: #a5b4fc; letter-spacing: .06em; }
.dashboard-live i { width: 6px; height: 6px; border-radius: 50%; background: #6366f1; box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.dashboard-body { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 18px; padding-top: 20px; }
.dashboard-rail { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 0; color: #77839a; font-size: 13px; }
.dashboard-rail b { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 5px; border-radius: 9px; background: var(--footer-gradient); color: #fff; font-size: 9px; }
.dashboard-content { min-width: 0; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dashboard-heading div { display: grid; gap: 5px; }
.dashboard-heading small, .dashboard-metrics small { color: #8491a9; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.dashboard-heading strong { color: #f8fafc; font-size: clamp(14px, 1.6vw, 19px); }
.dashboard-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: rgba(99,102,241,.2); color: #c7d2fe; font-weight: 700; }
.dashboard-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dashboard-metrics > div { display: grid; gap: 6px; padding: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.035); }
.dashboard-metrics strong { color: #f8fafc; font-size: 18px; }
.dashboard-metrics em { color: #a5b4fc; font-size: 9px; font-style: normal; }
.dashboard-metrics span { color: #8491a9; font-size: 9px; }
.dashboard-orders { margin-top: 12px; padding: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.025); }
.dashboard-orders-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: #f8fafc; font-size: 10px; }
.dashboard-orders-title span { color: #a5b4fc; font-size: 9px; }
.dashboard-orders > div:not(:first-child) { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 8px; }
.dashboard-orders b { color: #e2e8f0; }
.dashboard-orders > div > span { overflow: hidden; color: #94a3b8; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-orders > div > i { color: #a5b4fc; font-size: 8px; font-style: normal; }

/* Soft section seams; these sit over existing page padding and do not move content. */
.section-divider {
    position: relative;
    display: block;
    width: 100%;
    height: 76px;
    margin: 0;
    background: linear-gradient(180deg, transparent, rgba(79,70,229,.025) 50%, transparent);
}
.section-divider::before {
    top: 50%;
    left: 8%;
    right: 8%;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(99,102,241,.24) 18%, rgba(124,58,237,.3) 50%, rgba(99,102,241,.24) 82%, transparent);
    box-shadow: none;
}
.section-divider::after {
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    transform: translate(-50%,-50%);
    background: #6366f1;
    border: 2px solid #f4f6fa;
    box-shadow: 0 0 0 5px rgba(99,102,241,.09);
}
main > section { position: relative; }
main > section + section::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,.2), rgba(124,58,237,.24), rgba(99,102,241,.2), transparent);
    pointer-events: none;
}
.about-statement,
.work-process-section { position: relative; }
.about-statement::before,
.work-process-section::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: linear-gradient(180deg, #f4f6fa 0%, rgba(244,246,250,.7) 30%, rgba(244,246,250,0) 100%);
    pointer-events: none;
}

/* Give the existing service and portfolio cards a little more depth. */
.service-card,
.principle-card,
.work-project-card,
.features-grid .feature,
.tech-block {
    border-color: rgba(15,23,42,.09);
    box-shadow: 0 16px 42px rgba(15,23,42,.07);
}
.service-card,
.principle-card,
.work-project-card,
.features-grid .feature { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.service-card:hover,
.principle-card:hover,
.work-project-card:hover,
.features-grid .feature:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,.28);
    box-shadow: 0 22px 48px rgba(15,23,42,.11);
}
.service-card.featured { border-color: rgba(79,70,229,.34); }
.service-card.featured::after { border-radius: inherit; }
.service-action,
.about-link,
.work-primary-btn,
.work-cta-button,
.calculator-submit { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }

@media (max-width: 900px) {
    .main-nav { display: none; }
    .main-header .header-wrapper { min-height: 76px; padding: 10px 20px; }
    .brand-logo2 { width: 210px; max-height: 58px; }
    .hero-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
    .section-divider { height: 60px; }
}
@media (max-width: 600px) {
    html { scroll-padding-top: 84px; }
    .section-divider { height: 48px; }
    .section-divider::before { left: 7%; right: 7%; }
    .main-header .header-wrapper { padding: 9px 16px; }
    .brand-logo2 { width: 180px; max-height: 52px; }
    .mockup-box { min-height: 320px; padding: 13px; }
    .dashboard-body { grid-template-columns: 32px minmax(0,1fr); gap: 10px; }
    .dashboard-rail { gap: 14px; font-size: 11px; }
    .dashboard-metrics > div, .dashboard-orders { padding: 10px; }
    .dashboard-orders > div:not(:first-child) { grid-template-columns: 48px minmax(0,1fr); }
    .dashboard-orders > div > i { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
