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

:root {
    --bg: #0b0c0e;
    --bg-light: #14161a;
    --bg-card: #0f1115;
    --text: #f0f1f3;
    --text-dim: #9aa0aa;
    --accent: #f97373;
    --accent-2: #f43f5e;
    --border: #23262d;
    --success: #22c55e;
}

body {
    font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(249, 115, 115, 0.18), transparent),
                radial-gradient(900px 500px at 90% 10%, rgba(244, 63, 94, 0.14), transparent),
                var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.mono {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.bg-orb {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
}

.orb-1 {
    background: #f97373;
    top: -120px;
    left: -120px;
}

.orb-2 {
    background: #f43f5e;
    top: 120px;
    right: -180px;
}

.grain {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Nav */
.nav {
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 12, 14, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

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

.nav-links a {
    color: var(--text-dim);
    font-size: 14px;
}

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

.btn-nav {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

/* Hero */
.hero {
    padding: 140px 24px 80px;
    position: relative;
    z-index: 1;
}

.hero-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

.hero-copy h1 {
    font-size: 52px;
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1.2px;
}

.hero-copy p {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 24px;
    max-width: 520px;
}

.hero-code {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 20px;
    overflow-x: auto;
}

.hero-code code {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 14px;
    color: var(--text);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    box-shadow: 0 10px 24px rgba(249, 115, 115, 0.25);
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text);
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    border: 1px solid var(--border);
}

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

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 16px;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(249, 115, 115, 0.08), transparent 50%);
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dim);
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

.card-body {
    display: grid;
    gap: 16px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric .label {
    font-size: 12px;
    color: var(--text-dim);
}

.metric .value {
    font-size: 18px;
    font-weight: 600;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chip {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-dim);
}

/* Sections */
.section {
    padding: 80px 24px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 48px;
    text-align: center;
}

.section-dark {
    background: var(--bg-light);
    max-width: none;
}

.section-dark > * {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(15, 17, 21, 0.6);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 115, 0.4);
}

.feature h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: var(--text-dim);
}

/* Steps */
.steps {
    display: flex;
    gap: 48px;
    justify-content: center;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 250px;
}

.step-num {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-dim);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.plan {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    background: var(--bg-card);
}

.plan-pro {
    border-color: rgba(249, 115, 115, 0.5);
    box-shadow: 0 20px 40px rgba(249, 115, 115, 0.2);
}

.plan h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.price {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 24px;
}

.price span {
    font-size: 16px;
    color: var(--text-dim);
    font-weight: 400;
}

.plan ul {
    list-style: none;
    margin-bottom: 24px;
    text-align: left;
}

.plan li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-dim);
}

.plan li:last-child {
    border-bottom: none;
}

/* Docs */
.docs-content {
    max-width: 600px;
    margin: 0 auto;
}

.docs-content h3 {
    font-size: 16px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.docs-content h3:first-child {
    margin-top: 0;
}

.docs-content pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
}

.docs-content code {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 13px;
}

.docs-content p {
    font-size: 14px;
    color: var(--text-dim);
}

/* Footer */
.footer {
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 14px;
    color: var(--text-dim);
}

/* Mobile */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

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

    .steps {
        flex-direction: column;
        align-items: center;
    }

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

    .nav-links a:not(.btn-nav) {
        display: none;
    }
}
