﻿/* -----------------------------
   Base / reset (lightweight)
-------------------------------- */
:root {
    --bg: #070b14;
    --panel: #0b1220;
    --panel-2: #0a1426;
    --text: #eaf2ff;
    --muted: rgba(234, 242, 255, 0.72);
    --muted-2: rgba(234, 242, 255, 0.55);
    --line: rgba(255, 255, 255, 0.10);
    --brand: #5ef3ff;
    --brand-2: #7c5cff;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    --radius: 16px;
    --radius-lg: 24px;
    --container: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: radial-gradient(1200px 600px at 20% -10%, rgba(94, 243, 255, 0.22), transparent 55%), radial-gradient(900px 500px at 90% 0%, rgba(124, 92, 255, 0.18), transparent 55%), var(--bg);
    color: var(--text);
    line-height: 1.5;
    background-repeat: no-repeat;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

p {
    margin: 0.6rem 0;
    color: var(--muted);
}

h1, h2, h3 {
    margin: 0.4rem 0;
    line-height: 1.12;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.1rem;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 1rem;
    background: #fff;
    color: #000;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
}

    .skip-link:focus {
        left: 1rem;
        z-index: 9999;
    }

/* -----------------------------
   Header / nav
-------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 11, 20, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 24px rgba(124, 92, 255, 0.25);
}

.brand-name {
    color: var(--text);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

    .nav a {
        color: var(--muted);
        padding: 0.5rem 0.55rem;
        border-radius: 10px;
    }

        .nav a:hover {
            background: rgba(255, 255, 255, 0.06);
            color: var(--text);
        }

.nav-cta {
    background: linear-gradient(135deg, rgba(94, 243, 255, 0.20), rgba(124, 92, 255, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text) !important;
}

.nav-toggle {
    display: none;
    appearance: none;
    background: transparent;
    border: 1px solid var(--line);
    padding: 0.85rem 0.5rem;
    border-radius: 8px;
    color: var(--text);
}

.nav-toggle-bars {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    position: relative;
}

    .nav-toggle-bars::before,
    .nav-toggle-bars::after {
        content: "";
        position: absolute;
        left: 0;
        width: 18px;
        height: 2px;
        background: var(--text);
    }

    .nav-toggle-bars::before {
        top: -6px;
    }

    .nav-toggle-bars::after {
        top: 6px;
    }

/* Mobile nav */
@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: 64px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.7rem;
        background: rgba(11, 18, 32, 1);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }

        .nav a {
            padding: 0.75rem 0.8rem;
        }

        .nav.is-open {
            display: flex;
        }
}

/* -----------------------------
   Sections
-------------------------------- */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 60ch;
    margin-bottom: 1.8rem;
}

    .section-head p {
        color: var(--muted);
    }

/* -----------------------------
   Hero
-------------------------------- */
.hero {
    padding: 4rem 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
}

.subhead {
    font-size: 1.05rem;
    max-width: 60ch;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.trust-row {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    color: var(--muted-2);
    font-size: 0.95rem;
}

    .trust-row li {
        padding: 0.35rem 0.6rem;
        border-radius: 999px;
        border: 1px dashed rgba(255,255,255,0.14);
        background: rgba(255,255,255,0.03);
    }

.hero-media {
    margin: 0.6rem 0;
    display: flex;
    justify-content: center;
}

.product-card {
    width: min(420px, 100%);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 0.85rem;
    position: relative;
}

.product-svg {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

.product-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

/* If you previously had overlay styles, ensure these are not set */
.product-badges--top {
    position: static;
    top: auto;
    left: auto;
}

.badge {
    font-size: 0.85rem;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(7, 11, 20, 0.55);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.badge-soft {
    background: linear-gradient(135deg, rgba(94, 243, 255, 0.10), rgba(124, 92, 255, 0.12));
}

/* Mobile hero */
@media (max-width: 820px) {
    .hero {
        padding-top: 2.2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------
   Buttons
-------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-weight: 650;
    letter-spacing: -0.01em;
}

    .btn:hover {
        background: rgba(255,255,255,0.09);
    }

    .btn:focus {
        outline: 2px solid rgba(94, 243, 255, 0.6);
        outline-offset: 2px;
    }

.btn-primary {
    border: 1px solid rgba(255,255,255,0.16);
    background: linear-gradient(135deg, rgba(94, 243, 255, 0.22), rgba(124, 92, 255, 0.22));
}

.btn-ghost {
    background: transparent;
}

.btn-block {
    width: 100%;
}

/* -----------------------------
   Logos
-------------------------------- */
.logos {
    padding: 1.25rem 0 2.25rem;
}

.logos-title {
    color: var(--muted);
    margin: 0 0 0.85rem;
}

.logos-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.logo-pill {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted-2);
    background: rgba(255,255,255,0.03);
}

/* -----------------------------
   Features
-------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.feature {
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

    .feature p {
        margin: 0.45rem 0 0;
    }

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------
   Reviews
-------------------------------- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.review {
    margin: 0;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

    .review blockquote {
        margin: 0;
        color: var(--text);
        font-weight: 600;
        letter-spacing: -0.01em;
    }

    .review figcaption {
        margin-top: 0.7rem;
        color: var(--muted-2);
    }

@media (max-width: 900px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------
   Pricing
-------------------------------- */
.pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    align-items: start;
}

.pricing-card,
.upsell-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    padding: 1.1rem;
    box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

.pricing-top {
    margin-bottom: 0.5rem;
}

.pricing-desc {
    color: var(--muted);
    margin-top: 0.25rem;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin: 0.75rem 0 0.9rem;
}

.price {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.price-note {
    color: var(--muted-2);
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.5rem;
    color: var(--muted);
}

    .pricing-list li {
        padding-left: 1.4rem;
        position: relative;
    }

        .pricing-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            color: rgba(94, 243, 255, 0.9);
        }

.fineprint {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    color: var(--muted-2);
}

.email-form {
    margin-top: 1rem;
}

.label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--muted);
    font-weight: 600;
}

.input-row {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

input[type="email"] {
    flex: 1 1 220px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(7, 11, 20, 0.45);
    color: var(--text);
    padding: 0.75rem 0.85rem;
    outline: none;
}

    input[type="email"]::placeholder {
        color: rgba(234,242,255,0.45);
    }

    input[type="email"]:focus {
        border-color: rgba(94, 243, 255, 0.55);
        box-shadow: 0 0 0 3px rgba(94, 243, 255, 0.12);
    }

.form-help {
    min-height: 1.2rem;
    margin-top: 0.5rem;
    color: var(--muted-2);
}

    .form-help.is-error {
        color: rgba(255, 120, 120, 0.95);
    }

    .form-help.is-success {
        color: rgba(124, 255, 194, 0.95);
    }

.microtrust {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    color: var(--muted-2);
    font-size: 0.95rem;
}

    .microtrust li {
        border: 1px solid var(--line);
        background: rgba(255,255,255,0.02);
        padding: 0.35rem 0.6rem;
        border-radius: 999px;
    }

@media (max-width: 900px) {
    .pricing {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------
   FAQ + Final CTA
-------------------------------- */
.faq {
    display: grid;
    gap: 0.6rem;
    max-width: 80ch;
}

details {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius);
    padding: 0.85rem 0.9rem;
}

summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
}

details p {
    margin: 0.6rem 0 0;
}

.final-cta {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(135deg, rgba(94, 243, 255, 0.10), rgba(124, 92, 255, 0.10));
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

    .final-cta p {
        margin: 0.3rem 0 0;
    }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.4rem 0;
    color: var(--muted-2);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

    .footer-links a {
        color: var(--muted-2);
    }

        .footer-links a:hover {
            color: var(--text);
        }

.code-card {
    margin: 1.1rem 0 0;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0, 0, 0, 0.22);
    overflow: auto;
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

    .code-card code {
        display: block;
        color: rgba(234, 242, 255, 0.86);
        font-size: 0.92rem;
        line-height: 1.45;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    }

.product-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px; /* matches the previous SVG rounding */
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.18);
}

/* Screen-reader-only utility (for figcaption) */
.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;
}

/* Fix default figure margins (prevents mobile layout overflow) */
figure.product-card {
    margin: 0;
}

/* Extra safety: ensure the media column can't overflow */
.hero-media {
    width: 100%;
    min-width: 0;
}

.product-card {
    max-width: 100%;
}

figure {
    margin: 0;
}

    /* (Or if you prefer to scope it) */
    figure.product-card {
        margin: 0;
    }

/* Ensure the media column can shrink properly on small screens */
.hero-media {
    min-width: 0;
    width: 100%;
}

.product-card {
    max-width: 100%;
}

/* Prevent grid overflow by allowing columns to shrink properly */
.hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

/* Allow grid children to shrink (critical for <pre>, images, etc.) */
.hero-copy,
.hero-media {
    min-width: 0;
}

/* Make sure code blocks never force horizontal overflow */
.code-card {
    max-width: 100%;
    overflow-x: auto;
}

code {
    white-space: pre;
}

@media (max-width: 820px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 0.9rem;
    background: rgba(7, 11, 20, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    display: none; /* shown via JS */
}

.cookie-banner__inner {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner__text {
    margin: 0;
    color: var(--muted);
    max-width: 80ch;
}

    .cookie-banner__text a {
        color: var(--text);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.cookie-banner.is-visible {
    display: block;
}

.code-demo-grid {
    display: grid;
    grid-template-columns: 41% 59%;
    gap: 2rem;
}

@media (max-width: 820px) {
    .code-demo-grid {
        grid-template-columns: 100%;
    }
}

.feature-grid a:hover {
    text-decoration: none;
    color: rgb(210,210,210);
}
