:root {
    color-scheme: light;
    font-family: 'Poppins', sans-serif;
    --bg: #f5f7ff;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #111111;
    --text-muted: #5d6470;
    --primary: #2563eb;
    --primary-soft: #dbeafe;
    --accent: #1d4ed8;
    --accent-soft: #eff6ff;
    --border: rgba(16,24,40,.08);
    --shadow: 0 35px 120px rgba(16,24,40,.08);
    --radius: 1.75rem;
    --gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --transition: 250ms ease;
}

:root[data-theme='dark'] {
    color-scheme: dark;
    --bg: #050816;
    --surface: #0f172a;
    --surface-soft: #111827;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #7dd3fc;
    --primary-soft: rgba(125,211,252,.15);
    --accent: #c084fc;
    --accent-soft: rgba(192,132,252,.15);
    --border: rgba(148,163,184,.12);
    --shadow: 0 35px 120px rgba(0,0,0,.38);
    --radius: 1.75rem;
    --gradient: linear-gradient(135deg, #7dd3fc 0%, #7c3aed 100%);
    --transition: 250ms ease;
}

* {
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
    color: var(--text);
    line-height: 1.7;
    font-family: 'Poppins', sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,.78);
    border-bottom: 1px solid rgba(16,24,40,.08);
    transition: background var(--transition), border-color var(--transition);
}

:root[data-theme='dark'] .site-header {
    background: rgba(15,23,42,.88);
    border-color: rgba(148,163,184,.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text);
}

.brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: var(--primary);
    color: white;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-open {
    display: flex !important;
}

.menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: transparent;
    padding: .5rem;
    gap: .25rem;
    flex-direction: column;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(.5rem) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-.5rem) rotate(-45deg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.1rem;
    border-radius: 999px;
    background: var(--gradient);
    color: white;
    font-weight: 600;
}

.theme-toggle {
    border: none;
    background: var(--surface);
    color: var(--text);
    padding: .8rem 1rem;
    border-radius: 999px;
    box-shadow: 0 15px 40px rgba(16,24,40,.08);
}

.section {
    padding: 6rem 0;
}

.section-header {
    display: grid;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.section-header .eyebrow {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    font-size: .78rem;
}

.section-header h1,
.section-header h2,
.section-header h3 {
    margin: 0;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 4rem;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.hero-highlights span {
    padding: .6rem .95rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .9rem;
    font-weight: 600;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    align-items: center;
}

.hero-copy {
    max-width: 32rem;
}

.hero-copy h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.02;
    margin: .5rem 0 1rem;
    letter-spacing: -.04em;
}

.hero-copy p {
    max-width: 36rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-panel {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.75));
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-panel h2 {
    margin: .75rem 0 1rem;
}

.hero-panel span {
    color: var(--primary);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.glass-card {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.9);
    backdrop-filter: blur(18px);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: .35;
}

.hero-shape-1 {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -40px;
    background: var(--accent);
}

.hero-shape-2 {
    width: 120px;
    height: 120px;
    bottom: 30px;
    left: 10%;
    background: var(--primary);
}

.hero-shape-3 {
    width: 260px;
    height: 260px;
    bottom: -90px;
    right: -110px;
    background: var(--primary-soft);
}

.section-grid {
    display: grid;
    gap: 1.5rem;
}

.services-grid,
.dynamic-grid,
.blog-grid,
.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.card,
.blog-card,
.service-card,
.newsletter-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.info-card:hover,
.card:hover,
.blog-card:hover,
.service-card:hover,
.newsletter-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
}

.section-card {
    display: grid;
    gap: 1.25rem;
    min-height: 220px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.section-card-copy h3 {
    margin: .65rem 0 .75rem;
    font-size: 1.35rem;
}

.section-card-copy p {
    color: var(--text-muted);
    margin: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem 1rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,87,255,.2);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.link-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--primary);
    font-weight: 700;
}

.section-dynamic .section-card {
    display: grid;
    gap: 1.25rem;
    min-height: 320px;
}

.section-card-copy h3 {
    margin: 0;
    font-size: 1.4rem;
}

.section-card p,
.blog-card p,
.service-card p {
    color: var(--text-muted);
}

.newsletter-card,
.cta-card {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
    box-shadow: var(--shadow);
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.subscribe-form input {
    flex: 1;
    min-width: 220px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
}

.subscribe-form button {
    min-width: 12rem;
}

.site-footer {
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,251,255,.98));
    border-top: 1px solid var(--border);
}

:root[data-theme='dark'] .site-footer {
    background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(2,6,23,.98));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr .7fr;
    gap: 2rem;
    align-items: start;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--primary);
    font-weight: 600;
}

.footer-links {
    display: grid;
    gap: .75rem;
}

.footer-links h4 {
    margin: 0 0 .35rem;
    font-size: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.brand-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.brand-block h3 {
    margin: 0 0 .35rem;
}

.brand-block p {
    margin: 0;
    color: var(--text-muted);
    max-width: 24rem;
}

.footer-mark {
    background: var(--primary);
    color: white;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero-inner,
    .newsletter-card,
    .cta-card,
    .services-grid,
    .dynamic-grid,
    .blog-grid,
    .service-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 1.5rem;
        box-shadow: var(--shadow);
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header-actions {
        gap: .5rem;
    }
    .header-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-inner,
    .footer-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero-copy h1 {
        font-size: 2.2rem;
    }
}
