@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter/inter-variable.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter/inter-variable-italic.woff2") format("woff2");
}

:root {
    --color-bg: #f7f3ea;
    --color-surface: #fcfaf5;
    --color-border: #ddd2c2;
    --color-text: #171412;
    --color-accent: #6f7b49;
    --color-accent-strong: #4f5a34;
    --color-danger: #b7553d;
    --color-text-primary: var(--color-text);
    --color-text-secondary: var(--color-text);
    --color-background-page: var(--color-bg);
    --color-background-page-raised: var(--color-surface);
    --color-background-surface: var(--color-surface);
    --color-background-surface-soft: var(--color-surface);
    --color-background-footer: var(--color-surface);
    --color-accent-primary: var(--color-accent);
    --color-accent-primary-strong: var(--color-accent-strong);
    --color-accent-secondary: var(--color-accent);
    --color-accent-danger: var(--color-danger);
    --color-accent-danger-strong: var(--color-danger);
    --color-dark-surface: var(--color-text);
    --color-disabled-background: var(--color-surface);
    --color-disabled-border: var(--color-border);
    --color-disabled-text: var(--color-text);
    --color-text-primary-rgb: 23 20 18;
    --color-surface-rgb: 252 250 245;
    --color-accent-primary-rgb: 111 123 73;
    --shadow: 0 22px 70px rgb(var(--color-text-primary-rgb) / 0.14);
    --ink: var(--color-text-primary);
    --ink-soft: var(--color-text-secondary);
    --muted: rgb(var(--color-text-primary-rgb) / 0.68);
    --paper: var(--color-background-page);
    --surface: var(--color-background-surface);
    --surface-soft: var(--color-background-surface-soft);
    --line: var(--color-border);
    --teal: var(--color-accent-primary);
    --teal-dark: var(--color-accent-primary-strong);
    --coral: var(--color-accent-danger);
    --gold: var(--color-accent-secondary);
    --charcoal: var(--color-dark-surface);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Inter", "Geist", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

.marketing-site {
    overflow: hidden;
}

.home-site {
    height: 100vh;
}

.hero-section {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 92vh;
    color: var(--ink);
    background: linear-gradient(180deg, var(--color-background-page-raised) 0%, var(--color-background-page) 100%);
}

.home-hero {
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(var(--color-surface-rgb) / 0.18);
    pointer-events: none;
}

.hero-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.site-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-wordmark {
    display: block;
    width: clamp(108px, 11vw, 148px);
    height: auto;
    image-rendering: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgb(var(--color-text-primary-rgb) / 0.72);
    font-size: 0.94rem;
    font-weight: 650;
}

.nav-links a {
    text-decoration: none;
}

.nav-links a:hover,
.nav-menu button:hover {
    color: var(--ink);
}

.nav-menu {
    position: relative;
}

.nav-menu button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-weight: inherit;
    cursor: pointer;
}

.nav-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 150px;
    padding: 8px;
    border: 1px solid rgb(var(--color-accent-primary-rgb) / 0.16);
    border-radius: 8px;
    background: rgb(var(--color-surface-rgb) / 0.92);
    box-shadow: 0 18px 50px rgb(var(--color-text-primary-rgb) / 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.nav-menu:hover .nav-menu-panel,
.nav-menu:focus-within .nav-menu-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-menu-panel a {
    display: block;
    padding: 9px 10px;
    border-radius: 6px;
    color: rgb(var(--color-text-primary-rgb) / 0.82);
}

.nav-menu-panel a:hover {
    background: rgb(var(--color-accent-primary-rgb) / 0.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    align-self: center;
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0 120px;
}

.home-hero .hero-content {
    padding: 36px 0;
}

.product-hero-content {
    display: grid;
    place-items: center;
    width: min(1280px, calc(100% - 40px));
}

.hero-variant {
    position: relative;
    display: grid;
    place-items: center;
    width: min(1180px, 100%);
    min-height: clamp(390px, 58vh, 580px);
}

.constellation-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 72px);
}

.matchday-product-visual {
    position: relative;
    z-index: 4;
    display: block;
    width: 100%;
    color: var(--ink);
    text-decoration: none;
    transition: transform 220ms ease, filter 220ms ease;
}

.matchday-product-visual img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 28px rgb(var(--color-text-primary-rgb) / 0.18));
}

.matchday-product-visual:hover {
    transform: translateY(-6px) rotate(-0.35deg);
    filter: saturate(1.04);
}

.matchday-product-visual:focus-visible {
    outline: 3px solid var(--color-accent-primary);
    outline-offset: 6px;
    border-radius: 8px;
}

.matchday-product-label {
    position: absolute;
    left: clamp(14px, 2vw, 24px);
    bottom: clamp(14px, 2vw, 24px);
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgb(var(--color-surface-rgb) / 0.88);
    box-shadow: 0 12px 34px rgb(var(--color-text-primary-rgb) / 0.14);
    backdrop-filter: blur(10px);
}

.matchday-product-label small {
    color: var(--color-accent-secondary);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.matchday-product-label strong {
    font-size: clamp(1rem, 1.6vw, 1.28rem);
}

.insight-product-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: clamp(390px, 56vh, 560px);
}

.product-core {
    position: relative;
    z-index: 4;
    display: grid;
    place-items: center;
    grid-template-rows: 1fr auto auto 1fr;
    width: clamp(210px, 24vw, 300px);
    aspect-ratio: 1;
    padding: 42px 26px;
    border: 1px solid rgb(var(--color-accent-primary-rgb) / 0.2);
    border-radius: 999px;
    background: rgb(var(--color-surface-rgb) / 0.74);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    box-shadow: 0 28px 90px rgb(var(--color-text-primary-rgb) / 0.12), inset 0 0 38px rgb(var(--color-surface-rgb) / 0.76);
}

.product-core::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgb(var(--color-accent-primary-rgb) / 0.12);
    border-radius: inherit;
}

.product-core strong {
    display: block;
    grid-row: 2;
    max-width: 100%;
    font-size: clamp(2.45rem, 4vw, 4.05rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.product-core span {
    position: relative;
    z-index: 1;
    color: rgb(var(--color-text-primary-rgb) / 0.62);
    font-size: clamp(0.68rem, 1vw, 0.82rem);
    font-weight: 850;
    line-height: 1.18;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-core .product-kicker {
    grid-row: 1;
    align-self: end;
    color: var(--color-accent-secondary);
}

.product-core span:last-child {
    grid-row: 3;
    margin-top: 10px;
}

.constellation-map {
    position: absolute;
    inset: 0;
}

.constellation-ring {
    position: absolute;
    inset: 12%;
    border: 1px solid rgb(var(--color-accent-primary-rgb) / 0.12);
    border-radius: 999px;
    animation: constellation-pulse 4s ease-in-out infinite;
}

.constellation-ring::before,
.constellation-ring::after {
    content: "";
    position: absolute;
    inset: 14%;
    border: 1px solid rgb(var(--color-accent-primary-rgb) / 0.1);
    border-radius: inherit;
}

.constellation-ring::after {
    inset: 30%;
    border-color: rgb(var(--color-accent-primary-rgb) / 0.08);
}

.constellation-springs {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.constellation-spring {
    fill: none;
    stroke: rgb(var(--color-accent-primary-rgb) / 0.34);
    stroke-dasharray: 3 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.15;
    vector-effect: non-scaling-stroke;
    animation: constellation-link 3.8s ease-in-out infinite;
}

.spring-files {
    animation-delay: 360ms;
}

.spring-users {
    animation-delay: 720ms;
}

.spring-agents {
    animation-delay: 1080ms;
}

.spring-knowledge {
    animation-delay: 1260ms;
}

.spring-graph {
    animation-delay: 1440ms;
}

.spring-rag {
    animation-delay: 1620ms;
}

.spring-chats {
    animation-delay: 1800ms;
}

.constellation-node {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    min-width: 94px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgb(var(--color-accent-primary-rgb) / 0.16);
    border-radius: 999px;
    background: rgb(var(--color-surface-rgb) / 0.72);
    color: rgb(var(--color-text-primary-rgb) / 0.78);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
    box-shadow: 0 12px 36px rgb(var(--color-text-primary-rgb) / 0.1);
    cursor: grab;
    translate: var(--drag-x, 0) var(--drag-y, 0);
    animation: node-wobble 4.8s ease-in-out infinite;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    transition: translate 760ms cubic-bezier(0.18, 1.2, 0.24, 1);
}

.constellation-node.is-dragging {
    z-index: 5;
    cursor: grabbing;
    animation-play-state: paused;
    transition: none;
}

.home-site.is-product-exiting .product-core {
    animation: product-core-exit 520ms cubic-bezier(0.32, 0, 0.18, 1) forwards;
}

.home-site.is-product-exiting .matchday-product-visual {
    animation: constellation-exit 520ms cubic-bezier(0.32, 0, 0.18, 1) forwards;
}

.home-site.is-product-exiting .constellation-ring,
.home-site.is-product-exiting .constellation-springs,
.home-site.is-product-exiting .constellation-node {
    pointer-events: none;
    animation: constellation-exit 520ms cubic-bezier(0.32, 0, 0.18, 1) forwards;
}

.home-site.is-product-exiting .hero-footer,
.home-site.is-product-exiting + .home-page-footer {
    opacity: 0;
    transition: opacity 180ms ease;
}

.product-site.is-product-entering .product-hero .hero-content {
    animation: product-info-enter 620ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.product-site.is-product-entering .product-hero .site-nav {
    animation: product-nav-enter 420ms ease both;
}

.home-site.is-home-entering .product-core {
    animation: product-core-enter 620ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.home-site.is-home-entering .constellation-map {
    animation: constellation-enter 700ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.home-site.is-home-entering .matchday-product-visual {
    animation: product-core-enter 620ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.node-database {
    right: 4%;
    top: 44%;
}

.node-files {
    right: 16%;
    bottom: 6%;
    animation-delay: 500ms;
}

.node-users {
    left: 5%;
    bottom: 24%;
    animation-delay: 1000ms;
}

.node-agents {
    left: 9%;
    top: 21%;
    animation-delay: 1500ms;
}

.node-knowledge {
    left: 31%;
    top: 10%;
    min-width: 142px;
    animation-delay: 1750ms;
}

.node-graph {
    right: 11%;
    top: 14%;
    min-width: 148px;
    animation-delay: 2000ms;
}

.node-rag {
    left: 35%;
    bottom: 7%;
    animation-delay: 2250ms;
}

.node-chats {
    right: 6%;
    top: 27%;
    animation-delay: 2500ms;
}

@keyframes constellation-pulse {
    0%, 100% {
        transform: scale(0.98);
        opacity: 0.72;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes constellation-link {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.82;
    }
}

@keyframes node-wobble {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    35% {
        transform: translateY(-8px) rotate(-0.8deg);
    }

    70% {
        transform: translateY(4px) rotate(0.6deg);
    }
}

@keyframes product-core-exit {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.76);
        filter: blur(5px);
    }
}

@keyframes product-core-enter {
    0% {
        opacity: 0;
        transform: scale(0.76);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes constellation-exit {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: scale(1.18);
        filter: blur(7px);
    }
}

@keyframes constellation-enter {
    0% {
        opacity: 0;
        transform: scale(1.18);
        filter: blur(7px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes product-info-enter {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
        filter: blur(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes product-nav-enter {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-site.is-product-exiting .product-core,
    .home-site.is-product-exiting .matchday-product-visual,
    .home-site.is-product-exiting .constellation-ring,
    .home-site.is-product-exiting .constellation-springs,
    .home-site.is-product-exiting .constellation-node,
    .product-site.is-product-entering .product-hero .hero-content,
    .product-site.is-product-entering .product-hero .site-nav,
    .home-site.is-home-entering .product-core,
    .home-site.is-home-entering .matchday-product-visual,
    .home-site.is-home-entering .constellation-map {
        animation: none;
    }
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(3rem, 7.2vw, 6.4rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgb(var(--color-text-primary-rgb) / 0.84);
    font-size: 1.18rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 24px;
    color: rgb(var(--color-text-primary-rgb) / 0.66);
    font-size: 0.9rem;
    font-weight: 750;
}

.hero-footer span {
    color: rgb(var(--color-text-primary-rgb) / 0.84);
    font-weight: 850;
}

.hero-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.hero-footer-links a {
    color: inherit;
    text-decoration: none;
}

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

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 18px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.primary-action {
    background: var(--teal);
    color: #fff;
}

.primary-action:hover {
    background: var(--teal-dark);
}

.primary-action:disabled,
.secondary-action:disabled {
    cursor: not-allowed;
    border-color: var(--color-disabled-border);
    background: var(--color-disabled-background);
    color: var(--color-disabled-text);
}

.primary-action:disabled:hover {
    background: var(--color-disabled-background);
}

.secondary-action {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink-soft);
}

.hero-section .secondary-action {
    border-color: rgb(var(--color-accent-primary-rgb) / 0.24);
    background: rgb(var(--color-surface-rgb) / 0.64);
    color: var(--ink-soft);
}

.stretch {
    width: 100%;
}

.section-block {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 92px 0;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
    gap: 36px;
    align-items: end;
    margin-bottom: 26px;
}

.section-heading h2,
.workflow-band h2,
.purchase-copy h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1;
    letter-spacing: 0;
}

.product-grid,
.pricing-grid {
    display: grid;
    gap: 16px;
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.product-site {
    position: relative;
    overflow: hidden;
    color: var(--ink);
    background: var(--paper);
}

.product-page-scene {
    position: fixed;
    z-index: 0;
}

.product-site .hero-section,
.product-site .section-block,
.product-site .purchase-section,
.product-site + .site-footer {
    position: relative;
    z-index: 1;
}

.product-site .hero-section {
    min-height: 100vh;
    background: transparent;
}

.product-site .section-block,
.product-site .purchase-section {
    color: var(--ink);
}

.product-site .section-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 56px 0;
}

.product-site #overview {
    padding-top: 56px;
}

.product-site .section-heading {
    margin-bottom: 22px;
}

.product-site .section-heading h2,
.product-site .purchase-copy h2 {
    color: var(--ink);
}

.product-site .product-card,
.product-site .price-card,
.product-site .license-form {
    border-color: rgb(var(--color-accent-primary-rgb) / 0.14);
    background: rgb(var(--color-surface-rgb) / 0.76);
    box-shadow: 0 22px 70px rgb(var(--color-text-primary-rgb) / 0.1), inset 0 1px 0 rgb(var(--color-surface-rgb) / 0.84);
}

.product-site .product-card h3,
.product-site .price-card h3,
.product-site .price {
    color: var(--ink) !important;
}

.product-site .product-card p,
.product-site .price-card p,
.product-site .purchase-copy p,
.product-site .price-card ul,
.product-site .price span,
.product-site .price-actions span,
.product-site .price-note {
    color: rgb(var(--color-text-primary-rgb) / 0.76);
}

.product-site .product-icon,
.product-site .plan-label {
    background: var(--color-background-surface-soft);
    color: var(--teal-dark);
}

.product-site .price-card.featured {
    border-color: rgb(var(--color-accent-primary-rgb) / 0.32);
    box-shadow: 0 26px 80px rgb(var(--color-accent-primary-rgb) / 0.12), inset 0 1px 0 rgb(var(--color-surface-rgb) / 0.88);
}

.product-site .purchase-section {
    border-color: rgb(var(--color-accent-primary-rgb) / 0.14);
    background: rgb(var(--color-surface-rgb) / 0.76);
    box-shadow: 0 22px 70px rgb(var(--color-text-primary-rgb) / 0.1);
}

.product-site .license-form label {
    color: var(--ink-soft);
}

.product-site .license-form input,
.product-site .license-form select {
    border-color: var(--line);
    background: var(--color-background-page-raised);
    color: var(--ink);
}

.product-site .license-form input::placeholder {
    color: rgb(var(--color-text-primary-rgb) / 0.48);
}

.product-card,
.price-card,
.license-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 34px rgb(var(--color-text-primary-rgb) / 0.06);
}

.product-card {
    min-height: 260px;
    padding: 24px;
}

.product-site .product-card {
    min-height: 220px;
}

.product-icon,
.plan-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 10px;
    background: var(--color-background-surface-soft);
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 850;
}

.lucide-icon {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    pointer-events: none;
}

.product-icon {
    width: 42px;
    height: 42px;
    padding: 0;
}

.product-icon .lucide-icon {
    width: 20px;
    height: 20px;
}

.product-card h3,
.price-card h3 {
    margin: 32px 0 10px;
    color: var(--ink);
    font-size: 1.25rem;
}

.price-card h3 {
    margin-top: 24px;
}

.product-card p,
.price-card p,
.purchase-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.workflow-band {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: center;
    padding: 64px max(20px, calc((100vw - 1180px) / 2));
    background: var(--color-background-surface-soft);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.flow-steps span {
    display: grid;
    place-items: center;
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgb(var(--color-surface-rgb) / 0.62);
    color: var(--ink-soft);
    font-weight: 800;
    text-align: center;
}

.section-note {
    margin: 0;
    color: rgb(var(--color-text-primary-rgb) / 0.72);
    line-height: 1.65;
}

.pricing-section {
    padding-bottom: 56px;
}

.price-card {
    display: grid;
    grid-template-rows: auto minmax(104px, 1fr) auto;
    gap: 18px;
    min-height: 360px;
    padding: 22px;
}

.price-actions {
    display: grid;
    gap: 8px;
}

.price-actions span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.pricing-heading {
    align-items: center;
}

.pricing-download {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.pricing-download span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: right;
}

.product-site .pricing-download span {
    color: var(--muted);
}

.price-note {
    align-self: end;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.price-card.featured {
    border-color: rgb(var(--color-accent-primary-rgb) / 0.44);
    box-shadow: var(--shadow);
}

.price {
    margin: 8px 0 8px !important;
    color: var(--ink) !important;
    font-size: 2.45rem;
    font-weight: 850;
    line-height: 1;
}

.price span {
    color: var(--muted);
    font-size: 1rem;
}

.price-card ul {
    display: grid;
    gap: 8px;
    align-content: start;
    margin: 0;
    padding: 0;
    color: var(--ink-soft);
    list-style: none;
}

.price-card li {
    line-height: 1.55;
}

.price-card li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 999px;
    background: var(--coral);
}

.purchase-section {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
    gap: 28px;
    align-items: start;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 94px;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--color-background-surface);
}

.license-form {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.embedded-license-form {
    align-self: end;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.embedded-license-form .license-result:empty {
    display: none;
}

.license-form label {
    display: grid;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 780;
}

.license-form input,
.license-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    outline: none;
    background: var(--color-background-page-raised);
    color: var(--ink);
}

.license-form input:focus,
.license-form select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgb(var(--color-accent-primary-rgb) / 0.14);
}

.license-result {
    min-height: 22px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.license-result.success {
    color: var(--teal-dark);
}

.license-result.error {
    color: var(--color-accent-danger-strong);
}

.license-key {
    display: block;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgb(var(--color-accent-primary-rgb) / 0.24);
    border-radius: 8px;
    background: var(--color-background-surface-soft);
    color: var(--teal-dark);
    font-family: Consolas, "Courier New", monospace;
    font-weight: 800;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px max(20px, calc((100vw - 1180px) / 2));
    border-top: 1px solid rgb(var(--color-accent-primary-rgb) / 0.12);
    color: rgb(var(--color-text-primary-rgb) / 0.68);
    background: var(--color-background-footer);
}

.home-page-footer {
    display: none;
}

.footer-brand {
    display: grid;
    gap: 10px;
}

.footer-copyright {
    color: rgb(var(--color-text-primary-rgb) / 0.82);
    font-size: 0.9rem;
    font-weight: 850;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    font-size: 0.9rem;
    font-weight: 750;
}

.footer-links a {
    color: rgb(var(--color-text-primary-rgb) / 0.72);
    text-decoration: none;
}

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

.footer-wordmark {
    display: block;
    width: 112px;
    height: auto;
    image-rendering: auto;
}

.legal-page + .site-footer .footer-wordmark,
.product-site + .site-footer .footer-wordmark,
.home-page-footer .footer-wordmark {
    display: none;
}

.legal-page {
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
}

.legal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0;
}

.legal-nav a:last-child {
    color: rgb(var(--color-text-primary-rgb) / 0.76);
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
}

.legal-nav a:last-child:hover {
    color: var(--ink);
}

.legal-document {
    width: min(880px, calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 92px;
}

.legal-document h1 {
    max-width: 760px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.legal-updated {
    margin: 18px 0 34px !important;
    color: rgb(var(--color-text-primary-rgb) / 0.62) !important;
    font-size: 0.95rem;
}

.legal-document h2 {
    margin: 38px 0 10px;
    color: var(--ink);
    font-size: 1.35rem;
    letter-spacing: 0;
}

.legal-document p,
.legal-document li {
    color: rgb(var(--color-text-primary-rgb) / 0.8);
    font-size: 1rem;
    line-height: 1.78;
}

.legal-document p {
    margin: 0 0 16px;
}

.legal-document ul {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding-left: 22px;
}

.company-details {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgb(var(--color-accent-primary-rgb) / 0.14);
    border-radius: 8px;
    background: rgb(var(--color-surface-rgb) / 0.62);
}

.company-details div {
    display: grid;
    grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
    gap: 16px;
}

.company-details dt {
    color: rgb(var(--color-text-primary-rgb) / 0.62);
    font-weight: 850;
}

.company-details dd {
    margin: 0;
    color: rgb(var(--color-text-primary-rgb) / 0.84);
}

.legal-document a {
    color: var(--teal-dark);
    font-weight: 750;
}

@media (max-width: 920px) {
    .section-heading,
    .workflow-band,
    .purchase-section {
        grid-template-columns: 1fr;
    }

    .product-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-download {
        justify-items: start;
    }

    .pricing-download span {
        text-align: left;
    }

    .flow-steps {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 680px) {
    .home-site {
        height: auto;
    }

    .home-hero {
        min-height: 100svh;
        height: auto;
        overflow: visible;
    }

    .home-page-footer {
        display: flex;
    }

    .hero-variant {
        width: min(100%, 430px);
        min-height: auto;
    }

    .constellation-hero {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .matchday-product-visual {
        width: min(100%, 430px);
    }

    .insight-product-visual {
        min-height: 430px;
    }

    .product-core {
        width: 184px;
        padding: 42px 26px;
    }

    .product-core strong {
        font-size: 2.2rem;
    }

    .product-core span {
        font-size: 0.62rem;
    }

    .constellation-node {
        min-width: 78px;
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.68rem;
    }

    .node-database {
        right: 0;
        top: 48%;
    }

    .node-files {
        right: 4%;
        bottom: 2%;
    }

    .node-users {
        left: 0;
        bottom: 20%;
    }

    .node-agents {
        left: 2%;
        top: 20%;
    }

    .node-knowledge {
        left: 14%;
        top: 5%;
        min-width: 122px;
    }

    .node-graph {
        right: 0;
        top: 10%;
        min-width: 124px;
    }

    .node-rag {
        left: 37%;
        bottom: 0;
    }

    .node-chats {
        right: 2%;
        top: 28%;
    }

    .site-nav,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-brand {
        order: 2;
    }

    .footer-links {
        order: 1;
        justify-content: flex-start;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
    }

    .nav-menu-panel {
        left: 0;
        right: auto;
        min-width: min(180px, calc(100vw - 40px));
    }

    .home-hero .hero-content {
        padding: 8px 0 16px;
    }

    .hero-footer {
        display: none;
    }

    .purchase-section {
        padding: 20px;
    }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
    .marketing-site.home-site {
        overflow: visible;
    }

    .home-site {
        height: auto;
    }

    .home-page-footer {
        display: flex;
    }

    .home-hero {
        min-height: 100svh;
        height: auto;
        overflow: visible;
    }

    .hero-footer {
        display: none;
    }

    .home-page-footer .footer-wordmark {
        display: none;
    }
}
