:root {
    --bg: #080c14;
    --bg-soft: #0e1420;
    --surface: #121a28;
    --surface-hover: #182030;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --ink: #f0f4f8;
    --ink-soft: #94a3b8;
    --ink-muted: #64748b;
    --grad-start: #16d4d9;
    --grad-end: #7c3aed;
    --grad: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    --radius: 16px;
    --radius-sm: 10px;
    --header-h: 64px;
    --font: Inter, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92vw); margin: 0 auto; }

.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.mesh { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: pulse 10s ease-in-out infinite;
}

.orb-a {
    width: 420px; height: 420px;
    top: 8%;
    left: calc(50% - 210px);
    background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 70%);
}

.orb-b {
    width: 320px; height: 320px;
    top: 28%; left: 8%;
    background: radial-gradient(circle, rgba(22, 212, 217, 0.16), transparent 70%);
    animation-delay: 3s;
}

.orb-c {
    width: 280px; height: 280px;
    bottom: 10%; right: 6%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.14), transparent 70%);
    animation-delay: 6s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 20;
    height: var(--header-h);
    border-bottom: 1px solid var(--line);
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(16px);
}

.nav-inner {
    width: min(1180px, 92vw);
    margin: 0 auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
    width: 18px; height: 18px;
    background: var(--grad);
    transform: rotate(45deg);
    border-radius: 3px;
    flex-shrink: 0;
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-copy em {
    font-style: normal;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grad-start);
    font-weight: 600;
}

.nav-menu { display: flex; gap: 1.75rem; margin-left: auto; }

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-soft);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

.btn-gradient {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}

.btn-gradient:hover { box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5); }

.btn-outline {
    border-color: var(--line-strong);
    background: transparent;
}

.btn-outline:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--grad);
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: #fff;
    border-radius: 2px;
}

.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-h) + 72px) 6vw 80px;
}

.pill {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.04em;
    max-width: 18ch;
    margin-bottom: 24px;
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    max-width: 58ch;
    color: var(--ink-soft);
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 28px; }

.env-line {
    font-size: 0.82rem;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.hero-note { color: var(--ink-muted); font-size: 0.85rem; }

.section,
.hero { scroll-margin-top: calc(var(--header-h) + 12px); }

.section { padding: 100px 0; position: relative; }

.section-soft {
    background: var(--bg-soft);
    border-block: 1px solid var(--line);
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grad-start);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--ink-soft);
    max-width: 56ch;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.card:hover {
    border-color: rgba(22, 212, 217, 0.3);
    transform: translateY(-2px);
    background: var(--surface-hover);
}

.card-accent { border-color: rgba(124, 58, 237, 0.4); }

.card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--grad-start);
    margin-bottom: 12px;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.card p, .runtime { color: var(--ink-soft); font-size: 0.95rem; }

.runtime {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 28px;
}

.runtime strong { color: var(--ink); }
.runtime em { color: var(--ink); font-style: normal; }

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mod-id {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.card-wide { grid-column: 1 / -1; }

.contact-wrap { text-align: left; }

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 420px;
}

.contact-card strong { font-size: 1.05rem; }
.contact-card span { color: var(--ink-soft); }

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

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer p { color: var(--ink-muted); font-size: 0.88rem; max-width: 420px; }

@media (max-width: 1100px) {
    .module-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .product-grid,
    .module-grid { grid-template-columns: 1fr; }
    .card-wide { grid-column: auto; }
    .nav-inner .btn-sm { display: none; }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.6rem 0 1rem;
        background: rgba(8, 12, 20, 0.96);
        border-bottom: 1px solid var(--line);
    }

    .nav-menu a { padding: 0.75rem 6vw; }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; margin-left: auto; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
