:root {
    --bg: #070c10;
    --surface: #0f1419;
    --surface2: #161d24;
    --surface3: #1d262f;
    --border: #1e2a35;
    --border-light: #263340;
    --text: #e2eef5;
    --text2: #8fb3c8;
    --text3: #5a7a90;
    --accent: #00d4f0;
    --accent-hover: #00b8d4;
    --accent-dim: rgba(0, 212, 240, 0.10);
    --accent-dim2: rgba(0, 212, 240, 0.05);
    --accent-glow: rgba(0, 212, 240, 0.18);
    --accent-glow-strong: rgba(0, 212, 240, 0.28);
    --green: #22c55e;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg); color: var(--text);
    min-height: 100vh; display: flex; flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navbar */
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 40px; border-bottom: 1px solid var(--border);
    background: rgba(7, 12, 16, 0.92); backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 100;
}
.nav-logo {
    font-size: 20px; font-weight: 700; letter-spacing: -0.5px;
    text-decoration: none; color: var(--text);
    display: inline-flex; align-items: center; gap: 8px;
}
.nav-logo img { filter: drop-shadow(0 0 6px var(--accent-glow)); }
.nav-logo span { color: var(--accent); text-shadow: 0 0 12px rgba(0, 212, 240, 0.4); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 7px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text2); text-decoration: none;
    font-size: 13px; font-weight: 500; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); border-color: var(--border-light); background: var(--surface2); text-decoration: none; }
.nav-link.primary { background: var(--accent); border-color: var(--accent); color: #000; box-shadow: 0 0 16px var(--accent-glow-strong); }
.nav-link.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #000; box-shadow: 0 0 20px var(--accent-glow-strong); }

/* Hero */
.hero {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; padding: 40px 24px 40px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 15%; left: 50%; transform: translateX(-50%);
    width: 700px; height: 360px;
    background: radial-gradient(ellipse at center, rgba(0, 212, 240, 0.07) 0%, transparent 70%);
    pointer-events: none;
}
.hero-logo-wrap {
    position: relative; width: 520px; height: 520px; max-width: 70vw; margin-bottom: 24px; z-index: 2;
}
.hero-logo {
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 212, 240, 0.6)) drop-shadow(0 0 50px rgba(0, 212, 240, 0.2));
    position: relative; z-index: 2;
}
.hero-logo-glow {
    position: absolute; inset: 15% 20% 20% 15%;
    background: radial-gradient(ellipse at 55% 50%, rgba(0, 212, 240, 0.18) 0%, rgba(0, 212, 240, 0.06) 50%, transparent 75%);
    filter: blur(20px);
    z-index: 1; pointer-events: none;
}
#circuit-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border-light);
    background: var(--surface); font-size: 12px; color: var(--text2);
    font-weight: 500; margin-bottom: 36px; letter-spacing: 0.2px;
    position: relative; z-index: 2;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
.wordmark {
    font-size: clamp(56px, 10vw, 96px); font-weight: 800; letter-spacing: -3px;
    line-height: 1; margin-bottom: 28px; position: relative; z-index: 2;
}
.wordmark span {
    color: var(--accent);
    text-shadow: 0 0 24px rgba(0, 212, 240, 0.45), 0 0 60px rgba(0, 212, 240, 0.15);
}
.tagline { font-size: clamp(18px, 3vw, 22px); color: var(--text2); font-weight: 400; max-width: 520px; line-height: 1.5; margin-bottom: 48px; position: relative; z-index: 2; }
.tagline strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; position: relative; z-index: 2; }

/* Install banner */
.install-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border-light);
    margin-bottom: 36px; cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative; z-index: 2;
}
.install-banner:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-dim), 0 0 16px var(--accent-dim);
}
.install-banner code {
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    font-size: 15px; color: var(--green); font-weight: 600;
}
.install-banner .copy-hint {
    font-size: 11px; color: var(--text3); font-weight: 500;
}

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 10px; background: var(--accent);
    color: #000; text-decoration: none; font-size: 15px; font-weight: 600;
    border: none; cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover); transform: translateY(-1px);
    box-shadow: 0 0 28px var(--accent-glow-strong); text-decoration: none;
}
.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 10px; background: transparent;
    border: 1px solid var(--border-light); color: var(--text);
    text-decoration: none; font-size: 15px; font-weight: 500;
    cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn-ghost:hover {
    border-color: var(--accent); background: var(--accent-dim2);
    box-shadow: 0 0 0 1px var(--accent-dim), 0 0 12px var(--accent-dim);
    transform: translateY(-1px); text-decoration: none;
}

/* Badges */
.badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.badge {
    display: inline-flex; align-items: center; gap: 0; border-radius: 6px;
    overflow: hidden; font-size: 11px; font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    border: 1px solid var(--border); text-decoration: none;
}
.badge-left { padding: 4px 8px; background: var(--surface2); color: var(--text2); }
.badge-right { padding: 4px 8px; background: var(--accent); color: #000; }
.badge-right.green { background: #16a34a; color: #fff; }
.badge-right.gray { background: var(--surface3); color: var(--text2); }
.badge-right.orange { background: #c2410c; color: #fff; }

/* Features */
.features { padding: 72px 24px; max-width: 1000px; margin: 0 auto; width: 100%; }
.section-label {
    text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 212, 240, 0.3);
    margin-bottom: 14px;
}
.section-title { text-align: center; font-size: clamp(24px, 4vw, 34px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--text2); font-size: 15px; max-width: 480px; margin: 0 auto 56px; line-height: 1.6; }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.feature-card { padding: 32px 28px; background: var(--surface); transition: background 0.15s, box-shadow 0.2s; position: relative; }
.feature-card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--accent-dim);
    opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.feature-card:hover { background: var(--surface2); }
.feature-card:hover::after { opacity: 1; }
.feature-icon { font-size: 28px; margin-bottom: 16px; display: block; }
.feature-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }
.feature-desc code {
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: 11px;
    background: var(--surface3); padding: 1px 5px; border-radius: 4px; color: var(--accent);
}

/* Code snippet */
.quickstart { padding: 72px 24px; max-width: 720px; margin: 0 auto; width: 100%; }
.code-block { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.code-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    font-size: 12px; font-weight: 600; color: var(--text2);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-light); }
.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #eab308; }
.code-dots span:nth-child(3) { background: #22c55e; }
pre { padding: 24px; font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: 13px; line-height: 1.7; overflow-x: auto; color: var(--text); }
.kw { color: #c084fc; }
.fn { color: #38bdf8; }
.st { color: #34d399; }
.cm { color: var(--text3); }
.im { color: #f97316; }

/* Storage Backends */
.backends { padding: 72px 24px; max-width: 1000px; margin: 0 auto; width: 100%; }
.backends-tagline { text-align: center; font-size: clamp(13px, 2vw, 15px); color: var(--text2); margin-bottom: 44px; letter-spacing: 0.1px; }
.backends-tagline strong { color: var(--text); }
.backends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.backend-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 22px 16px 20px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; text-align: center; position: relative;
    transition: border-color 0.2s, background 0.15s, box-shadow 0.2s;
}
.backend-card:hover {
    background: var(--surface2); border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-dim), 0 0 16px var(--accent-dim);
}
.backend-icon { font-size: 26px; line-height: 1; }
.backend-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.backend-desc { font-size: 11px; color: var(--text2); line-height: 1.5; }
.backend-soon {
    position: absolute; top: 10px; right: 10px; padding: 2px 7px; border-radius: 4px;
    background: var(--surface3); border: 1px solid var(--border-light);
    font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text2);
}
.backend-card.soon { opacity: 0.65; }

/* Pricing */
.pricing { padding: 72px 24px; max-width: 1000px; margin: 0 auto; width: 100%; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px 28px; display: flex; flex-direction: column; gap: 0; position: relative; }
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-dim), 0 0 40px rgba(0, 212, 240, 0.08);
}
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: 4px 14px; border-radius: 20px; background: var(--accent); color: #000;
    font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; white-space: nowrap;
    box-shadow: 0 0 16px var(--accent-glow);
}
.pricing-tier { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.pricing-price { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; color: var(--text); line-height: 1; margin-bottom: 4px; }
.pricing-price sup { font-size: 20px; font-weight: 600; letter-spacing: 0; vertical-align: super; line-height: 0; }
.pricing-period { font-size: 13px; color: var(--text2); margin-bottom: 24px; }
.pricing-divider { height: 1px; background: var(--border); margin-bottom: 24px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 32px; flex: 1; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text2); line-height: 1.4; }
.pricing-features li::before { content: '\2713'; color: var(--green); font-weight: 700; font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.pricing-cta {
    display: inline-flex; align-items: center; justify-content: center; width: 100%;
    padding: 13px 20px; min-height: 44px; border-radius: 10px; font-size: 14px; font-weight: 600;
    font-family: inherit; cursor: pointer; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    text-decoration: none; border: 1px solid var(--border-light); background: transparent; color: var(--text);
}
.pricing-cta:hover:not(:disabled) { background: var(--surface2); transform: translateY(-1px); text-decoration: none; }
.pricing-cta.accent {
    background: var(--accent); border-color: var(--accent); color: #000;
    box-shadow: 0 0 16px var(--accent-glow);
}
.pricing-cta.accent:hover:not(:disabled) {
    background: var(--accent-hover); border-color: var(--accent-hover);
    box-shadow: 0 0 24px var(--accent-glow-strong);
}
.pricing-cta:disabled { opacity: 0.45; cursor: not-allowed; }

/* Community CTA */
.community-section {
    padding: 72px 24px; background: var(--surface);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    text-align: center;
}
.community-inner { max-width: 480px; margin: 0 auto; }

/* Footer */
footer { padding: 32px 40px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-logo {
    font-size: 16px; font-weight: 700; letter-spacing: -0.5px;
    text-decoration: none; color: var(--text2);
    display: inline-flex; align-items: center; gap: 6px;
}
.footer-logo img { filter: drop-shadow(0 0 4px var(--accent-dim)); }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text3); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--text2); }
.footer-copy { font-size: 12px; color: var(--text3); }
.divider { height: 1px; background: var(--border); max-width: 1000px; margin: 0 auto; }

/* Responsive */
@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .pricing-card.featured { margin-top: 12px; }
}
@media (max-width: 640px) {
    .nav { padding: 14px 20px; }
    .nav-links { gap: 6px; }
    .nav-link { padding: 6px 10px; font-size: 12px; }
    .hero { padding: 32px 20px 32px; }
    .hero::before { width: 300px; }
    .hero-logo-wrap { width: 70vw; height: 70vw; max-width: 360px; margin-bottom: 16px; }
    .hero-logo { width: 100%; height: 100%; }
    #circuit-canvas { width: 400px; height: 400px; }
    .wordmark { letter-spacing: -2px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-ghost { justify-content: center; }
    .features, .backends, .pricing { padding: 48px 20px; }
    .features-grid { grid-template-columns: 1fr; border-radius: 10px; }
    .backends-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
    .quickstart { padding: 48px 20px; }
    .community-section { padding: 56px 20px; }
    footer { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
    .install-banner { flex-direction: column; gap: 4px; }
}
@media (max-width: 400px) { .badges { gap: 6px; } }
.nav-logo-img { height: 28px; width: 28px; }
.footer-logo-img { height: 22px; width: 22px; }
.feature-actions { display: flex; gap: 12px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.btn-disabled { opacity: 0.7; cursor: default; }
.inline-code { font-family: monospace; font-size: 12px; background: var(--surface2); padding: 2px 6px; border-radius: 4px; color: var(--accent); }
.community-desc { color: var(--text2); font-size: 14px; margin-bottom: 28px; line-height: 1.6; }
.section-title-mb12 { margin-bottom: 12px; }
