/* assets/css/main.css — Curevention single-page website */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --color-primary:       #008080;
    --color-primary-dark:  #006666;
    --color-primary-light: #5cd2c2;
    --color-secondary:     #e0f2f1;
    --color-accent:        #d4af37;

    --color-text:          #111827;
    --color-text-light:    #4b5563;
    --color-text-lighter:  #9ca3af;

    --color-bg:            #ffffff;
    --color-bg-alt:        #f8fafc;
    --color-border:        #e2e8f0;

    --gradient-primary: linear-gradient(135deg, #009999 0%, #005f5f 100%);
    --gradient-hero:    linear-gradient(145deg, #003d3d 0%, #005252 45%, #002e2e 100%);

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --shadow-sm:    0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:    0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg:    0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl:    0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-card:  0 4px 20px rgba(0,0,0,0.06);

    --transition-fast:   200ms cubic-bezier(.4,0,.2,1);
    --transition-smooth: 350ms cubic-bezier(.4,0,.2,1);

    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-full: 9999px;

    --z-nav:  1000;
    --z-skip: 9999;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.05rem; }

a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: var(--font-sans); }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section    { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.bg-alt     { background: var(--color-bg-alt); }
.text-center { text-align: center; }

.section-label {
    display: inline-block;
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    background: rgba(0,128,128,0.1);
    padding: 0.35rem 0.875rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-header {
    max-width: 640px;
    margin: 0 auto 3.5rem;
}
.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 0.6rem;
    margin-bottom: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 44px;
    touch-action: manipulation;
    user-select: none;
    white-space: nowrap;
    transition: transform var(--transition-fast),
                background-color var(--transition-fast),
                box-shadow var(--transition-fast),
                border-color var(--transition-fast);
}
.btn-lg   { padding: 0.9rem 2.25rem; font-size: 1.05rem; }
.btn-sm   { padding: 0.5rem 1rem; font-size: 0.875rem; min-height: 36px; }
.btn-full { width: 100%; }

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,128,128,0.3);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,128,128,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
}
.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0,128,128,0.04);
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.65);
}

.btn-white {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}
.btn-white:hover { background: #f0fdfa; transform: translateY(-2px); }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
    z-index: -1;
}
.skip-link:focus {
    position: fixed;
    top: 1rem; left: 1rem;
    width: auto; height: auto;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: var(--z-skip);
    outline: 3px solid #fff;
    outline-offset: 2px;
}

:focus:not(:focus-visible) { outline: none; }
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

@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;
    }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    background: rgba(255,255,255,0.60);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.50);
    box-shadow: 0 2px 24px rgba(0,128,128,0.06), inset 0 -1px 0 rgba(0,128,128,0.08);
    transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}
header.scrolled {
    background: rgba(255,255,255,0.88);
    box-shadow: 0 4px 32px rgba(0,128,128,0.10);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.logo svg { flex-shrink: 0; }
.logo-dot { color: var(--color-accent); }

.nav-links {
    display: flex;
    gap: 0.125rem;
    align-items: center;
}
.nav-links > li > a {
    display: block;
    font-weight: 500;
    font-size: 0.925rem;
    color: var(--color-text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--color-primary);
    background: rgba(0,128,128,0.07);
}

.nav-cta {
    background: var(--color-primary) !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
    box-shadow: 0 2px 10px rgba(0,128,128,0.25);
    margin-left: 0.5rem;
}
.nav-cta:hover {
    background: var(--color-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,128,128,0.35) !important;
}

.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    touch-action: manipulation;
    transition: background var(--transition-fast);
}
.mobile-toggle:hover { background: rgba(0,0,0,0.05); }

.mobile-menu {
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-menu ul {
    padding: 0.75rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.mobile-menu a {
    display: block;
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.mobile-menu a:hover { background: rgba(0,128,128,0.07); color: var(--color-primary); }

/* ============================================================
   TOOLS DROPDOWN — nav dropdown menu
   ============================================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.925rem;
    color: var(--color-text);
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger[aria-expanded="true"] {
    color: var(--color-primary);
    background: rgba(0,128,128,0.07);
}

.nav-dropdown-arrow {
    font-size: 1rem;
    transition: transform var(--transition-fast);
    display: inline-block;
    line-height: 1;
}
.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    padding: 0.4rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-6px);
    transition:
        opacity var(--transition-fast),
        visibility var(--transition-fast),
        transform var(--transition-fast);
}
/* small caret arrow */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px; height: 6px;
    background: #fff;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.875rem;
    transition: background var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
}
.nav-dropdown-item:hover {
    background: rgba(0,128,128,0.07);
    color: var(--color-primary);
}
.nav-dropdown-item:hover .nav-dropdown-item-icon {
    background: var(--color-primary);
    color: #fff;
}

.nav-dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(0,128,128,0.08);
    color: var(--color-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.nav-dropdown-item-label {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
}
.nav-dropdown-item-desc {
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.3;
}

.nav-dropdown-item-ext {
    font-size: 0.8rem;
    color: var(--color-text-lighter);
    flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 5rem;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-blob-1 {
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: rgba(0,200,200,0.1);
    animation: blobDrift 14s ease-in-out infinite;
}
.hero-blob-2 {
    bottom: -30%; left: -15%;
    width: 500px; height: 500px;
    background: rgba(0,90,90,0.15);
    animation: blobDrift 18s ease-in-out infinite reverse;
}
@keyframes blobDrift {
    0%,100% { transform: translate(0,0); }
    50%      { transform: translate(30px,-20px); }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.88);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: fit-content;
}
.hero-badge i { color: var(--color-primary-light); }

.hero-content h1 {
    color: #fff;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.7s ease 0.1s both;
}
.hero-content > p {
    color: rgba(255,255,255,0.75);
    font-size: 1.15rem;
    line-height: 1.75;
    max-width: 540px;
    margin-bottom: 2rem;
    animation: fadeUp 0.7s ease 0.25s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.7s ease 0.4s both;
    margin-bottom: 2rem;
}
.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeUp 0.7s ease 0.55s both;
}
.hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.825rem;
    font-weight: 500;
}
.hero-trust i { color: var(--color-primary-light); font-size: 0.95rem; }

.hero-visual { animation: fadeUp 0.8s ease 0.3s both; }

/* Dashboard Mockup */
.dashboard-mockup {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.dm-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dm-title-text {
    color: rgba(255,255,255,0.85);
    font-size: 0.775rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.dm-title-text i { color: var(--color-primary-light); }
.dm-dots { display: flex; gap: 5px; }
.dm-dot { width: 10px; height: 10px; border-radius: 50%; }
.dm-dot-r { background: #ff5f57; }
.dm-dot-y { background: #ffbd2e; }
.dm-dot-g { background: #28c840; }

.dm-body { padding: 1rem; }

.dm-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}
.dm-stat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.625rem;
    text-align: center;
}
.dm-stat-accent {
    background: rgba(0,200,180,0.12);
    border-color: rgba(0,200,180,0.2);
}
.dm-stat-v {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.2rem;
}
.dm-stat-accent .dm-stat-v { color: #5cd2c2; }
.dm-stat-l {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.dm-rows { display: flex; flex-direction: column; gap: 0.35rem; }
.dm-th {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.9fr;
    padding: 0.35rem 0.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.35);
}
.dm-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.9fr;
    align-items: center;
    padding: 0.45rem 0.5rem;
    background: rgba(255,255,255,0.035);
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.72);
    transition: background var(--transition-fast);
}
.dm-row:hover { background: rgba(255,255,255,0.07); }

.dm-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.18rem 0.45rem;
    border-radius: var(--radius-full);
    width: fit-content;
}
.dm-badge.admitted    { background: rgba(34,197,94,0.18);  color: #4ade80; }
.dm-badge.consulting  { background: rgba(59,130,246,0.18); color: #93c5fd; }
.dm-badge.pending     { background: rgba(250,204,21,0.18); color: #fde047; }
.dm-badge.urgent      { background: rgba(239,68,68,0.18);  color: #fca5a5; }

.dm-footer-bar {
    display: flex;
    gap: 1.25rem;
    padding: 0.625rem 0.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 0.625rem;
}
.dm-footer-bar span {
    font-size: 0.67rem;
    color: rgba(255,255,255,0.38);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.dm-footer-bar i { color: var(--color-primary-light); }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.5rem;
    text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-item strong {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -0.04em;
}
.stat-item span {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ============================================================
   PLATFORM SECTION
   ============================================================ */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.problem-cards { display: flex; flex-direction: column; gap: 1rem; }
.problem-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.problem-card:hover { border-color: rgba(0,128,128,0.25); box-shadow: var(--shadow-md); }
.problem-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.problem-icon.red    { background: #fef2f2; color: #ef4444; }
.problem-icon.amber  { background: #fffbeb; color: #f59e0b; }
.problem-icon.orange { background: #fff7ed; color: #f97316; }
.problem-card h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.problem-card p  { font-size: 0.875rem; color: var(--color-text-light); line-height: 1.5; margin: 0; }

.solution-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}
.solution-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-primary);
}
.solution-features { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.solution-feature {
    display: flex; align-items: center; gap: 0.7rem;
    font-size: 0.95rem; color: var(--color-text);
}
.solution-feature i { color: var(--color-primary); font-size: 1.05rem; flex-shrink: 0; }

/* ============================================================
   MODULES GRID
   ============================================================ */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px,1fr));
    gap: 1.125rem;
}
.module-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,128,128,0.2);
}
.module-card i { font-size: 1.75rem; color: var(--color-primary); margin-bottom: 0.75rem; display: block; }
.module-card h4 { font-size: 0.975rem; margin-bottom: 0.35rem; }
.module-card p  { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.5; margin: 0; }

/* ============================================================
   WHY CUREVENTION
   ============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 1.375rem;
}
.why-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-icon {
    width: 50px; height: 50px;
    border-radius: var(--radius-sm);
    background: rgba(0,128,128,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.45rem;
    color: var(--color-primary);
    margin-bottom: 1.125rem;
}
.why-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.why-card p  { font-size: 0.875rem; color: var(--color-text-light); line-height: 1.6; margin: 0; }

.tech-compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3.5rem;
}
.tech-card, .compliance-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.tech-card h3, .compliance-card h3 { font-size: 1.05rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.tech-card h3 i, .compliance-card h3 i { color: var(--color-primary); }
.tech-stack { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.25rem; }
.tech-item {
    display: flex; align-items: center; gap: 0.45rem;
    background: var(--color-bg-alt);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
}
.tech-item i { font-size: 1.1rem; }

.compliance-badges { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.25rem; }
.badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem; font-weight: 700;
    background: rgba(0,128,128,0.08);
    color: var(--color-primary-dark);
    border: 1px solid rgba(0,128,128,0.15);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.about-card {
    background: white;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow-card);
}
.about-card h3 { color: var(--color-primary); margin-bottom: 0.75rem; }
.about-card p  { color: var(--color-text-light); line-height: 1.75; margin: 0; font-size: 0.975rem; }

.impact-strip {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.impact-item strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 0.35rem;
}
.impact-item span { font-size: 0.875rem; color: var(--color-text-light); font-weight: 500; }

/* ============================================================
   BOOK DEMO — CONVERSION SECTION
   ============================================================ */
.demo-section {
    background: var(--gradient-hero);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.demo-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.demo-bg-blob { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.demo-bg-blob-1 { top:-20%; right:-10%; width:500px; height:500px; background:rgba(0,200,200,0.07); }
.demo-bg-blob-2 { bottom:-30%; left:-10%; width:400px; height:400px; background:rgba(0,100,100,0.1); }

.demo-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.demo-left { color: white; padding-top: 0.5rem; }
.demo-left .section-label { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.demo-left h2 { color: white; margin-bottom: 1rem; }
.demo-left > p { color: rgba(255,255,255,0.7); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2.5rem; }

.demo-benefits { display: flex; flex-direction: column; gap: 1.125rem; margin-bottom: 2.5rem; }
.demo-benefit { display: flex; align-items: flex-start; gap: 0.875rem; }
.demo-benefit-icon {
    width: 38px; height: 38px;
    flex-shrink: 0;
    background: rgba(92,210,194,0.13);
    border: 1px solid rgba(92,210,194,0.22);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primary-light);
    font-size: 1rem;
}
.demo-benefit-text strong { display: block; color: rgba(255,255,255,0.88); font-size: 0.925rem; margin-bottom: 0.1rem; }
.demo-benefit-text span  { color: rgba(255,255,255,0.52); font-size: 0.83rem; }

.demo-testimonial {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}
.demo-testimonial blockquote { color: rgba(255,255,255,0.78); font-size: 0.925rem; line-height: 1.65; font-style: italic; margin-bottom: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(92,210,194,0.18);
    border: 2px solid rgba(92,210,194,0.28);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primary-light);
    font-size: 1rem;
}
.author-info strong { display: block; color: rgba(255,255,255,0.82); font-size: 0.85rem; }
.author-info span   { color: rgba(255,255,255,0.45); font-size: 0.78rem; }

/* Form card */
.demo-form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 32px 64px rgba(0,0,0,0.3);
}
.demo-form-card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.demo-form-card > p { color: var(--color-text-light); font-size: 0.875rem; margin-bottom: 1.75rem; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}
.form-group:last-of-type { margin-bottom: 0; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
.form-required { color: #dc2626; margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.875rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text);
    background: white;
    min-height: 44px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234b5563' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,128,128,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-lighter); }

.form-status {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}
.form-status.is-success { display:block; background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }
.form-status.is-error   { display:block; background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }

.form-note {
    font-size: 0.78rem;
    color: var(--color-text-lighter);
    text-align: center;
    margin-top: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.form-note i { color: var(--color-primary); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #0a1628;
    color: white;
    padding: 4.5rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .logo { color: white; margin-bottom: 1rem; }
.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
    max-width: 280px;
    margin-bottom: 1.5rem;
}
.footer-contact { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-contact a {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-fast);
}
.footer-contact a:hover { color: white; }
.footer-contact i { color: var(--color-primary-light); }

.footer-compliance { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-badge {
    padding: 0.2rem 0.625rem;
    border: 1px solid rgba(92,210,194,0.22);
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(92,210,194,0.75);
    letter-spacing: 0.5px;
}

.footer-col h5 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col ul a { font-size: 0.9rem; color: rgba(255,255,255,0.5); transition: color var(--transition-fast); }
.footer-col ul a:hover { color: white; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.28);
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.28); font-size: 0.8rem; transition: color var(--transition-fast); }
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-inner          { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual         { max-width: 520px; margin: 0 auto; }
    .platform-grid       { grid-template-columns: 1fr; gap: 3rem; }
    .tech-compliance-grid{ grid-template-columns: 1fr; }
    .demo-inner          { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid         { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    html             { scroll-padding-top: 72px; }
    .nav-links       { display: none; }
    .mobile-toggle   { display: flex; }
    .stats-grid      { grid-template-columns: repeat(2,1fr); }
    .about-grid      { grid-template-columns: 1fr; }
    .impact-strip    { grid-template-columns: 1fr; }
    .form-grid-2     { grid-template-columns: 1fr; }
    .demo-form-card  { padding: 1.75rem; }
    .footer-grid     { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom   { flex-direction: column; text-align: center; }
    .hero            { padding: 4rem 0 3rem; }
    .hero-actions    { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .section         { padding: 4rem 0; }
    .container       { width: 92%; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .stats-grid  { grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
    .modules-grid{ grid-template-columns: 1fr; }
    .why-grid    { grid-template-columns: 1fr; }
}

/* ============================================================
   ENHANCED MODERN UI — ANIMATIONS & POLISH
   ============================================================ */

/* --- Animated gradient hero --- */
@keyframes heroGradientShift {
    0%   { background-position: 0% 50%;   }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%;   }
}
.hero {
    background: linear-gradient(-45deg, #002626, #003d3d, #005252, #002e2e, #001a1a) !important;
    background-size: 400% 400% !important;
    animation: heroGradientShift 18s ease infinite;
}

/* --- Gradient accent text --- */
.hero-content h1 span.text-accent {
    background: linear-gradient(135deg, #5cd2c2 0%, #a8edea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Scroll-down hint --- */
.scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.38);
    font-size: 0.77rem;
    font-weight: 500;
    margin-top: 2.5rem;
    animation: fadeUp 0.7s ease 0.85s both;
}
.scroll-hint-mouse {
    width: 20px; height: 32px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
}
.scroll-hint-mouse::after {
    content: '';
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%,100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50%      { opacity: 0; transform: translateX(-50%) translateY(7px); }
}

/* --- Nav progress bar --- */
.nav-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    width: 0%;
    z-index: 9999;
    transition: width 0.12s linear;
}

/* --- Hero badge live pulse dot --- */
.hero-badge-dot {
    width: 7px; height: 7px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 2s ease infinite;
}
@keyframes livePulse {
    0%  { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
    70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
    100%{ box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* --- Smooth stagger animations --- */
.animate-on-scroll {
    transition: opacity 0.65s cubic-bezier(.25,.8,.25,1), transform 0.65s cubic-bezier(.25,.8,.25,1);
}

/* Module cards stagger */
.modules-grid .module-card:nth-child(1)  { transition-delay: 0ms; }
.modules-grid .module-card:nth-child(2)  { transition-delay: 55ms; }
.modules-grid .module-card:nth-child(3)  { transition-delay: 110ms; }
.modules-grid .module-card:nth-child(4)  { transition-delay: 165ms; }
.modules-grid .module-card:nth-child(5)  { transition-delay: 220ms; }
.modules-grid .module-card:nth-child(6)  { transition-delay: 275ms; }
.modules-grid .module-card:nth-child(7)  { transition-delay: 330ms; }
.modules-grid .module-card:nth-child(8)  { transition-delay: 385ms; }
.modules-grid .module-card:nth-child(9)  { transition-delay: 440ms; }
.modules-grid .module-card:nth-child(10) { transition-delay: 495ms; }
.modules-grid .module-card:nth-child(11) { transition-delay: 550ms; }
.modules-grid .module-card:nth-child(12) { transition-delay: 605ms; }
.modules-grid .module-card:nth-child(13) { transition-delay: 660ms; }
.modules-grid .module-card:nth-child(14) { transition-delay: 715ms; }

/* Why cards stagger */
.why-grid .why-card:nth-child(1) { transition-delay: 0ms; }
.why-grid .why-card:nth-child(2) { transition-delay: 100ms; }
.why-grid .why-card:nth-child(3) { transition-delay: 200ms; }
.why-grid .why-card:nth-child(4) { transition-delay: 300ms; }

/* Problem cards stagger */
.problem-cards .problem-card:nth-child(1) { transition-delay: 0ms; }
.problem-cards .problem-card:nth-child(2) { transition-delay: 120ms; }
.problem-cards .problem-card:nth-child(3) { transition-delay: 240ms; }

/* About cards */
.about-grid .about-card:nth-child(1) { transition-delay: 0ms; }
.about-grid .about-card:nth-child(2) { transition-delay: 150ms; }

/* --- Module card colour accents --- */
.module-card { position: relative; overflow: hidden; }
.module-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    opacity: 0;
    background: linear-gradient(135deg, rgba(0,200,200,0.05) 0%, transparent 60%);
    transition: opacity var(--transition-fast);
    pointer-events: none;
}
.module-card:hover::after  { opacity: 1; }
.module-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 16px 32px rgba(0,128,128,0.12), 0 3px 8px rgba(0,0,0,0.06);
    border-color: rgba(0,128,128,0.22);
}
.module-card:nth-child(1)  i { color: #0891b2; }
.module-card:nth-child(2)  i { color: #7c3aed; }
.module-card:nth-child(3)  i { color: #0d9488; }
.module-card:nth-child(4)  i { color: #059669; }
.module-card:nth-child(5)  i { color: #dc2626; }
.module-card:nth-child(6)  i { color: #2563eb; }
.module-card:nth-child(7)  i { color: #d97706; }
.module-card:nth-child(8)  i { color: #7c3aed; }
.module-card:nth-child(9)  i { color: #0891b2; }
.module-card:nth-child(10) i { color: #059669; }
.module-card:nth-child(11) i { color: #0d9488; }
.module-card:nth-child(12) i { color: #be123c; }
.module-card:nth-child(13) i { color: #1d4ed8; }
.module-card:nth-child(14) i { color: #7c3aed; }

/* --- Button shimmer --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.65s ease;
    pointer-events: none;
}
.btn-primary:hover::before { left: 150%; }

/* --- Why card top accent on hover --- */
.why-card { position: relative; overflow: hidden; }
.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.why-card:hover::before { transform: scaleX(1); }

/* --- Dashboard row entrance --- */
.dm-row { animation: rowSlide 0.35s ease both; }
.dm-row:nth-child(2) { animation-delay: 0.5s; }
.dm-row:nth-child(3) { animation-delay: 0.75s; }
.dm-row:nth-child(4) { animation-delay: 1.0s; }
.dm-row:nth-child(5) { animation-delay: 1.25s; }
@keyframes rowSlide {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* --- Nav underline indicator --- */
.nav-links > li > a:not(.nav-cta) {
    position: relative;
}
.nav-links > li > a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0.75rem; right: 0.75rem;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-fast);
}
.nav-links > li > a:not(.nav-cta):hover::after,
.nav-links > li > a.active:not(.nav-cta)::after { transform: scaleX(1); }

/* --- Solution feature hover --- */
.solution-feature {
    transition: color var(--transition-fast);
    padding: 0.2rem 0.25rem;
    border-radius: 4px;
}
.solution-feature:hover { color: var(--color-primary); }

/* --- Badge hover --- */
.badge { transition: background var(--transition-fast), transform var(--transition-fast); }
.badge:hover { background: rgba(0,128,128,0.16); transform: translateY(-1px); }

/* --- Stat item hover scale --- */
.stat-item strong { transition: transform var(--transition-fast); display: inline-block; }
.stat-item:hover strong { transform: scale(1.07); }

/* --- Form input focus enhancement --- */
.form-group input:focus,
.form-group select:focus {
    box-shadow: 0 0 0 3px rgba(0,128,128,0.15), 0 1px 4px rgba(0,0,0,0.06);
}

/* --- Demo form card subtle float --- */
@media (min-width: 769px) {
    .demo-form-card {
        animation: cardFloat 6s ease-in-out infinite;
    }
    @keyframes cardFloat {
        0%,100% { transform: translateY(0px); }
        50%      { transform: translateY(-5px); }
    }
}

/* --- Reduced motion overrides --- */
@media (prefers-reduced-motion: reduce) {
    .hero            { animation: none !important; background: #003d3d !important; background-size: auto !important; }
    .hero-blob-1,
    .hero-blob-2     { animation: none !important; }
    .dm-row          { animation: none !important; }
    .hero-badge-dot  { animation: none !important; }
    .demo-form-card  { animation: none !important; }
    .scroll-hint-mouse::after { animation: none !important; }
}

/* ============================================================
   SECTION & TYPOGRAPHY POLISH
   ============================================================ */

/* Underline accent on h2 inside section headers */
.section-header h2 {
    position: relative;
    padding-bottom: 1rem;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 48px; height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}
/* Left-aligned section headers don't need centred underline */
.section-header:not(.text-center) h2::after {
    left: 0;
    transform: none;
}

/* Better section label pill */
.section-label {
    backdrop-filter: blur(4px);
}

/* Stats strip — vertical separator between items */
.stats-grid {
    position: relative;
}
.stats-grid::before,
.stats-grid::after {
    content: '';
    position: absolute;
    top: 15%; bottom: 15%;
    width: 1px;
    background: var(--color-border);
}
.stats-grid::before { left: 25%; }
.stats-grid::after  { right: 25%; }

/* Module card title — always dark */
.module-card h4 { color: var(--color-text); }

/* Platform section visual connector */
.solution-card .section-label {
    background: rgba(0,128,128,0.1);
    color: var(--color-primary);
}

/* Compliance badge group animation stagger */
.compliance-badges .badge:nth-child(1) { transition-delay: 0ms; }
.compliance-badges .badge:nth-child(2) { transition-delay: 50ms; }
.compliance-badges .badge:nth-child(3) { transition-delay: 100ms; }
.compliance-badges .badge:nth-child(4) { transition-delay: 150ms; }
.compliance-badges .badge:nth-child(5) { transition-delay: 200ms; }
.compliance-badges .badge:nth-child(6) { transition-delay: 250ms; }

/* Demo section headline */
.demo-left h2 {
    position: relative;
    padding-bottom: 1rem;
}
.demo-left h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: linear-gradient(90deg, var(--color-primary-light), transparent);
    border-radius: 2px;
}

/* About section impact numbers  */
.impact-item strong {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer brand logo */
footer .logo { font-size: 1.2rem; }

/* Scrollbar — thin teal gradient */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ============================================================
   MODULE CARDS 15-17 — COLOR-CODED ICONS
   ============================================================ */
.modules-grid .module-card:nth-child(15) i { color: #e67e22; }
.modules-grid .module-card:nth-child(16) i { color: #27ae60; }
.modules-grid .module-card:nth-child(17) i { color: #8e44ad; }

/* Extended stagger delays for 17-card grid */
.modules-grid .module-card:nth-child(15) { transition-delay: 770ms; }
.modules-grid .module-card:nth-child(16) { transition-delay: 825ms; }
.modules-grid .module-card:nth-child(17) { transition-delay: 880ms; }

/* Module card — non-interactive */
.module-card { cursor: default; }

/* ============================================================
   SMOOTH SCROLL + GPU ACCELERATION + HIGH-FPS TRANSITIONS
   ============================================================ */

/* Native smooth scrolling with momentum on supported platforms */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* GPU-promote key layers to their own compositing layer */
header,
.hero,
.hero-blob {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* High-FPS easing curves — cubic-bezier spring-like feel */
:root {
    --ease-out-expo:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);
    --ease-out-quart:  cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 180ms var(--ease-out-expo);
    --transition-base: 340ms var(--ease-out-expo);
    --transition-slow: 600ms var(--ease-out-expo);
}

/* Upgrade all card and button transitions to GPU-composited properties */
.module-card,
.why-card,
.about-card,
.problem-card,
.compliance-badge,
.stat-card {
    transition:
        transform 340ms var(--ease-out-expo),
        box-shadow 340ms var(--ease-out-expo),
        opacity 340ms var(--ease-out-expo);
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.module-card:hover  { transform: translateY(-6px) scale(1.015) translateZ(0); }
.why-card:hover     { transform: translateY(-5px) translateZ(0); }
.about-card:hover   { transform: translateY(-4px) translateZ(0); }

/* Buttons — fast snap with spring overshoot */
.btn {
    transition:
        transform 220ms var(--ease-out-spring),
        box-shadow 220ms var(--ease-out-expo),
        background-color 220ms var(--ease-out-expo);
    will-change: transform;
}
.btn:hover  { transform: translateY(-2px) translateZ(0); }
.btn:active { transform: translateY(0) scale(0.97) translateZ(0); }

/* Nav links — smooth underline slide */
.nav-links a {
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

/* Animate-on-scroll — use GPU-compositable transform+opacity only */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px) translateZ(0);
    transition:
        opacity 560ms var(--ease-out-expo),
        transform 560ms var(--ease-out-expo);
    will-change: transform, opacity;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* Parallax hero blobs — moved by JS via CSS custom property */
.hero-blob {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Dashboard mockup — float with hardware compositing */
.dashboard-mockup,
.dm-header,
.dm-sidebar,
.dm-main {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Progress bar — GPU composited */
.nav-progress {
    will-change: width;
    transition: width 80ms linear;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    max-width: 820px;
    margin: 0 auto;
}
.faq-item {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 340ms var(--ease-out-expo), border-color 340ms var(--ease-out-expo);
}
.faq-item:hover {
    box-shadow: 0 6px 20px rgba(0,128,128,0.12);
    border-color: rgba(0,128,128,0.3);
}
.faq-item[open] {
    border-color: var(--color-primary);
    box-shadow: 0 6px 24px rgba(0,128,128,0.15);
}

/* Hide native disclosure triangle — all browsers */
.faq-item summary           { list-style: none; }
.faq-item summary::marker   { display: none; content: ''; }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 0.975rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--color-text);
    transition: color 250ms ease, background 250ms ease;
    user-select: none;
    -webkit-user-select: none;
}
.faq-item[open] > summary {
    color: var(--color-primary);
    background: rgba(0,128,128,0.04);
    border-bottom: 1px solid var(--color-border);
}
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--color-primary);
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    transition: transform 280ms var(--ease-out-expo);
    display: inline-block;
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-answer {
    padding: 1rem 1.5rem 1.375rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.75;
}
.faq-answer p { margin: 0; }

/* Section heading underline bar — smooth width reveal */
section h2::after {
    transition: transform 600ms var(--ease-out-expo) !important;
    transform-origin: left;
    transform: scaleX(0) translateZ(0);
    will-change: transform;
}
section:is(.visible, :has(.visible)) h2::after,
.animate-on-scroll.visible ~ * h2::after,
.section-heading.visible h2::after,
h2.heading-visible::after {
    transform: scaleX(1) translateZ(0);
}

/* Reduced-motion: respect user preference — disable all motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animate-on-scroll { transition: opacity 300ms ease; transform: none; }
    .module-card:hover,
    .why-card:hover,
    .about-card:hover { transform: none; }
    .btn:hover        { transform: none; }
    .hero-blob        { transition: none; }
    section h2::after { transition: none !important; }
}

/* ============================================================
   CORE WEB VITALS — RENDERING PERFORMANCE
   ============================================================ */

/* content-visibility: auto — skip rendering off-screen sections
   Massive LCP/FCP improvement (browser skips layout+paint for invisible sections) */
section:not(#hero) {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;  /* estimated height prevents layout shift */
}

/* Contain layout/style within self-contained components */
.module-card,
.why-card,
.about-card,
.stat-card {
    contain: layout style;
}

/* img: explicit dimensions prevent layout shift (CLS = 0) */
img {
    width: attr(width px);
    height: attr(height px);
}

/* Lazy-loaded images: fade in when loaded */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 400ms ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* ============================================================
   SKIP-TO-CONTENT — Accessibility (keyboard navigation)
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: var(--z-skip);
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    transition: top 0.2s ease;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================================
   FOCUS VISIBLE — accessible keyboard focus rings
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ============================================================
   PRINT STYLES — clean printout
   ============================================================ */
@media print {
    header, footer, .btn, .nav-progress, .hero-blob { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a[href]::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
    section { page-break-inside: avoid; }
}

/* ============================================================
   CORE WEB VITALS — RENDERING PERFORMANCE
   ============================================================ */

/* content-visibility: auto — skip rendering off-screen sections
   Massive LCP/FCP improvement (browser skips layout+paint for invisible sections) */
section:not(#hero) {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;  /* estimated height prevents layout shift */
}

/* Contain layout/style within self-contained components */
.module-card,
.why-card,
.about-card,
.stat-card {
    contain: layout style;
}

/* img: explicit dimensions prevent layout shift (CLS = 0) */
img {
    width: attr(width px);
    height: attr(height px);
}

/* Lazy-loaded images: fade in when loaded */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 400ms ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* ============================================================
   SKIP-TO-CONTENT — Accessibility (keyboard navigation)
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: var(--z-skip);
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    transition: top 0.2s ease;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================================
   FOCUS VISIBLE — accessible keyboard focus rings
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ============================================================
   PRINT STYLES — clean printout
   ============================================================ */
@media print {
    header, footer, .btn, .nav-progress, .hero-blob { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a[href]::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
    section { page-break-inside: avoid; }
}
