/* ====================================================
   SUPERPAGESPEEDY — PREMIUM DESIGN SYSTEM
   Light + Royal Blue
   Loaded AFTER style.css / service.css so it refines them.
   ==================================================== */

:root {
    /* Royal Blue Palette */
    --royal-900: #0b1f4d;
    --royal-800: #11296b;
    --royal-700: #163a8f;
    --royal-600: #1d4ed8;
    --royal-500: #2563eb;
    --royal-400: #4f83f5;
    --royal-300: #8db4ff;
    --royal-100: #e6efff;
    --royal-50: #f3f7ff;

    /* Support */
    --ink: #0a1530;
    --muted: #5a6b8c;
    --line: #e5ecf7;
    --surface: #ffffff;
    --surface-2: #f6f9ff;
    --success: #16b364;
    --warning: #f5a524;
    --danger: #f4455f;

    /* Gradients */
    --grad-royal: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #4f83f5 100%);
    --grad-royal-soft: linear-gradient(135deg, #e6efff 0%, #f3f7ff 100%);
    --grad-text: linear-gradient(120deg, #1d4ed8 0%, #4f83f5 60%, #163a8f 100%);

    /* Radii */
    --r-xl: 28px;
    --r-lg: 22px;
    --r-md: 16px;
    --r-sm: 12px;
    --r-pill: 999px;

    /* Shadows */
    --sh-sm: 0 10px 30px rgba(17, 41, 107, .06);
    --sh-md: 0 24px 60px rgba(17, 41, 107, .10);
    --sh-lg: 0 40px 100px rgba(29, 78, 216, .16);
    --sh-glow: 0 18px 50px rgba(37, 99, 235, .28);

    /* Motion */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --t-fast: .25s var(--ease);
    --t: .4s var(--ease);

    --font: 'Manrope', 'Inter', system-ui, sans-serif;
}

/* ---------- Base refinements ---------- */
body {
    font-family: var(--font);
    color: var(--muted);
    background: var(--surface);
    line-height: 1.75;
    /* No padding-top: the header is now position:sticky (in normal flow),
       so it already occupies its 84px and the hero paddings supply the rest. */
}

/* ---------- Section vertical rhythm ----------
   Max ~20px gap between consecutive sections (10px top + 10px bottom). */
.section-title { margin: 0 auto 20px; }

.why-us-section, .services, .process, .results,
.supported-platforms, .optimization-engine, .testimonials,
.faq-section, .sps-showcase, .audit-section, .manual-optimization,
.performance-metrics, .technology-engine, .website-types, .service-cta,
.company-story, .company-journey, .mission-vision, .founder-section,
.core-values, .why-superpagespeedy, .industries-section, .platforms {
    padding: 10px 0 !important;
}

/* Heroes keep top room for the fixed header, tight bottom */
.hero { padding: 104px 0 10px !important; }
.service-hero { padding: 100px 0 10px !important; }
.about-hero { padding: 100px 0 10px !important; }
.pricing-section { padding: 100px 0 10px !important; }
.analyzer-hero { padding: 100px 0 10px !important; }

.footer { padding: 20px 0 36px !important; }

/* CTA band above footer */
.about-cta { padding: 20px 0 !important; }

h1, h2, h3, h4, h5 {
    font-family: var(--font);
    color: var(--ink);
    letter-spacing: -.02em;
}

.container {
    width: 92%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Large desktops (1400px – 1999px): 1350px container */
@media (min-width: 1400px) {
    .container { max-width: 1350px; }
}

/* Ultra-wide (2000px+): 1950px container */
@media (min-width: 2000px) {
    .container { max-width: 1950px; }
}

/* Below 1400px: responsive with reduced font sizes & tighter spacing */
@media (max-width: 1399px) {
    :root {
        --r-xl: 24px;
        --r-lg: 20px;
        --r-md: 14px;
    }
    body { font-size: 15px; }
    h1 { font-size: clamp(28px, 4vw, 42px); }
    h2 { font-size: clamp(26px, 3.5vw, 38px); }
    h3 { font-size: clamp(20px, 2.5vw, 28px); }
    .section-title h2 { font-size: clamp(28px, 3.5vw, 40px); }
    .container { padding: 0 18px; }
}

/* ---------- Animated gradient blob background ---------- */
.blob-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    animation: blobFloat 14s ease-in-out infinite;
}
.blob.b1 { width: 480px; height: 480px; top: -160px; left: -120px;
    background: radial-gradient(circle, rgba(37,99,235,.35), transparent 70%); }
.blob.b2 { width: 420px; height: 420px; bottom: -160px; right: -100px;
    background: radial-gradient(circle, rgba(79,131,245,.30), transparent 70%); animation-delay: -5s; }
.blob.b3 { width: 320px; height: 320px; top: 40%; left: 55%;
    background: radial-gradient(circle, rgba(22,58,143,.22), transparent 70%); animation-delay: -9s; }

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.08); }
}

/* ---------- Premium Section Header ---------- */
.section-title span {
    background: var(--royal-50);
    border: 1px solid var(--royal-100);
    color: var(--royal-600);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.section-title h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    color: var(--ink);
    font-weight: 800;
}
.section-title p { color: var(--muted); }

/* gradient text helper */
.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Premium Buttons ---------- */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 60px;
    padding: 0 38px;
    border-radius: var(--r-pill);
    background: var(--grad-royal);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    overflow: hidden;
    box-shadow: var(--sh-glow);
    transition: var(--t);
    isolation: isolate;
}
.btn-premium::before {
    content: "";
    position: absolute;
    top: 0; left: -130%;
    width: 80%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg);
    transition: left .8s var(--ease);
    z-index: -1;
}
.btn-premium:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(37,99,235,.38); }
.btn-premium:hover::before { left: 130%; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 60px;
    padding: 0 34px;
    border-radius: var(--r-pill);
    background: #fff;
    color: var(--royal-600);
    font-weight: 800;
    font-size: 16px;
    border: 1.5px solid var(--royal-100);
    transition: var(--t);
}
.btn-ghost:hover { border-color: var(--royal-400); color: var(--royal-700); transform: translateY(-4px); box-shadow: var(--sh-sm); }

/* ---------- Glass card ---------- */
.glass-card {
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-md);
}

/* ---------- Scroll reveal (fail-safe) ----------
   Hidden state only applies when JS is active (.js on <html>).
   A safety timeout in main.js force-shows everything, so content
   can NEVER stay permanently hidden. */
.js .reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    will-change: opacity, transform;
}
.js .reveal.show { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .reveal.d4 { transition-delay: .32s; }
.js .reveal.d5 { transition-delay: .40s; }
.js .reveal.d6 { transition-delay: .48s; }

/* Section titles animate in on load (no hidden-risk) */
.section-title {
    animation: titleIn .7s var(--ease) both;
}
@keyframes titleIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    .section-title { animation: none; }
    .blob { animation: none; }
}

/* ---------- Header polish ---------- */
.header {
    position: sticky;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 84px;
    transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
    background: rgba(255,255,255,0);
}
.header.scrolled {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(17,41,107,.08);
}

/* Header sitting over a DARK hero (platform pages): use light text so the
   nav, logo and active state stay visible instead of blending into the dark bg. */
.header.on-dark { background: rgba(7,16,38,.32); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header.on-dark .logo, .header.on-dark .logo-text b { color: #fff; }
.header.on-dark .nav a { color: #fff; }
.header.on-dark .nav a::after { background: #fff; }
.header.on-dark .nav a.active, .header.on-dark .nav a:hover { color: #fff; background: rgba(255,255,255,.16); }
.header.on-dark .menu-toggle { color: #fff; background: rgba(255,255,255,.14); }
.header.on-dark .cart-link { color: #fff; background: rgba(255,255,255,.16); }
.header.on-dark .btn-premium { color: #fff; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); }
.header.on-dark .loc-form select { color: #fff; background-color: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.header.on-dark.scrolled .loc-form select { color: var(--ink); background-color: #fff; border-color: var(--border); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23256aff'/%3E%3C/svg%3E"); }
.header.on-dark .btn-premium:hover { background: rgba(255,255,255,.28); }
/* Once scrolled away from the dark hero, revert to the normal light header. */
.header.on-dark.scrolled { background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.header.on-dark.scrolled .logo, .header.on-dark.scrolled .logo-text b,
.header.on-dark.scrolled .nav a, .header.on-dark.scrolled .menu-toggle,
.header.on-dark.scrolled .cart-link, .header.on-dark.scrolled .btn-premium { color: var(--ink); }
.header.on-dark.scrolled .logo-text b { color: var(--royal-600); }
.header.on-dark.scrolled .nav a.active, .header.on-dark.scrolled .nav a:hover { color: var(--royal-600); background: var(--royal-50); }
.header.on-dark.scrolled .cart-link { color: var(--royal-600); background: var(--royal-50); }
.header.on-dark.scrolled .menu-toggle { color: var(--ink); background: var(--royal-50); }
.header.on-dark.scrolled .btn-premium { color: #fff; background: var(--grad-royal); border-color: transparent; }
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 21px;
    color: var(--ink);
    letter-spacing: -.03em;
}
.logo img { height: 40px; width: auto; }
.logo .logo-mark {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--grad-royal);
    display: grid; place-items: center;
    color: #fff; font-weight: 900; font-size: 20px;
    box-shadow: var(--sh-glow);
}
.logo .logo-text b { color: var(--royal-600); }

.nav ul { display: flex; gap: 6px; align-items: center; }
.nav a {
    position: relative;
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
    transition: var(--t-fast);
}
.nav a::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 6px;
    height: 2px;
    background: var(--grad-royal);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-fast);
}
.nav a:hover, .nav a.active { color: var(--royal-600); background: var(--royal-50); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.cart-link {
    position: relative; display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 12px; background: var(--royal-50); color: var(--royal-600); text-decoration: none;
    font-size: 19px; transition: .2s; margin-right: 6px;
}
.cart-link:hover { background: var(--royal-100); }
.cart-count {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800;
    display: grid; place-items: center; line-height: 1;
}
.header-right { display: flex; align-items: center; gap: 14px; }
.locale-switch { display: flex; align-items: center; gap: 8px; }
.loc-form select {
    font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--ink);
    padding: 8px 26px 8px 12px; border: 1px solid var(--border); border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23256aff'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none; appearance: none; cursor: pointer;
}
.loc-form select:focus { outline: none; border-color: var(--royal-400); box-shadow: 0 0 0 3px var(--royal-50); }
.menu-toggle {
    display: none;
    font-size: 26px;
    color: var(--ink);
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--royal-50);
}

@media (max-width: 980px) {
    .nav {
        position: fixed;
        top: 84px; left: 0; right: 0;
        background: #fff;
        padding: 18px 20px 28px;
        box-shadow: var(--sh-md);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: var(--t);
    }
    .nav.active { transform: none; opacity: 1; pointer-events: auto; }
    .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav a { padding: 14px 16px; }
    .nav a::after { display: none; }
    .menu-toggle { display: grid; place-items: center; }
}

/* ---------- Footer polish ---------- */
.footer {
    background: linear-gradient(180deg, #0b1f4d 0%, #07142f 100%);
    color: #c4d2ec;
    padding: 80px 0 36px;
}
.footer-logo { height: 38px; }
.footer-brand p { color: #97a8c9; max-width: 320px; }
.footer h3 { color: #fff; font-size: 16px; letter-spacing: .04em; margin-bottom: 18px; }
.footer-links ul li a { color: #97a8c9; padding: 7px 0; display: inline-block; }
.footer-links ul li a:hover { color: #fff; transform: translateX(4px); }
.footer-social a {
    width: 42px; height: 42px;
    display: inline-grid; place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    color: #c4d2ec;
    transition: var(--t-fast);
    margin-right: 8px;
}
.footer-social a:hover { background: var(--royal-500); color: #fff; transform: translateY(-3px); }
.footer-divider { height: 1px; background: rgba(255,255,255,.1); margin: 50px 0 26px; }
.footer-copy { color: #8295b8; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-bottom-links a { color: #97a8c9; margin-left: 20px; }
.footer-bottom-links a:hover { color: #fff; }

/* ---------- Back to top ---------- */
#backToTop {
    position: fixed;
    right: 26px; bottom: 26px;
    width: 52px; height: 52px;
    border-radius: 16px;
    background: var(--grad-royal);
    color: #fff;
    font-size: 22px;
    box-shadow: var(--sh-glow);
    opacity: 0; transform: translateY(20px);
    transition: var(--t);
    z-index: 900;
}
#backToTop.show { opacity: 1; transform: none; }
#backToTop:hover { transform: translateY(-4px); }

/* ---------- Utility ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 20px; border-radius: var(--r-pill);
    background: var(--royal-50); border: 1px solid var(--royal-100);
    color: var(--royal-600); font-weight: 800; font-size: 13px;
    letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--royal-500); box-shadow: 0 0 0 4px rgba(37,99,235,.18); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.lead { font-size: 18px; color: var(--muted); line-height: 1.9; }

/* ====================================================
   PREMIUM COMPONENT LIBRARY (shared by all pages)
   ==================================================== */

/* Card base */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    transition: var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }

/* Icon chip */
.ic-chip {
    width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center;
    background: var(--royal-50); color: var(--royal-600);
    font-size: 24px; font-weight: 800;
    box-shadow: inset 0 0 0 1px var(--royal-100);
}
.ic-chip.grad { background: var(--grad-royal); color: #fff; box-shadow: var(--sh-glow); }

/* Features grid */
.features-grid {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 50px;
}
.feature-card { padding: 34px 30px; }
.feature-card h3 { font-size: 20px; color: var(--ink); margin: 18px 0 10px; }
.feature-card p { font-size: 15px; }

/* Stats row */
.stats-row {
    display: grid; gap: 20px; margin-top: 56px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat-card {
    text-align: center; padding: 34px 20px;
    background: var(--grad-royal-soft);
    border: 1px solid var(--royal-100); border-radius: var(--r-lg);
}
.stat-card .num {
    font-size: 46px; font-weight: 800; line-height: 1;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card .lbl { margin-top: 10px; font-weight: 700; color: var(--muted); font-size: 14px; }

/* Process timeline */
.process-timeline {
    display: grid; gap: 22px; margin-top: 50px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.step {
    position: relative; padding: 32px 28px 32px 84px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: var(--sh-sm); transition: var(--t);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.step .step-no {
    position: absolute; left: 24px; top: 28px;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--grad-royal); color: #fff; font-weight: 800;
    display: grid; place-items: center; box-shadow: var(--sh-glow);
}
.step h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 14px; }

/* Platform grid */
.platform-grid {
    display: grid; gap: 20px; margin-top: 50px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.platform-card { padding: 30px 26px; text-align: center; }
.platform-card .pf-ic {
    width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 16px;
    display: grid; place-items: center; padding: 12px;
    background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.platform-card .pf-ic img { width: 100%; height: 100%; object-fit: contain; }
.platform-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.platform-card p { font-size: 13px; }

/* Pricing grid */
.pricing-grid {
    display: grid; gap: 26px; margin-top: 54px; align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.price-card { padding: 38px 32px; display: flex; flex-direction: column; }
.price-card.featured {
    border: 2px solid var(--royal-400);
    box-shadow: var(--sh-lg); transform: translateY(-8px);
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}
.price-card .tier { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--royal-600); }
.price-card .amount { font-size: 48px; font-weight: 800; color: var(--ink); margin: 12px 0; }
.price-card .amount span { font-size: 16px; color: var(--muted); font-weight: 600; }
.price-card ul { margin: 18px 0 26px; display: grid; gap: 12px; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.price-card ul li::before { content: "?"; color: var(--success); font-weight: 800; }
.price-card .btn-premium, .price-card .btn-ghost { margin-top: auto; width: 100%; }

/* Testimonials */
.testi-grid {
    display: grid; gap: 24px; margin-top: 50px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.testi-card { padding: 32px 30px; }
.testi-card .quote { font-size: 16px; color: var(--ink); line-height: 1.7; }
.testi-card .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testi-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-royal); color: #fff; display: grid; place-items: center; font-weight: 800; }
.testi-card .who b { color: var(--ink); display: block; font-size: 15px; }
.testi-card .who small { color: var(--muted); }

/* Tabs (platform / category switcher) */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 30px 0 40px; }
.tab {
    padding: 12px 22px; border-radius: var(--r-pill); border: 1px solid var(--royal-100);
    background: #fff; color: var(--royal-700); font-weight: 700; font-size: 14px; cursor: pointer; transition: var(--t-fast);
}
.tab.active, .tab:hover { background: var(--grad-royal); color: #fff; border-color: transparent; box-shadow: var(--sh-glow); }

/* Section divider spacing helper */
.sec-gap { margin-top: 90px; }

/* Generic content prose */
.prose p { color: var(--muted); font-size: 17px; line-height: 1.9; margin-bottom: 16px; }
.prose h3 { color: var(--ink); font-size: 22px; margin: 26px 0 12px; }

/* Legal / text pages */
.legal-page { padding: 140px 0 80px; }
.legal-page .container { max-width: 880px; }
.legal-page h1 {
    font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: var(--ink);
    margin-bottom: 28px; letter-spacing: -.02em;
}
.legal-page h3 { color: var(--royal-600); font-size: 20px; margin: 28px 0 10px; }
.legal-page p { color: var(--muted); font-size: 16px; line-height: 1.9; margin-bottom: 14px; }
.legal-page a { color: var(--royal-600); font-weight: 700; }

/* ===== Mega menu (Platform) ===== */
.header, .nav { overflow: visible; }
.caret { font-size: 10px; vertical-align: middle; margin-left: 3px; opacity: .75; transition: transform .2s; }
.has-mega:hover .caret { transform: rotate(180deg); }
.has-mega { position: relative; }
.has-mega > a { display: inline-flex; align-items: center; }
.mega-menu {
    position: absolute; top: 100%; left: 0; transform: translateY(14px);
    width: min(680px, 94vw); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease; z-index: 1200;
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.mega-inner {
    position: relative; margin-top: 16px; padding: 24px;
    background: rgba(255,255,255,.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border); border-radius: 22px;
    box-shadow: 0 40px 90px rgba(13, 32, 74, .22);
}
.mega-inner::before{
    content:""; position:absolute; inset:0; border-radius:22px; padding:1px; pointer-events:none;
    background: linear-gradient(120deg, var(--royal-400), transparent 40%, transparent 60%, var(--royal-400));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity:.5;
}
.mega-head { margin-bottom: 16px; }
.mega-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.mega-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.mega-item {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px;
    text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; transition: .2s;
    border: 1px solid transparent;
}
.mega-item:hover { background: #fff; border-color: var(--border); box-shadow: 0 12px 26px rgba(13,32,74,.1); transform: translateY(-2px); }
.mega-item.is-current { background: var(--royal-50); box-shadow: inset 0 0 0 1px var(--royal-200); }
.mega-logo {
    flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: #fff; padding: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.1); border: 1px solid var(--border);
}
.mega-logo img { width: 100%; height: 100%; object-fit: contain; }
.mega-all {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--royal-600);
    text-decoration: none; font-size: 14px; transition: gap .2s;
}
.mega-all:hover { gap: 12px; }
@media (max-width: 980px){
    .mega-menu { position: static; transform: none; width: 100%; opacity: 1; visibility: visible; pointer-events: auto; display: none; }
    .has-mega.open .mega-menu { display: block; }
    .mega-inner { box-shadow: none; border: none; padding: 10px 0; margin-top: 0; background: transparent; backdrop-filter: none; }
    .mega-inner::before { display: none; }
    .mega-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   LUXURY POLISH � premium motion & depth
   ============================================================ */

/* Animated gradient text */
.grad-text, .text-gradient {
    background: linear-gradient(120deg, var(--royal-500), var(--royal-700), #38bdf8, var(--royal-500));
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: gradShift 8s ease-in-out infinite;
}
@keyframes gradShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* Premium button sheen + lift */
.btn, .btn-primary, .btn-outline, .btn-ghost, .btn-premium, .primary-btn, .secondary-btn, .cta-btn, .cta-btn-outline {
    position: relative; overflow: hidden;
}
.btn::after, .btn-primary::after, .btn-premium::after, .primary-btn::after, .secondary-btn::after, .cta-btn::after, .cta-btn-outline::after {
    content:""; position:absolute; top:0; left:-130%; width:55%; height:100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-20deg); pointer-events:none;
}
.btn:hover::after, .btn-primary:hover::after, .btn-premium:hover::after, .primary-btn:hover::after,
.secondary-btn:hover::after, .cta-btn:hover::after, .cta-btn-outline:hover::after { animation: sheen .9s ease; }
@keyframes sheen { 0%{left:-130%} 55%,100%{left:160%} }
.btn:hover, .btn-primary:hover, .btn-premium:hover, .primary-btn:hover,
.secondary-btn:hover, .cta-btn:hover, .cta-btn-outline:hover { transform: translateY(-3px); }

/* Luxury card hover � lift + glow */
.card, .feature-card, .price-card, .platform-card, .glass-card, .stat-card,
.why-card, .service-card, .engine-card, .audit-card, .manual-card,
.metric-box, .technology-card, .website-card {
    transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s;
}
.card:hover, .feature-card:hover, .price-card:hover, .platform-card:hover, .glass-card:hover,
.stat-card:hover, .why-card:hover, .service-card:hover, .engine-card:hover, .audit-card:hover,
.manual-card:hover, .metric-box:hover, .technology-card:hover, .website-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px rgba(13,32,74,.18);
}

/* Floating hero orbs */
.blob { animation: blobFloat 12s ease-in-out infinite; transform-origin:center; }
.blob.b2 { animation-delay: -4s; }
.blob.b3 { animation-delay: -8s; }
@keyframes blobFloat { 0%,100%{ transform: translateY(0) scale(1);} 50%{ transform: translateY(-28px) scale(1.08);} }

/* Scroll progress bar */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 99999;
    background: linear-gradient(90deg, var(--royal-500), #38bdf8);
    box-shadow: 0 0 12px rgba(37,99,235,.6);
}

/* Refined reveal easing */
.js .reveal { transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); }

/* Eyebrow chip glow */
.eyebrow {
    background: var(--royal-50); color: var(--royal-700);
    border: 1px solid var(--royal-100);
    padding: 7px 16px; border-radius: 999px; display: inline-block;
    font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}
