/* ============================================================
   ACEMEDIX GROUP — DESIGN SYSTEM & STYLESHEET
   ============================================================ */

/* ── 0. Custom Properties ───────────────────────────────────── */
:root {
    /* Brand */
    --brand: #0078BF;
    --brand-hover: #0068A8;
    --brand-deep: #005C96;
    --brand-light: #EBF5FF;
    --brand-glow: rgba(0, 120, 191, 0.18);

    /* Neutrals */
    --ink: #111827;
    --ink-secondary: #4B5563;
    --ink-muted: #9CA3AF;
    --surface: #FFFFFF;
    --surface-light: #F8FAFC;
    --border: #E5E7EB;
    --border-hover: #D1D5DB;

    /* Dark surfaces (Approach + Pipeline + Footer) */
    --dark-base: #0A1628;
    --dark-card: rgba(255, 255, 255, 0.045);
    --dark-border: rgba(255, 255, 255, 0.09);
    --dark-text: rgba(255, 255, 255, 0.55);
    --dark-muted: rgba(255, 255, 255, 0.3);

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.11), 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-brand: 0 4px 20px rgba(0, 120, 191, 0.28);
    --shadow-brand-lg: 0 6px 30px rgba(0, 120, 191, 0.38);

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-2xl: 28px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 240ms;
    --transition: var(--duration) var(--ease);

    /* Layout */
    --nav-h: 72px;
    --max-w: 1200px;
    --px: 24px;
    --px-md: 40px;
    --section-y: 100px;
}


/* ── 1. Reset & Base ────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* Scroll margin for anchors with fixed nav */
section[id],
footer[id] {
    scroll-margin-top: calc(var(--nav-h) + 12px);
}


/* ── 2. Layout Utilities ────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--px);
}

@media (min-width: 768px) {
    .container {
        padding-inline: var(--px-md);
    }
}


/* ── 3. Typography Utilities ────────────────────────────────── */
.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 14px;
}

.section-title--light {
    color: #fff;
}

.section-desc {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-secondary);
    max-width: 540px;
}

.section-desc--light {
    color: var(--dark-text);
}

.section-header {
    margin-bottom: 52px;
}

.eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.5);
}


/* ── 4. Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border: 1.5px solid transparent;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: var(--shadow-brand);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    box-shadow: var(--shadow-brand-lg);
    transform: translateY(-1px);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-brand);
}

.btn--ghost {
    background: transparent;
    color: var(--ink-secondary);
    border-color: var(--border);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light);
}

/* Sizes */
.btn--lg {
    padding: 13px 26px;
    font-size: 15px;
}

.btn--sm {
    padding: 7px 16px;
    font-size: 13px;
}

.btn--submit {
    width: 100%;
    padding: 14px 28px;
    font-size: 15px;
}

/* Focus ring for accessibility */
.btn:focus-visible {
    outline: 3px solid rgba(0, 120, 191, 0.5);
    outline-offset: 2px;
}


/* ── 5. Badges & Tags ───────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 100px;
    border: 1px solid rgba(0, 120, 191, 0.2);
}

.sector-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    background: rgba(0, 120, 191, 0.08);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid rgba(0, 120, 191, 0.18);
}

.sector-inline {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
}

.sector-inline::before {
    content: '·· ';
    opacity: 0.5;
}


/* ── 6. Scroll Progress Bar ─────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--brand);
    z-index: 500;
    transition: width 80ms linear;
}


/* ── 7. Navigation ──────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: var(--nav-h);
    z-index: 200;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition), backdrop-filter var(--transition);
}

/* White glass once scrolled into light sections */
.nav.scrolled {
    border-bottom-color: var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Scrolled: restore dark link colours */
.nav.scrolled .nav__links a {
    color: var(--ink-secondary);
}

.nav.scrolled .nav__links a:hover,
.nav.scrolled .nav__links a.active {
    color: var(--brand);
    background: var(--brand-light);
}

.nav.scrolled .nav__hamburger span {
    background: var(--ink);
}

.nav.scrolled .nav__hamburger:hover {
    background: var(--surface-light);
}

/* Scrolled: restore nav outline button to dark */
.nav.scrolled .btn--nav-outline {
    color: var(--ink-secondary);
    border-color: var(--border);
}

.nav.scrolled .btn--nav-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light);
}

.nav__inner {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--px);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 36px;
}

@media (min-width: 768px) {
    .nav__inner {
        padding-inline: var(--px-md);
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo__mark {
    width: 36px;
    height: 36px;
    background: var(--brand);
    color: #fff;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo__wordmark {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.logo__wordmark strong {
    font-weight: 800;
}

/* Real brand logo image */
.logo__img {
    height: 28px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* Nav logo: white for dark hero background */
.logo__img--nav {
    /* filter: brightness(0) invert(1); */
    transition: filter var(--transition);
}

/* Scrolled nav: restore logo to original */
.nav.scrolled .logo__img--nav {
    filter: none;
}

/* Footer: invert logo to white on dark background */
.logo__img--footer {
    filter: brightness(0) invert(1);
    opacity: 0.88;
}

/* Nav links */
.nav__links {
    display: none;
    align-items: center;
    gap: 2px;
    margin-inline-start: auto;
}

@media (min-width: 860px) {
    .nav__links {
        display: flex;
    }
}

.nav__links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    padding: 6px 12px;
    border-radius: var(--r-sm);
    transition: all var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown chevron */
.nav__has-dropdown>a svg {
    opacity: 0.55;
    transition: transform var(--transition);
}

.nav__has-dropdown>a:hover svg {
    transform: rotate(180deg);
    opacity: 1;
}

/* Nav auth buttons (right side) */
.nav__auth {
    display: none;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

@media (min-width: 860px) {
    .nav__auth {
        display: flex;
    }
}

/* Outlined pill: "Investor Login" */
.btn--nav-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 100px;
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn--nav-outline:hover {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

/* Filled pill: "Get Started" */
.nav__cta-pill {
    border-radius: 100px;
    padding: 7px 18px;
    font-size: 13.5px;
}

/* Legacy nav cta (hidden) */
.nav__cta {
    display: none;
    margin-inline-start: auto;
    padding: 8px 18px;
    font-size: 13.5px;
}

@media (min-width: 860px) {
    .nav__cta {
        display: inline-flex;
        margin-inline-start: 0;
    }
}

/* Hamburger */
.nav__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-inline-start: auto;
    border-radius: var(--r-sm);
    transition: background var(--transition);
}

.nav__hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 860px) {
    .nav__hamburger {
        display: none;
    }
}

.nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

.nav__hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 16px var(--px) 20px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav__item {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-secondary);
    padding: 11px 14px;
    border-radius: var(--r-sm);
    transition: all var(--transition);
}

.mobile-nav__item:hover {
    background: var(--brand-light);
    color: var(--brand);
}

.mobile-nav__cta {
    margin-top: 6px;
    justify-content: center;
}

.mobile-nav__auth {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.mobile-nav__auth .mobile-nav__cta {
    flex: 1;
    margin-top: 0;
    font-size: 14px;
}


/* ── 8. Hero Section ────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    background: #07101F;
    color: #ffffff;
}

/* ── Hero background: glows + dot grid ── */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-bg__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-bg__glow--tr {
    width: 720px;
    height: 720px;
    top: -200px;
    right: -80px;
    background: radial-gradient(ellipse at center,
            rgba(0, 160, 240, 0.11) 0%,
            rgba(0, 100, 200, 0.06) 45%,
            transparent 70%);
}

.hero-bg__glow--bl {
    width: 520px;
    height: 520px;
    bottom: -120px;
    left: -100px;
    background: radial-gradient(ellipse at center,
            rgba(0, 80, 180, 0.08) 0%,
            transparent 70%);
}

.hero-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* Legacy orb/dot elements — hidden */
.hero-bg__orb,
.hero-bg__dots {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Split layout: left content, right panel */
.hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 48px;
}

@media (min-width: 980px) {
    .hero__layout {
        grid-template-columns: 1fr 390px;
        gap: 60px;
    }
}

/* Right panel column — hidden on small screens */
.hero__panel-col {
    display: none;
}

@media (min-width: 980px) {
    .hero__panel-col {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

/* Left content column */
.hero__content {
    max-width: 640px;
}

.hero__eyebrow {
    margin-bottom: 28px;
}

/* Dark badge for hero */
.badge--dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(0, 120, 191, 0.14);
    color: #79C3F0;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: 100px;
    border: 1px solid rgba(0, 120, 191, 0.28);
    text-transform: uppercase;
}

.badge__dot {
    display: block;
    width: 7px;
    height: 7px;
    background: #0078BF;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-anim 2.2s ease-in-out infinite;
}

@keyframes pulse-anim {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.75);
    }
}

/* Headline */
.hero__headline {
    font-size: clamp(36px, 5.5vw, 66px);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: #ffffff;
    margin-bottom: 24px;
}

/* Blue-to-purple gradient on highlighted word */
.headline-gradient {
    background: linear-gradient(90deg, #60A5FA 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Kept for compat */
.headline-mark {
    background: none;
    color: #ffffff;
    font-style: normal;
    position: relative;
    white-space: nowrap;
}

.headline-mark::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
}

/* Subheadline */
.hero__subheadline {
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 400;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.68);
    max-width: 580px;
    margin-bottom: 38px;
}

/* CTA buttons row */
.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 44px;
}

/* Make primary button rounded pill in hero */
.hero-btn-primary {
    border-radius: 100px !important;
}

/* Outline button for dark hero background */
.btn--hero-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 100px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn--hero-outline:hover,
.btn--hero-outline:focus-visible {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

/* Trust bar */
.hero__trust-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.52);
    padding-inline-end: 22px;
}

.trust-item svg {
    flex-shrink: 0;
}

.trust-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    margin-inline-end: 22px;
    flex-shrink: 0;
}

/* Legacy stats bar — kept for compat */
.hero__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-inline-end: 32px;
}

.stat:first-child {
    padding-inline-start: 0;
}

.stat__num {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand);
    line-height: 1;
}

.stat__label {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat__divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    margin-inline-end: 32px;
}

/* Scroll hint indicator */
.hero__scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    animation: scroll-hint-fade 2s ease-in-out 2s both;
}

.scroll-mouse__wheel {
    width: 3px;
    height: 7px;
    background: var(--brand);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(8px);
        opacity: 0;
    }
}

@keyframes scroll-hint-fade {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        pointer-events: none;
    }
}

/* Legacy hero::before grid (replaced by .hero-bg__grid) */
.hero::before {
    display: none;
}

/* Badge on hero (generic) */
.hero .badge {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.07);
}

/* ── Hero Panel (right column) ── */
.hero-panel {
    width: 100%;
    max-width: 375px;
    border-radius: 20px;
    background: rgba(10, 20, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-panel__header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-panel__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
    margin-bottom: 4px;
}

.hero-panel__title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.hero-panel__list {
    display: flex;
    flex-direction: column;
    padding: 10px 12px 12px;
    gap: 6px;
}

.panel-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 13px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.033);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background var(--transition), border-color var(--transition);
}

.panel-item:hover {
    background: rgba(0, 120, 191, 0.09);
    border-color: rgba(0, 120, 191, 0.2);
}

.panel-item__icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
}

.panel-item__icon--blue {
    background: linear-gradient(145deg, #0078BF, #005C96);
    box-shadow: 0 4px 14px rgba(0, 120, 191, 0.32);
}

.panel-item__icon--purple {
    background: linear-gradient(145deg, #8B5CF6, #7C3AED);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.32);
}

.panel-item__icon--green {
    background: linear-gradient(145deg, #10B981, #059669);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32);
}

.panel-item__icon--amber {
    background: linear-gradient(145deg, #F59E0B, #D97706);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.32);
}

.panel-item__content {
    flex: 1;
    min-width: 0;
}

.panel-item__label {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 1px;
    font-weight: 500;
}

.panel-item__value {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.panel-item__sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.32);
    margin-top: 2px;
    font-weight: 500;
}

/* Legacy: hide the old image panel */
.hero__visual,
.hero__img-wrap,
.hero__img-fade,
.hero__img-accent {
    display: none !important;
}


/* ── 9. Approach Section ────────────────────────────────────── */
.section-approach {
    background: var(--dark-base);
    padding-block: var(--section-y);
    position: relative;
    overflow: hidden;
}

/* Top gradient accent line */
.section-approach::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--brand) 30%, rgba(0, 120, 191, 0.4) 70%, transparent 100%);
}

/* Subtle dot grid */
.section-approach::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.section-approach .container {
    position: relative;
    z-index: 1;
}

/* Blockquote */
.approach-quote {
    text-align: center;
    margin-bottom: 72px;
    border: none;
    font-style: normal;
}

.approach-quote__ornament {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 100px;
    line-height: 0.65;
    color: var(--brand);
    opacity: 0.28;
    margin-bottom: 20px;
    letter-spacing: -0.05em;
    user-select: none;
}

.approach-quote p {
    font-size: clamp(26px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: #fff;
    max-width: 820px;
    margin-inline: auto;
}

/* Pillar cards */
.approach-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 700px) {
    .approach-pillars {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillar {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--r-xl);
    padding: 32px 30px 34px;
    transition: all var(--transition);
}

.pillar:hover {
    background: rgba(0, 120, 191, 0.09);
    border-color: rgba(0, 120, 191, 0.32);
    transform: translateY(-2px);
}

.pillar__index {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 18px;
}

.pillar__title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 12px;
}

.pillar__body {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--dark-text);
}


/* ── 10. Divisions Section ──────────────────────────────────── */
.section-divisions {
    background: var(--surface-light);
    padding-block: var(--section-y);
}

/* Division group (Medical Education) */
.division-group {
    margin-bottom: 24px;
}

.division-group__header {
    margin-bottom: 20px;
}

/* Medical Education — 2-col grid */
.division-grid--medical {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 700px) {
    .division-grid--medical {
        grid-template-columns: 3fr 2fr;
    }
}

/* Bullet list inside cards (Logistics, etc.) */
.card__bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0 0 20px;
    padding: 0;
}

.card__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    color: var(--ink-secondary);
    line-height: 1.5;
}

.card__bullets li svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--brand);
}

/* Logistics card: single full-width layout */
.card--logistics {
    max-width: 100%;
}

/* Bento row for remaining 3 divisions */
.division-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 700px) {
    .division-bento {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Division Cards ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
}

.card:hover {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg);
    transform: translateY(-2px);
}

.card:hover .card__accent-bar {
    height: 4px;
}

.card__accent-bar {
    height: 3px;
    background: var(--brand);
    flex-shrink: 0;
    transition: height var(--transition);
}

.card__body {
    padding: 28px 28px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Featured (larger) card */
.card--featured .card__body {
    padding: 32px 32px 36px;
}

.card--featured .card__name {
    font-size: 26px;
}

/* AI-Powered tag */
.card__ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: rgba(0, 120, 191, 0.09);
    color: var(--brand);
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    margin-bottom: 12px;
    width: max-content;
    letter-spacing: 0.02em;
}

.card__name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 12px;
}

.card__desc {
    font-size: 14.5px;
    line-height: 1.72;
    color: var(--ink-secondary);
    flex: 1;
    margin-bottom: 22px;
}

/* Cards without links still need padding at bottom */
.card__body:not(:has(.card__link)) {
    padding-bottom: 30px;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brand);
    transition: all var(--transition);
    margin-top: auto;
}

.card__link:hover {
    gap: 11px;
    color: var(--brand-hover);
}

/* ── Card Images ── */
.card__img-wrap {
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-light);
}

.card--featured .card__img-wrap {
    height: 240px;
}

.card--bento .card__img-wrap {
    height: 280px;
}

/* OSCEPro card sits alongside the featured card; shorter image */
.division-grid--medical .card:not(.card--featured) .card__img-wrap {
    height: 180px;
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.65s var(--ease);
}

.card:hover .card__img {
    transform: scale(1.04);
}


/* ── 11. Pipeline Section ───────────────────────────────────── */
.section-pipeline {
    background: var(--dark-base);
    padding-block: var(--section-y);
    position: relative;
    overflow: hidden;
}

/* Radial glow from bottom-left */
.section-pipeline::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 55% at 15% 75%, rgba(0, 120, 191, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 85% 25%, rgba(0, 120, 191, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.section-pipeline::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.section-pipeline .container {
    position: relative;
    z-index: 1;
}

.pipeline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 700px) {
    .pipeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pipeline-card {
    border-radius: var(--r-2xl);
    overflow: hidden;
    transition: all var(--transition);
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Pipeline card image */
.pipeline-card__img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.pipeline-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.pipeline-card:hover .pipeline-card__img {
    transform: scale(1.04);
}

/* Blue accent line at top */
.pipeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), rgba(0, 120, 191, 0.3));
}

.pipeline-card:hover {
    background: rgba(0, 120, 191, 0.08);
    border-color: rgba(0, 120, 191, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 120, 191, 0.18);
}

.pipeline-card__inner {
    padding: 36px 36px 38px;
}

/* "Coming Soon" badge */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(0, 120, 191, 0.14);
    color: #79C3F0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid rgba(0, 120, 191, 0.25);
    margin-bottom: 22px;
    width: max-content;
}

.pulse-dot {
    display: block;
    width: 7px;
    height: 7px;
    background: #79C3F0;
    border-radius: 50%;
    animation: pulse-anim 2s ease-in-out infinite;
}

@keyframes pulse-anim {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.75);
    }
}

.pipeline-card__name {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.05;
}

.pipeline-card__desc {
    font-size: 15px;
    line-height: 1.72;
    color: var(--dark-text);
    margin-bottom: 26px;
}

.pipeline-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brand);
    transition: all var(--transition);
}

.pipeline-card__link:hover {
    color: #79C3F0;
    gap: 10px;
}


/* ── 12. Footer ─────────────────────────────────────────────── */
.footer {
    background: #050D1A;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    padding-bottom: 64px;
}

@media (min-width: 920px) {
    .footer__grid {
        grid-template-columns: 1fr 1.4fr;
        gap: 80px;
    }
}

/* Footer brand column */
.footer__logo {
    margin-bottom: 20px;
}

.footer__logo .logo__mark {
    background: var(--brand);
}

.footer__logo .logo__wordmark {
    color: #fff;
}

.footer__tagline {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.38);
    max-width: 280px;
    margin-bottom: 28px;
}

.footer__site-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.footer__site-nav a {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.38);
    padding: 5px 10px;
    border-radius: var(--r-sm);
    transition: all var(--transition);
}

.footer__site-nav a:hover {
    color: var(--brand);
    background: rgba(0, 120, 191, 0.1);
}

.footer__division-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__division-links__label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 4px;
}

.footer__division-links a {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.38);
    transition: color var(--transition);
    width: max-content;
}

.footer__division-links a:hover {
    color: var(--brand);
}

/* Footer contact column */
.footer__contact-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 10px;
}

.footer__contact-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
    max-width: 400px;
}

/* ── Contact Form ── */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 540px) {
    .contact-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-row .form-field {
    margin-bottom: 0;
}

.form-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.03em;
}

.form-optional {
    font-weight: 400;
    opacity: 0.55;
}

.form-field input,
.form-field textarea {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    color: #fff;
    outline: none;
    transition: all var(--transition);
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--brand);
    background: rgba(0, 120, 191, 0.07);
    box-shadow: 0 0 0 3px rgba(0, 120, 191, 0.18);
}

.btn--submit .btn__label {
    transition: all var(--transition);
}

.btn--submit .btn__icon {
    transition: transform var(--transition);
}

.btn--submit:hover .btn__icon {
    transform: translateX(3px);
}

/* Footer bottom bar */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-block: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer__copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
}

.footer__motto {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0, 120, 191, 0.45);
}


/* ── 13. Scroll Reveal Animations ───────────────────────────── */

/* Only apply reveal when JS has confirmed IntersectionObserver support */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js-reveal .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid children */
.approach-pillars .reveal:nth-child(1) {
    transition-delay: 0.08s;
}

.approach-pillars .reveal:nth-child(2) {
    transition-delay: 0.18s;
}

.approach-pillars .reveal:nth-child(3) {
    transition-delay: 0.28s;
}

.division-grid--medical .reveal:nth-child(1) {
    transition-delay: 0.06s;
}

.division-grid--medical .reveal:nth-child(2) {
    transition-delay: 0.16s;
}

.division-bento .reveal:nth-child(1) {
    transition-delay: 0.06s;
}

.division-bento .reveal:nth-child(2) {
    transition-delay: 0.16s;
}

.division-bento .reveal:nth-child(3) {
    transition-delay: 0.26s;
}

.pipeline-grid .reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.pipeline-grid .reveal:nth-child(2) {
    transition-delay: 0.2s;
}


/* ── 14. Responsive fine-tuning ─────────────────────────────── */
@media (max-width: 480px) {
    :root {
        --section-y: 72px;
    }

    .hero {
        padding-top: calc(var(--nav-h) + 52px);
    }

    .hero__stats {
        gap: 0;
    }

    .stat__divider {
        margin-inline-end: 20px;
    }

    .stat {
        padding-inline-end: 20px;
    }

    .pipeline-card__inner {
        padding: 28px 24px 30px;
    }

    .card__body {
        padding: 22px 22px 24px;
    }
}

/* ── Form validation error state ───────────────────────────── */
.form-field input.field-error,
.form-field textarea.field-error {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}


/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .hero-bg__orb--a,
    .hero-bg__orb--b {
        animation: none;
    }
}