/* =============================================
   Eval360 — Modern Revamp
   Edge-to-edge, glass-morphism, tighter layout
   ============================================= */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1a237e;
    --secondary-blue: #3949ab;
    --accent-orange: #ff6b35;
    --accent-yellow: #ffab00;
    --light-gray: #f4f6fb;
    --medium-gray: #e3f2fd;
    --dark-gray: #0a0e27;
    --text-dark: #1e1e2f;
    --text-light: #5a5f7a;
    --white: #ffffff;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.10);
    --shadow-xl: 0 24px 64px rgba(0,0,0,.12);
    --section-pad: 80px 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    min-width: 320px;
    background: var(--white);
}

section {
    scroll-margin-top: 80px;
}

/* ---- Container ---- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 3rem);
}

/* ---- Section Header ---- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: .75rem;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.section-header p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: .85rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(16px);
    transition: all .3s ease;
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(1rem, 3vw, 3rem);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    z-index: 1002;
    text-decoration: none;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, .3);
}

.logo-image {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: contain;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    padding: 4px;
}

.logo-image.no-background {
    background: none;
    padding: 0;
    border-radius: 0;
    max-height: 46px;
    width: auto;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: .25rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    transition: all .25s ease;
    padding: .5rem 1rem;
    border-radius: 999px;
    position: relative;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, .12);
}

/* CTA buttons in nav */
.cta-button, .ct-button {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
    padding: .7rem 1.5rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: all .3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, .3);
    min-height: 44px;
    white-space: nowrap;
}

.cta-button:hover, .ct-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, .4);
}

/* Mobile menu btn (hidden by default) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: .5rem;
    z-index: 1001;
    min-height: 44px;
    min-width: 44px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--primary-blue) 50%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 130px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 45%, rgba(255, 107, 53, .12) 0%, transparent 55%),
        radial-gradient(circle at 85% 20%, rgba(255, 171, 0, .10) 0%, transparent 50%),
        radial-gradient(circle at 50% 85%, rgba(57, 73, 171, .10) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Fill flex parent (.hero); avoids narrow “strip” layout on small screens */
.hero > .hero-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: .45rem 1.1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent-yellow);
    margin-bottom: 1.25rem;
    letter-spacing: .02em;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow), #4fc3f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: .9;
    line-height: 1.65;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: .9rem 1.75rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    min-height: 48px;
    justify-content: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 107, 53, .35);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--white);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, .45);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .35);
    transform: translateY(-3px);
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.stat-item.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: .9rem 1.25rem;
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-yellow);
    display: block;
    margin-bottom: .15rem;
}

.stat-label {
    font-size: .85rem;
    opacity: .9;
    display: block;
}

/* Hero Visual / Dashboard image */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 680px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.dashboard-image, .hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.hero-stats-image {
    max-width: 80%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Floating elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    width: 54px;
    height: 54px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, .5);
    animation: floatAround 12s linear infinite;
}

@keyframes floatAround {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(10px, -10px) rotate(90deg); }
    50%  { transform: translate(-5px, -20px) rotate(180deg); }
    75%  { transform: translate(-15px, -10px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* ========================================
   PROBLEM SECTION
   ======================================== */
.problem-section {
    padding: var(--section-pad);
    background: var(--light-gray);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.problems-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.problem-card {
    background: var(--white);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
    border-left: 4px solid var(--error);
    position: relative;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.problem-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--error), #ff7043);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
}

.problem-card h3 {
    font-size: 1.15rem;
    margin-bottom: .65rem;
    color: var(--text-dark);
    font-weight: 700;
}

.problem-card p {
    color: var(--text-light);
    line-height: 1.55;
    font-size: .95rem;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    padding: var(--section-pad);
    background: var(--white);
}

.features-grid {
    display: grid;
    gap: 2.5rem;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all .3s ease;
    position: relative;
    overflow: visible;
    border: 1px solid rgba(0,0,0,.04);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.feature-card:nth-child(even) {
    background: var(--light-gray);
}

.feature-card:nth-child(even) .feature-visual { order: 2; }
.feature-card:nth-child(even) .feature-content { order: 1; }

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-content h3 {
    font-size: 1.6rem;
    margin-bottom: .8rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.feature-content p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.feature-content ul {
    list-style: none;
    display: grid;
    gap: .6rem;
}

.feature-content li {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: .95rem;
}

.feature-content li::before {
    content: '\2713';
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Feature Visuals */
.feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    overflow: visible;
}

.ai-brain {
    position: relative;
    font-size: 4rem;
    color: var(--accent-orange);
    animation: pulse 2s infinite;
}

.ai-brain-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 260px;
    overflow: visible;
}

.brain-img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    z-index: 2;
    border-radius: var(--radius-md);
}

.pulse-ring, .pulse-ring-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border: 2px solid rgba(76, 175, 80, .4);
    border-radius: 50%;
    opacity: .3;
    animation: ring 3s infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes ring {
    0%   { transform: translate(-50%, -50%) scale(.85); opacity: .6; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* Realtime chart visual */
.realtime-chart {
    position: relative;
    width: 100%;
    min-width: 200px;
    max-width: 280px;
    height: 140px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow: visible;
}

.chart-lines {
    position: relative;
    height: 100%;
    display: flex;
    align-items: end;
    gap: 10px;
}

.line {
    background: linear-gradient(to top, var(--accent-orange), var(--accent-yellow));
    border-radius: 3px;
    width: 10px;
    animation: chartGrow 2s ease-out infinite;
}

.line-1 { height: 60%; animation-delay: 0s; }
.line-2 { height: 80%; animation-delay: .5s; }
.line-3 { height: 40%; animation-delay: 1s; }

@keyframes chartGrow {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.2); }
}

.chart-points {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.point {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 107, 53, .3);
    animation: blink 1.5s infinite;
}

.point.active { background: var(--accent-orange); }

@keyframes blink {
    0%, 100% { opacity: .3; }
    50% { opacity: 1; }
}

/* Upgraded realtime insights visual */
.realtime-insights-graphic {
    width: 100%;
    max-width: 320px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid rgba(10, 30, 74, 0.1);
    box-shadow: 0 16px 34px rgba(9, 30, 66, 0.1);
    padding: 14px;
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 999px;
    padding: 4px 9px;
}

.live-pill i {
    font-size: 0.58rem;
    animation: blink 1.3s infinite;
}

.update-time {
    font-size: 0.74rem;
    color: var(--text-light);
    font-weight: 600;
}

.insights-chart {
    position: relative;
    height: 92px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.02));
    padding: 10px 10px 12px;
    overflow: hidden;
}

.chart-grid-line {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1px;
    background: rgba(10, 30, 74, 0.12);
}

.chart-grid-line:nth-child(1) { top: 26px; }
.chart-grid-line:nth-child(2) { top: 48px; }
.chart-grid-line:nth-child(3) { top: 70px; }

.insight-line-svg {
    position: absolute;
    inset: 8px 10px 10px;
    width: calc(100% - 20px);
    height: calc(100% - 18px);
}

.insight-area {
    fill: rgba(255, 107, 53, 0.12);
    stroke: none;
}

.insight-line {
    fill: none;
    stroke: var(--accent-orange);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.insight-point {
    fill: #fff;
    stroke: var(--accent-orange);
    stroke-width: 2.5;
}

.insight-point-active {
    fill: var(--accent-orange);
    stroke: #fff;
    stroke-width: 2.5;
    animation: pulsePoint 1.8s infinite;
}

.insight-metrics {
    margin-top: 10px;
    display: grid;
    gap: 7px;
}

.metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.18);
    border-radius: 9px;
    padding: 6px 8px;
}

/* Upgraded seamless integration visual */
.integration-orbit {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 220px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid rgba(10, 30, 74, 0.1);
    box-shadow: 0 16px 34px rgba(9, 30, 66, 0.1);
}

.orbit-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(26, 63, 119, 0.35);
}

.orbit-core i { font-size: 1.1rem; }
.orbit-core span { font-size: 0.75rem; }

.integration-node {
    position: absolute;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: #fff;
    border: 1px solid rgba(10, 30, 74, 0.12);
    border-radius: 999px;
    padding: 5px 10px;
    box-shadow: 0 8px 20px rgba(9, 30, 66, 0.12);
    animation: nodeFloat 4.2s ease-in-out infinite;
}

.node-dhis2 { top: 18px; left: 30px; }
.node-sap   { top: 24px; right: 26px; }
.node-odk   { top: 94px; left: 18px; }
.node-kobo  { top: 96px; right: 12px; }
.node-api   { bottom: 24px; left: 56px; }
.node-erp   { bottom: 22px; right: 56px; }

.node-dhis2 { animation-delay: 0s; }
.node-sap   { animation-delay: .5s; }
.node-odk   { animation-delay: 1s; }
.node-kobo  { animation-delay: 1.5s; }
.node-api   { animation-delay: 2s; }
.node-erp   { animation-delay: 2.5s; }

@keyframes nodeFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(2px, -4px); }
    50% { transform: translate(-2px, 1px); }
    75% { transform: translate(3px, 3px); }
}

@keyframes pulsePoint {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.18); opacity: 0.85; }
}

/* ToC diagram */
.toc-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.toc-level {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: .85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    animation: slideIn 1s ease-out;
}

.toc-level.impact  { animation-delay: 0s; }
.toc-level.outcome { animation-delay: .3s; }
.toc-level.output  { animation-delay: .6s; }

.toc-arrow {
    font-size: 20px;
    color: var(--text-light);
}

@keyframes slideIn {
    from { transform: translateX(-24px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.toc-connector {
    width: 3px;
    height: 20px;
    background: linear-gradient(to bottom, var(--accent-orange), var(--accent-yellow));
    border-radius: 2px;
}

/* Integration hub visual */
.integration-hub {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-center {
    width: 56px;
    height: 56px;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    z-index: 2;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.integration-point {
    position: absolute;
    background: var(--accent-orange);
    color: var(--white);
    padding: .3rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 500;
    animation: orbit 8s linear infinite;
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

/* ========================================
   MODULES SECTION
   ======================================== */
.modules {
    padding: var(--section-pad);
    background: var(--light-gray);
}

.modules-showcase {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modules-nav {
    display: flex;
    background: var(--primary-blue);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modules-nav::-webkit-scrollbar { display: none; }

.module-tab {
    background: transparent;
    color: rgba(255, 255, 255, .65);
    border: none;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    transition: all .3s ease;
    font-weight: 500;
    font-size: .9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1;
    min-width: 180px;
    min-height: 44px;
    justify-content: center;
}

.module-tab:hover,
.module-tab.active {
    color: var(--white);
    background: rgba(255, 255, 255, .1);
}

.module-tab.active {
    background: var(--white);
    color: var(--primary-blue);
    font-weight: 700;
}

.module-content {
    padding: 2.5rem;
}

.module-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.module-panel.active { display: grid; }

.module-description h3 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: .75rem;
    font-weight: 700;
}

.module-description p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.module-features {
    display: grid;
    gap: .75rem;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .9rem;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    transition: all .25s ease;
}

.feature-point:hover {
    background: var(--medium-gray);
    transform: translateX(4px);
}

.feature-point i {
    color: var(--accent-orange);
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.feature-point span {
    font-weight: 500;
    color: var(--text-dark);
    font-size: .95rem;
}

/* Learn more button */
.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: .7rem 1.5rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
    transition: all .3s ease;
    text-decoration: none;
    margin-top: 1rem;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, .3);
}

/* Module visuals */
.framework-map {
    position: relative;
    background: linear-gradient(180deg, #f8f9ff 0%, #eef1ff 100%);
    border: 1px solid #dde3ff;
    border-radius: var(--radius-lg);
    padding: 1rem 1rem 1rem 1.1rem;
    max-width: 360px;
    margin: 0 auto;
}

.framework-track {
    position: absolute;
    left: 29px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-blue), var(--accent-orange));
    opacity: .45;
}

.framework-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .6rem 0;
    z-index: 1;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(26, 35, 126, .25);
}

.step-content {
    flex: 1;
    background: var(--white);
    border: 1px solid #e8eaf8;
    border-radius: 12px;
    padding: .55rem .7rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.step-content strong {
    color: var(--text-dark);
    font-size: .9rem;
}

.step-content span {
    color: var(--text-light);
    font-size: .8rem;
}

.monitor-board {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: .8rem;
}

.monitor-card {
    background: var(--white);
    border: 1px solid #e9ecfb;
    border-radius: 12px;
    padding: .8rem .8rem .9rem;
    box-shadow: var(--shadow-sm);
}

.monitor-head {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--primary-blue);
    font-size: .8rem;
    font-weight: 700;
}

.monitor-value {
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: .65rem;
}

.monitor-label {
    color: var(--text-light);
    font-size: .8rem;
    margin-top: .2rem;
    min-height: 32px;
}

.monitor-bar {
    margin-top: .6rem;
    height: 8px;
    background: #eceff8;
    border-radius: 999px;
    overflow: hidden;
}

.monitor-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
}

.admin-hub {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: grid;
    gap: .7rem;
}

.admin-tile {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: var(--white);
    border: 1px solid #e8ebfa;
    border-radius: 12px;
    padding: .65rem .75rem;
}

.admin-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1;
}

.admin-text strong {
    font-size: .9rem;
    color: var(--text-dark);
}

.admin-text span {
    font-size: .78rem;
    color: var(--text-light);
}

.admin-state {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.admin-state.on {
    background: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, .18);
}

.admin-state.warn {
    background: #f39c12;
    box-shadow: 0 0 0 4px rgba(243, 156, 18, .18);
}

.me-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .65rem;
    flex-wrap: nowrap;
}

.flow-item {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-item:nth-child(1) { animation-delay: 0s; }
.flow-item:nth-child(3) { animation-delay: .2s; }
.flow-item:nth-child(5) { animation-delay: .4s; }
.flow-item:nth-child(7) { animation-delay: .6s; }

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.flow-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 auto .25rem;
    font-size: 1.1rem;
}

.flow-icon i { color: var(--white); }

.flow-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.flow-arrow {
    color: var(--accent-orange);
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1;
}

@media (max-width: 1024px) {
    .monitor-board {
        grid-template-columns: 1fr;
    }
}

/* Report showcase */
.report-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .75rem;
}

.report-card {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all .3s ease;
    position: relative;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.report-header {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: .8rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .8rem;
}

.report-card:nth-child(1) .report-header { background: linear-gradient(135deg, #dc3545, #fd7e14); }
.report-card:nth-child(2) .report-header { background: linear-gradient(135deg, #28a745, #20c997); }
.report-card:nth-child(3) .report-header { background: linear-gradient(135deg, #6f42c1, #e83e8c); }

.report-content {
    padding: 1.1rem .8rem;
    text-align: center;
    color: var(--text-light);
    font-size: .85rem;
}

/* Reporting module panel: use vertical space more efficiently */
#reporting-panel .module-visual {
    display: flex;
    align-items: stretch;
    align-self: center; /* center the whole visual block vertically in the grid cell */
}

/* AI Assisted Learning panel: center the right visual block */
#learning-panel .module-visual {
    display: flex;
    align-items: stretch;
    align-self: center;
    justify-content: center;
}

#reporting-panel .report-showcase {
    width: 100%;
}

#reporting-panel .report-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
}

#reporting-panel .report-header {
    padding: 1rem .9rem;
    font-size: .85rem;
}

#reporting-panel .report-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 1rem;
    font-size: .95rem;
    line-height: 1.35;
}

/* AI Chat interface */
.ai-chat-interface {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 340px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.chat-header {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
}

.chat-messages {
    padding: 1rem;
    height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.message {
    padding: .65rem .85rem;
    border-radius: var(--radius-md);
    max-width: 80%;
    font-size: .85rem;
    line-height: 1.4;
}

.message.user {
    background: var(--accent-orange);
    color: var(--white);
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message.ai {
    background: var(--white);
    color: var(--text-dark);
    align-self: flex-start;
    border: 1px solid var(--medium-gray);
    border-bottom-left-radius: 4px;
}

.chat-input {
    padding: .75rem;
    display: flex;
    gap: .4rem;
    border-top: 1px solid var(--medium-gray);
}

.chat-input input {
    flex: 1;
    padding: .6rem .9rem;
    border: 1px solid var(--medium-gray);
    border-radius: 999px;
    outline: none;
    font-size: .85rem;
}

.chat-input button {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input button:hover {
    background: var(--accent-yellow);
    transform: scale(1.08);
}

/* Learning path visual */
.learning-path {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 300px;
    margin: 0 auto;
}

.skill-level {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1rem;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.level-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.level-name {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.level-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    transition: width 2s ease-out;
}

/* ========================================
   SOLUTIONS SECTION
   ======================================== */
.solutions {
    padding: var(--section-pad);
    background: var(--white);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.solutions-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.solution-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
}

.solution-card-link:focus-visible {
    outline: 3px solid rgba(255, 152, 0, .45);
    outline-offset: 2px;
}

.solution-card {
    background: var(--white);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--accent-orange);
    border: 1px solid rgba(0,0,0,.05);
    border-top: 3px solid var(--accent-orange);
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.solution-card-link:hover .solution-card {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.solution-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
}

.solution-card h3 {
    font-size: 1.3rem;
    margin-bottom: .65rem;
    color: var(--primary-blue);
    text-align: center;
    font-weight: 700;
}

.solution-card p {
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    text-align: center;
    font-size: .95rem;
}

.solution-card ul {
    list-style: none;
    margin-bottom: 0;
}

.solution-card li {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .6rem;
    color: var(--text-dark);
    font-size: .9rem;
}

.solution-card li::before {
    content: '\2713';
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: bold;
    flex-shrink: 0;
}

.solution-cta {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
    padding: .7rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    text-align: center;
}

.solution-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, .3);
}

/* ========================================
   SOLUTION DETAIL PAGES
   ======================================== */
.solution-detail-page {
    background: #f6f8fc;
}

.solution-hero {
    padding: 6.5rem 0 3rem;
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
}

.solution-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    align-items: center;
}

.solution-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: rgba(26, 35, 126, .1);
    color: var(--primary-blue);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .8rem;
}

.solution-hero-copy h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: .7rem;
    color: var(--primary-blue);
}

.solution-hero-copy p {
    color: var(--text-light);
    line-height: 1.7;
}

.solution-cta-row {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
}

.solution-detail-page .solution-cta-row .btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 1.5px solid rgba(26, 35, 126, .24);
    backdrop-filter: none;
}

.solution-detail-page .solution-cta-row .btn-secondary:hover {
    background: #f3f5ff;
    border-color: rgba(26, 35, 126, .38);
}

.solution-hero-media {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
}

.solution-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    min-height: 300px;
    object-fit: cover;
}

.solution-section {
    padding: 3rem 0;
}

.solution-section.alt {
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, .05);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.solution-section h2 {
    color: var(--primary-blue);
    font-size: clamp(1.4rem, 2vw, 2rem);
    margin-bottom: 1rem;
}

.solution-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1rem;
}

.solution-benefits-grid article {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.solution-benefits-grid h3 {
    margin-bottom: .4rem;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.solution-benefits-grid p {
    color: var(--text-light);
    line-height: 1.65;
}

.solution-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-dark);
}

.solution-list li {
    margin-bottom: .55rem;
    line-height: 1.65;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
    padding: var(--section-pad);
    background: var(--light-gray);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.testimonial {
    display: none;
    padding: 2.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial.active {
    display: block;
    animation: fadeIn .5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.quote-icon {
    color: var(--accent-orange);
    font-size: 1.8rem;
    margin-bottom: .75rem;
}

.testimonial p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-info h4 {
    color: var(--primary-blue);
    font-size: 1.05rem;
    margin-bottom: .2rem;
}

.author-info span {
    color: var(--text-light);
    font-size: .85rem;
}

.organization-logo {
    width: 46px;
    height: 46px;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: .5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(26, 35, 126, .25);
    cursor: pointer;
    transition: all .3s ease;
    padding: 0;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indicator::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(26, 35, 126, .25);
    transition: all .3s ease;
}

.indicator.active::after {
    background: var(--primary-blue);
    transform: scale(1.3);
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing {
    padding: var(--section-pad);
    background: var(--white);
}

.pricing-org-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .3rem;
    padding: .3rem;
    margin: 0 auto 2rem;
    max-width: 720px;
    background: var(--light-gray);
    border-radius: 999px;
    border: 1px solid rgba(26, 35, 126, .06);
    box-shadow: var(--shadow-sm);
}

.pricing-org-tab {
    flex: 1 1 0;
    border: none;
    background: transparent;
    color: var(--primary-blue);
    padding: .8rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: all .25s ease;
    min-height: 44px;
}

.pricing-org-tab:hover {
    background: rgba(57, 73, 171, .07);
}

.pricing-org-tab.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(26, 35, 126, .2);
}

.pricing-org-tab:focus-visible {
    outline: 3px solid rgba(255, 107, 53, .35);
    outline-offset: 2px;
}

.pricing-org-panels { margin-top: .5rem; }
.pricing-org-panel  { display: none; }
.pricing-org-panel.active { display: block; }

.pricing-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--light-gray);
    border: 1px solid rgba(26, 35, 126, .06);
    text-align: center;
    color: var(--text-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Two-plan layout: Eval360 ($29/user/month) + Organizations (custom) */
.pricing-grid--duo {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 880px;
    align-items: stretch;
}

.pricing-grid--duo .pricing-card {
    display: flex;
    flex-direction: column;
}

.pricing-grid--duo .plan-features {
    flex: 1 1 auto;
}

.pricing-grid--duo .pricing-card.featured {
    border: 2px solid var(--primary-blue);
}

.amount--text {
    font-size: 2.1rem;
    letter-spacing: -.01em;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all .3s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,.04);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured { border-color: transparent; }

.popular-badge {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
    padding: .45rem 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: .85rem;
}

.plan-header {
    padding: 1.75rem;
    text-align: center;
    background: var(--light-gray);
}

.plan-tier {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .25rem .75rem;
    border-radius: 999px;
    background: rgba(57, 73, 171, .1);
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: .72rem;
    margin: 0 auto .75rem;
}

.plan-header h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: .75rem;
    font-weight: 700;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .2rem;
    margin-bottom: .75rem;
}

.currency {
    font-size: 1.3rem;
    color: var(--text-light);
}

.amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.period {
    font-size: 1rem;
    color: var(--text-light);
}

.price-secondary {
    margin-top: -.2rem;
    margin-bottom: .6rem;
    font-size: .85rem;
    color: var(--text-light);
}

.plan-header p {
    color: var(--text-light);
    font-size: .95rem;
}

.plan-features {
    padding: 1.75rem;
}

.plan-features ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .75rem;
    color: var(--text-dark);
    font-size: .9rem;
}

.plan-features li i {
    color: var(--success);
    font-size: .95rem;
    flex-shrink: 0;
}

.plan-cta {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
    padding: .85rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s ease;
    display: flex;
    text-align: center;
    margin: 0 1.75rem 1.75rem;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    width: calc(100% - 3.5rem);
    appearance: none;
    font-size: .95rem;
}

.plan-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, .3);
}

.plan-cta:focus-visible {
    outline: 3px solid rgba(26, 35, 126, .35);
    outline-offset: 2px;
}

.pricing-note {
    text-align: center;
    margin-top: 2.5rem;
    color: var(--text-light);
    font-size: .9rem;
}

.pricing-note i {
    color: var(--accent-orange);
    margin-right: .4rem;
}

/* ========================================
   INTEGRATIONS SECTION
   ======================================== */
.integrations {
    padding: var(--section-pad);
    background: var(--light-gray);
}

.integration-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.integration-category {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.integration-category h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.integration-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

.integration-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: .85rem;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    transition: all .25s ease;
}

.integration-logo:hover {
    background: var(--medium-gray);
    transform: translateY(-2px);
}

.integration-logo i {
    font-size: 1.3rem;
    color: var(--accent-orange);
}

.integration-logo span {
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--section-pad);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.25rem;
    color: var(--white);
    font-weight: 800;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    opacity: .9;
    max-width: 600px;
    line-height: 1.6;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
    font-size: .95rem;
}

.cta-feature i {
    color: var(--accent-orange);
    font-size: 1.15rem;
}

.cta-section .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 0 clamp(1rem, 3vw, 3rem);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.footer-logo h3 {
    font-size: 1.35rem;
    color: var(--accent-orange);
}

.footer-logo-image {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    /* Default: show brand colors on dark footer (see .keep-colors) */
    filter: none;
}

/* Optional: monochrome white mark — add class on <img> if you prefer */
.footer-logo-image.monochrome-light {
    filter: brightness(0) invert(1);
}

.footer-logo-image.keep-colors {
    filter: none;
}

.footer-section h3 {
    color: var(--accent-orange);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-section ul { list-style: none; }

.footer-section ul li { margin-bottom: .6rem; }

.footer-section ul li a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    transition: color .25s ease;
    font-size: .9rem;
}

.footer-section ul li a:hover { color: var(--accent-orange); }

.footer-section p {
    color: rgba(255, 255, 255, .75);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}

.social-links {
    display: flex;
    gap: .65rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all .25s ease;
    min-height: 44px;
    min-width: 44px;
}

.social-links a:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: .85rem;
}

.contact-item i {
    color: var(--accent-orange);
    width: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item a, .contact-item span {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    transition: color .25s ease;
    font-size: .9rem;
}

.contact-item a:hover { color: var(--accent-orange); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 1.5rem clamp(1rem, 3vw, 3rem);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, .5);
    margin: 0;
    font-size: .85rem;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links .separator {
    color: rgba(255, 255, 255, .3);
    margin: 0 .25rem;
}

.footer-links a {
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    transition: color .25s ease;
    font-size: .85rem;
}

.footer-links a:hover { color: var(--accent-orange); }

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-hero {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--primary-blue) 50%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 140px 0 64px;
    text-align: center;
    position: relative;
}

.contact-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: .75rem;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow), #4fc3f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Explicit light copy — .section-header p uses --text-light and would stay gray on dark hero */
.contact-hero p,
.contact-hero .section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    opacity: 1;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

.contact-section {
    padding: 64px 0 80px;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,.04);
}

.contact-form-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.info-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-light);
    font-size: .95rem;
    line-height: 1.55;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1.1rem;
}

.contact-detail:last-child { margin-bottom: 0; }

.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: .9rem;
    flex-shrink: 0;
}

.contact-detail-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-size: .85rem;
    margin-bottom: .15rem;
}

.contact-detail a, .contact-detail span {
    color: var(--text-light);
    text-decoration: none;
    font-size: .9rem;
    line-height: 1.5;
}

.contact-detail a:hover { color: var(--accent-orange); }

/* Contact page — social icons sit on light .info-card; default footer .social-links uses white icons (invisible until hover) */
.contact-section .info-card .social-links a {
    background: rgba(26, 35, 126, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(26, 35, 126, 0.12);
}

.contact-section .info-card .social-links a i {
    color: inherit;
}

.contact-section .info-card .social-links a:hover {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
}

.contact-section .info-card .social-links a:hover i {
    color: var(--white);
}

/* ========================================
   ANIMATIONS & SCROLL
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

@keyframes glow {
    from { filter: drop-shadow(0 0 8px rgba(255, 107, 53, .2)); }
    to   { filter: drop-shadow(0 0 16px rgba(255, 107, 53, .5)); }
}

/* ========================================
   MODAL STYLES
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
}

.modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 92%;
    max-width: 720px;
    max-height: 94vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .25);
    animation: modalSlideIn .3s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from { transform: translateY(-40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 16px;
    color: var(--white);
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all .25s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, .2);
    transform: scale(1.1);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 2rem 2.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    text-align: center;
}

.modal-header h2 {
    margin-bottom: .4rem;
    font-size: 1.7rem;
    font-weight: 700;
}

.modal-header p {
    opacity: .9;
    font-size: 1rem;
}

.demo-form {
    padding: 2rem 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: .75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: .75rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--text-dark);
    font-size: .88rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: .7rem .85rem;
    border: 1.5px solid #e2e6ed;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    transition: all .25s ease;
    background: var(--white);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, .08);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: .65rem;
    cursor: pointer;
    font-size: .9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.demo-submit-btn {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
    border: none;
    padding: .9rem 2rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    margin-top: .75rem;
}

.demo-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, .3);
}

.demo-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* Honeypot */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.using-keyboard *:focus {
    outline: 2px solid var(--accent-orange) !important;
    outline-offset: 2px;
}

body:not(.using-keyboard) *:focus { outline: none; }

/* ========================================
   NOTIFICATIONS
   ======================================== */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform .3s ease;
    max-width: 300px;
    box-shadow: var(--shadow-lg);
}

.notification-success { background: linear-gradient(45deg, #22c55e, #4ade80); }
.notification-error   { background: linear-gradient(45deg, #ef4444, #f87171); }
.notification-info    { background: linear-gradient(45deg, #3b82f6, #60a5fa); }

/* ========================================
   LOADING STATES
   ======================================== */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--accent-orange);
    z-index: 10;
}

/* ========================================
   DROPDOWN MENU
   ======================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--white);
    min-width: 320px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(26, 35, 126, .15);
    border: 1px solid rgba(26, 35, 126, .08);
    opacity: 0;
    visibility: hidden;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 10001;
    margin-top: 10px;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-header {
    padding: 16px 20px 12px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.dropdown-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 4px;
}

.dropdown-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all .25s ease;
    border-bottom: 1px solid var(--light-gray);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.dropdown-item:first-of-type {
    border-top: 1px solid var(--light-gray);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    transform: translateX(3px);
}

.dropdown-item:hover .dropdown-item-icon {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
    transform: scale(1.08);
}

.dropdown-item:hover .dropdown-item-title { color: var(--white); }
.dropdown-item:hover .dropdown-item-description { color: rgba(255, 255, 255, .85); }

.dropdown-item-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    color: var(--primary-blue);
    font-size: 14px;
    transition: all .25s ease;
    flex-shrink: 0;
}

.dropdown-item-content { flex: 1; min-width: 0; }

.dropdown-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
    color: var(--text-dark);
    transition: color .25s ease;
}

.dropdown-item-description {
    font-size: 12px;
    opacity: .8;
    line-height: 1.4;
    color: var(--text-light);
    transition: color .25s ease;
}

/* Dropdown arrow */
.nav-links .dropdown > a {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links .dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform .25s ease;
}

.dropdown:hover > a::after { transform: rotate(180deg); }

.nav-links .dropdown > a:hover {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
}

/* Dropdown item shimmer */
.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
    transition: left .5s ease;
}

.dropdown-item:hover::before { left: 100%; }

.dropdown-item:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.dropdown-item:focus .dropdown-item-icon {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
}

.dropdown-item:focus .dropdown-item-title { color: var(--white); }
.dropdown-item:focus .dropdown-item-description { color: rgba(255, 255, 255, .85); }

/* Dashboard mockup (used on module pages) */
.dashboard-mockup {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0); }
    50%      { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-8px); }
}

.mockup-header {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: .85rem;
    display: flex;
    align-items: center;
    gap: .85rem;
}

.mockup-dots { display: flex; gap: .3rem; }

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
}

.mockup-dots span:first-child  { background: #ff5f56; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:last-child   { background: #27ca3f; }

.mockup-title { font-weight: 600; font-size: .9rem; }

.mockup-content {
    padding: 1.5rem;
    background: var(--white);
}

.chart-container {
    display: flex;
    align-items: end;
    gap: .5rem;
    height: 120px;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
}

.chart-bar {
    background: linear-gradient(to top, var(--accent-orange), var(--accent-yellow));
    border-radius: 4px 4px 0 0;
    flex: 1;
    animation: grow 2s ease-out;
    min-height: 20px;
}

@keyframes grow {
    from { height: 0; }
}

.kpi-cards { display: flex; gap: .75rem; }

.kpi-card {
    background: var(--light-gray);
    padding: .85rem;
    border-radius: var(--radius-sm);
    flex: 1;
    text-align: center;
}

.kpi-icon {
    color: var(--accent-orange);
    font-size: 1.3rem;
    margin-bottom: .4rem;
}

.kpi-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: .15rem;
}

.kpi-label {
    font-size: .75rem;
    color: var(--text-light);
}

/* Report card decorations */
.report-card::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 12px;
    width: 50px;
    height: 24px;
    background: linear-gradient(45deg, #e3f2fd 25%, transparent 25%),
                linear-gradient(-45deg, #e3f2fd 25%, transparent 25%);
    background-size: 6px 6px;
    border-radius: 3px;
    opacity: .25;
}

.report-card:nth-child(1)::after {
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 50%, #ffc107 100%);
    height: 16px;
    border-radius: 8px;
}

.report-card:nth-child(2)::after {
    background: repeating-linear-gradient(90deg, #28a745, #28a745 8px, #20c997 8px, #20c997 16px);
    height: 20px;
    border-radius: 3px;
}

.report-card:nth-child(3)::after {
    background: radial-gradient(circle, #6f42c1 2px, transparent 2px);
    background-size: 10px 10px;
    height: 28px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.d-none       { display: none; }
.d-block      { display: block; }
.d-flex       { display: flex; }
.d-grid       { display: grid; }
.w-full       { width: 100%; }
.relative     { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ========================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .problems-grid.three-col,
    .solutions-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-hero-grid {
        grid-template-columns: 1fr;
    }

    .solution-benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    :root {
        --section-pad: 48px 0;
    }

    .nav { min-height: 56px; }

    .logo h1 { font-size: 1.3rem; }
    .logo-icon, .logo-image { width: 38px; height: 38px; }

    .solution-hero {
        padding-top: 5.8rem;
    }

    .solution-hero-media img {
        min-height: 220px;
    }

    .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 1.5rem 1rem;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all .3s ease;
        z-index: 999;
        /* 100vw causes horizontal page scroll on mobile (scrollbar width); use full width of containing block */
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 56px);
        overflow-y: auto;
        box-shadow: 0 4px 20px rgba(0,0,0,.12);
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links > li {
        width: 100%;
        list-style: none;
    }

    .nav-links .dropdown {
        display: block;
        width: 100%;
    }

    .nav-links a {
        padding: .85rem 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
        width: 100%;
        text-align: center;
        font-size: 1.05rem;
    }

    .nav-links .dropdown > a {
        justify-content: center;
    }

    .dropdown.active > a::after {
        transform: rotate(180deg);
    }

    .mobile-menu-btn { display: block !important; }

    /* Hero */
    .hero {
        padding: 100px 0 48px;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-badge { margin: 0 auto 1rem; }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 { font-size: 1.85rem; }
    .hero-text p  { font-size: 1rem; margin-bottom: 1.5rem; max-width: 100%; }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto 2rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: .75rem;
    }

    .hero-stats .stat-number { font-size: 1.2rem; }
    .hero-stats .stat-label  { font-size: .75rem; }

    .dashboard-mockup {
        max-width: 280px;
        margin: 0 auto;
        transform: none;
        animation: none;
    }

    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.6rem; }
    .section-header p  { font-size: .92rem; }

    /* Feature cards */
    .feature-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .feature-card:nth-child(even) .feature-visual,
    .feature-card:nth-child(even) .feature-content {
        order: unset;
    }

    /* Grids */
    .problems-grid, .problems-grid.three-col,
    .solutions-grid, .solutions-grid.three-col {
        grid-template-columns: 1fr;
    }

    .integration-categories {
        grid-template-columns: 1fr;
    }

    /* Modules */
    .modules-nav { flex-direction: column; }

    .module-tab {
        min-width: auto;
        padding: .85rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .module-content { padding: 1.75rem 1.25rem; }

    .module-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Allow the flow diagram to wrap on small screens */
    .me-flow {
        flex-wrap: wrap;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }

    .pricing-org-tabs {
        flex-wrap: wrap;
        border-radius: var(--radius-md);
    }

    /* Testimonials */
    .testimonial { padding: 2rem 1.5rem; text-align: center; }
    .testimonial p { font-size: 1rem; }

    .testimonial-author {
        flex-direction: column;
        gap: .75rem;
        align-items: center;
    }

    /* CTA */
    .cta-content h2 { font-size: 1.6rem; }
    .cta-features { flex-direction: column; gap: .75rem; align-items: center; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links { justify-content: center; }

    /* Modal */
    .modal-content {
        width: 96%;
        margin: 3% auto;
    }

    .modal-header { padding: 1.5rem; }
    .modal-header h2 { font-size: 1.4rem; }
    .demo-form { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }

    /* Contact page */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero { padding: 100px 0 40px; }

    /* Reduce heavy animations */
    .floating-elements, .float-element {
        animation: none;
        transform: none;
    }

    .feature-card, .solution-card, .pricing-card {
        box-shadow: var(--shadow-sm);
    }

    /* Dropdown mobile */
    .dropdown-content {
        position: static;
        transform: none;
        min-width: auto;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        display: none;
        margin: 0;
        border: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* ========================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .hero { padding: 88px 0 36px; }
    .hero-text h1 { font-size: 1.5rem; }

    .section-header h2 { font-size: 1.35rem; }

    .hero-stats { flex-direction: column; gap: .5rem; max-width: 200px; margin: 0 auto; }

    .modal-content { width: 98%; margin: 1% auto; }
    .modal-header, .demo-form { padding: 1.15rem; }

    .integration-logos { grid-template-columns: 1fr; }
}

/* Landscape phone */
@media (max-width: 768px) and (orientation: landscape) {
    .hero { padding: 80px 0 36px; min-height: auto; }
    .hero-text h1 { font-size: 1.7rem; }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: 500px;
    }

    .btn-primary, .btn-secondary {
        width: auto;
        min-width: 140px;
    }
}

/* Touch targets */
@media (max-width: 768px) {
    .mobile-menu-btn, .cta-button, .ct-button,
    .btn-primary, .btn-secondary,
    .solution-cta, .plan-cta,
    .indicator, .social-links a,
    .chat-input button {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ========================================
   PREMIUM POLISH — HOME + MODULE PAGES
   ======================================== */
.home-page .hero {
    position: relative;
}

.home-page .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 139, 61, 0.22), transparent 45%),
        radial-gradient(circle at 16% 78%, rgba(26, 63, 119, 0.25), transparent 50%);
}

.trust-strip {
    position: relative;
    margin-top: -26px;
    padding: 0 0 28px;
    background: linear-gradient(180deg, rgba(44, 64, 170, 0.22) 0%, #eef4ff 68%, #f7fbff 100%);
}

.trust-strip-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.trust-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(10, 30, 74, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(9, 30, 66, 0.08);
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    font-weight: 600;
}

.trust-item i {
    color: var(--primary);
}

.module-page .module-hero {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.module-page .section-header {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.module-page .capability-card,
.module-page .template-card,
.module-page .story-card,
.module-page .use-case-card,
.module-page .pathway-card,
.module-page .benefit-card,
.module-page .support-card,
.module-page .service-card {
    background: #fff;
    border: 1px solid rgba(10, 30, 74, 0.08);
    box-shadow: 0 16px 36px rgba(9, 30, 66, 0.08);
    border-radius: 16px;
}

.module-page .cta-section {
    position: relative;
    overflow: hidden;
}

.module-page .cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 8% 10%, rgba(255, 255, 255, 0.16), transparent 40%);
    pointer-events: none;
}

.module-page .hero-buttons .btn-primary,
.module-page .hero-buttons .btn-secondary {
    border: 0;
    cursor: pointer;
}

.module-page .resource-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 900px) {
    .trust-strip {
        margin-top: -14px;
    }

    .trust-strip-content {
        grid-template-columns: 1fr;
    }
}
