:root {
    --portal-ink: #1f2937;
    --portal-deep: #111827;
    --portal-slate: #64748b;
    --portal-border: #d8e2ee;
    --portal-surface: #ffffff;
    --portal-soft: #f4f7fb;
    --portal-purple: #7658c7;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    background: var(--portal-soft);
    color: var(--portal-ink);
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0.85rem 0 !important;
    background: rgba(31, 41, 55, 0.98) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible !important;
}

.nav {
    margin-bottom: 0 !important;
}

.logo-img {
    height: 48px !important;
}

.homepage-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.homepage-nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.homepage-nav-links a,
.nav-login {
    color: #dbe4f0;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.homepage-nav-links a:hover,
.nav-login:hover {
    color: #ffffff;
}

.nav-buttons {
    align-items: center !important;
    flex-direction: row !important;
    gap: 0.8rem !important;
}

.nav-get-started,
.hero-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    color: var(--portal-ink) !important;
    border: 1px solid #ffffff !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-get-started {
    padding: 0.65rem 1.15rem;
    font-size: 0.9rem;
}

.nav-get-started:hover,
.hero-primary-action:hover {
    background: #e8eef7 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.mobile-nav-toggle {
    display: none;
    width: 42px;
    height: 38px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.mobile-nav-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: #ffffff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-new {
    position: relative;
    isolation: isolate;
    min-height: 620px;
    padding: 5.5rem 0 6rem !important;
    background-color: var(--portal-ink) !important;
    background-image: radial-gradient(circle, rgba(219, 228, 240, 0.2) 1px, transparent 1.5px) !important;
    background-size: 24px 24px !important;
    overflow: hidden;
}

.hero-new::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(31, 41, 55, 0.92) 0%, rgba(31, 41, 55, 0.72) 52%, rgba(31, 41, 55, 0.35) 100%);
    content: "";
}

.hero-new .container {
    position: relative;
    z-index: 1;
    gap: 4rem !important;
}

.hero-new h1 {
    max-width: 690px;
    color: #ffffff !important;
    font-size: clamp(2.5rem, 5vw, 4.7rem) !important;
    letter-spacing: -0.055em;
    line-height: 1.02 !important;
}

.hero-new .lead {
    max-width: 570px;
    color: #dbe4f0 !important;
    font-size: 1.12rem !important;
    line-height: 1.7;
}

.hero-new .hero-image {
    min-height: 0 !important;
    justify-content: center !important;
}

.hero-new .hero-image img {
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36) !important;
}

.cta-buttons {
    gap: 0.8rem !important;
}

.hero-primary-action {
    padding: 0.9rem 1.5rem !important;
}

.hero-secondary-action {
    padding: 0.9rem 1.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.hero-secondary-action:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

.hero-subtext-container {
    padding: 1.15rem 0 !important;
    background: var(--portal-deep) !important;
}

.hero-subtext-container .subtext {
    margin-bottom: 0;
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.04em;
}

.section {
    padding: 6.5rem 0 !important;
}

.section-alt {
    background: var(--portal-soft) !important;
}

.section-dark {
    background: var(--portal-ink) !important;
}

.section h2,
.final-cta h2 {
    color: var(--portal-ink);
    font-size: clamp(2rem, 4vw, 3rem) !important;
    letter-spacing: -0.04em;
}

.section-dark h2,
.final-cta h2 {
    color: #ffffff !important;
}

.section > .container > h2 + p {
    color: var(--portal-slate) !important;
}

.how-step,
.quality-item,
.audience-card,
.testimonial-single,
.faq-item,
.demo-preview,
.example-lead {
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
}

.how-step,
.quality-item,
.audience-card,
.faq-item {
    background: var(--portal-surface);
}

.how-step-number {
    background: var(--portal-ink) !important;
}

.how-step-image {
    border-color: var(--portal-border) !important;
}

.quality-item h3,
.audience-card h3 {
    color: var(--portal-ink) !important;
}

.quality-item p,
.audience-card p,
.how-step p,
.faq-answer {
    color: var(--portal-slate) !important;
}

.before-box,
.after-box {
    border-width: 1px !important;
    border-radius: 18px !important;
}

.before-box {
    background: #fff7f7 !important;
}

.after-box {
    background: #f2fbf6 !important;
}

.roi-card {
    background: linear-gradient(145deg, #334155, #1f2937) !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none !important;
}

.pricing-card {
    border: 1px solid var(--portal-border);
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
}

.pricing-card.featured,
.pricing-badge {
    border-color: var(--portal-ink) !important;
    background: var(--portal-ink) !important;
}

.pricing-header h3,
.price {
    color: var(--portal-ink) !important;
}

.pricing-toggle {
    color: var(--portal-ink) !important;
}

.footer {
    background: var(--portal-deep) !important;
}

.footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 820px) {
    .header .container {
        padding: 0 16px;
    }

    .homepage-nav {
        gap: 0.75rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .homepage-nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        background: var(--portal-deep);
        box-shadow: 0 16px 35px rgba(15, 23, 42, 0.25);
    }

    .homepage-nav-links.is-open {
        display: flex;
    }

    .homepage-nav-links a {
        padding: 0.8rem 0.75rem;
    }

    .nav-login {
        display: none;
    }

    .nav-get-started {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }

    .hero-new {
        min-height: 0;
        padding: 4.5rem 0 !important;
    }

    .hero-new .container {
        grid-template-columns: 1fr !important;
    }

    .hero-new .hero-text {
        text-align: left;
    }

    .hero-new .hero-image {
        margin-top: 1rem;
    }
}

@media (max-width: 520px) {
    .logo-img {
        max-width: 170px;
        height: auto !important;
    }

    .nav-get-started {
        font-size: 0;
    }

    .nav-get-started::after {
        content: "Start";
        font-size: 0.8rem;
    }

    .hero-new h1 {
        font-size: 2.65rem !important;
    }

    .cta-buttons {
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}
