:root {
    /* Premium palette — deep ink-navy (never pure black), sapphire + warm gold */
    --primary: #1d4ed8;
    --primary-deep: #1e3a8a;
    --primary-soft: #eef2ff;
    --secondary: #0d9488;
    --accent: #c9a227;
    --accent-soft: #faf6e7;
    --ink: #0f172a;
    --success: #059669;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-soft: #f4f6fb;
    --bg-warm: #faf9f7;
    --border: #e2e8f0;
    --hp-radius: 1.25rem;
    --hp-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
    --hp-shadow-sm: 0 8px 24px -8px rgba(15, 23, 42, 0.08);
    
    /* Spacing & Borders */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-pill: 9999px;
    
    /* Shadows - Soft & Deep */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.hp-page {
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(29, 78, 216, 0.09), transparent),
        radial-gradient(900px 500px at 0% 20%, rgba(13, 148, 136, 0.06), transparent),
        linear-gradient(180deg, #fafbfd 0%, #ffffff 28%);
}

.hp-top-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: 2rem;
    background: linear-gradient(90deg, #1d4ed8 0%, #0d9488 48%, #1e3a8a 100%);
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hp-ribbon-track {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
    height: 100%;
    padding-left: 100%;
    animation: hpMarquee 30s linear infinite;
    font-size: 0.76rem;
    font-weight: 700;
}

.hp-ribbon-track span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

h1, h2, h3, h4, .font-outfit {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.bg-soft { background-color: var(--bg-soft); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: white;
    box-shadow: 0 10px 24px -6px rgba(29, 78, 216, 0.38);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -8px rgba(29, 78, 216, 0.45);
}

.btn-outline {
    background-color: white;
    color: var(--text-main);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-soft);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 2rem;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    transition: all 0.3s ease;
}

.navbar.is-scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 28px -18px rgba(15, 23, 42, 0.35);
}

.navbar .container {
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links .nav-link:not(.hp-nav-cta) {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.88rem;
}

.nav-links .nav-link:not(.hp-nav-cta):hover {
    background: var(--primary-soft);
    color: var(--primary-deep);
}

.hp-nav-cta {
    margin-left: 0.35rem;
    padding: 0.6rem 1.35rem !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: #fff !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: 0 8px 20px -6px rgba(29, 78, 216, 0.45);
}

.hp-nav-cta:hover {
    transform: translateY(-1px);
    color: #fff !important;
    filter: brightness(1.05);
}

.hp-nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-main);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero — split layout */
.hero {
    padding-top: 9.8rem;
    padding-bottom: 4rem;
    background: transparent;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    text-align: left;
    max-width: none;
    margin: 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: linear-gradient(135deg, var(--primary-soft) 0%, #fff 100%);
    border: 1px solid rgba(29, 78, 216, 0.12);
    color: var(--primary-deep);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.35rem;
}

.hero h1 {
    font-size: clamp(2.25rem, 4vw, 3.35rem);
    line-height: 1.12;
    margin-bottom: 1.25rem;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.hero h1 .hp-gradient-text {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 45%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 34rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.hp-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hp-stat {
    min-width: 6.5rem;
}

.hp-stat strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.hp-stat span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Hero visual frame + placeholder */
.hp-hero-visual {
    position: relative;
}

.hp-hero-frame {
    position: relative;
    border-radius: 2rem;
    padding: 0.5rem;
    background: linear-gradient(145deg, rgba(29, 78, 216, 0.2) 0%, rgba(13, 148, 136, 0.15) 50%, rgba(201, 162, 39, 0.12) 100%);
    box-shadow: var(--hp-shadow);
    transition: transform 0.35s ease;
}

.hp-hero-frame-inner {
    border-radius: 1.6rem;
    overflow: hidden;
    background: linear-gradient(165deg, #eef2ff 0%, #f0fdfa 40%, #fffaf0 100%);
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.hp-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.06) contrast(1.03);
    transform: scale(1.01);
}

.hp-hero-overlay {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    z-index: 2;
}

.hp-hero-overlay span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(6px);
}

.hp-placeholder-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-deep);
    box-shadow: var(--hp-shadow-sm);
}

.hp-float-card {
    position: absolute;
    background: #fff;
    padding: 0.85rem 1.1rem;
    border-radius: 1rem;
    box-shadow: var(--hp-shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--border);
}

.hp-float-card.fc-a { top: 12%; right: -0.5rem; }
.hp-float-card.fc-b { bottom: 14%; left: -0.75rem; }

.hp-parallax-card {
    transform-style: preserve-3d;
    animation: floatY 6s ease-in-out infinite;
}

.hp-float-dot {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}

/* Trust strip */
.hp-trust {
    padding: 3rem 0 3.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.5);
}

.hp-trust-inner {
    text-align: center;
}

.hp-trust-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.hp-logo-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem 3.5rem;
    align-items: center;
}

.hp-logo-marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.hp-logo-track {
    display: inline-flex;
    gap: 2.5rem;
    width: max-content;
    animation: hpMarquee 24s linear infinite;
}

.hp-logo-slot {
    min-width: 7.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(100, 116, 139, 0.35);
    background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

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

/* Section headers */
.hp-section-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 3.5rem;
}

.hp-section-kicker {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.hp-section-head h2 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hp-section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Bento feature grid */
.hp-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.hp-bento .card {
    padding: 1.75rem;
    border-radius: var(--hp-radius);
}

.hp-bento .card:nth-child(2n) {
    animation: floatYSmall 7s ease-in-out infinite;
}

.hp-bento-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.hp-bento-media {
    border-radius: 1rem;
    min-height: 10rem;
    background: linear-gradient(145deg, var(--primary-soft) 0%, #e0f2fe 100%);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    opacity: 0.85;
    overflow: hidden;
    position: relative;
    opacity: 1;
}

.hp-bento-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05);
}

.hp-bento-media-overlay {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(30, 58, 138, 0.8);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
}

/* Portals */
.hp-portals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.hp-portal-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hp-portal-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-portal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hp-shadow-sm);
}

.hp-portal-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.hp-portal-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.hp-portal-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* CTA panel — sapphire → teal (no black) */
.hp-cta-panel {
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 38%, #0f766e 100%);
    box-shadow: 0 28px 56px -16px rgba(30, 64, 175, 0.45);
    position: relative;
    overflow: hidden;
}

.hp-cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(500px 280px at 10% 0%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(400px 200px at 90% 100%, rgba(201, 162, 39, 0.15), transparent);
    pointer-events: none;
}

.hp-cta-panel > * {
    position: relative;
    z-index: 1;
}

.hp-cta-panel h2 {
    color: #fff;
    font-size: 1.65rem;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.hp-cta-panel p {
    opacity: 0.92;
    max-width: 26rem;
    margin: 0 auto 1.75rem;
    font-size: 1rem;
    line-height: 1.6;
}

.hp-cta-panel .btn {
    background: #fff;
    color: var(--primary-deep);
    font-weight: 700;
    padding: 0.9rem 2.25rem;
    border: none;
}

.hp-cta-panel .btn:hover {
    background: var(--accent-soft);
    color: var(--ink);
}

.hp-integrations {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.hp-icon-cloud {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.hp-icon-chip {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    box-shadow: var(--hp-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-icon-chip i {
    color: var(--primary);
}

.hp-icon-chip:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow);
}

.hp-testimonials {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.hp-story-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.hp-story-track {
    display: inline-flex;
    gap: 1rem;
    width: max-content;
    animation: hpMarquee 28s linear infinite;
}

.hp-story-card {
    min-width: 22rem;
    max-width: 22rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.15rem;
    background: #fff;
    box-shadow: var(--hp-shadow-sm);
}

.hp-story-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.45rem;
    color: var(--primary-deep);
}

.hp-story-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* About strip */
.hp-about {
    background: linear-gradient(180deg, var(--bg-warm) 0%, #fff 100%);
    border-top: 1px solid var(--border);
}

.hp-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hp-about-card {
    padding: 1.75rem;
    border-radius: var(--hp-radius);
    background: #fff;
    border: 1px solid var(--border);
}

.hp-about-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.hp-about-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.module-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hpMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatYSmall {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.demo-register-wrap { max-width: 44rem; margin: 0 auto; }
.demo-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 2.25rem 2rem;
    box-shadow: var(--hp-shadow-sm);
}
.demo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 640px) {
    .demo-form-row { grid-template-columns: 1fr; }
}
.demo-form-group { margin-bottom: 1rem; }
.demo-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.demo-req { color: #ef4444; }
.demo-form input, .demo-form select, .demo-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
}
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(29 78 216 / 0.18);
}
.demo-form textarea { resize: vertical; min-height: 5rem; }
.demo-form-hp {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.demo-form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    min-height: 1.25rem;
}
.demo-form-note.is-error { color: #dc2626; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-content { text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hp-stat-row { justify-content: center; }
    .hp-float-card.fc-a { right: 0.5rem; }
    .hp-float-card.fc-b { left: 0.5rem; }
    .hp-hero-overlay { left: 0.7rem; bottom: 0.7rem; }
    .hp-bento { grid-template-columns: 1fr; }
    .hp-bento-wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    .hp-portals-grid { grid-template-columns: 1fr; }
    .hp-about-grid { grid-template-columns: 1fr; }
    .hp-icon-cloud { grid-template-columns: repeat(2, 1fr); }
    .hp-story-card {
        min-width: 18rem;
        max-width: 18rem;
    }
}

@media (max-width: 768px) {
    .hp-top-ribbon { height: 1.8rem; }
    .navbar { top: 1.8rem; }
    .hp-nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem 1.25rem;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        gap: 0.25rem;
    }
    .nav-links.is-open { display: flex; }
    .nav-links .nav-link:not(.hp-nav-cta) {
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
    }
    .nav-links .hp-nav-cta {
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }
    .navbar .container { position: relative; }
    .hero { padding-top: 8rem; }
    .section-padding { padding: 3.5rem 0; }
    .hp-icon-cloud { grid-template-columns: 1fr; }
    .hp-story-card {
        min-width: 16rem;
        max-width: 16rem;
    }
}

@media (min-width: 769px) {
    .nav-links { display: flex !important; }
}

/* -----------------------------
   Government-style homepage override (v6)
------------------------------ */
.gov-strip {
    background: #0f3f68;
    color: #fff;
    font-size: 0.78rem;
    border-bottom: 3px solid #1b75bc;
}

.gov-strip-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.gov-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #d8e4ef;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #083b67;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: #0b4f8a;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1b2d42;
}

.main-nav a {
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
}

.main-nav a:hover {
    background: #eaf3fb;
    color: #083b67;
}

.login-btn {
    background: #0b4f8a;
    color: #fff !important;
    padding: 0.6rem 1rem !important;
}

.menu-toggle {
    display: none;
    border: 1px solid #d8e4ef;
    background: #fff;
    border-radius: 8px;
    width: 38px;
    height: 38px;
}

.hero {
    padding: 2.2rem 0 !important;
    border-bottom: 1px solid #d8e4ef;
    background: linear-gradient(180deg, #f8fcff 0%, #fff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 2rem;
}

.kicker {
    color: #0b4f8a;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem) !important;
    margin-bottom: 0.8rem !important;
    color: #1b2d42 !important;
}

.hero p {
    color: #5b6d84;
    max-width: 640px;
}

.hero-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #0b4f8a !important;
    color: #fff !important;
}

.btn-outline {
    border-color: #0b4f8a !important;
    color: #0b4f8a !important;
    background: #fff !important;
}

.hero-visual img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d8e4ef;
}

.stats-strip {
    background: #fff;
    border-bottom: 1px solid #d8e4ef;
    padding: 1.2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.stat-card {
    border: 1px solid #d8e4ef;
    border-radius: 10px;
    background: #f9fcff;
    padding: 1rem;
    text-align: center;
}

.stat-card h3 {
    font-size: 1.5rem;
    color: #083b67;
}

.stat-card p {
    font-size: 0.86rem;
    color: #5b6d84;
}

.section {
    padding: 2.5rem 0;
}

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

.section-head {
    margin-bottom: 1.2rem;
    text-align: center;
}

.section-head.left {
    text-align: left;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
    margin-bottom: 0.35rem;
}

.section-head p {
    color: #5b6d84;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.module-card {
    border: 1px solid #d8e4ef;
    border-radius: 10px;
    background: #fff;
    padding: 1rem;
}

.module-card i {
    color: #0b4f8a;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.module-card h3 {
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.module-card p {
    color: #5b6d84;
    font-size: 0.92rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    align-items: center;
}

.image-wrap img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d8e4ef;
}

.bullet-list {
    margin-top: 0.8rem;
    padding-left: 1rem;
}

.bullet-list li {
    margin-bottom: 0.4rem;
}

.chip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
}

.chip {
    border: 1px solid #d8e4ef;
    border-radius: 999px;
    padding: 0.52rem 0.85rem;
    background: #fff;
    color: #1b2d42;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.chip i {
    color: #083b67;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.process-card {
    border: 1px solid #d8e4ef;
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
}

.process-card strong {
    color: #0b4f8a;
    font-size: 1.1rem;
}

.process-card h3 {
    margin: 0.35rem 0;
    font-size: 1rem;
}

.process-card p {
    color: #5b6d84;
    font-size: 0.9rem;
}

.narrow {
    max-width: 860px;
}

.demo-form {
    background: #fff;
    border: 1px solid #d8e4ef;
    border-radius: 10px;
    padding: 1.1rem;
}

.demo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.demo-group {
    margin-bottom: 0.7rem;
}

.demo-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b6d84;
}

.req {
    color: #c62828;
}

.demo-group input,
.demo-group select,
.demo-group textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d8e4ef;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-family: inherit;
}

.demo-group textarea {
    min-height: 90px;
    resize: vertical;
}

.demo-group input:focus,
.demo-group select:focus,
.demo-group textarea:focus {
    border-color: #0b4f8a;
    outline: none;
}

.full {
    width: 100%;
}

.demo-note {
    margin-top: 0.7rem;
    font-weight: 700;
    color: #0b4f8a;
    min-height: 1.2rem;
}

.demo-note.is-error {
    color: #c62828;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.policy-card {
    border: 1px solid #d8e4ef;
    border-radius: 10px;
    background: #fff;
    padding: 1rem;
}

.policy-card h3 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.policy-card p {
    color: #5b6d84;
    font-size: 0.9rem;
}

.site-footer {
    background: #fff;
    border-top: 1px solid #d8e4ef;
    padding: 2.2rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1rem;
}

.footer-grid h4 {
    margin-bottom: 0.5rem;
}

.footer-grid a,
.footer-grid p {
    display: block;
    margin-bottom: 0.35rem;
    color: #5b6d84;
    font-size: 0.9rem;
}

.copyright {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #d8e4ef;
    text-align: center;
    color: #5b6d84;
    font-size: 0.86rem;
}

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

    .main-nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 1rem;
        right: 1rem;
        background: #fff;
        border: 1px solid #d8e4ef;
        border-radius: 10px;
        padding: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

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

    .hero-grid,
    .two-col,
    .module-grid,
    .chip-grid,
    .process-grid,
    .stats-grid,
    .policy-grid,
    .footer-grid,
    .demo-row {
        grid-template-columns: 1fr;
    }

    .site-header .container {
        position: relative;
    }

    .gov-strip-inner {
        justify-content: center;
    }
}
