:root {
    --bg: #07111f;
    --bg-soft: #0c1c34;
    --panel: rgba(8, 17, 31, 0.82);
    --panel-strong: rgba(6, 13, 24, 0.92);
    --text: #ecf4ff;
    --muted: #9cb4d5;
    --line: rgba(167, 190, 224, 0.16);
    --line-strong: rgba(167, 190, 224, 0.28);
    --accent: #7ef0d3;
    --accent-strong: #ffb454;
    --danger: #ff7c7c;
    --success: #7ef0a0;
    --warning: #ffd166;
    --radius: 26px;
    --radius-sm: 18px;
    --shadow: 0 24px 80px rgba(1, 7, 16, 0.42);
}

* { box-sizing: border-box; }

html,
body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    font-family: "IBM Plex Sans", sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(126, 240, 211, 0.14), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(255, 180, 84, 0.12), transparent 24%),
        linear-gradient(180deg, #06101b 0%, #09182c 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,0.85), transparent 80%);
    pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.site-header,
.site-footer,
.hero-panel,
.glass-card,
.sub-card {
    backdrop-filter: blur(16px);
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(4, 10, 18, 0.72);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 12px;
    z-index: 20;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: radial-gradient(circle at 20% 20%, rgba(126, 240, 211, 0.25), rgba(255, 180, 84, 0.12));
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-copy strong,
.site-nav a,
h1,
h2,
h3,
h4 {
    font-family: "Space Grotesk", sans-serif;
}

.brand-copy strong {
    display: block;
    font-size: 1.05rem;
}

.brand-copy small {
    display: block;
    color: var(--muted);
    max-width: 420px;
    line-height: 1.45;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.site-nav a,
.language-switch a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    border: 1px solid transparent;
    transition: 160ms ease;
}

.nav-item {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(4, 10, 18, 0.96);
    box-shadow: var(--shadow);
}

.nav-item.has-children:hover .nav-dropdown,
.nav-item.has-children:focus-within .nav-dropdown {
    display: grid;
}

.nav-dropdown a {
    border-radius: 14px;
}

.site-nav a:hover,
.language-switch a:hover,
.site-nav a.active,
.language-switch a.active,
.operator-link {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.05);
}

.operator-link {
    border-color: rgba(126, 240, 211, 0.25);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

main {
    display: grid;
    gap: 28px;
    margin: 30px 0;
}

.hero-panel,
.glass-card,
.sub-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 40px;
    display: grid;
    gap: 26px;
}

.home-hero {
    grid-template-columns: 1.15fr 0.95fr;
    align-items: start;
}

.hero-copy {
    display: grid;
    gap: 14px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-size: 0.78rem;
}

h1 {
    margin: 0;
    font-size: clamp(2.35rem, 4.8vw, 4.8rem);
    line-height: 1.02;
}

h2 {
    margin: 0;
    font-size: 1.45rem;
}

h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

p { margin: 0; }

.lead {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 72ch;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: 160ms ease;
}

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

.button.primary {
    color: #06101b;
    background: linear-gradient(135deg, var(--accent), #63ffcb);
}

.button.secondary {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.05);
}

.button.ghost {
    color: var(--muted);
    border-color: rgba(126, 240, 211, 0.24);
    background: rgba(126, 240, 211, 0.06);
}

.button.small {
    padding: 10px 14px;
    font-size: 0.92rem;
}

.hero-stats,
.live-metrics,
.status-grid,
.pricing-grid,
.billing-grid,
.cart-grid,
.demo-shell,
.operator-grid,
.card-grid,
.live-grid {
    display: grid;
    gap: 22px;
}

.hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-top: 10px;
}

.sub-card,
.glass-card {
    padding: 24px;
}

.sub-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
}

.sub-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.sub-card span,
.glass-card p,
.timeline-item p,
.live-chip {
    color: var(--muted);
    line-height: 1.7;
}

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

.card-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section-shell {
    display: grid;
    gap: 18px;
}

.cms-page-shell,
.cms-placeholders {
    display: grid;
    gap: 28px;
}

.section-heading {
    display: grid;
    gap: 8px;
}

.emphasis-card {
    background: linear-gradient(180deg, rgba(126, 240, 211, 0.08), rgba(255, 255, 255, 0.02));
}

.card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.live-stage,
.demo-shell,
.operator-grid,
.pricing-grid,
.billing-grid,
.cart-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.demo-column {
    display: grid;
    gap: 18px;
}

.demo-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.demo-hints span,
.pill,
.status-pill {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
}

.inline-note {
    font-size: 0.92rem;
}

.mission-response-heading {
    margin-top: 22px;
}

.mission-response-panel {
    min-height: 260px;
}

.mission-meta {
    margin: 0;
}

.mission-blockers {
    display: grid;
    gap: 8px;
}

.chat-form {
    display: grid;
    gap: 16px;
}

.operator-mode-row {
    display: grid;
    gap: 8px;
    max-width: 280px;
}

.operator-mode-row label {
    font-size: 0.9rem;
    color: var(--muted);
}

.chat-form textarea,
.chat-form input,
.chat-form select,
.stack-form input,
.stack-form select,
.stack-form textarea,
.contact-form-grid input,
.contact-form-grid select,
.contact-form-grid textarea,
.inline-form select {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(4, 12, 24, 0.84);
    color: var(--text);
    padding: 16px 18px;
    font: inherit;
}

.chat-form textarea {
    min-height: 150px;
    resize: vertical;
}

.stack-form,
.contact-form-grid {
    display: grid;
    gap: 14px;
}

.stack-form label,
.contact-form-grid label {
    display: grid;
    gap: 8px;
}

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

.contact-form-grid .full-width,
.contact-form-actions {
    grid-column: 1 / -1;
}

.contact-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.contact-direct-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
}

.contact-form-card {
    display: grid;
    gap: 18px;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.inline-form .button {
    flex-shrink: 0;
}

.donation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.note-list {
    margin-top: 8px;
}

.button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.chat-transcript,
.live-panel {
    display: grid;
    gap: 14px;
}

.live-placeholder {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
}

.chat-bubble {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.chat-bubble.user {
    background: rgba(126, 240, 211, 0.1);
    border-color: rgba(126, 240, 211, 0.2);
}

.chat-bubble.assistant {
    background: rgba(255, 255, 255, 0.04);
}

.chat-bubble.system {
    background: rgba(255, 180, 84, 0.08);
    border-color: rgba(255, 180, 84, 0.2);
}

.chat-bubble header,
.metric-card header,
.timeline-item header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.chat-bubble pre,
.chat-bubble code {
    white-space: pre-wrap;
    word-break: break-word;
}

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

.metric-card,
.timeline-item,
.roadmap-item,
.offer-card,
.cart-card,
.donation-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.metric-card strong,
.offer-price {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline-item ul,
.offer-card ul,
.simple-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.simple-list {
    list-style: disc;
}

.roadmap-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-pill.done { border-color: rgba(126, 240, 160, 0.35); color: var(--success); }
.status-pill.in_progress { border-color: rgba(255, 209, 102, 0.35); color: var(--warning); }
.status-pill.blocked { border-color: rgba(255, 124, 124, 0.35); color: var(--danger); }
.status-pill.planned { border-color: rgba(156, 180, 213, 0.35); color: var(--muted); }

.progress-rail {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin: 12px 0;
}

.progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.commerce-card,
.offer-card.highlight {
    background: linear-gradient(180deg, rgba(126, 240, 211, 0.08), rgba(255, 180, 84, 0.04));
}

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

.offer-card header {
    display: grid;
    gap: 8px;
}

.pricing-grid.single-price {
    grid-template-columns: 1fr;
}

.offer-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.offer-badge {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(126, 240, 211, 0.3);
    background: rgba(126, 240, 211, 0.08);
    color: var(--accent);
    font-size: 0.82rem;
}

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

.billing-grid {
    grid-template-columns: 1.4fr 0.8fr;
}

.cart-grid {
    grid-template-columns: 1.3fr 0.7fr;
}

.checkout-note {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 180, 84, 0.24);
    background: rgba(255, 180, 84, 0.08);
    color: #ffe5b3;
}

.site-footer {
    margin-top: 20px;
    align-items: flex-start;
}

.message-stack {
    display: grid;
    gap: 12px;
}

.message-card {
    padding: 16px 18px;
}

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

.footer-brand img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: contain;
}

.footer-brand .footer-logo {
    width: 180px;
    height: auto;
    border-radius: 0;
}

.footer-brand p {
    color: var(--muted);
    max-width: 520px;
}

.footer-support-cta {
    margin-top: 14px;
}

.footer-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px 20px;
    text-align: left;
}

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

.catalog-grid {
    display: grid;
    gap: 24px;
}

.catalog-family {
    display: grid;
    gap: 18px;
}

.demo-suggestions {
    margin: 0;
}

.demo-suggestions > div {
    font-weight: 600;
    color: var(--accent);
}

.inline-link {
    margin-top: 10px;
    display: inline-flex;
    color: var(--accent);
    font-weight: 600;
}

.roadmap-item .simple-list,
.timeline-item .simple-list {
    margin-top: 10px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
}

.narrow-card {
    max-width: 620px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .home-hero,
    .billing-grid,
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .site-header,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions,
    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-item {
        width: 100%;
    }

    .nav-dropdown {
        position: static;
        display: grid;
        margin-top: 8px;
    }

    .footer-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100vw - 20px, 100%);
    }

    .hero-panel,
    .glass-card,
    .sub-card {
        padding: 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}
