/* ===================================================================
   ACADEX ERP — Design System
   A premium EdTech SaaS visual language: deep navy + signal blue,
   warm amber accent used sparingly, generous whitespace, quiet cards.
   Typefaces: Sora (display) + Inter (body, self-hosted via css2.css)
   =================================================================== */

:root {
    /* Type */
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Brand — deep navy kept from the existing identity */
    --navy-950: #050a1c;
    --navy-900: #0a1230;
    --navy-800: #0d1740;
    --navy-700: #122151;
    --brand: #0d1740;
    --brand-2: #122151;

    /* Accent — signal blue + warm amber highlight */
    --blue-700: #1d3fe0;
    --blue-600: #2b4dff;
    --blue-500: #3f63ff;
    --blue-400: #6c8aff;
    --blue-100: #e8ecff;
    --amber-500: #efa63e;
    --amber-600: #d98c1c;
    --amber-100: #fdf1de;

    /* Ink / neutrals */
    --ink-900: #0b1128;
    --ink-700: #37405f;
    --ink-600: #4c5678;
    --ink-500: #6b759a;
    --ink-400: #8a93b3;
    --line: #e3e7f3;
    --line-soft: #edf0f9;

    /* Surfaces */
    --surface: #ffffff;
    --surface-alt: #f6f8fd;
    --surface-sunken: #eef1fa;

    /* Status */
    --success: #16a34a;
    --success-bg: #eafaf0;
    --warning: #d97706;
    --error: #dc2626;
    --error-bg: #fdecec;

    /* Radii */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 999px;

    /* Shadows (navy-tinted, layered) */
    --shadow-xs: 0 1px 2px rgba(11, 17, 40, 0.06);
    --shadow-sm: 0 2px 8px rgba(11, 17, 40, 0.06), 0 1px 2px rgba(11, 17, 40, 0.05);
    --shadow-md: 0 12px 28px -8px rgba(11, 17, 40, 0.16), 0 2px 6px rgba(11, 17, 40, 0.05);
    --shadow-lg: 0 28px 60px -16px rgba(11, 17, 40, 0.28);
    --shadow-glow: 0 0 0 1px rgba(43, 77, 255, 0.10), 0 20px 44px -10px rgba(43, 77, 255, 0.35);

    /* Legacy variable names kept for anything referencing them */
    --color-bg-main: var(--surface);
    --color-bg-section: var(--surface-alt);
    --color-bg-card: var(--surface);
    --color-text-primary: var(--ink-900);
    --color-text-secondary: var(--ink-600);
    --color-text-muted: var(--ink-400);
    --color-brand-blue: var(--brand);
    --color-btn-text: #ffffff;
    --color-border: var(--line);
    --shadow-main: var(--shadow-md);
    --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f3f5fc 100%);
    --gradient-section: linear-gradient(180deg, #ffffff 0%, #f6f8fd 100%);
    --gradient-text: linear-gradient(90deg, var(--brand) 0%, var(--blue-600) 100%);
    --gradient-premium-blue: linear-gradient(135deg, var(--navy-900) 0%, var(--brand-2) 100%);

    --container-width: 1200px;
    --border-radius: var(--r-md);

    --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
    --transition: all 0.25s var(--ease);
}

/* ===================== Reset & base ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    color: var(--ink-900);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--surface);
}

h1, h2, h3, h4, h5, h6,
.logo, .hero-title, .stat-number {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

p { color: var(--ink-600); }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 3px;
    border-radius: 4px;
}

.no-scroll { overflow: hidden !important; height: 100vh !important; }

/* ===================== Layout utilities ===================== */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.flex { display: flex; }
.items-center { align-items: center; }
.gap-4 { gap: 1rem; }
.text-center { text-align: center; }

.section { padding: 120px 0; position: relative; }

/* Section title system */
.section-title {
    font-size: clamp(2.1rem, 3.2vw, 3.1rem);
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink-900);
}

.section-title.text-center { margin-left: auto; margin-right: auto; }

.text-gradient {
    background: linear-gradient(92deg, var(--brand) 10%, var(--blue-600) 55%, var(--brand) 95%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--brand);
    display: inline-block;
    animation: shineFlow 8s linear infinite;
}

@keyframes shineFlow {
    0% { background-position: 0% center; }
    100% { background-position: 220% center; }
}

.text-white { color: #fff; }

/* Reveal helpers — GSAP drives the actual motion via inline styles;
   these classes just need to exist as hooks and degrade gracefully
   when JS/GSAP is unavailable. */
.fade-in, .fade-in-up, .slide-up, .anim-fade-left, .anim-fade-right {
    opacity: 1;
}
.delay-1, .delay-2, .delay-3, .delay-4 { opacity: 1; }
noscript .fade-in, noscript .slide-up { opacity: 1 !important; transform: none !important; }


/* ===================== Buttons ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--r-full);
    transition: var(--transition);
    position: relative;
    letter-spacing: -0.01em;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-premium-blue);
    background: linear-gradient(135deg, var(--brand) 0%, var(--blue-600) 130%);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(43,77,255,.12), 0 26px 50px -12px rgba(43,77,255,.42);
}

.btn-secondary {
    background: var(--surface);
    color: var(--brand);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    border-color: var(--blue-400);
    color: var(--blue-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-700);
    padding: 10px 18px;
}
.btn-ghost:hover { color: var(--blue-600); }

.btn-outline-dark {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}
.btn-outline-dark:hover {
    background: rgba(255,255,255,0.08);
    border-color: #fff;
}

.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.hover-scale { transition: var(--transition); }
.hover-scale:hover { transform: translateY(-2px) scale(1.01); }

/* ===================== Navbar =====================
   Full-width flat bar, always fixed to the top — the JS still
   toggles .nav-hidden on scroll direction, but we neutralize that
   here so the header never leaves view while scrolling. */
.smart-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(11, 17, 40, 0.06);
    border-bottom: 1px solid var(--line-soft);
    transition: box-shadow .3s ease;
}

/* Intentionally always visible: overrides the scroll-hide class */
.smart-navbar.nav-hidden {
    transform: none;
    opacity: 1;
}

.nav-container {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 32px;
}

.nav-left { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-start; }
.logo-link { display: flex; align-items: center; }
.nav-logo {
    height: 36px;
    width: auto;
    filter: contrast(1.15) saturate(1.1) drop-shadow(0 1px 1px rgba(11,17,40,0.06));
}

.nav-center { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.nav-pill-list {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.nav-pill-link {
    display: inline-block;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-700);
    border-radius: var(--r-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-pill-link:hover {
    background: var(--surface-alt);
    color: var(--brand);
}

.nav-right { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.nav-cta {
    padding: 12px 22px !important;
    font-size: 0.84rem !important;
    border-radius: var(--r-sm) !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: var(--r-full);
    background: var(--surface-alt);
}
.mobile-toggle .bar {
    width: 18px;
    height: 2px;
    background: var(--ink-900);
    margin: 0 auto;
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: var(--navy-950);
    display: flex;
    flex-direction: column;
    padding: 22px 24px 34px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .45s var(--ease), opacity .35s ease, visibility .45s;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-nav-logo { height: 30px; filter: brightness(0) invert(1) contrast(1.2); }

.mobile-menu-close {
    width: 42px;
    height: 42px;
    border-radius: var(--r-full);
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    margin-top: 48px;
    gap: 4px;
}

.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-link .arrow { color: var(--blue-400); font-size: 1.2rem; }

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mobile-cta-btn { width: 100%; }
.mobile-footer-text { color: rgba(255,255,255,0.5); font-size: 0.82rem; text-align: center; }

@media (max-width: 1150px) and (min-width: 992px) {
    .nav-container { padding: 12px 18px; gap: 8px; }
    .nav-pill-link { padding: 9px 10px; font-size: 0.9rem; }
    .nav-cta { padding: 11px 16px !important; font-size: 0.8rem !important; }
}

@media (max-width: 991px) {
    .nav-center { display: none; }
    .desktop-only { display: none; }
    .mobile-toggle { display: flex; }
    .nav-container { padding: 12px 20px; }
    .nav-logo { height: 30px; }
}


/* ===================== Hero ===================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy-950);
    isolation: isolate;
}

/* Signature: soft data-grid + glow behind the hero video, evoking a
   dashboard/analytics surface without leaning on cliché gradients. */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(circle at 18% 20%, rgba(63,99,255,0.35), transparent 45%),
        radial-gradient(circle at 82% 78%, rgba(239,166,62,0.18), transparent 40%),
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: auto, auto, 46px 46px, 46px 46px;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s var(--ease);
    z-index: 1;
}
.hero-video.loaded { opacity: 0.38; }

#hero-cursor {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63,99,255,0.25), transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(5,10,28,0.55) 0%, rgba(5,10,28,0.78) 55%, var(--navy-950) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 160px;
    padding-bottom: 120px;
    max-width: 780px;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--r-full);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #cfd8ff;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(2.6rem, 5.4vw, 4.6rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}
.hero-title .text-gradient {
    background: linear-gradient(92deg, #ffffff 0%, #a9c0ff 45%, #6c8aff 75%, #ffffff 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.72);
    max-width: 620px;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.hero-trust-line {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.mouse-icon {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.wheel {
    width: 3px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: wheelMove 1.6s ease-in-out infinite;
}
@keyframes wheelMove {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}
.arrow-down {
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255,255,255,0.4);
    border-bottom: 2px solid rgba(255,255,255,0.4);
    transform: rotate(45deg);
}

.hero-visuals { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}
.shape-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(63,99,255,0.5), transparent 70%);
    top: -10%; right: -8%;
}
.shape-2 {
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(239,166,62,0.3), transparent 70%);
    bottom: -12%; left: -6%;
}

@media (max-width: 768px) {
    .hero-content { padding-top: 140px; padding-bottom: 90px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { width: 100%; }
}

/* ===================== Core features grid ===================== */
.core-features-section { background: var(--surface-alt); }

.core-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.core-feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 26px;
    transition: var(--transition);
}
.core-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-100);
}

.feature-icon-wrapper {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm);
    background: var(--blue-100);
    color: var(--blue-600);
    margin-bottom: 20px;
    transition: var(--transition);
}
.core-feature-card:hover .feature-icon-wrapper {
    background: var(--brand);
    color: #fff;
}
.feature-icon, .fas { font-size: 1.15rem; }
.core-feature-card:hover .feature-icon { color: #fff; }

.feature-title {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.feature-desc { font-size: 0.9rem; color: var(--ink-500); line-height: 1.55; }

@media (max-width: 992px) { .core-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .core-features-grid { grid-template-columns: 1fr; } }


/* ===================== Problem / Solution ===================== */
.problem-solution-section { padding-top: 100px; }

.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.ps-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 36px;
}
.ps-card-solution {
    background: var(--brand);
    border-color: var(--brand);
}

.ps-label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 22px;
}
.ps-label-problem { background: var(--error-bg); color: var(--error); }
.ps-label-solution { background: rgba(255,255,255,0.12); color: #cfe0ff; }

.ps-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 16px;
    color: var(--ink-600);
    font-size: 0.96rem;
    line-height: 1.55;
}
.ps-list li:last-child { margin-bottom: 0; }
.ps-list li::before {
    content: "×";
    position: absolute;
    left: 0; top: -2px;
    color: var(--error);
    font-weight: 700;
    font-size: 1.1rem;
}
.ps-card-solution .ps-list li { color: rgba(255,255,255,0.82); }
.ps-card-solution .ps-list li::before {
    content: "✓";
    color: var(--blue-400);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .problem-solution-grid { grid-template-columns: 1fr; }
    .ps-card { padding: 26px; }
}

/* ===================== About ===================== */
.about-section { background: var(--surface); }

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.about-text { color: var(--ink-600); font-size: 1.02rem; line-height: 1.75; margin-bottom: 36px; }
.about-text b { color: var(--ink-900); }

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.stat-item {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 16px;
    text-align: center;
    transition: var(--transition);
}
.stat-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.stat-icon-wrapper {
    width: 38px; height: 38px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-full);
    background: var(--blue-100);
    color: var(--blue-600);
}
.stat-item:hover .stat-icon-wrapper { background: var(--brand); color: #fff; }
.stat-icon-wrapper svg { width: 18px; height: 18px; }

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 2px;
}
.stat-label { font-size: 0.78rem; color: var(--ink-500); }

.glass-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    position: relative;
}
.value-card h3 { font-size: 1.2rem; margin-bottom: 22px; }

.values-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line-soft);
}
.values-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.value-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm);
    background: var(--surface-alt);
    color: var(--blue-600);
}
.values-list strong { display: block; font-size: 0.98rem; margin-bottom: 3px; color: var(--ink-900); }
.values-list p { font-size: 0.88rem; color: var(--ink-500); }

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 576px) {
    .about-stats { grid-template-columns: 1fr; }
}

/* ===================== Platform / dashboard ===================== */
.platform-section { background: var(--surface-alt); overflow: hidden; }

.platform-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.platform-text p { color: var(--ink-600); line-height: 1.7; margin-bottom: 24px; }

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--ink-800, var(--ink-900));
}
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 6px;
    width: 16px; height: 16px;
    border-radius: 5px;
    background: var(--blue-600);
}
.feature-list li::after {
    content: "";
    position: absolute;
    left: 5px; top: 8.5px;
    width: 6px; height: 3px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.dashboard-mockup {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    transition: transform .5s var(--ease);
}
.dashboard-mockup:hover { transform: translateY(-6px); }
.dashboard-img { width: 100%; height: auto; }

@media (max-width: 992px) {
    .platform-grid { grid-template-columns: 1fr; gap: 36px; }
    .platform-grid .platform-visual { order: -1; }
}


/* ===================== Roles tabs ===================== */
.roles-section { background: var(--surface); }
.roles-subtitle { color: var(--ink-500); max-width: 560px; margin: 0 auto 40px; }

.roles-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    padding: 6px;
    max-width: fit-content;
    margin: 0 auto 40px;
}
.roles-tab {
    padding: 11px 22px;
    border-radius: var(--r-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-600);
    transition: var(--transition);
}
.roles-tab.active { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.roles-tab:not(.active):hover { color: var(--brand); }

.roles-panels { max-width: 760px; margin: 0 auto; }
.roles-panel { display: none; }
.roles-panel.active { display: block; animation: fadeInPanel .35s var(--ease); }
@keyframes fadeInPanel { from { opacity: 0; transform: translateY(6px);} to { opacity:1; transform:none; } }

.roles-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-700);
    font-size: 1rem;
    line-height: 1.5;
}
.roles-benefit-list li:last-child { border-bottom: none; }
.roles-benefit-list li i { color: var(--success); margin-top: 3px; flex-shrink: 0; }

/* ===================== Key features slider ===================== */
.key-features-section { background: var(--surface-alt); }
.key-features-header { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.key-features-header p { color: var(--ink-500); font-size: 1.02rem; }

.features-list-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 6px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.features-list-container::-webkit-scrollbar { display: none; }

.feature-row {
    flex: 0 0 min(340px, 84vw);
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: var(--transition);
}
.feature-row:hover { box-shadow: var(--shadow-md); border-color: var(--blue-100); transform: translateY(-3px); }

.f-row-inner { padding: 30px; display: flex; flex-direction: column; min-height: 200px; }
.f-row-content { flex: 1; }
.f-row-content h3 { font-size: 1.1rem; margin-bottom: 10px; }
.f-row-content p { color: var(--ink-500); font-size: 0.92rem; line-height: 1.6; }

.f-row-footer { margin-top: 20px; display: flex; justify-content: flex-end; }
.f-circle-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--brand);
    transition: var(--transition);
}
.feature-row:hover .f-circle-btn { background: var(--brand); color: #fff; }
.f-circle-btn li { list-style: none; }

.slider-dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.slider-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--line);
    transition: var(--transition);
    cursor: pointer;
}
.slider-dot.active { width: 22px; border-radius: var(--r-full); background: var(--brand); }

/* ===================== UI/UX section ===================== */
.ui-ux-section { background: var(--surface); overflow: hidden; }
.ui-ux-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.ui-ux-desc { color: var(--ink-600); line-height: 1.7; margin-bottom: 28px; }

.ui-ux-list li {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
}
.ui-ux-list li:last-child { border-bottom: none; }
.ui-icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm);
    background: var(--amber-100);
    color: var(--amber-600);
}
.ui-ux-list strong { display: block; font-size: 0.98rem; margin-bottom: 3px; }
.ui-ux-list p { font-size: 0.88rem; color: var(--ink-500); }

.desktop-ui-wrapper {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.desktop-ui-img { width: 100%; height: auto; }

@media (max-width: 992px) {
    .ui-ux-grid { grid-template-columns: 1fr; gap: 36px; }
    .ui-ux-grid .desktop-ui-wrapper { order: -1; }
}

/* ===================== Features strip (marquee) ===================== */
.features-section { background: var(--brand); padding: 46px 0; overflow: hidden; }
.horizontal-scroll-wrapper { width: 100%; overflow: hidden; }
.features-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}
.features-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.feature-strip-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-full);
    white-space: nowrap;
}
.strip-icon {
    width: 34px; height: 34px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--amber-500);
}
.strip-info h3 { color: #fff; font-size: 0.92rem; font-weight: 600; }
.strip-info p { color: rgba(255,255,255,0.55); font-size: 0.78rem; }


/* ===================== Stats ===================== */
.stats-section { background: var(--surface-alt); padding: 90px 0; position: relative; overflow: hidden; }
.stats-section::before, .stats-section::after {
    content: "";
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    z-index: 0;
}
.stats-section::before { background: var(--blue-400); top: -20%; left: -10%; }
.stats-section::after { background: var(--amber-500); bottom: -20%; right: -10%; }

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 320px));
    gap: 24px;
    justify-content: center;
}

.stat-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 8px;
}
.stat-label { color: var(--ink-500); font-size: 0.92rem; font-weight: 500; }
.stat-glow {
    position: absolute;
    bottom: -40%; left: 50%;
    transform: translateX(-50%);
    width: 140%; height: 60%;
    background: radial-gradient(ellipse at center, rgba(43,77,255,0.12), transparent 70%);
    pointer-events: none;
}

@media (max-width: 576px) { .stats-grid { grid-template-columns: 1fr; } }

/* ===================== Pricing ===================== */
.pricing-section { background: var(--surface); }
.pricing-subtitle { color: var(--ink-500); max-width: 560px; margin: 0 auto 48px; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue-100); }

.pricing-card-featured {
    background: var(--brand);
    border: 1px solid var(--navy-700);
    box-shadow: var(--shadow-glow);
    transform: scale(1.04);
    z-index: 1;
}
.pricing-card-featured:hover { transform: scale(1.04) translateY(-4px); border-color: var(--blue-500); }

.pricing-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--amber-500);
    color: var(--navy-950);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: var(--r-full);
    letter-spacing: 0.02em;
    box-shadow: 0 6px 16px -4px rgba(239,166,62,0.5);
}

.pricing-tier-name { font-size: 1.1rem; margin-bottom: 14px; }
.pricing-card-featured .pricing-tier-name { color: #fff; }

.pricing-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 4px;
}
.pricing-price span { font-size: 0.85rem; font-weight: 400; color: var(--ink-500); }
.pricing-card-featured .pricing-price { color: #fff; }
.pricing-card-featured .pricing-price span { color: rgba(255,255,255,0.6); }

.pricing-price-alt { font-size: 0.82rem; color: var(--success); font-weight: 500; margin-bottom: 26px; }
.pricing-card-featured .pricing-price-alt { color: var(--blue-400); }

.pricing-feature-list { flex: 1; margin-bottom: 28px; }
.pricing-feature-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 0;
    font-size: 0.9rem;
    color: var(--ink-600);
}
.pricing-feature-list li i { color: var(--success); margin-top: 3px; }
.pricing-card-featured .pricing-feature-list li { color: rgba(255,255,255,0.82); }
.pricing-card-featured .pricing-feature-list li i { color: var(--blue-400); }

.pricing-footnote {
    text-align: center;
    color: var(--ink-400);
    font-size: 0.85rem;
    max-width: 640px;
    margin: 12px auto 0;
    line-height: 1.6;
}
.pricing-footnote a { color: var(--blue-600); font-weight: 600; }

@media (max-width: 992px) {
    /* Basic stays first on mobile — natural document order, no reordering */
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 28px; }
    .pricing-card-featured { transform: none; }
    .pricing-card-featured:hover { transform: translateY(-3px); }
}

/* ===================== Testimonials ===================== */
.testimonials-section { background: var(--surface-alt); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px;
}
.testimonial-quote { color: var(--ink-700); font-size: 0.98rem; line-height: 1.7; margin-bottom: 24px; }
.testimonial-author { display: flex; flex-direction: column; }
.testimonial-name { font-weight: 600; color: var(--ink-900); font-size: 0.94rem; }
.testimonial-role { color: var(--ink-400); font-size: 0.82rem; margin-top: 2px; }

@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }


/* ===================== CTA ===================== */
.cta-section { background: var(--surface); }
.cta-card {
    position: relative;
    background: var(--brand);
    border-radius: var(--r-xl);
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    overflow: hidden;
}
.cta-card::before {
    content: "";
    position: absolute;
    top: -30%; right: -10%;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(63,99,255,0.35), transparent 70%);
}
.cta-title { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 16px; }
.cta-text { color: rgba(255,255,255,0.68); line-height: 1.7; margin-bottom: 30px; max-width: 460px; }
.cta-content { position: relative; z-index: 1; }

.cta-visual { position: relative; height: 340px; z-index: 1; }
.cta-mockup {
    position: absolute;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.12);
}
.mockup-1 { width: 78%; top: 0; left: 0; transition: transform .5s var(--ease); }
.mockup-2 { width: 34%; bottom: 0; right: 0; transition: transform .5s var(--ease); }
.cta-card:hover .mockup-1 { transform: translateY(-8px); }
.cta-card:hover .mockup-2 { transform: translateY(8px); }

@media (max-width: 992px) {
    .cta-card { grid-template-columns: 1fr; padding: 44px 30px; text-align: center; }
    .cta-text { margin-left: auto; margin-right: auto; }
    .cta-visual { height: 260px; margin-top: 10px; }
}

/* ===================== FAQ ===================== */
.faq-section { background: var(--surface-alt); }
.faq-header { max-width: 640px; margin: 0 auto 48px; }

.faq-accordion { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.active { border-color: var(--blue-400); box-shadow: var(--shadow-sm); }

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-900);
}
.faq-item.active .faq-trigger { color: var(--brand); }

.faq-icon { flex-shrink: 0; width: 24px; height: 24px; position: relative; color: var(--ink-500); }
.plus-icon, .minus-icon { position: absolute; inset: 0; transition: var(--transition); }
.minus-icon { opacity: 0; transform: rotate(-90deg); }
.faq-item.active .plus-icon { opacity: 0; transform: rotate(90deg); }
.faq-item.active .minus-icon { opacity: 1; transform: rotate(0); }
.faq-item.active .faq-icon { color: var(--blue-600); }

.faq-content { padding: 0 24px 22px; }
.faq-body p { color: var(--ink-600); line-height: 1.65; font-size: 0.94rem; }
.faq-body ul { margin-top: 10px; }
.faq-body li { position: relative; padding-left: 20px; margin-bottom: 6px; color: var(--ink-600); font-size: 0.92rem; }
.faq-body li::before { content: "–"; position: absolute; left: 0; color: var(--blue-500); }

/* ===================== Contact (support) ===================== */
.contact-section {
    background: #ffffff;
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--line-soft);
    padding: 130px 0;
}

/* Soft decorative glow so a plain white section still feels designed */
.contact-section::before {
    content: "";
    position: absolute;
    top: -20%; left: -8%;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63,99,255,0.08), transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.contact-section::after {
    content: "";
    position: absolute;
    bottom: -25%; right: -8%;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239,166,62,0.09), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.contact-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.contact-text .section-title {
    color: var(--ink-900);
    font-weight: 800;
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
}
.contact-text .text-white {
    color: var(--blue-600);
    -webkit-text-fill-color: var(--blue-600);
}
.contact-text p {
    color: var(--ink-700);
    font-weight: 500;
    font-size: 1.12rem;
    margin-bottom: 34px;
    max-width: 460px;
    line-height: 1.75;
}

.contact-image { display: flex; justify-content: center; }
.support-img {
    max-width: 440px;
    width: 100%;
    height: auto;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line-soft);
}
.floating-img { animation: floatY 5s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (max-width: 1100px) {
    .contact-wrapper { gap: 40px; }
}

@media (max-width: 991px) {
    .contact-section { padding: 96px 0; }
    .contact-wrapper { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .contact-text p { margin-left: auto; margin-right: auto; }
    .contact-image { order: -1; }
    .support-img { max-width: 340px; }
}

@media (max-width: 576px) {
    .contact-section { padding: 72px 0; }
    .contact-text .section-title { font-size: 2rem; }
    .contact-text p { font-size: 1rem; margin-bottom: 26px; }
    .contact-text .btn { width: 100%; }
    .support-img { max-width: 260px; }
}

@media (max-width: 380px) {
    .contact-text .section-title { font-size: 1.7rem; }
    .support-img { max-width: 220px; }
}

/* ===================== Footer =====================
   Two-column quick-links layout with generous gap, closer to the
   original wide-flex arrangement, on desktop. */
.site-footer { background: var(--navy-950); padding-top: 80px; }
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-col { flex: 1; min-width: 280px; max-width: 420px; }
.footer-logo, .footer-logo-img {
    height: 34px;
    filter: brightness(0) invert(1) contrast(1.2) drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    margin-bottom: 20px;
}
.footer-desc { color: rgba(255,255,255,0.5); font-size: 0.92rem; line-height: 1.7; max-width: 380px; }

/* Right side: two clearly separated quick-link columns */
.footer-links-col, .footer-links {
    display: flex;
    gap: 90px;
    flex-wrap: wrap;
}
.footer-nav-group, .footer-column { min-width: 140px; }
.footer-nav-group h4, .footer-column h4 {
    color: #fff; font-size: 0.92rem; font-weight: 700; margin-bottom: 20px; letter-spacing: 0.02em;
}
.footer-nav-group ul li, .footer-column ul li { margin-bottom: 14px; }
.footer-nav-group a, .footer-column ul li a {
    color: rgba(255,255,255,0.55); font-size: 0.92rem; transition: var(--transition);
}
.footer-nav-group a:hover, .footer-column ul li a:hover { color: #fff; transform: translateX(3px); display: inline-block; }

.footer-bottom, .footer-copyright { padding: 26px 0; }
.footer-bottom p, .footer-copyright p { color: rgba(255,255,255,0.4); font-size: 0.82rem; text-align: center; }

@media (max-width: 768px) {
    .footer-top { flex-direction: column; gap: 40px; }
    .footer-links-col, .footer-links { width: 100%; justify-content: space-between; gap: 40px; }
}
@media (max-width: 480px) {
    .footer-links-col, .footer-links { flex-direction: column; gap: 28px; }
}


/* ===================== Floating buttons ===================== */
.whatsapp-btn, .scroll-top-btn {
    position: fixed;
    right: 22px;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 500;
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    pointer-events: none;
    transition: var(--transition);
}
.whatsapp-btn.visible, .scroll-top-btn.visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.whatsapp-btn { bottom: 22px; background: #25d366; }
.whatsapp-icon { width: 28px; height: 28px; }
.scroll-top-btn { bottom: 86px; background: var(--brand); color: #fff; }
.scroll-top-btn:hover, .whatsapp-btn:hover { transform: translateY(-3px) scale(1.03); }

@media (max-width: 480px) {
    .whatsapp-btn, .scroll-top-btn { right: 14px; width: 46px; height: 46px; }
    .scroll-top-btn { bottom: 76px; }
    .whatsapp-btn { bottom: 14px; }
}

/* ===================== Modals & forms ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 10, 28, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-container {
    position: relative;
    background: var(--surface);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 460px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    transform: translateY(16px) scale(0.98);
    transition: transform .3s var(--ease);
}
.modal-overlay.active .modal-container { transform: none; }

.modal-container::-webkit-scrollbar { width: 6px; }
.modal-container::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--r-full); }

.modal-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--ink-600);
    font-size: 1.2rem;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--error-bg); color: var(--error); }

.modal-header { text-align: center; margin-bottom: 26px; }
.modal-logo { height: 30px; margin: 0 auto 16px; filter: contrast(1.15) saturate(1.1); }
.modal-header h3 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-header p { color: var(--ink-500); font-size: 0.9rem; }

.contact-form .form-group { margin-bottom: 16px; }
.contact-form label, .form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.94rem;
    color: var(--ink-900);
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    transition: var(--transition);
}
.contact-form input::placeholder,
.form-group input::placeholder { color: var(--ink-400); }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue-500);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(63,99,255,0.14);
}
.contact-form textarea { resize: vertical; min-height: 96px; }

.form-group:has(.iti) { margin-bottom: 16px; }

/* Checkout radio pills / checkboxes */
.radio-pill-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    font-size: 0.86rem;
    color: var(--ink-600);
    cursor: pointer;
    transition: var(--transition);
}
.radio-pill:has(input:checked) { border-color: var(--blue-500); background: var(--blue-100); color: var(--brand); font-weight: 600; }
.radio-pill input { width: auto; accent-color: var(--blue-600); }

.checkbox-group { margin-bottom: 16px; }
.checkbox-label {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.86rem;
    color: var(--ink-600);
    cursor: pointer;
    font-weight: 400;
}
.checkbox-label input { width: auto; margin-top: 3px; accent-color: var(--blue-600); }

.checkout-estimate {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    background: var(--blue-100);
    border-radius: var(--r-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--brand);
}
.checkout-estimate strong { font-size: 1.15rem; font-family: var(--font-display); }

.btn.is-loading { opacity: 0.7; pointer-events: none; }

.modal-footer-text { text-align: center; color: var(--ink-400); font-size: 0.78rem; margin-top: 14px; }

.success-view { text-align: center; }
.checkmark-wrapper { width: 76px; height: 76px; margin: 0 auto 20px; }
.checkmark { width: 100%; height: 100%; border-radius: 50%; display: block; stroke-width: 2; stroke: var(--success); }
.checkmark__circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 2; stroke: var(--success); fill: none; animation: strokeAnim .6s var(--ease) forwards; }
.checkmark__check { transform-origin: 50% 50%; stroke-dasharray: 48; stroke-dashoffset: 48; animation: strokeAnim .3s .5s var(--ease) forwards; }
@keyframes strokeAnim { 100% { stroke-dashoffset: 0; } }

.success-message {
    background: #dcfce7; color: #166534;
    padding: 15px; margin: 100px 20px 0; border-radius: var(--r-sm); text-align: center;
    max-width: 640px; margin-left: auto; margin-right: auto;
}

/* intl-tel-input light touch-up (plugin loads its own base CSS) */
.iti { width: 100%; }
.iti--separate-dial-code input { padding-left: 90px; }

@media (max-width: 480px) {
    .modal-container { padding: 30px 22px; max-height: 92vh; }
    .radio-pill-group { flex-direction: column; }
}


/* ===================== Global responsive scale ===================== */
@media (max-width: 1200px) {
    .container { max-width: 96%; }
}

@media (max-width: 992px) {
    .section { padding: 88px 0; }
    .section-title { font-size: clamp(1.9rem, 4vw, 2.5rem); }
}

@media (max-width: 768px) {
    .section { padding: 68px 0; }
    .nav-cta.desktop-only { display: none; }
}

@media (max-width: 576px) {
    .container { width: 92%; padding: 0 16px; }
    .btn { padding: 13px 22px; font-size: 0.9rem; }
    .glass-card, .ps-card, .pricing-card, .testimonial-card { padding: 26px 22px; }
}

/* Prevent any accidental horizontal overflow */
html, body { max-width: 100%; overflow-x: hidden; }
.container, .hero-content, .about-grid, .platform-grid, .ui-ux-grid,
.contact-wrapper, .cta-card, .stats-grid, .pricing-grid, .testimonials-grid {
    max-width: 100%;
}


/* ===================== Minor structural helpers ===================== */
.footer-brand-col { max-width: 380px; }
.footer-logo-link, .mobile-logo-link { display: inline-flex; }
.stat-content { position: relative; z-index: 1; }
.about-content, .about-visual, .ui-ux-content { min-width: 0; }

