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

:root {
    --font-body: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Manrope', sans-serif;

    --color-bg: #060b1a;
    --color-surface: rgba(11, 18, 40, 0.72);
    --color-card: rgba(16, 24, 48, 0.85);
    --color-border: rgba(120, 130, 170, 0.15);
    --color-border-strong: rgba(120, 130, 170, 0.28);
    --color-text: #f8fafc;
    --color-text-muted: rgba(209, 213, 219, 0.7);
    --color-text-soft: rgba(148, 163, 184, 0.7);
    --color-accent: #7b8dfd;
    --color-accent-strong: #4f46e5;
    --color-success: #34d399;

    --shadow-md: 0 24px 50px rgba(8, 15, 32, 0.36);
    --shadow-lg: 0 40px 120px rgba(6, 12, 29, 0.55);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    --shell-width: min(1180px, calc(100% - 40px));
    --gap: clamp(16px, 3vw, 32px);
}

body {
    font-family: var(--font-body);
    background: radial-gradient(120% 120% at 0% 0%, rgba(79, 70, 229, 0.25) 0%, rgba(79, 70, 229, 0) 55%),
                radial-gradient(90% 120% at 90% 10%, rgba(14, 165, 233, 0.22) 0%, rgba(59, 130, 246, 0) 60%),
                var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
}

.background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
}

.background-layer {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    filter: blur(120px);
    opacity: 0.4;
    transform: rotate(6deg);
}

.background-layer.layer-one {
    background: radial-gradient(circle at 20% 20%, rgba(91, 33, 182, 0.45), transparent 60%);
    animation: drift 28s ease-in-out infinite;
}

.background-layer.layer-two {
    background: radial-gradient(circle at 78% 25%, rgba(14, 165, 233, 0.45), transparent 60%);
    animation: drift 34s ease-in-out infinite reverse;
}

.background-grid {
    position: absolute;
    inset: 0;
    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: 64px 64px;
    opacity: 0.35;
}

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1) rotate(6deg); }
    45% { transform: translate3d(8%, -6%, 0) scale(1.05) rotate(4deg); }
    70% { transform: translate3d(-12%, 10%, 0) scale(0.96) rotate(8deg); }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shell {
    width: var(--shell-width);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 0;
    backdrop-filter: blur(16px);
    background: linear-gradient(90deg, rgba(8, 15, 32, 0.6), rgba(8, 15, 32, 0.2));
    border-bottom: 1px solid rgba(120, 130, 160, 0.18);
}

.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.brand-icon {
    font-size: 1.6rem;
}

.nav {
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    transition: color 0.25s ease;
}

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

.nav-links .ghost-link {
    border: 1px solid rgba(123, 141, 253, 0.35);
    padding: 10px 16px;
    border-radius: var(--radius-pill);
}

.nav-links .cta {
    background: linear-gradient(135deg, rgba(123, 141, 253, 0.9) 0%, rgba(79, 70, 229, 0.95) 100%);
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    box-shadow: 0 16px 32px rgba(67, 56, 202, 0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(123, 141, 253, 0.5);
    background: rgba(6, 12, 29, 0.65);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-toggle-line {
    width: 18px;
    height: 2px;
    background: var(--color-text);
    border-radius: 999px;
}

.hero {
    padding: clamp(80px, 14vw, 160px) 0 clamp(60px, 8vw, 100px);
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(123, 141, 253, 0.35);
    background: rgba(6, 12, 29, 0.65);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(209, 213, 219, 0.75);
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 4.8vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-top: clamp(18px, 3vw, 28px);
}

.lead {
    margin-top: clamp(18px, 3vw, 28px);
    color: var(--color-text-muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.65;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: clamp(20px, 3vw, 32px);
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(123, 141, 253, 0.95) 0%, rgba(79, 70, 229, 0.95) 100%);
    color: white;
    box-shadow: 0 18px 35px rgba(67, 56, 202, 0.35);
}

.btn-secondary {
    border: 1px solid rgba(123, 141, 253, 0.4);
    color: var(--color-text);
    background: rgba(6, 12, 29, 0.5);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.uptime {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    background: rgba(18, 27, 52, 0.7);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: rgba(203, 213, 225, 0.8);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.uptime-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.15);
    animation: pulse 2.2s ease-in-out infinite;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    margin-top: clamp(32px, 4vw, 48px);
}

.hero-metrics div {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(123, 141, 253, 0.24);
    background: rgba(16, 24, 48, 0.65);
    box-shadow: var(--shadow-md);
}

.hero-metrics dt {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-metrics dd {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    margin-top: 8px;
}

.hero-surface {
    position: relative;
}

.hero-card {
    border-radius: var(--radius-lg);
    background: rgba(12, 19, 43, 0.75);
    border: 1px solid rgba(123, 141, 253, 0.18);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-card header,
.hero-card footer {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(123, 141, 253, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-card footer { border-bottom: none; border-top: 1px solid rgba(123, 141, 253, 0.15); }

.hero-card .status {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(52, 211, 153, 0.2);
    color: var(--color-success);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-card ul {
    list-style: none;
    display: grid;
    gap: 18px;
    padding: 24px;
}

.hero-card li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.hero-card .label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 24px;
    border-radius: var(--radius-pill);
    background: rgba(123, 141, 253, 0.2);
    color: rgba(194, 197, 255, 0.95);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.hero-card strong {
    display: block;
    font-size: 0.95rem;
}

.hero-card .metric {
    font-family: var(--font-display);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.caption {
    font-size: 0.82rem;
    color: var(--color-text-soft);
}

.section {
    padding: clamp(70px, 10vw, 120px) 0;
}

.section-heading {
    display: grid;
    gap: 16px;
    max-width: 640px;
}

.eyebrow {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.8vw, 2.6rem);
    line-height: 1.15;
}

.section p {
    color: var(--color-text-muted);
    line-height: 1.65;
}

.solutions .solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap);
    margin-top: clamp(32px, 4vw, 48px);
}

.solution-card {
    padding: clamp(24px, 3.5vw, 32px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(123, 141, 253, 0.16);
    background: rgba(9, 16, 34, 0.68);
    display: grid;
    gap: 18px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: rgba(123, 141, 253, 0.38);
}

.solution-card header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.solution-card .icon {
    font-size: 1.8rem;
}

.solution-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.solution-card ul {
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.platform-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: clamp(32px, 6vw, 70px);
    align-items: center;
}

.platform-content {
    display: grid;
    gap: 20px;
}

.platform-list {
    list-style: none;
    display: grid;
    gap: 12px;
    color: var(--color-text-muted);
}

.platform-visual {
    display: flex;
    justify-content: center;
}

.platform-preview {
    width: min(420px, 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(123, 141, 253, 0.2);
    background: rgba(9, 15, 33, 0.78);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(123, 141, 253, 0.18);
}

.status-pill {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(123, 141, 253, 0.3);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.preview-body {
    padding: 22px;
    display: grid;
    gap: 18px;
}

.preview-chart {
    height: 140px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(123, 141, 253, 0.24), rgba(68, 78, 200, 0.08));
    border: 1px solid rgba(123, 141, 253, 0.16);
}

.preview-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.preview-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--color-text-muted);
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.tag-http { background: rgba(123, 141, 253, 0.22); }
.tag-tcp { background: rgba(30, 191, 153, 0.22); }
.tag-udp { background: rgba(14, 165, 233, 0.22); }

.downloads .download-grid {
    margin-top: clamp(32px, 4vw, 48px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gap);
}

.download-card {
    display: grid;
    gap: 18px;
    padding: clamp(24px, 3.5vw, 34px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(123, 141, 253, 0.18);
    background: rgba(9, 16, 34, 0.72);
    box-shadow: var(--shadow-md);
}

.download-card header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.download-card .icon {
    font-size: 1.9rem;
}

.download-card h3 {
    font-size: 1.1rem;
}

.download-card p {
    font-size: 0.95rem;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(123, 141, 253, 0.3);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.quickstart-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: clamp(32px, 6vw, 64px);
    align-items: stretch;
}

.quickstart-content {
    display: grid;
    gap: 18px;
}

.quickstart-content ul {
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.code-panel {
    border: 1px solid rgba(123, 141, 253, 0.16);
    background: rgba(6, 12, 29, 0.72);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(123, 141, 253, 0.14);
    font-weight: 600;
}

.copy-btn {
    border: none;
    background: none;
    color: var(--color-accent);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.92rem;
}

pre {
    padding: 22px;
    overflow-x: auto;
    scrollbar-width: thin;
}

code {
    display: block;
    font-family: 'Fira Code', 'SFMono-Regular', Menlo, Consolas, monospace;
    color: rgba(203, 213, 225, 0.85);
    line-height: 1.7;
}

.cta {
    background: linear-gradient(135deg, rgba(123, 141, 253, 0.18), rgba(67, 56, 202, 0.08));
    border-top: 1px solid rgba(123, 141, 253, 0.25);
}

.cta-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer {
    border-top: 1px solid rgba(123, 141, 253, 0.2);
    background: rgba(6, 12, 29, 0.7);
    padding: clamp(32px, 6vw, 60px) 0;
}

.footer-shell {
    display: grid;
    gap: 28px;
}

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

.footer-brand p {
    color: var(--color-text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.footer-links h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-links a {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.25s ease;
}

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

.footer-meta {
    font-size: 0.85rem;
    color: var(--color-text-soft);
}

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

@media (max-width: 1024px) {
    .hero-shell,
    .platform-shell,
    .quickstart-shell {
        grid-template-columns: 1fr;
    }

    .hero-surface,
    .platform-visual {
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: calc(100% + 12px);
        background: rgba(6, 12, 29, 0.95);
        border: 1px solid rgba(123, 141, 253, 0.3);
        border-radius: var(--radius-lg);
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        min-width: 220px;
        transform-origin: top right;
        transform: scale(0.9);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .nav[data-open="true"] .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
        box-shadow: 0 18px 45px rgba(8, 15, 32, 0.6);
    }
}

@media (max-width: 640px) {
    :root {
        --shell-width: calc(100% - 32px);
    }

    .hero {
        padding-top: 90px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

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