:root {
    --landing-border: rgba(140, 167, 255, 0.18);
    --landing-text: #f4f7ff;
    --landing-muted: #aab4d8;
    --landing-cyan: #4de3ff;
    --landing-violet: #8b5cf6;
    --landing-pink: #d946ef;
    --landing-success: #58f2b2;
    --landing-shadow: 0 35px 90px rgba(2, 8, 23, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.landing-body {
    margin: 0;
    min-height: 100vh;
    color: var(--landing-text);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(77, 227, 255, 0.22), transparent 24%),
        radial-gradient(circle at 85% 12%, rgba(217, 70, 239, 0.22), transparent 26%),
        radial-gradient(circle at 70% 55%, rgba(30, 200, 255, 0.12), transparent 22%),
        linear-gradient(180deg, #050a15 0%, #07111f 45%, #09162a 100%);
}

body.landing-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 92%);
}

.landing-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
    position: relative;
    z-index: 1;
}

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 24px;
    border: 1px solid var(--landing-border);
    background: rgba(8, 18, 35, 0.7);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(6, 15, 34, 0.24);
    position: relative;
    z-index: 10;
}

.landing-brand img {
    display: block;
    height: 46px;
}

.landing-nav {
    display: inline-flex;
    align-items: center;
    gap: 22px;
}

.landing-nav a,
.landing-link-button {
    color: var(--landing-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.landing-nav a:hover,
.landing-link-button:hover {
    color: var(--landing-text);
}

.landing-header-actions,
.hero-actions,
.cta-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.landing-button:hover {
    transform: translateY(-1px);
}

.landing-button--primary {
    color: #04101f;
    background: linear-gradient(135deg, var(--landing-cyan) 0%, #8ce6ff 100%);
    box-shadow: 0 18px 38px rgba(77, 227, 255, 0.24);
}

.landing-button--secondary,
.landing-button--ghost {
    color: var(--landing-text);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 40px;
    align-items: center;
    padding: 72px 0 48px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(77, 227, 255, 0.22);
    background: rgba(77, 227, 255, 0.08);
    color: var(--landing-cyan);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.ops-copy h2,
.cta-card h2 {
    margin: 18px 0;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(3.2rem, 7vw, 6rem);
}

.hero-copy h1 span {
    color: var(--landing-cyan);
}

.hero-description,
.section-heading p,
.ops-copy p,
.cta-card p {
    margin: 0;
    max-width: 62ch;
    color: var(--landing-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.hero-metrics {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hero-metric,
.ops-points > div {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(12, 23, 44, 0.82), rgba(8, 17, 32, 0.92));
    box-shadow: 0 20px 45px rgba(3, 10, 23, 0.22);
}

.hero-metric strong,
.service-card h3,
.flow-card h3,
.ops-points strong,
.hero-mini-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.hero-metric span,
.service-card p,
.flow-card p,
.ops-points span,
.hero-mini-card p {
    color: var(--landing-muted);
    line-height: 1.65;
    font-size: 0.94rem;
}

.hero-stage {
    position: relative;
    min-height: 620px;
}

.hero-stage__halo {
    position: absolute;
    filter: blur(80px);
    opacity: 0.7;
    border-radius: 999px;
}

.hero-stage__halo--cyan {
    inset: 20px auto auto 40px;
    width: 220px;
    height: 220px;
    background: rgba(77, 227, 255, 0.32);
}

.hero-stage__halo--violet {
    inset: auto 20px 60px auto;
    width: 280px;
    height: 280px;
    background: rgba(139, 92, 246, 0.3);
}

.hero-board,
.service-card,
.flow-card,
.ops-window,
.cta-card {
    border-radius: 28px;
    border: 1px solid rgba(140, 167, 255, 0.16);
    background: linear-gradient(180deg, rgba(14, 24, 46, 0.84), rgba(8, 15, 29, 0.92));
    box-shadow: var(--landing-shadow);
}

.hero-board {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(18px);
}

.hero-board--chat {
    width: min(100%, 500px);
    margin-left: auto;
    padding: 22px;
}

.hero-board--pipeline {
    width: min(100%, 420px);
    margin-top: -42px;
    margin-right: auto;
    padding: 18px;
}

.hero-board__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-board__tag,
.hero-board__status,
.service-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-board__tag,
.service-card__badge {
    color: #03182c;
    background: linear-gradient(135deg, #71f7ff, #bbf6ff);
}

.hero-board__status {
    color: var(--landing-success);
    background: rgba(88, 242, 178, 0.12);
    border: 1px solid rgba(88, 242, 178, 0.22);
}

.hero-conversation {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-message {
    max-width: 88%;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.65;
}

.hero-message--client {
    color: #04111f;
    background: linear-gradient(135deg, #dff8ff, #87e9ff);
    align-self: flex-start;
}

.hero-message--ai {
    color: #f6f8ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-self: flex-end;
}

.hero-message--system {
    max-width: 100%;
    color: var(--landing-cyan);
    border: 1px dashed rgba(77, 227, 255, 0.25);
    background: rgba(77, 227, 255, 0.05);
}

.hero-mini-card {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-mini-card + .hero-mini-card {
    margin-top: 14px;
}

.hero-mini-card__label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--landing-cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-section,
.flow-section,
.ops-section,
.cta-section {
    padding: 44px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2,
.ops-copy h2,
.cta-card h2 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.service-grid,
.flow-grid {
    display: grid;
    gap: 18px;
}

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

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

.service-card,
.flow-card,
.ops-window,
.cta-card {
    padding: 24px;
}

.service-card--active {
    background:
        radial-gradient(circle at top right, rgba(77, 227, 255, 0.15), transparent 42%),
        linear-gradient(180deg, rgba(15, 30, 58, 0.94), rgba(8, 15, 29, 0.96));
}

.service-card ul {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--landing-text);
    line-height: 1.8;
}

.service-card__badge--soon {
    color: #ffecff;
    background: rgba(217, 70, 239, 0.14);
    border: 1px solid rgba(217, 70, 239, 0.24);
}

.flow-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(77, 227, 255, 0.18), rgba(139, 92, 246, 0.24));
    color: var(--landing-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.ops-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 24px;
    align-items: center;
}

.ops-points {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.ops-window__bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.ops-window__bar span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.ops-window__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ops-stat,
.ops-list {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ops-stat label {
    display: block;
    margin-bottom: 8px;
    color: var(--landing-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ops-stat strong {
    font-size: 1.6rem;
    font-family: "Space Grotesk", sans-serif;
}

.ops-list {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
}

.ops-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.ops-list span {
    color: var(--landing-muted);
}

.ops-list strong {
    color: var(--landing-success);
    font-size: 0.95rem;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

@media (max-width: 1100px) {
    .landing-nav {
        display: none;
    }

    .hero-section,
    .ops-section {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-stage {
        min-height: auto;
    }

    .hero-board--chat,
    .hero-board--pipeline {
        width: 100%;
        margin: 0;
    }

    .hero-board--pipeline {
        margin-top: 18px;
    }
}

@media (max-width: 768px) {
    .landing-shell {
        width: min(100% - 24px, 1200px);
        padding-top: 16px;
    }

    .landing-header,
    .landing-header-actions,
    .hero-actions,
    .cta-card,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-header {
        padding: 18px;
    }

    .landing-brand img {
        height: 40px;
    }

    .landing-link-button {
        text-align: center;
    }

    .hero-section {
        padding-top: 40px;
        gap: 28px;
    }

    .hero-copy h1 {
        max-width: none;
        font-size: clamp(2.7rem, 14vw, 4.1rem);
    }

    .hero-metrics,
    .flow-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .ops-copy h2,
    .cta-card h2 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .ops-window__content {
        grid-template-columns: 1fr;
    }
}
