@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    color-scheme: dark;
    --bg: #080a0f;
    --bg-muted: #0f141f;
    --bg-elevated: #151b28;
    --text: #e4e9f2;
    --text-muted: #9ba7c0;
    --accent: #00c4b5;
    --accent-dark: #009e94;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1000px, 92vw);
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: hidden;
}

:root {
    --header-height: 72px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(8, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
    color: inherit;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.logo-spin {
    cursor: pointer;
}

.logo-spin .logo-mark {
    height: 32px;
    width: 32px;
    transition: transform 0.2s ease;
}

.site-nav {
    display: flex;
    gap: 0.35rem;
    font-size: 0.9rem;
    flex-wrap: nowrap;
    position: relative;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
    overflow-x: auto;
    scrollbar-width: thin;
}

.site-nav a {
    color: var(--text);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

.nav-indicator {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 60px;
    background: var(--accent);
    border-radius: 999px;
    pointer-events: none;
}

.nav-more {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.28rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.nav-more:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.nav-more-panel {
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.5rem);
    background: rgba(12, 15, 23, 0.96);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.5rem;
    display: grid;
    gap: 0.35rem;
}

.nav-more-panel a {
    color: var(--text);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}

.nav-more-panel a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

.nav-more-panel[hidden],
[hidden] {
    display: none !important;
}

main {
    position: relative;
}

.view {
    display: none;
    padding: 2rem 0;
}

.view.active {
    display: block;
}

.hero {
    padding: 2.5rem 0 2rem;
    background: radial-gradient(circle at top right, rgba(108, 244, 255, 0.08), transparent 50%),
        linear-gradient(180deg, rgba(21, 27, 40, 0.8), rgba(8, 10, 15, 0));
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2.35rem, 5vw, 3.5rem);
    margin: 0.5rem 0;
}

.hero .tagline {
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero .lead {
    max-width: 640px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.8rem;
    box-shadow: 0 0 12px rgba(0, 196, 181, 0.2);
    position: relative;
}

.badge::before {
    display: inline-block;
}

.icon-shield::before { content: "🛡️"; }
.icon-lock::before { content: "🔒"; }
.icon-cpu::before { content: "⚡"; }

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 125%;
    transform: translateX(-50%);
    background: rgba(12, 15, 23, 0.95);
    color: var(--text);
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    white-space: nowrap;
    font-size: 0.78rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.fact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
}

.fact-card .label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.3rem;
}

.fact-card .value {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
}

.btn.primary {
    background: var(--accent);
    color: #040608;
    box-shadow: var(--shadow);
}

.btn.primary:hover {
    transform: translateY(-2px);
    background: #88f8ff;
}

.btn.secondary {
    border-color: var(--border);
    color: var(--text);
    background: transparent;
}

.btn.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.section {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

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

.split ul {
    margin: 1.5rem 0 0;
    padding-left: 1.2rem;
    color: var(--text);
}

.features .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.features article {
    padding: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 18px;
    min-height: 220px;
    box-shadow: var(--shadow);
}

.features h3 {
    margin-top: 0;
    color: #fff;
}

.developers .section-intro {
    margin-bottom: 1.5rem;
}

.developers .link {
    font-weight: 600;
}

.checklist {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.checklist li::before {
    content: "▹";
    color: var(--accent);
    margin-right: 0.5rem;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text);
}

.code-block {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

pre,
code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.95rem;
}

pre {
    margin: 0;
    overflow-x: auto;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.code-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    width: 100%;
}

.code-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #fff;
}

.code-card pre {
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.quickstart {
    display: grid;
    gap: 0.75rem;
}

.inline-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn.tertiary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    cursor: pointer;
}

.copy-wrap {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.terminal pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
}

.orb {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.45;
    background: radial-gradient(circle, rgba(0, 196, 181, 0.8), rgba(0, 196, 181, 0));
    pointer-events: none;
}

.orb-1 { top: -40px; left: -60px; }
.orb-2 { top: 30%; right: -80px; }
.orb-3 { bottom: -80px; left: 30%; }

.status .warning {
    background: rgba(255, 102, 0, 0.1);
    border-left: 4px solid #ff6600;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    color: #ffd7ba;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.status-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    background: var(--bg-elevated);
}

.status-card .label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.status-card .value {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0;
}

.get-started ol {
    counter-reset: steps;
    list-style: none;
    padding-left: 0;
}

.get-started li {
    margin-bottom: 1rem;
    padding-left: 2.8rem;
    position: relative;
    color: var(--text);
}

.get-started li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.get-started code {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
}

.note {
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.accordion {
    display: grid;
    gap: 0.75rem;
}

.accordion details {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    box-shadow: var(--shadow);
    width: 100%;
    overflow: hidden;
}

.accordion summary {
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    outline: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.accordion summary::-webkit-details-marker {
    color: var(--accent);
}

.accordion details[open] summary {
    color: var(--accent);
}

.summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.accordion ol,
.accordion ul {
    margin: 0.65rem 0 0.2rem;
    padding-left: 1.1rem;
    color: var(--text);
}

.accordion code {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.08rem 0.32rem;
    border-radius: 6px;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.roadmap-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.roadmap-card h3 {
    margin-top: 0;
}

.roadmap-card ul {
    padding-left: 1.1rem;
    margin: 0.5rem 0 0;
    color: var(--text);
}

.faq {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.faq-section h2 {
    margin-bottom: 1rem;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    z-index: 20;
}

.modal-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    width: min(360px, 90vw);
    box-shadow: var(--shadow);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
}

.modal ol {
    padding-left: 1.2rem;
    margin: 0.6rem 0;
}

.modal .note {
    margin-top: 0.5rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
    background: #05060b;
}

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

.footer-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 720px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .site-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.4rem;
    }

    .nav-more-panel {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        margin-top: 0.35rem;
    }

    .copy-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
        top: 0.4rem;
        right: 0.4rem;
    }

    .hero {
        padding-top: 2rem;
    }

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