:root {
    --bg: #08111b;
    --panel: #0f1d2c;
    --panel-2: #14263a;
    --ink: #e7edf6;
    --muted: #9db0c5;
    --line: rgba(157, 176, 197, 0.18);
    --accent: #5eead4;
    --accent-2: #f59e0b;
    --signal: #7dd3fc;
    --danger: #fb7185;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(94, 234, 212, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.1), transparent 26%),
        linear-gradient(180deg, #071019 0%, #0a1420 45%, #0a1119 100%);
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: inherit;
}

.wrap {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 0.45rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(7, 16, 25, 0.82);
    border-bottom: 1px solid var(--line);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #10304a, #07131f);
    border: 1px solid rgba(94, 234, 212, 0.25);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.brand-name {
    margin: 0;
    font-size: 1.35rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
}

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

.hero-shell {
    padding: 4.5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 1.5rem;
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.quick-card,
.category-card,
.solution-card,
.tabletop-card,
.intake-form,
.intake-notes,
.ecosystem-grid article,
.process-grid article {
    background: rgba(15, 29, 44, 0.76);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.hero-copy {
    padding: 2rem;
}

.hero-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 4vw, 4.3rem);
    line-height: 1.02;
    max-width: 12ch;
}

.hero-text {
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.03rem;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.button,
.ghost-button {
    border-radius: 999px;
    padding: 0.9rem 1.3rem;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), #36c5db);
    color: #08111b;
}

.button-secondary {
    background: transparent;
    border-color: rgba(125, 211, 252, 0.34);
    color: var(--signal);
}

.ghost-button {
    margin-top: 1rem;
    background: rgba(125, 211, 252, 0.08);
    color: var(--signal);
    border-color: rgba(125, 211, 252, 0.2);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-meta span {
    padding: 0.45rem 0.75rem;
    background: rgba(8, 17, 27, 0.44);
    border-radius: 999px;
    border: 1px solid var(--line);
}

.hero-panel {
    padding: 1.6rem;
}

.panel-label,
.card-kicker {
    margin: 0 0 0.7rem;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
}

.signal-list {
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
}

.signal-list li + li {
    margin-top: 0.65rem;
}

.signal-card {
    margin-top: 1.2rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    background: rgba(245, 158, 11, 0.06);
}

.signal-highlight {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
}

.ecosystem-strip {
    padding: 0 0 2.5rem;
}

.quick-strip {
    padding-top: 0;
}

.compact-head {
    margin-bottom: 1rem;
}

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

.quick-card {
    padding: 1rem 1.1rem;
}

.quick-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

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

.ecosystem-grid article {
    padding: 1.2rem;
}

.ecosystem-grid h3 {
    margin: 0 0 0.45rem;
}

.section-block {
    padding: 2rem 0 4rem;
}

.slate-block {
    background: linear-gradient(180deg, rgba(10, 22, 35, 0.55), rgba(6, 15, 24, 0));
}

.deep-block {
    background: linear-gradient(180deg, rgba(10, 17, 25, 0), rgba(8, 18, 29, 0.45));
}

.section-head {
    max-width: 60rem;
    margin-bottom: 1.6rem;
}

.section-head h2 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.8rem, 2vw, 2.8rem);
}

.section-head p:last-child {
    margin: 0;
    color: var(--muted);
}

.category-grid,
.services-grid,
.solution-grid,
.process-grid {
    display: grid;
    gap: 1rem;
}

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

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

.category-card,
.service-card,
.solution-card,
.process-grid article,
.tabletop-card,
.intake-form,
.intake-notes {
    padding: 1.35rem;
}

.category-card h3,
.service-card h3,
.solution-card h3,
.process-grid h3,
.tabletop-card h3 {
    margin: 0 0 0.65rem;
    font-size: 1.12rem;
}

.example-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.95rem;
}

.example-row span {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(157, 176, 197, 0.18);
    background: rgba(8, 17, 27, 0.5);
    color: var(--muted);
    font-size: 0.84rem;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.category-card p,
.service-card p,
.solution-card p,
.tabletop-card p,
.process-grid p,
.intake-copy p {
    margin: 0;
    color: var(--muted);
}

.tabletop-grid,
.intake-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.step-tag {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(94, 234, 212, 0.1);
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 0.8rem;
}

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

.intake-form label {
    display: grid;
    gap: 0.45rem;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.intake-form input,
.intake-form select,
.intake-form textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(157, 176, 197, 0.22);
    background: rgba(8, 17, 27, 0.72);
    color: var(--ink);
    font: inherit;
    padding: 0.9rem 1rem;
}

.intake-form textarea {
    resize: vertical;
    min-height: 120px;
}

.scoped-box {
    margin: 0.2rem 0 1.1rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: rgba(8, 17, 27, 0.48);
}

.scoped-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 0.9rem;
}

.scoped-head h3 {
    margin: 0;
    font-size: 1rem;
}

.scoped-copy {
    margin: 0;
    color: var(--muted);
    max-width: 34ch;
    font-size: 0.92rem;
}

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

.scoped-field {
    display: grid;
    gap: 0.45rem;
    color: var(--ink);
    font-weight: 600;
}

.scoped-field textarea,
.scoped-field input,
.scoped-field select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(157, 176, 197, 0.22);
    background: rgba(8, 17, 27, 0.72);
    color: var(--ink);
    font: inherit;
    padding: 0.9rem 1rem;
}

.scoped-field textarea {
    min-height: 96px;
    resize: vertical;
}

.scoped-placeholder {
    grid-column: 1 / -1;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(125, 211, 252, 0.07);
    border: 1px dashed rgba(125, 211, 252, 0.18);
    color: var(--muted);
}

.form-button {
    width: 100%;
    margin-top: 0.4rem;
}

.form-footnote {
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.modal-shell {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(3, 8, 14, 0.74);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.modal-shell.is-open {
    display: flex;
}

.modal-panel {
    width: min(860px, 100%);
    background: #0d1a28;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.4rem;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-copy {
    color: var(--muted);
    max-width: 60ch;
}

.modal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-actions {
    margin-top: 1.25rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0 3rem;
}

.site-footer a {
    color: var(--signal);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.welcome-panel {
    width: min(920px, 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 980px) {
    .hero-grid,
    .quick-grid,
    .tabletop-grid,
    .intake-layout,
    .footer-grid,
    .ecosystem-grid,
    .category-grid,
    .solution-grid,
    .process-grid,
    .form-grid,
    .modal-columns,
    .scoped-fields {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        gap: 0.7rem 1rem;
    }

    .scoped-head {
        flex-direction: column;
    }
}
