:root {
    --bg-main: #071014;
    --bg-elevated: #0c171d;
    --bg-band: #0f1d22;
    --bg-soft: rgba(255, 255, 255, 0.045);
    --text-primary: #f4f7f8;
    --text-muted: #a8b6bb;
    --text-subtle: #718186;
    --border-color: rgba(255, 255, 255, 0.11);
    --border-strong: rgba(255, 255, 255, 0.2);
    --brand-primary: #54d6b5;
    --brand-secondary: #62a8ff;
    --brand-accent: #f4b860;
    --highlight: #54d6b5;
    --success: #2fbf71;
    --danger: #ef6b73;
    --radius: 8px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-main);
}

body {
    color: var(--text-primary);
    font-family: "IBM Plex Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background:
        linear-gradient(180deg, rgba(7, 16, 20, 0.42), var(--bg-main) 38rem),
        url("assets/backgrounds/page-background-enterprise.png") top center / 100% auto no-repeat,
        var(--bg-main);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.shell {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.top-line {
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    z-index: 2000;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
}

.navbar {
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 16, 20, 0.82);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-row {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo-link img {
    width: 190px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta,
.btn,
.submit-btn {
    min-height: 44px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    color: #06100f !important;
    background: var(--brand-primary);
    border: 1px solid transparent;
    border-radius: var(--radius);
    white-space: nowrap;
}

.nav-cta:hover {
    background: #78e8cc;
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-soft);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
}

.hero {
    position: relative;
    min-height: 88vh;
    padding: 150px 0 72px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 16, 20, 0.96) 0%, rgba(7, 16, 20, 0.82) 50%, rgba(7, 16, 20, 0.58) 100%),
        linear-gradient(180deg, rgba(7, 16, 20, 0) 0%, var(--bg-main) 100%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 60px;
    align-items: end;
}

.hero-main {
    max-width: 820px;
}

.eyebrow,
.section-kicker,
.panel-eyebrow,
.card-label {
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    max-width: 900px;
    margin-top: 20px;
    margin-bottom: 24px;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 4.45rem;
    font-weight: 700;
}

.hero-subtitle {
    max-width: 760px;
    margin-bottom: 18px;
    color: #d7e1e4;
    font-size: 1.3rem;
    font-weight: 600;
}

.hero-description {
    max-width: 760px;
    margin-bottom: 32px;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.cta-row,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
    color: #06100f;
    background: var(--brand-primary);
}

.btn-primary:hover {
    background: #78e8cc;
}

.btn-secondary {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.11);
}

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

.stat-card,
.service-card,
.practice-card,
.capability-item,
.control-panel,
.architecture-card,
.step,
.boundary-box {
    background: rgba(12, 23, 29, 0.82);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: none;
}

.stat-card {
    padding: 20px;
}

.stat-title {
    margin-bottom: 6px;
    color: var(--text-subtle);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 700;
}

section {
    padding: 88px 0;
    scroll-margin-top: 88px;
}

.section-band {
    background: rgba(255, 255, 255, 0.025);
    border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header {
    max-width: 820px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-header.align-left {
    margin-left: 0;
    text-align: left;
}

.section-title {
    margin: 10px 0 16px;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.08rem;
}

.service-grid,
.practice-grid,
.architecture-grid {
    display: grid;
    gap: 18px;
    align-items: stretch;
}

.service-grid,
.practice-grid {
    max-width: 960px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
}

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

.service-card,
.practice-card,
.architecture-card,
.step,
.boundary-box,
.control-panel {
    padding: 24px;
}

.service-card.featured {
    background: linear-gradient(180deg, rgba(84, 214, 181, 0.14), rgba(12, 23, 29, 0.86));
    border-color: rgba(84, 214, 181, 0.42);
}

.practice-card.featured-practice {
    background: linear-gradient(180deg, rgba(98, 168, 255, 0.14), rgba(12, 23, 29, 0.86));
    border-color: rgba(98, 168, 255, 0.42);
}

.service-card h3,
.practice-card h3,
.architecture-card h3,
.step h3,
.boundary-box h3,
.control-panel h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.service-card p,
.practice-card p,
.architecture-card p,
.step p,
.boundary-box p,
.control-panel li,
.footer p {
    color: var(--text-muted);
}

.practice-card span {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: rgba(98, 168, 255, 0.12);
    color: var(--brand-secondary);
    font-weight: 800;
}

.practice-card ul {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-left: 18px;
    color: var(--text-muted);
}

.practice-card li {
    color: var(--text-muted);
}

.ecosystem-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.ecosystem-strip span {
    display: block;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    font-size: 0.94rem;
    font-weight: 700;
}

.card-label {
    display: block;
    margin-bottom: 12px;
    color: var(--brand-accent);
}

.capability-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.capability-list {
    display: grid;
    gap: 14px;
}

.capability-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
}

.capability-item span {
    color: var(--brand-secondary);
    font-size: 0.95rem;
    font-weight: 800;
}

.capability-item h3 {
    margin-bottom: 8px;
    font-size: 1.18rem;
}

.capability-item p {
    color: var(--text-muted);
}

.control-panel {
    position: sticky;
    top: 104px;
    border-color: rgba(98, 168, 255, 0.34);
}

.control-panel ul {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-left: 18px;
}

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

.step .num {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: rgba(84, 214, 181, 0.14);
    color: var(--brand-primary);
    font-weight: 800;
}

.boundary-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.boundary-box p {
    margin-bottom: 22px;
}

.boundary-box a,
.footer a {
    display: inline-block;
    color: var(--brand-primary);
    font-weight: 700;
    text-decoration: none;
}

.boundary-box a {
    margin-right: 18px;
}

.boundary-box a:hover,
.footer a:hover {
    color: #9af0db;
}

.legal-page {
    padding: 150px 0 80px;
}

.legal-shell {
    max-width: 860px;
}

.legal-page h1 {
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 3.5rem;
}

.legal-updated {
    color: var(--text-subtle);
    font-weight: 700;
    margin-bottom: 48px;
}

.legal-section {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    scroll-margin-top: 100px;
}

.legal-section h2 {
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.legal-section p,
.legal-section li {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.legal-section p + p {
    margin-top: 14px;
}

.legal-section ul {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding-left: 22px;
}

.legal-section a {
    color: var(--brand-primary);
    font-weight: 700;
    text-decoration: none;
}

.legal-section a:hover {
    color: #9af0db;
}

.cta-section {
    padding: 96px 0;
}

.cta-panel {
    padding: 56px;
    border: 1px solid rgba(84, 214, 181, 0.35);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(84, 214, 181, 0.12), rgba(98, 168, 255, 0.1)),
        var(--bg-elevated);
}

.cta-panel h2 {
    max-width: 720px;
    margin: 10px 0 16px;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 3rem;
}

.cta-panel p {
    max-width: 760px;
    margin-bottom: 28px;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.footer {
    padding: 64px 0 28px;
    background: #040b0e;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
    gap: 32px;
    margin-bottom: 44px;
}

.footer-logo {
    width: 190px;
    margin-bottom: 18px;
}

.footer h3 {
    margin-bottom: 14px;
    font-size: 1rem;
}

.footer a {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-subtle);
    font-size: 0.92rem;
}

.footer-legal {
    display: flex;
    gap: 22px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    padding: 20px;
    overflow-y: auto;
    background: rgba(4, 11, 14, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: min(720px, 100%);
    padding: 32px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: #0b151a;
    box-shadow: var(--shadow);
}

.close {
    position: absolute;
    top: 18px;
    right: 20px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.8rem;
}

.close:hover {
    color: var(--text-primary);
}

.modal h2 {
    margin-bottom: 24px;
    padding-right: 36px;
    font-size: 1.7rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-primary);
    font-size: 0.94rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font: inherit;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23a8b6bb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 15px;
    padding-right: 38px;
}

.form-group select option {
    color: #fff;
    background: #0b151a;
}

.form-group textarea {
    min-height: 132px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(84, 214, 181, 0.16);
}

.field-invalid {
    border-color: var(--danger) !important;
}

.field-valid {
    border-color: rgba(47, 191, 113, 0.75) !important;
}

#formSuccess,
#formError {
    display: none;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: var(--radius);
}

#formSuccess {
    border: 1px solid rgba(47, 191, 113, 0.4);
    background: rgba(47, 191, 113, 0.1);
}

#formError {
    border: 1px solid rgba(239, 107, 115, 0.4);
    background: rgba(239, 107, 115, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: var(--radius);
    background: var(--brand-primary);
    color: #06100f;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.submit-btn:hover {
    background: #78e8cc;
}

.hidden {
    display: none !important;
}

@media (max-width: 1020px) {
    .hero {
        min-height: auto;
        padding-top: 132px;
    }

    .hero-grid,
    .capability-layout {
        grid-template-columns: 1fr;
    }

    .hero-side {
        grid-template-columns: repeat(3, 1fr);
    }

    .control-panel {
        position: static;
    }

    .service-grid,
    .practice-grid,
    .architecture-grid,
    .process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ecosystem-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .shell {
        width: min(100% - 28px, 1160px);
    }

    .nav-row {
        min-height: 68px;
    }

    .logo-link img {
        width: 166px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 76px;
        right: 14px;
        left: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        background: rgba(7, 16, 20, 0.98);
        box-shadow: var(--shadow);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px;
    }

    .nav-cta {
        margin-top: 8px;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .legal-nav {
        display: none;
    }

    .hero {
        padding: 112px 0 48px;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.12rem;
    }

    .hero-description,
    .section-subtitle,
    .cta-panel p {
        font-size: 1rem;
    }

    .hero-side,
    .service-grid,
    .practice-grid,
    .architecture-grid,
    .process,
    .boundary-panel,
    .footer-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    section {
        padding: 64px 0;
    }

    .section-title,
    .cta-panel h2 {
        font-size: 2.25rem;
    }

    .legal-page {
        padding: 112px 0 56px;
    }

    .legal-page h1 {
        font-size: 2.55rem;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .capability-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cta-panel,
    .modal-content {
        padding: 24px;
    }

    .modal.show {
        align-items: flex-start;
    }

    .modal-content {
        margin: 12px 0;
    }

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

@media (max-width: 440px) {
    h1 {
        font-size: 2.42rem;
    }

    .section-title,
    .cta-panel h2 {
        font-size: 2rem;
    }

    .cta-row,
    .cta-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
