:root {
    --bg: #f4f7fb;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --text: #0f172a;
    --muted: #52607a;
    --border: rgba(37, 99, 235, 0.14);
    --primary: #2563eb;
    --primary-deep: #0b1f3a;
    --accent: #6d28d9;
    --success: #0ea5a4;
    --shadow: 0 24px 80px rgba(11, 31, 58, 0.12);
    --gradient: linear-gradient(135deg, #2563eb 0%, #6d28d9 100%);
}

body[data-theme='dark'] {
    --bg: #06111f;
    --surface: rgba(10, 21, 39, 0.84);
    --surface-strong: #08182d;
    --text: #e5eefb;
    --muted: #9fb0cb;
    --border: rgba(125, 156, 217, 0.16);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 28%),
        radial-gradient(circle at left center, rgba(109, 40, 217, 0.10), transparent 25%),
        var(--bg);
}

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

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

main {
    overflow: clip;
}

.container {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
}

.container-wide {
    width: min(1400px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(11, 31, 58, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: #fff;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-family: 'Poppins', sans-serif;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
}

.brand small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--gradient);
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.3);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-nav a,
.theme-toggle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav .is-active,
.theme-toggle:hover {
    color: #fff;
}

.theme-toggle,
.button,
.button-secondary,
.nav-toggle {
    cursor: pointer;
}

.theme-toggle {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.8rem 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: #fff;
}

.hero {
    padding: 0 0 4rem;
}

.hero-band,
.full-bleed-band {
    position: relative;
    background:
        linear-gradient(135deg, rgba(11, 31, 58, 0.96), rgba(20, 59, 117, 0.88)),
        var(--gradient);
    overflow: hidden;
}

.hero-band::before,
.full-bleed-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.10), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.10), transparent 22%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, auto, 56px 56px, 56px 56px;
    pointer-events: none;
}

.hero-grid,
.split-grid,
.contact-grid,
.story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
}

.hero-grid {
    min-height: 82vh;
    padding: 6.5rem 0 5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    margin: 0 0 1rem;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    max-width: 12ch;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.75;
}

.hero-copy p {
    font-size: 1.08rem;
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.82);
}

.hero-copy h1,
.hero-copy .eyebrow {
    color: #fff;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.28);
}

.button-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.button:hover,
.button-secondary:hover {
    transform: translateY(-2px);
}

.hero-visual,
.info-card,
.card,
.stat-card,
.quote-card,
.cta-panel,
.panel,
.contact-panel,
.policy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 28px;
}

.hero-visual {
    padding: 1.5rem;
    backdrop-filter: blur(14px);
}

.visual-panel {
    background:
        linear-gradient(160deg, rgba(11, 31, 58, 0.95), rgba(18, 47, 94, 0.9)),
        var(--gradient);
    color: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    min-height: 460px;
    position: relative;
    overflow: hidden;
}

.visual-photo {
    min-height: 520px;
}

.visual-photo > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
}

.media-frame {
    border-radius: 24px;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.media-frame img,
.page-media img,
.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-panel::before,
.visual-panel::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.visual-panel::before {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -40px;
}

.visual-panel::after {
    width: 180px;
    height: 180px;
    bottom: -80px;
    left: -40px;
}

.dashboard-card {
    position: relative;
    display: grid;
    gap: 1rem;
    z-index: 1;
    align-content: end;
    min-height: 100%;
}

.dashboard-strip,
.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric,
.dashboard-mini,
.dashboard-main {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
}

.dashboard-main {
    min-height: 220px;
}

.chart {
    margin-top: 1rem;
    height: 120px;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.3), transparent),
        repeating-linear-gradient(to right, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12) 1px, transparent 1px, transparent 48px),
        repeating-linear-gradient(to top, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 36px);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.chart::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0 18%, rgba(255, 255, 255, 0.85) 18% 22%, transparent 22% 100%);
    transform: translateX(-100%);
    animation: sweep 5s linear infinite;
}

@keyframes sweep {
    to {
        transform: translateX(100%);
    }
}

.section {
    padding: 2rem 0 5rem;
}

.full-bleed-band .section {
    padding-top: 5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cards-grid,
.stats-grid,
.quotes-grid,
.logo-grid,
.faq-grid,
.mini-grid,
.blog-grid {
    display: grid;
    gap: 1.4rem;
}

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

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

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

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

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

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

.card,
.stat-card,
.quote-card,
.info-card,
.contact-panel,
.panel,
.policy-card {
    padding: 1.6rem;
}

.card-icon,
.number-badge {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1rem;
}

.stat-card strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2.3rem;
    margin-bottom: 0.3rem;
}

.bullet-list,
.link-list,
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.bullet-list li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--muted);
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--gradient);
}

.quote-card {
    position: relative;
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: 0.6rem;
    right: 1rem;
    font-size: 4rem;
    color: rgba(37, 99, 235, 0.12);
    font-family: 'Poppins', sans-serif;
}

.cta-panel {
    padding: 2rem;
    background:
        linear-gradient(160deg, rgba(11, 31, 58, 0.96), rgba(37, 99, 235, 0.92)),
        var(--gradient);
    color: #fff;
}

.cta-panel p,
.cta-panel h2 {
    color: #fff;
}

.page-hero {
    padding: 3.2rem 0 2rem;
}

.page-hero-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
    gap: 1.6rem;
    align-items: stretch;
}

.page-hero .panel {
    padding: 2.2rem;
    background:
        linear-gradient(160deg, rgba(11, 31, 58, 0.96), rgba(37, 99, 235, 0.88)),
        var(--gradient);
    color: #fff;
}

.page-hero .panel p,
.page-hero .panel h1 {
    color: #fff;
    max-width: 16ch;
}

.page-hero .panel p {
    max-width: 64ch;
}

.page-media,
.feature-image {
    border-radius: 28px;
    overflow: hidden;
    min-height: 320px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--surface);
}

.contact-panel form,
.panel form {
    display: grid;
    gap: 1rem;
}

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

label {
    display: grid;
    gap: 0.5rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    background: var(--surface-strong);
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.alert {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(14, 165, 164, 0.12);
    color: #0f766e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.footer-grid,
.footer-bottom {
    display: grid;
    gap: 1.5rem;
}

.site-footer {
    padding: 4rem 0 2rem;
    background: #071224;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
}

.footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.footer-bottom {
    grid-template-columns: 1fr auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
    padding-top: 1.2rem;
    align-items: center;
}

.footer-bottom div {
    display: flex;
    gap: 1rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.09);
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .hero-grid,
    .split-grid,
    .contact-grid,
    .story-grid,
    .page-hero-wrap,
    .cards-grid,
    .quotes-grid,
    .blog-grid,
    .stats-grid,
    .footer-grid,
    .faq-grid,
    .logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 84px;
        left: 1rem;
        right: 1rem;
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(11, 31, 58, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 22px;
        display: none;
    }

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

    .theme-toggle {
        display: none;
    }

    .hero,
    .page-hero {
        padding-top: 3.5rem;
    }

    .hero-grid,
    .split-grid,
    .contact-grid,
    .story-grid,
    .page-hero-wrap,
    .cards-grid,
    .quotes-grid,
    .blog-grid,
    .stats-grid,
    .footer-grid,
    .faq-grid,
    .form-grid,
    .logo-grid,
    .mini-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
    }

    h1 {
        max-width: 100%;
    }

    .section-header {
        align-items: start;
        flex-direction: column;
    }
}
