:root {
    --bg-dark: #07090e;
    --card-bg: rgba(15, 20, 31, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.12);
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.35);
    --secondary: #06b6d4;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent: #34d399;
    --danger: #ef4444;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Elements */
.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}
.orb-1 {
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}
.orb-2 {
    top: 30%;
    right: -200px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Glass Panels */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px var(--primary-glow);
}
.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
.brand-tag {
    display: block;
    font-size: 0.72rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.08em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-docs:hover {
    color: #fff;
}
.nav-docs {
    font-family: var(--font-mono);
    color: var(--secondary) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}
.btn-sm {
    padding: 8px 14px;
    font-size: 0.84rem;
}
.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #042f2e;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
    color: #022c22;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-full {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 50px;
    text-align: center;
}
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Sandbox */
.sandbox-section {
    padding: 30px 0 80px;
}
.sandbox-card {
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.sandbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sandbox-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }
.sandbox-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 8px;
    font-family: var(--font-mono);
}
.rate-badge {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Input Row */
.sandbox-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    background: rgba(8, 11, 18, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0 16px;
    transition: border-color 0.2s;
}
.input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}
.input-prefix {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    margin-right: 4px;
}
.input-wrap input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-mono);
    width: 100%;
    padding: 14px 0;
}
.btn-inspect {
    padding: 0 28px;
    white-space: nowrap;
}
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #042f2e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pills */
.pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.pill-label {
    font-size: 0.82rem;
    color: var(--text-dim);
}
.pill-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.pill-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}
.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.tab-btn:hover {
    color: #fff;
}
.tab-btn.active {
    color: var(--primary);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.metric-card {
    background: rgba(10, 14, 22, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 18px;
}
.metric-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.metric-val {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}
.metric-sub {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 4px;
    display: block;
}
.text-accent {
    color: var(--primary) !important;
}

.info-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.info-block {
    background: rgba(10, 14, 22, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
}
.info-block h3 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 12px;
}
.info-block p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.social-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}
.social-pill:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--secondary);
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.app-card {
    background: rgba(10, 14, 22, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s, border-color 0.2s;
}
.app-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.3);
}
.app-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.app-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.app-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}
.app-link {
    font-size: 0.78rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.app-link:hover {
    text-decoration: underline;
}

/* Code Viewer */
.code-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.json-code {
    background: #05070a;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: #38bdf8;
    overflow-x: auto;
    max-height: 500px;
}

/* Error Box */
.error-box {
    margin-top: 20px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 0.92rem;
}

/* Comparison Section */
.comparison-section {
    padding: 60px 0;
}
.section-title-wrap {
    text-align: center;
    margin-bottom: 40px;
}
.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}
.table-responsive {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}
.comparison-table th, .comparison-table td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.comparison-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}
.feature-yes {
    color: var(--primary);
    font-weight: 600;
}
.feature-no {
    color: var(--text-dim);
}
.feature-highlight {
    color: var(--accent);
    font-size: 1.05rem;
}

/* Pricing Grid */
.pricing-section {
    padding: 60px 0 100px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.pricing-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card.popular {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px var(--primary-glow);
}
.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #042f2e;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 100px;
    letter-spacing: 0.06em;
}
.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.plan-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.plan-price span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}
.plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 40px;
}
.plan-features {
    list-style: none;
    margin-bottom: 28px;
    flex-grow: 1;
}
.plan-features li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.plan-features li strong {
    color: #fff;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 0;
    background: #05070a;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}
.footer-brand {
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
}
.footer-tagline {
    font-size: 0.82rem;
    color: var(--text-dim);
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .nav-links { display: none; }
    .sandbox-input-row { flex-direction: column; }
    .btn-inspect { width: 100%; padding: 14px 0; }
    .info-split { grid-template-columns: 1fr; }
}
