:root {
    --bg-dark: #07090f;
    --bg-card: rgba(20, 25, 40, 0.6);
    --bg-card-hover: rgba(30, 38, 60, 0.8);
    --text-main: #f8fafc;
    /* WCAG AA fix: raised from #94a3b8 to #b0c4d8 (~5.2:1 on dark bg) */
    --text-muted: #b0c4d8;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    --border-subtle: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 80px;
    --bottom-nav-height: 64px;
    /* Mobile bottom nav */
    /* 8pt grid unit */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* iOS text size adjust */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Typography — Fluid Scale (CSS clamp for smooth scaling between breakpoints) */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* clamp(min, preferred, max) — scales smoothly from 320px to 1280px */
h1 {
    font-size: clamp(2rem, 5.5vw + 0.5rem, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.625rem, 4vw + 0.25rem, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw + 0.25rem, 1.75rem);
}

p {
    color: var(--text-muted);
    /* 16px minimum — prevents iOS auto-zoom on text, WCAG 1.4.4 compliance */
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.125rem);
    /* WCAG 1.4.12: line-height ≥1.5 × font-size */
    line-height: 1.55;
    margin-bottom: 1.5rem;
    /* Baymard Institute: optimal 65ch per line */
    max-width: 65ch;
}

/* Links & Buttons */
a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* Apple HIG: 44pt / Material: 48dp minimum touch target */
    min-height: 48px;
    padding: 0.875rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    /* Prevent text selection on rapid taps */
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* Material-style tap feedback */
.btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}

/* Base Layout & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(7, 9, 15, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo span {
    color: var(--accent-cyan);
}

.nav-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.nav-logo-img:hover {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating element background decors */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.orb-1 {
    background: var(--accent-cyan);
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.orb-2 {
    background: var(--accent-blue);
    width: 500px;
    height: 500px;
    bottom: 10%;
    right: -200px;
    opacity: 0.3;
}

/* Page Header */
.page-header {
    padding: 12rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.2);
}

.text-center {
    text-align: center;
}

/* --- Component Styles --- */
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-visual.relative {
    height: 500px;
    position: relative;
}

.stats-card {
    position: absolute;
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: 0;
    animation-delay: 1.5s;
}

.stats-card h4 {
    margin: 0;
    font-size: 1.125rem;
    color: white;
}

.stats-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Section Utilities */
.section-padding {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Doctrine Grid */
.doctrine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.doctrine-card {
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    transition: var(--transition);
    text-align: center;
}

.doctrine-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: rgba(6, 182, 212, 0.3);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border-radius: 50%;
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* Capabilities */
.capabilities-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.capability-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.capability-list li {
    display: flex;
    gap: 1.25rem;
}

.capability-list i {
    color: var(--accent-cyan);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.capability-list h4 {
    margin-bottom: 0.25rem;
}

.capability-list p {
    margin-bottom: 0;
    font-size: 1rem;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pulse-ring {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    animation: pulse 3s cubic-bezier(0.2, 0, 0, 1) infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* ============================================================
   PREMIUM FOOTER
   ============================================================ */
.footer {
    background: #03050a;
    padding: 5rem 0 0;
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

/* 4-Column Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
}


.footer-logo-link {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-style: italic;
    font-size: 1rem;
    color: var(--accent-cyan);
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: none;
}

/* Column Headings */
.footer-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

/* Navigation Links */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    /* Touch-friendly */
    min-height: 36px;
    padding: 2px 0;
    transition: var(--transition);
}

.footer-links a i {
    font-size: 1rem;
    color: var(--accent-cyan);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-links a:hover i {
    opacity: 1;
}

/* Contact List */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contact-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-contact-list i {
    font-size: 1.125rem;
    color: var(--accent-cyan);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-list span,
.footer-contact-list a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    max-width: none;
}

.footer-contact-list a:hover {
    color: var(--accent-cyan);
}

/* Compliance Badges */
.footer-compliance {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-compliance li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.compliance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    min-width: 52px;
    text-align: center;
    flex-shrink: 0;
}

.footer-compliance span:last-child {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            var(--border-subtle) 15%,
            rgba(6, 182, 212, 0.2) 50%,
            var(--border-subtle) 85%,
            transparent);
    margin: 0;
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    max-width: none;
}

.footer-copyright strong {
    color: var(--text-main);
}

.footer-legal {
    color: rgba(176, 196, 216, 0.5);
    font-size: 0.8125rem;
    margin: 0;
    max-width: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 1rem);
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.7);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: scale(0.92);
}

/* On desktop, back-to-top sits above the fold without bottom nav offset */
@media (min-width: 769px) {
    .back-to-top {
        bottom: 2rem;
    }
}

/* Footer Mobile Stacking */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer {
        padding-top: 4rem;
    }
}

/* Contact Form */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-control {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
    background: rgba(15, 23, 42, 0.6);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select.form-control option {
    background: var(--bg-dark);
    color: var(--text-main);
}

/* ==============================================
   ACCESSIBILITY & TOUCH STANDARDS (PhD Level)
   ============================================== */

/* WCAG 2.4.7: Visible focus indicator for keyboard / AT users.
   Replaces default browser outline with a clearly visible ring. */
:focus-visible {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Tap/click feedback on clickable glass cards (Material Design tactile response) */
.glass.doctrine-card:active,
.glass.sector-card:active,
.glass[style*="padding"]:active {
    transform: scale(0.98);
    opacity: 0.9;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

/* Nav links — min height touch target (Material 48dp standard) */
.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
}

/* Form inputs: 16px min to prevent iOS auto-zoom (Apple HIG) */
.form-control {
    font-size: 16px !important;
}

/* ==============================================
   SAFE AREA INSETS (iPhone X / Dynamic Island)
   ============================================== */
.navbar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* ==============================================
   PREFERS-REDUCED-MOTION (WCAG 2.3.3)
   Users with vestibular disorders: disable all animations
   ============================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .stats-card {
        animation: none !important;
    }

    .pulse-ring {
        animation: none !important;
    }
}

/* ==============================================
   MOBILE BOTTOM NAVIGATION BAR
   (Nielsen NN: thumb zone — bottom of screen for primary nav)
   ============================================== */
.bottom-nav {
    display: none;
    /* hidden on desktop */
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        height: var(--bottom-nav-height);
        /* Add safe area for home-bar on notched phones */
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(7, 9, 15, 0.92);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        justify-content: space-around;
        align-items: center;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        /* Minimum 48dp touch target (Google Material) */
        min-width: 48px;
        min-height: 48px;
        padding: 4px 12px;
        border-radius: 12px;
        color: var(--text-muted);
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }

    .bottom-nav-item i {
        font-size: 1.375rem;
        line-height: 1;
    }

    .bottom-nav-item span {
        font-size: 0.6875rem;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .bottom-nav-item.active {
        color: var(--accent-cyan);
        background: rgba(6, 182, 212, 0.1);
    }

    .bottom-nav-item:active {
        background: rgba(6, 182, 212, 0.15);
        transform: scale(0.92);
    }

    /* Push page content above bottom nav */
    body {
        padding-bottom: var(--bottom-nav-height);
    }

    /* Scroll-hide top nav bar (hides on scroll down, shows on scroll up) */
    .navbar.nav-hidden {
        transform: translateY(-100%);
    }
}

/* ==============================================
   RESPONSIVE / MOBILE OPTIMIZATION
   ============================================== */


/* Tablet: 1024px and below */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual.relative {
        display: none;
        /* Hide floating cards on tablet—clean look */
    }

    .capabilities-flex {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    h1 {
        font-size: 2.25rem;
        letter-spacing: -0.01em;
    }

    h2 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.375rem;
    }

    p {
        font-size: 1rem;
    }

    /* --- Navbar --- */
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        height: calc(100vh - var(--nav-height));
        width: 280px;
        background: rgba(7, 9, 15, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-subtle);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.125rem;
        color: var(--text-main);
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-logo-img {
        height: 48px;
    }

    /* --- Hero --- */
    .hero {
        padding-top: calc(var(--nav-height) + 2rem);
        padding-bottom: 4rem;
        text-align: center;
    }

    .hero-container {
        gap: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .badge {
        font-size: 0.8rem;
    }

    /* --- Sections --- */
    section {
        padding: 4rem 0;
    }

    .section-padding {
        padding: 5rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* --- Doctrine Grid --- */
    .doctrine-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .doctrine-card {
        padding: 2rem 1.5rem;
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .doctrine-card .icon-box {
        margin: 0;
        flex-shrink: 0;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    /* --- Capabilities --- */
    .capabilities-flex {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .capabilities-image {
        display: none;
    }

    /* hide decorative element on small screens */

    .capability-list {
        gap: 1.25rem;
    }

    /* --- About page compliance grid --- */
    .doctrine-grid.compliance-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* --- Services page --- */
    .services-list .capabilities-flex {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* --- Sectors page --- */
    .sectors-grid .doctrine-grid {
        grid-template-columns: 1fr;
    }

    /* --- Contact Page --- */
    .contact-section .capabilities-flex {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form .form-group:last-of-type,
    .contact-form div:last-child {
        grid-column: 1;
    }

    /* --- Footer --- */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 3.5rem 0 1.5rem;
    }

    /* --- Page Header --- */
    .page-header {
        padding: 9rem 0 4rem;
    }

    /* --- Stat cards (hero) --- */
    .hero-visual.relative {
        display: none;
    }

    /* Adjust overflow for floating orbs so they don't cause horizontal scroll */
    .glow-orb {
        opacity: 0.2;
    }

    .orb-1 {
        width: 250px;
        height: 250px;
        left: -80px;
    }

    .orb-2 {
        width: 300px;
        height: 300px;
        right: -120px;
    }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.625rem;
    }

    .container {
        padding: 0 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .doctrine-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .doctrine-card .icon-box {
        margin: 0;
    }

    /* Compliance grid on About page — single column on tiny screens */
    .doctrine-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        gap: 1.5rem;
    }
}