:root {
    --bg: #070a12;
    --bg-soft: #0d1320;
    --panel: #121a29;
    --panel-strong: #172338;
    --line: rgba(141, 164, 199, 0.22);
    --text: #f5f8ff;
    --muted: #a7b3c7;
    --subtle: #718098;
    --blue: #38bdf8;
    --green: #34d399;
    --violet: #a78bfa;
    --danger: #fb7185;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.12), transparent 26rem),
        radial-gradient(circle at 88% 4%, rgba(52, 211, 153, 0.1), transparent 24rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

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

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 10, 18, 0.86);
    backdrop-filter: blur(18px);
}

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

.logo-area {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand-name {
    font-weight: 800;
    letter-spacing: 0;
    font-size: 1.08rem;
}

.brand-name span {
    color: var(--green);
    margin-left: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a {
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 650;
    padding: 10px 14px;
    text-decoration: none;
    transition: 160ms ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--text);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    transition: 160ms ease;
}

.menu-toggle.active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:last-child {
    transform: rotate(-45deg);
}

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 10, 18, 0.96) 0%, rgba(7, 10, 18, 0.75) 48%, rgba(7, 10, 18, 0.9) 100%),
        url("assets/banner-tech.png") center / cover no-repeat;
    opacity: 0.82;
}

.hero-grid {
    position: relative;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 52px;
    padding: 88px 0 110px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow,
.section-kicker,
.platform-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(52, 211, 153, 0.32);
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.09);
    color: #9df4d0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 7px 11px;
    text-transform: uppercase;
}

h1 {
    margin-top: 20px;
    font-size: clamp(4.4rem, 8vw, 7.8rem);
    line-height: 0.92;
    letter-spacing: 0;
}

h2 {
    margin-top: 12px;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: 0;
}

h3 {
    font-size: 1.28rem;
    line-height: 1.25;
}

.hero-copy p {
    max-width: 620px;
    margin-top: 24px;
    color: #cbd5e1;
    font-size: 1.18rem;
}

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

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 18px;
    font-weight: 800;
    text-decoration: none;
    transition: 160ms ease;
}

.btn.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #021017;
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.btn:hover,
.inline-link:hover,
.doc-actions a:hover {
    transform: translateY(-2px);
}

.signal-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 19, 32, 0.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    padding: 18px;
}

.signal-panel div {
    border-bottom: 1px solid var(--line);
    padding: 18px 6px;
}

.signal-panel div:last-child {
    border-bottom: 0;
}

.signal-panel strong,
.signal-panel span {
    display: block;
}

.signal-panel strong {
    margin-bottom: 5px;
}

.signal-panel span {
    color: var(--muted);
    font-size: 0.95rem;
}

.section {
    padding: 92px 0;
}

.band {
    background: rgba(13, 19, 32, 0.62);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

.split-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.65fr);
    gap: 44px;
    align-items: end;
}

.split-heading p,
.product-card p,
.doc-card p,
.contact-panel p,
.legal-intro p {
    color: var(--muted);
}

.docs-grid,
.product-grid {
    display: grid;
    gap: 18px;
    margin-top: 32px;
}

.docs-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
}

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

.doc-card,
.product-card,
.contact-panel,
.legal-card,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(23, 35, 56, 0.82), rgba(13, 19, 32, 0.82));
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.18);
}

.doc-card,
.product-card {
    padding: 24px;
}

.doc-card.featured {
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(52, 211, 153, 0.1)),
        var(--panel);
}

.doc-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--subtle);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.doc-card h3,
.product-card h3 {
    margin-bottom: 10px;
}

.doc-actions a,
.inline-link,
.disabled-link {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: inline-flex;
    font-weight: 800;
    margin-top: 20px;
    min-height: 42px;
    align-items: center;
    padding: 0 14px;
    text-decoration: none;
    transition: 160ms ease;
}

.disabled-link {
    color: var(--subtle);
    cursor: not-allowed;
    opacity: 0.58;
}

.doc-actions {
    margin-top: 24px;
}

.doc-actions a {
    margin-top: 0;
}

.product-card ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin-top: 20px;
}

.product-card li {
    color: #d7e3f4;
    padding-left: 22px;
    position: relative;
}

.product-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.product-card.muted {
    background: rgba(18, 26, 41, 0.48);
}

.contact-section {
    padding-top: 72px;
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
}

.contact-panel p {
    margin-top: 12px;
    max-width: 680px;
}

.footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 26px 0;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer a {
    color: var(--muted);
    font-weight: 700;
    margin-left: 16px;
    text-decoration: none;
}

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

.page-hero {
    padding: 74px 0 44px;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 7vw, 5.8rem);
}

.page-hero p {
    color: var(--muted);
    max-width: 760px;
    margin-top: 18px;
    font-size: 1.08rem;
}

.library-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-bottom: 88px;
}

.legal-card {
    padding: 26px;
}

.legal-card header {
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.legal-card small {
    color: var(--green);
    display: block;
    font-weight: 800;
    margin-top: 8px;
    text-transform: uppercase;
}

.legal-card p {
    color: var(--muted);
}

.legal-card .doc-actions {
    margin-top: 22px;
}

.empty-state {
    background: rgba(18, 26, 41, 0.44);
    color: var(--muted);
    padding: 26px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
    padding: 48px 0 88px;
}

.legal-sidebar {
    align-self: start;
    position: sticky;
    top: 98px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(18, 26, 41, 0.72);
    padding: 18px;
}

.legal-sidebar a {
    display: block;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 750;
    padding: 10px 12px;
    text-decoration: none;
}

.legal-sidebar a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--text);
}

.legal-article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(18, 26, 41, 0.72);
    padding: clamp(24px, 4vw, 42px);
}

.legal-intro {
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
    padding-bottom: 24px;
}

.legal-intro h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
}

.legal-content {
    color: #d8e1ee;
}

.legal-content h2 {
    font-size: 1.32rem;
    margin: 34px 0 10px;
}

.legal-content p,
.legal-content li {
    color: var(--muted);
    margin-top: 10px;
}

.legal-content ul {
    margin: 12px 0 0 20px;
}

.meta-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    margin-top: 34px;
    padding: 18px;
}

.meta-box code {
    color: var(--text);
    word-break: break-word;
}

@media (max-width: 920px) {
    .hero-grid,
    .split-heading,
    .docs-grid,
    .product-grid,
    .library-grid,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
        padding: 72px 0 88px;
    }

    .signal-panel,
    .legal-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .nav-menu {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(13, 19, 32, 0.98);
        padding: 10px;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    h1 {
        font-size: clamp(3.1rem, 18vw, 4.8rem);
    }

    .hero-actions,
    .contact-panel,
    .footer-grid {
        align-items: stretch;
        flex-direction: column;
    }

    .section {
        padding: 66px 0;
    }

    .contact-panel {
        padding: 24px;
    }
}
