:root {
    --bg-base: #0a0a0a;
    --zinc-900: #18181b;
    --zinc-800: #27272a;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --accent-primary: #10b981; /* Emerald */
    --accent-secondary: #84cc16; /* Lime */
    --glass-bg: rgba(24, 24, 27, 0.6);
    --border-zinc: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-base);
    color: #f4f4f5;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::selection {
    background: rgba(16, 185, 129, 0.3);
}

/* Background Ambient Glows */
.glow-top {
    position: absolute; top: -10%; left: -5%; width: 40%; height: 40%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}

.glow-bottom {
    position: fixed; bottom: -10%; right: -5%; width: 40%; height: 40%;
    background: radial-gradient(circle, rgba(132, 204, 22, 0.05) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}

/* --- Navigation --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 64px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 10%; background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-zinc);
    z-index: 100;
}

.logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.1rem; text-decoration: none; color: inherit; letter-spacing: 0; }
.logo-box {
    width: 32px; height: 32px; border-radius: 8px;
    background:  #f4f4f5;
    color: #000;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px #1e1e1e;
}

.nav-links { display: flex; gap: 24px; }
.nav-link {
    text-decoration: none; color: var(--zinc-400); font-size: 0.85rem;
    font-weight: 500; display: flex; align-items: center; gap: 8px;
    transition: var(--transition);
}
.nav-link:hover { color: white; }

/* --- Hero --- */
.hero {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    min-height: 90vh; padding: 0 10%; gap: 60px; position: relative; z-index: 1;
 margin-top: 64px;
}

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-primary); padding: 4px 12px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 700; margin-bottom: 24px;
}

.badge--online {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--accent-primary);
}

.badge--checking {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
    color: #f59e0b;
}

.badge--offline {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.28);
    color: #f43f5e;
}

.ping { width: 8px; height: 8px; background: var(--accent-primary); border-radius: 50%; position: relative; }
.ping::after {
    content: ''; position: absolute; width: 100%; height: 100%;
    background: var(--accent-primary); border-radius: 50%;
    animation: ping-anim 1.5s infinite;
}

.badge--checking .ping,
.badge--checking .ping::after {
    background: #f59e0b;
}

.badge--offline .ping,
.badge--offline .ping::after {
    background: #f43f5e;
}

@keyframes ping-anim { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }

h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -2px; }
.gradient-text {
    background: linear-gradient(to right, #fff, var(--zinc-500));
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle { font-size: 1.1rem; color: var(--zinc-400); margin-bottom: 32px; max-width: 500px; }

.cta-group { display: flex; gap: 16px; }
.btn {
    padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; display: flex; align-items: center; gap: 10px; transition: var(--transition);
}

.btn-primary { background: #f4f4f5; color: #000; }
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.btn-secondary { background: var(--zinc-900); border: 1px solid var(--zinc-800); color: #f4f4f5; }
.btn-secondary:hover { background: var(--zinc-800); }

/* --- Code Block Mockup --- */
.code-container {
    background: #09090b; border: 1px solid var(--zinc-800);
    border-radius: 16px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    position: relative; backdrop-filter: blur(10px);
}

.code-header {
    background: rgba(24, 24, 27, 0.5); padding: 12px 16px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--zinc-800);
}

.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; }
.dot-1 { background: #ef444433; border: 1px solid #ef444466; }
.dot-2 { background: #f59e0b33; border: 1px solid #f59e0b66; }
.dot-3 { background: #10b98133; border: 1px solid #10b98166; }

.method-badge {
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
    background: var(--zinc-800); padding: 2px 8px; border-radius: 4px;
}

.code-body { padding: 20px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: #d4d4d8; line-height: 1.5; }
.key { color: #fb923c; } .string { color: var(--accent-primary); } .number { color: #facc15; }

/* --- Features --- */
.features {
    padding: 100px 10%; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px; background: rgba(10, 10, 10, 0.5); border-top: 1px solid var(--border-zinc);
}

.feature-card {
    background: rgba(24, 24, 27, 0.4); border: 1px solid var(--zinc-800);
    padding: 32px; border-radius: 20px; transition: var(--transition);
}

.feature-card:hover { border-color: var(--zinc-500); transform: translateY(-5px); background: rgba(24, 24, 27, 0.8); }

.icon-wrapper {
    width: 48px; height: 48px; border-radius: 12px; margin-bottom: 24px;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    border: 1px solid var(--border-zinc);
}

.feature-card h3 { margin-bottom: 12px; font-weight: 700; font-size: 1.1rem; }
.feature-card p { color: var(--zinc-400); font-size: 0.9rem; line-height: 1.7; }

footer { text-align: center; padding: 40px; border-top: 1px solid var(--zinc-800); color: var(--zinc-500); font-size: 0.8rem; }

@media (max-width: 968px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
    h1 { font-size: 2.8rem; }
    .cta-group { justify-content: center; }
    .subtitle { margin: 0 auto 32px; }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-visual.fade-in { animation-delay: 0.2s; }
