:root {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-alt: #edf3fb;
    --ink: #13233d;
    --muted: #51627b;
    --primary: #0e4ea8;
    --primary-strong: #0a3d86;
    --accent: #0f766e;
    --line: #d3deec;
    --shadow: 0 20px 40px rgba(7, 34, 74, 0.12);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-name,
.eyebrow,
.stat-value,
.step-number {
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid rgba(211, 222, 236, 0.9);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 28px rgba(8, 35, 77, 0.14);
    border-color: rgba(172, 190, 214, 0.9);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

.brand-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0a2f68;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav > a,
.nav-group > a {
    font-family: 'Sora', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #304765;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.22s ease, color 0.22s ease;
}

.site-nav > a:hover,
.nav-group > a:hover,
.site-nav > a.active,
.nav-group > a.active {
    background: #e7f0fb;
    color: var(--primary);
}

.nav-group > a i {
    font-size: 0.72rem;
    margin-left: 5px;
}

.nav-group {
    position: relative;
}

.submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(10, 42, 88, 0.14);
    display: grid;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-group:hover .submenu,
.nav-group:focus-within .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.submenu a {
    font-size: 0.9rem;
    color: #37506f;
    padding: 10px 12px;
    border-radius: 8px;
}

.submenu a:hover {
    background: #edf3fb;
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(125deg, var(--primary), #1b67cb);
    color: #fff;
    box-shadow: 0 10px 24px rgba(14, 78, 168, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(14, 78, 168, 0.38);
}

.btn-ghost {
    background: #fff;
    color: var(--primary);
    border-color: #bfd1ea;
}

.btn-ghost:hover {
    background: #eef5ff;
}

.menu-toggle {
    display: none;
    border: none;
    background: #edf3fb;
    color: #14335f;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
}

.page-hero {
    position: relative;
    padding: clamp(48px, 8vw, 88px) 0 clamp(36px, 6vw, 58px);
    overflow: hidden;
}

.page-hero::before,
.page-hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.page-hero::before {
    width: 320px;
    height: 320px;
    top: -110px;
    right: -120px;
    background: radial-gradient(circle at center, rgba(14, 78, 168, 0.22), rgba(14, 78, 168, 0));
}

.page-hero::after {
    width: 280px;
    height: 280px;
    bottom: -100px;
    left: -90px;
    background: radial-gradient(circle at center, rgba(15, 118, 110, 0.18), rgba(15, 118, 110, 0));
}

.hero-shell {
    background: linear-gradient(150deg, #ffffff, #f1f6ff 55%, #ecf6f4);
    border: 1px solid #d7e2f0;
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: clamp(30px, 5vw, 56px);
    position: relative;
    z-index: 1;
}

.hero-layout {
    display: grid;
    gap: 26px;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #0b3e84;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e8f1fe;
    margin-bottom: 14px;
}

.eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #1560be;
}

.page-hero h1 {
    font-size: clamp(2rem, 3.8vw, 3.35rem);
    line-height: 1.1;
    margin-bottom: 14px;
    color: #16346b;   /* navy blue headings */
}

.page-hero p {
    color: var(--muted);
    font-size: 1.09rem;
    max-width: 61ch;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-panel {
    background: #fff;
    border: 1px solid #d9e4f2;
    border-radius: var(--radius-lg);
    padding: 18px;
}

.hero-panel h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #163a71;
}

.hero-panel ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.hero-panel li {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: start;
    gap: 10px;
    color: #455e7c;
    font-size: 0.95rem;
}

.hero-panel i {
    margin-top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecf3ff;
    color: #0e4ea8;
    font-size: 0.78rem;
}

.section {
    padding: 72px 0;
}

.section.alt {
    background: #e9f1fb;
    border-top: 1px solid #d7e2f0;
    border-bottom: 1px solid #d7e2f0;
}

.section-head {
    margin-bottom: 30px;
    display: grid;
    gap: 10px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.15;
    color: #16346b;   /* navy blue headings */
}

.section-head p {
    color: var(--muted);
    max-width: 74ch;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 10px 24px rgba(9, 39, 86, 0.07);
}

.card h3 {
    font-size: 1.14rem;
    margin-bottom: 9px;
}

.card p,
.card li {
    color: #4f617a;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f1fe;
    color: #0d4d9f;
    margin-bottom: 12px;
}

.card-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card-link:hover {
    transform: translateY(-4px);
    border-color: #aac4e5;
    box-shadow: 0 18px 32px rgba(11, 45, 96, 0.16);
}

.card-link .card-arrow {
    margin-top: 4px;
    color: var(--primary);
    font-size: 0.87rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
}

.image-frame {
    border-radius: var(--radius-lg);
    border: 1px solid #d4deeb;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(8, 35, 77, 0.14);
    height: auto;
    min-height: 0;
    align-self: center;
}

.image-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* Full-width banner variant of image-frame */
.image-banner {
    align-self: stretch;
    margin-bottom: 28px;
}

.image-banner img {
    aspect-ratio: 21 / 9;
}

@media (max-width: 640px) {
    .image-banner img {
        aspect-ratio: 16 / 10;
    }
}

.list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
}

.list li i {
    color: var(--accent);
    margin-top: 4px;
}

.stat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

/* Inside the narrow hero side-panel, stack stat cards full-width so
   titles like "Multi-domain" never break across lines */
.hero-panel .stat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.hero-panel .stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-panel .stat-value {
    font-size: 1.05rem;
}

.hero-panel .stat-label {
    font-size: 0.85rem;
}

.hero-kpis {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-kpi {
    background: #f7fbff;
    border: 1px solid #d7e3f1;
    border-radius: 12px;
    padding: 12px;
}

.hero-kpi strong {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    color: #143f7a;
}

.hero-kpi span {
    font-size: 0.82rem;
    color: #526780;
}

.stat {
    background: #f7fbff;
    border: 1px solid #d8e4f2;
    border-radius: var(--radius-md);
    padding: 14px;
}

.stat-value {
    font-size: 1.4rem;
    color: #123f79;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.86rem;
    color: #546984;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pill {
    font-size: 0.82rem;
    font-weight: 600;
    color: #305177;
    background: #eef4fc;
    border: 1px solid #d5e2f2;
    border-radius: 999px;
    padding: 6px 12px;
}

.process-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-card {
    background: #fff;
    border: 1px solid #d2dfef;
    border-radius: var(--radius-lg);
    padding: 18px;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #144d9c;
    color: #fff;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.form-shell {
    background: #fff;
    border: 1px solid #ccdced;
    border-radius: 22px;
    padding: clamp(20px, 4vw, 34px);
    box-shadow: 0 16px 32px rgba(8, 35, 77, 0.11);
}

.form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-family: 'Sora', sans-serif;
    font-size: 0.83rem;
    font-weight: 650;
    color: #243d5d;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #bfcfe4;
    padding: 11px 12px;
    font: inherit;
    color: #163155;
    background: #f9fbff;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #1f62bc;
    box-shadow: 0 0 0 3px rgba(19, 78, 162, 0.12);
    background: #fff;
}

.form-span-2 {
    grid-column: span 2;
}

.cta-banner {
    margin-top: 12px;
    background: linear-gradient(130deg, #0f4ea7, #1d74bf, #18746f);
    color: #fff;
    border-radius: 24px;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.cta-banner .btn-primary {
    background: #ffffff;
    color: #134786;
    box-shadow: none;
}

.cta-banner .btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.site-footer {
    margin-top: 70px;
    background: #0f1c30;
    color: #e9eef8;
    padding: 44px 0 20px;
}

.footer-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.4fr 1fr 1fr;
}

.site-footer h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.site-footer ul {
    list-style: none;
    display: grid;
    gap: 7px;
}

.site-footer a {
    color: #c8d4e8;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 28px;
    border-top: 1px solid rgba(184, 199, 223, 0.22);
    padding-top: 14px;
    font-size: 0.86rem;
    color: #bccbe1;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    text-align: center;
}

/* ── Responsive layout utilities (replaces inline grid styles) ── */
.r-grid-4     { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.r-grid-3     { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.125rem; }
.r-form-loc   { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.r-grid-2-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.r-grid-2-sm  { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem; }

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero-layout,
    .split {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .r-grid-4   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .r-form-loc { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--line);
        padding: 14px 4vw 18px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        box-shadow: 0 14px 26px rgba(10, 42, 88, 0.12);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav > a,
    .nav-group > a {
        width: 100%;
    }

    .submenu {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        margin-top: 4px;
        display: none;
        width: 100%;
        min-width: 0;
    }

    .nav-group.open .submenu {
        display: grid;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .r-grid-3    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .r-grid-2-faq { grid-template-columns: minmax(0, 1fr); }
    /* Hide nav CTA pill on mobile — hamburger replaces it */
    .nav-row .btn { display: none; }
}

@media (max-width: 640px) {
    .section {
        padding: 58px 0;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .process-grid,
    .form-grid,
    .footer-grid,
    .stat-grid,
    .hero-kpis {
        grid-template-columns: 1fr;
    }

    .r-grid-4, .r-grid-3, .r-grid-2-sm { grid-template-columns: minmax(0, 1fr); }
    .r-form-loc { grid-template-columns: minmax(0, 1fr); gap: 1rem; }

    .form-span-2 {
        grid-column: auto;
    }

    .site-footer {
        margin-top: 56px;
    }

    /* Prevent any block element from breaking out of the viewport */
    * { max-width: 100%; }
    img, video, iframe, embed, object { max-width: 100%; height: auto; }
    pre, code { overflow-x: auto; }

    .page-hero { padding: 48px 0 36px; }
    .hero-shell { border-radius: 16px; }
    .section { padding: 48px 0; }
    .section.alt { padding: 48px 0; }
    .cta-banner { border-radius: 16px; }
    .footer-grid { gap: 12px; }
    .site-footer { padding: 32px 0 16px; margin-top: 40px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .pill-row { gap: 6px; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .r-grid-4, .r-grid-3, .r-grid-2-sm, .r-grid-2-faq, .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .nav-row { gap: 12px; min-height: 60px; }
    .brand img { height: 36px; }
    .menu-toggle { width: 38px; height: 38px; }
}
