:root {
    --hc-primary: #1f7ae0;
    --hc-primary-dark: #135bb8;
    --hc-primary-soft: rgba(31, 122, 224, 0.12);
    --hc-dark: #0b1220;
    --hc-dark-2: #0f172a;
    --hc-dark-3: #162338;
    --hc-slate: #526071;
    --hc-light: #f7f9fc;
    --hc-light-2: #eef4fb;
    --hc-border: #e4e9f1;
    --hc-border-dark: rgba(255,255,255,0.10);
    --hc-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
    --hc-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
    --hc-shadow-lg: 0 30px 80px rgba(2, 18, 42, 0.25);
    --hc-radius: 1.35rem;
    --hc-radius-lg: 1.75rem;
    --hc-transition: 0.28s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--hc-dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-box {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* =========================
   NAVBAR
========================= */

.navbar {
    backdrop-filter: saturate(180%) blur(14px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(228, 233, 241, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.navbar-brand img {
    max-height: 70px;
    width: auto;
    display: block;
}

.navbar .nav-link {
    position: relative;
    color: #344256;
    font-weight: 600;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--hc-primary);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--hc-transition);
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after {
    transform: scaleX(1);
}

/* =========================
   BUTTONS
========================= */

.btn {
    border-radius: 0.95rem;
    font-weight: 700;
    padding: 0.9rem 1.3rem;
    transition: all var(--hc-transition);
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--hc-primary) 0%, var(--hc-primary-dark) 100%);
    border-color: transparent;
    box-shadow: 0 14px 34px rgba(31, 122, 224, 0.28);
    letter-spacing: 0.02em;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(31, 122, 224, 0.34);
}

.btn-light {
    color: var(--hc-dark);
    border: 1px solid rgba(255,255,255,0.25);
}

.btn-light:hover,
.btn-light:focus {
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border-radius: 0.95rem;
    font-weight: 700;
    padding: 0.9rem 1.3rem;
    border-color: #cbd5e1;
    color: var(--hc-dark);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: #f8fafc;
    border-color: #94a3b8;
    color: var(--hc-dark);
    transform: translateY(-2px);
}

/* =========================
   GLOBAL SECTIONS / TYPOGRAPHY
========================= */

.section-padding {
    padding: 7rem 0;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--hc-primary);
    margin-bottom: 0.9rem;
}

.section-heading {
    font-size: clamp(2rem, 3vw, 3.15rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--hc-slate);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 780px;
}

.muted {
    color: var(--hc-slate);
    line-height: 1.72;
}

/* =========================
   HERO SHARED
========================= */

.hero,
.hero-mini {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero .section-eyebrow,
.hero-mini .section-eyebrow {
    color: rgba(255,255,255,0.72);
}

/* =========================
   HOMEPAGE HERO
========================= */

.hero {
    background:
            radial-gradient(circle at 12% 18%, rgba(86, 177, 255, 0.30), transparent 24%),
            radial-gradient(circle at 85% 20%, rgba(86, 177, 255, 0.18), transparent 18%),
            linear-gradient(135deg, #09111f 0%, #0d1830 46%, #153865 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
            linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.08;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 680px;
    height: 680px;
    right: -180px;
    top: -130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(71, 164, 255, 0.24) 0%, rgba(71, 164, 255, 0.04) 45%, transparent 68%);
    filter: blur(10px);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.65rem, 5.2vw, 4.85rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin-bottom: 1.1rem;
    max-width: 13.5ch;
}

.hero-lead {
    font-size: 1.08rem;
    line-height: 1.72;
    color: rgba(255,255,255,0.84);
    max-width: 680px;
    margin-top: 0;
}

.hero-proof {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.86);
    padding: 0.68rem 0.95rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.hero-side {
    position: relative;
    z-index: 1;
}

.hero-main-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--hc-radius-lg);
    padding: 1.4rem;
    box-shadow: var(--hc-shadow-lg);
    backdrop-filter: blur(12px);
}

.hero-mini-card {
    height: 100%;
    padding: 1.2rem;
    border-radius: 1.15rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
}

.hero-mini-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.62);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero-mini-card .fw-bold {
    line-height: 1.35;
}

.hero-feature {
    background: #fff;
    color: var(--hc-dark);
    border-radius: 1.4rem;
    padding: 1.4rem;
    box-shadow: 0 26px 60px rgba(4, 18, 44, 0.22);
}

.hero-feature .feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(31, 122, 224, 0.14), rgba(31, 122, 224, 0.06));
    color: var(--hc-primary-dark);
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* =========================
   SECONDARY PAGE HERO
========================= */

.hero-mini {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(18, 103, 179, 0.82) 100%);
    padding: 5rem 0 4rem;
}

.hero-mini::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    background: url('images/hcc_logo_new2.png') center center / contain no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.hero-mini h1 {
    font-size: clamp(2.45rem, 4.8vw, 4.25rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin-bottom: 1rem;
    max-width: 13.5ch;
}

.hero-mini p {
    font-size: 1.08rem;
    line-height: 1.72;
    color: rgba(255,255,255,0.84);
    max-width: 680px;
    margin-top: 0;
}

.hero-brand-line {
    font-size: 0.98rem;
    font-weight: 700;
    color: rgba(255,255,255,0.82);
    margin-bottom: 0.9rem;
    letter-spacing: 0.015em;
}

/* =========================
   TRUST BAR
========================= */

.trust-bar {
    position: relative;
    background: linear-gradient(180deg, #f7f9fc 0%, #f1f6fc 100%);
    border-top: 1px solid var(--hc-border);
    border-bottom: 1px solid var(--hc-border);
}

.trust-item {
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.01em;
}

.trust-item i {
    color: var(--hc-primary);
    margin-right: 0.45rem;
}

/* =========================
   SECTION BACKGROUNDS
========================= */

.content-slab {
    background:
            radial-gradient(circle at top right, rgba(31, 122, 224, 0.06), transparent 22%),
            linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dark-band {
    position: relative;
    background:
            radial-gradient(circle at top left, rgba(65, 168, 255, 0.18), transparent 22%),
            linear-gradient(135deg, #09111f 0%, #0e1730 50%, #132a4e 100%);
    color: #fff;
    overflow: hidden;
}

.dark-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
            linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.12;
}

.dark-band .section-eyebrow {
    color: rgba(255,255,255,0.68);
}

.dark-band .section-heading,
.dark-band .section-subtitle {
    color: #fff;
}

.dark-band .section-subtitle {
    color: rgba(255,255,255,0.76);
}

/* =========================
   CARDS / PANELS
========================= */

.service-card,
.project-card,
.team-card,
.why-card,
.backend-card,
.impact-card,
.premium-panel,
.card-clean {
    background: #fff;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
    height: 100%;
    transition: transform var(--hc-transition), box-shadow var(--hc-transition), border-color var(--hc-transition);
}

.service-card:hover,
.project-card:hover,
.team-card:hover,
.why-card:hover,
.backend-card:hover,
.impact-card:hover,
.premium-panel:hover,
.card-clean:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
    border-color: rgba(31, 122, 224, 0.22);
}

.dark-band .service-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 22px 50px rgba(0,0,0,0.18);
    color: #fff;
    backdrop-filter: blur(10px);
}

.dark-band .service-card .muted,
.dark-band .service-card ul,
.dark-band .service-card li {
    color: rgba(255,255,255,0.78);
}

.dark-band .service-card:hover {
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 30px 70px rgba(0,0,0,0.26);
}

.premium-panel {
    padding: 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.premium-panel-dark {
    padding: 2rem;
    border-radius: var(--hc-radius-lg);
    background:
            radial-gradient(circle at top right, rgba(63, 173, 255, 0.16), transparent 24%),
            linear-gradient(135deg, #0b1220 0%, #0f1b32 58%, #183866 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: var(--hc-shadow-lg);
}

.premium-panel-dark .section-eyebrow {
    color: rgba(255,255,255,0.68);
}

.premium-panel-dark p,
.premium-panel-dark .muted {
    color: rgba(255,255,255,0.78);
}

/* =========================
   ICON BLOCKS
========================= */

.service-icon,
.why-icon,
.backend-icon,
.impact-icon {
    width: 3.6rem;
    height: 3.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(31, 122, 224, 0.16), rgba(31, 122, 224, 0.07));
    color: var(--hc-primary-dark);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.dark-band .service-icon {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* =========================
   IMPACT / STATS
========================= */

.impact-card {
    padding: 1.4rem;
}

.impact-stat {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--hc-dark);
    line-height: 1;
    margin-bottom: 0.4rem;
}

/* =========================
   PROJECTS
========================= */

.project-image {
    aspect-ratio: 16 / 10;
    border-top-left-radius: var(--hc-radius);
    border-top-right-radius: var(--hc-radius);
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-primary-dark);
    font-size: 2.2rem;
    border-bottom: 1px solid var(--hc-border);
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image a {
    width: 100%;
    height: 100%;
    display: block;
}

/* =========================
   TEAM
========================= */

.team-badge {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(31, 122, 224, 0.10);
    color: var(--hc-primary-dark);
    margin-bottom: 1rem;
}

.team-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

/* =========================
   BACKEND IMAGE
========================= */

.backend-image-wrapper img {
    border-radius: var(--hc-radius-lg);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255,255,255,0.8);
}

/* =========================
   INFO LISTS
========================= */

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--hc-slate);
}

.info-list i {
    color: var(--hc-primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* =========================
   FORMS
========================= */

.form-control,
.form-select {
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    border-color: var(--hc-border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hc-primary);
    box-shadow: 0 0 0 0.25rem rgba(18, 103, 179, 0.12);
}

/* =========================
   CTA
========================= */

.cta-section {
    background:
            radial-gradient(circle at top left, rgba(84, 178, 255, 0.24), transparent 22%),
            linear-gradient(135deg, #07101d 0%, #0e1730 58%, #1267b3 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
            linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 70px 70px;
    opacity: 0.1;
}

.cta-section .section-eyebrow {
    color: rgba(255,255,255,0.7);
}

.cta-section .section-subtitle {
    color: rgba(255,255,255,0.76);
}

/* =========================
   FOOTER
========================= */

footer {
    background: #07101d;
    color: rgba(255,255,255,0.72);
}

footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

/* =========================
   DIVIDERS
========================= */

.divider-top {
    position: relative;
}

.divider-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 24px));
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(148,163,184,0.22) 15%, rgba(148,163,184,0.38) 50%, rgba(148,163,184,0.22) 85%, transparent 100%);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {
    .section-padding {
        padding: 4.75rem 0;
    }

    .navbar-brand img {
        max-height: 54px;
    }

    .hero h1,
    .hero-mini h1 {
        max-width: none;
    }

    .hero-mini {
        padding: 4.5rem 0 3.5rem;
    }

    .hero-mini::after {
        width: 260px;
        height: 260px;
        right: -20px;
        opacity: 0.05;
    }
}

@media (max-width: 575.98px) {
    .navbar .container {
        padding-top: 0.55rem !important;
        padding-bottom: 0.55rem !important;
    }

    .navbar-brand img {
        max-height: 44px;
    }

    .hero .section-padding {
        padding-top: 3rem;
        padding-bottom: 3.5rem;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 10.5vw, 3.1rem);
        line-height: 1.08;
        letter-spacing: -0.02em;
    }

    .hero-mini h1 {
        font-size: clamp(2.05rem, 9.6vw, 2.9rem);
        line-height: 1.08;
        letter-spacing: -0.02em;
        max-width: none;
    }

    .hero-lead,
    .hero-mini p,
    .section-subtitle,
    .muted {
        font-size: 1rem;
    }

    .hero-proof {
        font-size: 0.88rem;
        width: 100%;
        justify-content: center;
    }
}

/* =========================
   UTILITIES / HELPERS
========================= */

.z-index-1 {
    position: relative;
    z-index: 1;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

.icon-xl {
    font-size: 4rem;
}
