:root {
    --bg: #050816;
    --bg-alt: #070b20;
    --bg-soft: #0b1028;
    --primary: #4f46e5;
    --primary-soft: rgba(79, 70, 229, 0.15);
    --accent: #22c55e;
    --text: #f9fafb;
    --muted: #9ca3af;
    --border: #1f2937;
    --danger: #f97373;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-soft: 0 24px 70px rgba(0,0,0,.55);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", Segoe UI, sans-serif;
    background: radial-gradient(circle at top left, #111827 0, #020617 45%, #000 100%);
    color: var(--text);
    line-height: 1.6;
}

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

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

/* Layout */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(3,7,18,.95), rgba(3,7,18,.88) 60%, transparent);
    border-bottom: 1px solid rgba(31,41,55,0.6);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    justify-content: flex-start;
}

.brand svg {
    display: block;
}

.brand-logo {
    width: 170px;
    height: 36px;
}

.brand-text-title {
    font-weight: 700;
    letter-spacing: .02em;
    font-size: 1.1rem;
}

.brand-text-sub {
    font-size: .75rem;
    color: var(--muted);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: .9rem;
}

.nav-links a {
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.btn {
    border-radius: 999px;
    padding: .6rem 1.2rem;
    font-size: .85rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #f9fafb;
    box-shadow: 0 14px 40px rgba(79,70,229,.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 55px rgba(79,70,229,.58);
}

.btn-ghost {
    border-color: rgba(148,163,184,.35);
    background: rgba(15,23,42,.7);
    color: var(--muted);
}

.btn-ghost:hover {
    border-color: rgba(148,163,184,.6);
    color: var(--text);
    background: rgba(15,23,42,.95);
}

/* Hero */

.hero {
    padding: 3rem 0 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .2rem .55rem .2rem .25rem;
    border-radius: 999px;
    border: 1px solid rgba(63,63,70,.7);
    background: radial-gradient(circle at 0 50%, rgba(34,197,94,.16), transparent 60%);
    font-size: .75rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.hero-pill span.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    background: rgba(34,197,94,.12);
    color: #bbf7d0;
}

.hero-title {
    font-size: clamp(2.3rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 1rem;
}

.hero-title span.gradient {
    background: linear-gradient(120deg, #4f46e5, #22c55e, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: var(--muted);
    font-size: .98rem;
    max-width: 34rem;
}

.hero-cta {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-meta {
    margin-top: .6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: .78rem;
    color: var(--muted);
}

.hero-meta strong {
    color: #e5e7eb;
}

.hero-card {
    border-radius: var(--radius-xl);
    padding: 1.7rem 1.6rem;
    background: radial-gradient(circle at top left, rgba(79,70,229,.38), transparent 60%), radial-gradient(circle at bottom right, rgba(15,118,110,.45), transparent 55%), linear-gradient(145deg, #020617 0, #020617 45%, #020617 100%);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148,163,184,.18);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0 0, rgba(56,189,248,0.13), transparent 60%);
    opacity: .7;
    pointer-events: none;
}

.hero-card-inner {
    position: relative;
    z-index: 1;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-card-title {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--muted);
}

.hero-score {
    display: flex;
    align-items: baseline;
    gap: .35rem;
}

.hero-score-main {
    font-size: 2.3rem;
    font-weight: 700;
}

.hero-score-label {
    font-size: .78rem;
    padding: .18rem .5rem;
    border-radius: 999px;
    background: rgba(22,163,74,.16);
    color: #bbf7d0;
}

.hero-score-chip {
    font-size: .75rem;
    padding: .16rem .55rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.4);
    color: var(--muted);
}

.hero-signals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin: 1rem 0 1.4rem;
}

.signal {
    border-radius: 12px;
    padding: .45rem .65rem;
    background: rgba(15,23,42,.8);
    border: 1px solid rgba(31,41,55,.9);
    font-size: .78rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signal span.label {
    color: var(--muted);
}

.signal span.value {
    font-weight: 500;
}

.signal span.value.good {
    color: #4ade80;
}

.signal span.value.warn {
    color: #facc15;
}

.signal span.value.bad {
    color: var(--danger);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: .7rem;
}

.hero-badge {
    padding: .18rem .55rem;
    border-radius: 999px;
    background: rgba(15,23,42,.9);
    border: 1px dashed rgba(94,234,212,.4);
    color: #a5f3fc;
}

.hero-footnote {
    margin-top: 1rem;
    font-size: .7rem;
    color: var(--muted);
}

/* Sections */

section {
    padding: 2.75rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.section-kicker {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--muted);
    margin-bottom: .5rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.section-description {
    font-size: .95rem;
    color: var(--muted);
    max-width: 34rem;
    margin: 0 auto;
}

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

.card {
    background: radial-gradient(circle at top, rgba(15,23,42,.85), rgba(15,23,42,.95));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(31,41,55,.9);
    padding: 1.4rem 1.4rem 1.3rem;
    box-shadow: 0 18px 45px rgba(0,0,0,.65);
}

.card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .6rem;
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(15,118,110,.13);
}

.card-title {
    font-size: .96rem;
    font-weight: 600;
}

.card-body {
    font-size: .84rem;
    color: var(--muted);
}

.tag-row {
    margin-top: .7rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.tag {
    border-radius: 999px;
    padding: .15rem .55rem;
    font-size: .7rem;
    border: 1px solid rgba(55,65,81,.9);
    color: #9ca3af;
}

/* Pricing */

.pricing {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: flex-start;
}

.pricing-copy p {
    color: var(--muted);
    font-size: .94rem;
    margin-bottom: .7rem;
}

.pricing-copy ul {
    list-style: none;
    margin-top: .5rem;
}

.pricing-copy li {
    font-size: .86rem;
    color: var(--muted);
    margin-bottom: .3rem;
}

.pricing-copy li::before {
    content: "• ";
    color: #a855f7;
}

.pricing-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(55,65,81,.9);
    background: radial-gradient(circle at top left, rgba(79,70,229,.2), transparent 60%), rgba(15,23,42,.96);
    padding: 1.6rem 1.5rem 1.4rem;
    box-shadow: var(--shadow-soft);
}

.pricing-badge {
    font-size: .75rem;
    color: #bfdbfe;
    margin-bottom: .4rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: .25rem;
}

.pricing-price-main {
    font-size: 2rem;
    font-weight: 700;
}

.pricing-price-sub {
    font-size: .82rem;
    color: var(--muted);
}

.pricing-divider {
    height: 1px;
    background: radial-gradient(circle, rgba(148,163,184,.7), transparent);
    border-radius: 999px;
    margin: 1rem 0 .9rem;
}

.pricing-list {
    list-style: none;
    margin-bottom: 1rem;
}

.pricing-list li {
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: .45rem;
    display: flex;
    gap: .4rem;
}

.pricing-list li::before {
    content: "✓";
    font-size: .8rem;
    color: var(--accent);
}

.pricing-note {
    font-size: .74rem;
    color: var(--muted);
}

/* How it works */

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

.step {
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.1rem .95rem;
    border: 1px dashed rgba(55,65,81,.9);
    background: rgba(15,23,42,.85);
}

.step-label {
    font-size: .75rem;
    color: var(--muted);
    margin-bottom: .25rem;
}

.step-title {
    font-size: .9rem;
    margin-bottom: .25rem;
}

.step-body {
    font-size: .8rem;
    color: var(--muted);
}

/* Use cases */

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

.usecase-title {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: .35rem;
}

.usecase-list {
    list-style: none;
    margin-top: .3rem;
}

.usecase-list li {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .3rem;
}

.usecase-list li::before {
    content: "→ ";
    color: #22c55e;
}

/* FAQ */

.faq {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-radius: 14px;
    border: 1px solid rgba(31,41,55,.9);
    background: rgba(15,23,42,.9);
    margin-bottom: .7rem;
    overflow: hidden;
}

.faq-question {
    padding: .9rem 1rem;
    font-size: .85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question span {
    color: #e5e7eb;
}

.faq-toggle {
    font-size: 1rem;
    color: var(--muted);
}

.faq-answer {
    padding: 0 1rem .8rem;
    font-size: .8rem;
    color: var(--muted);
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Footer */

footer {
    border-top: 1px solid rgba(31,41,55,.8);
    padding: 1.5rem 0 2.4rem;
    font-size: .78rem;
    color: var(--muted);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--text);
}

/* Responsive */

@media (max-width: 900px) {
    .hero-grid,
    .pricing,
    .steps,
    .usecases,
    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 2rem;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        gap: .4rem;
    }
}

@media (max-width: 640px) {
    .wrapper {
        padding: 0 1.1rem;
    }

    .hero-card {
        margin-top: 1.4rem;
    }

    .hero-title {
        font-size: 2.05rem;
    }

    section {
        padding: 2.1rem 0;
    }
}
