:root {
    --bg: #050816;
    --bg-soft: #0b1024;
    --panel: rgba(10, 16, 37, 0.76);
    --panel-strong: rgba(15, 22, 46, 0.94);
    --line: rgba(142, 168, 255, 0.18);
    --text: #edf2ff;
    --muted: #9aa6c7;
    --cyan: #60e8ff;
    --blue: #78a7ff;
    --green: #92f4c2;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
    --radius: 24px;
    --max-width: 1240px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Manrope', Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(82, 130, 255, 0.22), transparent 32%),
        radial-gradient(circle at 85% 15%, rgba(96, 232, 255, 0.18), transparent 22%),
        linear-gradient(180deg, #07101f 0%, #04070f 48%, #03050a 100%);
}

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

.site-shell {
    position: relative;
    overflow: hidden;
}

.site-shell::before,
.site-shell::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
}

.site-shell::before {
    top: 120px;
    left: -120px;
    width: 260px;
    height: 260px;
    background: rgba(120, 167, 255, 0.22);
}

.site-shell::after {
    top: 40%;
    right: -100px;
    width: 240px;
    height: 240px;
    background: rgba(96, 232, 255, 0.16);
}

.site-header,
.hero-panel,
.section,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 20px auto 0;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(7, 12, 28, 0.72);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(96, 232, 255, 0.14), rgba(120, 167, 255, 0.2));
    border: 1px solid rgba(121, 169, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 36px rgba(2, 7, 18, 0.4);
}

.brand-mark-wrap::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(96, 232, 255, 0.22), transparent 60%);
    opacity: 0.7;
    z-index: 0;
}

.brand-mark {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    display: block;
}

.brand-mark-text {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(5, 13, 30, 0.92), rgba(9, 18, 39, 0.9));
    border: 1px solid rgba(94, 223, 255, 0.5);
    color: #e7fcff;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

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

.brand-text strong {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 1.15rem;
}

.brand-text em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.9rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.site-nav a {
    color: #dbe5ff;
    font-size: 0.98rem;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover {
    color: var(--cyan);
}

.menu-btn {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(13, 20, 43, 0.85);
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 6px auto;
    background: #f2f7ff;
}

.hero-panel {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 26px auto 0;
    padding: 68px 42px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 36px;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(13, 20, 43, 0.9), rgba(7, 12, 26, 0.78)),
        linear-gradient(135deg, rgba(96, 232, 255, 0.08), transparent 45%);
    border: 1px solid rgba(125, 162, 255, 0.18);
    box-shadow: var(--shadow);
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--cyan);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2 {
    font-family: 'Space Grotesk', Arial, sans-serif;
    line-height: 1;
}

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

.hero-intro {
    max-width: 64ch;
    margin-top: 22px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #03111a;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(150, 180, 255, 0.28);
}

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

.signal-card,
.info-card,
.role-card,
.usecase-card,
.process-step,
.closing-panel,
.system-card {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.signal-card {
    padding: 18px;
    border-radius: 18px;
}

.signal-card span,
.usecase-type {
    display: block;
    color: var(--cyan);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.signal-card strong {
    display: block;
    margin-top: 8px;
    line-height: 1.4;
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
}

.orb-a {
    top: 20px;
    right: 40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(96, 232, 255, 0.7), rgba(96, 232, 255, 0.02));
}

.orb-b {
    bottom: 20px;
    left: 10px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(120, 167, 255, 0.42), rgba(120, 167, 255, 0.03));
}

.system-card {
    position: absolute;
    inset: 30px 0 20px 20px;
    padding: 22px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(14, 22, 48, 0.96), rgba(8, 13, 27, 0.88));
}

.system-topline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.86rem;
}

.system-node {
    position: relative;
    padding: 18px 18px 18px 22px;
    margin-top: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(145, 174, 255, 0.16);
}

.system-node::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 26px;
    width: 1px;
    height: 15px;
    background: rgba(150, 180, 255, 0.28);
}

.system-node:first-of-type::before {
    display: none;
}

.system-node strong,
.info-card h3,
.role-card h3,
.usecase-card h3,
.process-step h3,
.closing-panel p {
    font-family: 'Space Grotesk', Arial, sans-serif;
}

.system-node p,
.info-card p,
.role-card p,
.usecase-card p,
.process-step p,
.site-footer p,
.site-footer a {
    color: var(--muted);
    line-height: 1.7;
}

.section {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 22px auto 0;
    padding: 34px 0;
}

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

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.platform-grid,
.usecase-grid,
.process-grid,
.story-grid,
.insights-preview-grid,
.insights-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.info-card,
.usecase-card,
.process-step,
.closing-panel,
.story-card,
.insight-card,
.demo-screen,
.demo-copy,
.case-screen {
    padding: 24px;
    border-radius: 24px;
}

.info-card i {
    margin-bottom: 18px;
    color: var(--green);
    font-size: 1.4rem;
}

.info-card h3,
.role-card h3,
.usecase-card h3,
.process-step h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.roles-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.role-card {
    padding: 22px;
    border-radius: 22px;
}

.role-index,
.process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid rgba(150, 180, 255, 0.22);
    color: var(--cyan);
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-weight: 700;
}

.process-step span {
    width: auto;
    height: auto;
    padding: 10px 12px;
}

.closing-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
}

.closing-panel p {
    font-size: 1.25rem;
    line-height: 1.4;
}

.site-footer {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 14px auto 36px;
    padding: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(145, 174, 255, 0.18);
}

.footer-brand {
    color: var(--text) !important;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 1.15rem;
}

.footer-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-mark {
    width: 38px;
    height: 38px;
    display: block;
}

.footer-mark-wrap {
    display: inline-flex;
}

.footer-mark-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(5, 13, 30, 0.92), rgba(9, 18, 39, 0.9));
    border: 1px solid rgba(94, 223, 255, 0.42);
    color: #e7fcff;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.article-shell {
    padding-top: 18px;
}

.article-card {
    padding: 30px;
    border-radius: 28px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.article-date,
.article-meta {
    color: var(--cyan);
    margin-bottom: 12px;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-title {
    margin-bottom: 18px;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
}

.article-intro {
    margin-bottom: 22px;
    color: #dfe8ff;
    font-size: 1.15rem;
    line-height: 1.7;
}

.article-image {
    width: 100%;
    height: auto;
    margin: 20px 0 26px;
    border-radius: 24px;
}

.article-content,
.article-content p,
.article-content li {
    color: var(--muted);
    line-height: 1.8;
}

.article-content h2,
.article-content h3 {
    margin: 28px 0 12px;
    color: var(--text);
    font-family: 'Space Grotesk', Arial, sans-serif;
}

.article-content ul,
.article-content ol {
    margin: 14px 0 14px 20px;
}

.page-title {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.04;
}

.page-intro {
    max-width: 70ch;
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.story-card,
.insight-card,
.demo-screen,
.demo-copy,
.case-screen {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.story-card p,
.demo-copy p,
.insight-card p,
.case-screen p {
    color: var(--muted);
    line-height: 1.75;
}

.story-card h3,
.insight-card h3,
.demo-screen .screen-title,
.case-screen h3 {
    margin-bottom: 12px;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 1.28rem;
}

.section-demo-preview,
.section-insights-preview,
.insights-hero,
.case-hero,
.case-flow,
.case-copy {
    padding-top: 20px;
}

.demo-grid,
.case-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
}

.demo-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.demo-screens {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.screen-topbar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.screen-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(219, 229, 255, 0.35);
}

.screen-block,
.screen-chat,
.screen-table,
.wire-card,
.db-head,
.db-row {
    border-radius: 16px;
    border: 1px solid rgba(145, 174, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.screen-block {
    height: 72px;
}

.screen-block-wide {
    margin-bottom: 12px;
}

.screen-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.demo-screen p,
.screen-title,
.case-label {
    color: var(--muted);
}

.screen-title,
.case-label {
    margin-bottom: 14px;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.screen-chat {
    padding: 14px;
    margin-bottom: 16px;
}

.screen-line {
    height: 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(96, 232, 255, 0.45), rgba(120, 167, 255, 0.15));
}

.screen-line.long {
    width: 100%;
}

.screen-line.short {
    width: 62%;
}

.screen-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    margin-bottom: 16px;
}

.screen-table div {
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.insight-card {
    display: block;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.insight-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 232, 255, 0.34);
}

.insight-date {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--cyan);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.insight-card h3 {
    margin-bottom: 10px;
}

.insight-card strong,
.text-link {
    color: var(--cyan);
    font-weight: 700;
}

.insights-actions {
    margin-top: 20px;
}

.case-screen-large {
    grid-column: span 2;
}

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

.case-wireframe,
.chat-mock,
.db-mock {
    margin: 18px 0;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(145, 174, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.wire-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.wire-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(96, 232, 255, 0.1);
    color: #dff6ff;
    font-size: 0.9rem;
}

.wire-card {
    height: 92px;
    margin-bottom: 12px;
}

.wire-card.small {
    height: 62px;
    margin-bottom: 0;
}

.bubble {
    max-width: 88%;
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    line-height: 1.6;
}

.bubble-a {
    background: rgba(96, 232, 255, 0.11);
}

.bubble-b {
    margin-left: auto;
    background: rgba(120, 167, 255, 0.12);
}

.db-head {
    height: 38px;
    margin-bottom: 10px;
}

.db-row {
    height: 34px;
    margin-bottom: 8px;
}

@media (max-width: 1100px) {
    .hero-panel,
    .platform-grid,
    .usecase-grid,
    .process-grid,
    .story-grid,
    .insights-preview-grid,
    .insights-page-grid,
    .demo-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }

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

    .demo-screens {
        grid-template-columns: 1fr;
    }

    .case-screen-large {
        grid-column: span 1;
    }

    .hero-copy h1 {
        max-width: 13ch;
    }
}

@media (max-width: 780px) {
    .site-header {
        padding: 14px 16px;
    }

    .menu-btn {
        display: inline-block;
    }

    .site-nav ul {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 12px;
        border-radius: 20px;
        background: rgba(9, 14, 30, 0.98);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .site-nav ul.show {
        display: flex;
    }

    .site-nav a {
        display: block;
        padding: 14px 10px;
    }

    .hero-panel {
        padding: 34px 20px;
    }

    .signal-grid,
    .roles-list,
    .story-grid,
    .insights-preview-grid,
    .insights-page-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 420px;
    }

    .system-card {
        inset: 8px 0 0 0;
    }

    .closing-panel,
    .site-footer {
        flex-direction: column;
    }
}
