* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    background: #0d0d0d;
    color: #e8e8e8;
    line-height: 1.7;
}
code, pre, .mono { font-family: 'IBM Plex Mono', monospace; }
a { color: #b7410e; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

header {
    border-bottom: 1px solid #222;
    padding: 16px 0;
    position: sticky;
    top: 0;
    background: rgba(13,13,13,0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
}
header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo:hover { text-decoration: none; }
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}
.nav-links a { color: #999; font-size: 0.9rem; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active { color: #b7410e; }
.gh-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 0.9rem;
    border: 1px solid #333;
    padding: 6px 14px;
    border-radius: 6px;
}
.gh-link:hover { border-color: #555; color: #fff; text-decoration: none; }

.hero {
    padding: 100px 0 80px;
    border-bottom: 1px solid #1a1a1a;
    text-align: center;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 .hl { color: #b7410e; }
.hero-desc {
    font-size: 1.15rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto 32px;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-size: 1.5rem; color: #fff; font-weight: 600; }
.hero-stat span { font-size: 0.85rem; color: #666; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary { background: #b7410e; color: #fff; }
.btn-primary:hover { background: #9a370c; text-decoration: none; }
.btn-secondary { background: #1a1a1a; color: #ccc; border: 1px solid #333; }
.btn-secondary:hover { border-color: #555; text-decoration: none; }

.install-box {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 40px auto 0;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.install-box code { color: #4ade80; font-size: 0.9rem; }
.install-box button {
    background: #222;
    border: 1px solid #333;
    color: #888;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}
.install-box button:hover { color: #fff; border-color: #444; }

section { padding: 80px 0; border-bottom: 1px solid #1a1a1a; }
section:last-of-type { border-bottom: none; }
.section-header { margin-bottom: 48px; }
.section-header h2 { font-size: 1.8rem; font-weight: 600; margin-bottom: 12px; }
.section-header p { color: #777; font-size: 1rem; }
section h3 { font-size: 1.1rem; font-weight: 600; color: #ccc; margin-bottom: 16px; margin-top: 32px; }
section h3:first-of-type { margin-top: 0; }
section > .wrap > p { color: #888; font-size: 0.95rem; }
section > .wrap > p code { background: #1a1a1a; padding: 2px 6px; border-radius: 4px; color: #b7410e; font-size: 0.85rem; }
section > .wrap > p strong { color: #4ade80; }

.page-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid #1a1a1a;
}
.page-header h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.page-header p { color: #777; font-size: 1.1rem; }

.features-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-item {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 24px;
}
.feature-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: #fff; }
.feature-item h3 a { color: #b7410e; }
.feature-item h3 a:hover { color: #d4520f; }
.feature-item p { color: #777; font-size: 0.9rem; line-height: 1.6; }
.feature-item ul { list-style: none; margin: 0; padding: 0; }
.feature-item ul li {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}
.feature-item ul li::before {
    content: "•";
    color: #b7410e;
    position: absolute;
    left: 0;
}
.feature-item ul li strong { color: #ccc; font-weight: 500; }

.endpoints-table { width: 100%; border-collapse: collapse; }
.endpoints-table th, .endpoints-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #1a1a1a;
}
.endpoints-table th {
    color: #666;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.endpoints-table td { color: #999; }
.endpoints-table td strong { color: #4ade80; font-weight: 600; }
.endpoints-table code {
    background: #1a1a1a;
    padding: 4px 8px;
    border-radius: 4px;
    color: #b7410e;
    font-size: 0.85rem;
}

.code-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.code-example {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}
.code-example-header {
    background: #111;
    padding: 12px 16px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.code-example-header .lang { font-weight: 600; font-size: 0.9rem; color: #fff; }
.code-example-header .tag {
    font-size: 0.7rem;
    background: #222;
    padding: 2px 8px;
    border-radius: 10px;
    color: #888;
}
.code-example pre {
    padding: 20px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #aaa;
    white-space: pre-wrap;
    word-break: break-word;
}
.code-example .kw { color: #c678dd; }
.code-example .fn { color: #61afef; }
.code-example .str { color: #98c379; }
.code-example .cm { color: #5c6370; }
.code-example .var { color: #e5c07b; }

.clients-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.client-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 24px;
}
.client-card-info h4 { font-size: 1rem; margin-bottom: 2px; color: #fff; }
.client-card-info p { font-size: 0.8rem; color: #666; margin: 0; }
.client-card code {
    display: block;
    background: #0a0a0a;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #4ade80;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}
.comparison-cell { background: #0d0d0d; padding: 20px; text-align: center; }
.comparison-cell.header { background: #111; font-weight: 600; font-size: 0.9rem; }
.comparison-cell.label { text-align: left; color: #666; font-size: 0.85rem; }
.comparison-cell .value { font-size: 1.1rem; font-weight: 600; }
.comparison-cell .value.best { color: #4ade80; }

.usecases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.usecase { padding: 24px; border-left: 3px solid #222; }
.usecase:hover { border-left-color: #b7410e; }
.usecase h4 { font-size: 1rem; margin-bottom: 8px; color: #fff; }
.usecase p { color: #666; font-size: 0.9rem; }

.live-demo-container { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.live-demo-box {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}
.live-demo-header {
    background: #111;
    padding: 12px 16px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.live-demo-header .title { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #fff; }
.live-demo-header .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #666; }
.live-demo-header .status-dot.connected { background: #4ade80; }
.live-demo-header .status-dot.connecting { background: #fbbf24; animation: pulse 1s infinite; }
.live-demo-header .status-dot.error { background: #f87171; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.live-demo-controls { display: flex; gap: 8px; }
.live-demo-controls button {
    background: #222;
    border: 1px solid #333;
    color: #999;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.live-demo-controls button:hover { background: #333; color: #fff; }
.live-demo-controls button.active { background: #b7410e; border-color: #b7410e; color: #fff; }
.live-demo-controls select {
    background: #222;
    border: 1px solid #333;
    color: #999;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}
.live-demo-stream {
    height: 400px;
    overflow-y: auto;
    padding: 12px;
    font-size: 0.8rem;
    line-height: 1.5;
}
.live-demo-stream::-webkit-scrollbar { width: 6px; }
.live-demo-stream::-webkit-scrollbar-track { background: #111; }
.live-demo-stream::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.cert-entry {
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #111;
    border-radius: 6px;
    border-left: 3px solid #b7410e;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
.cert-entry .domains {
    color: #4ade80;
    font-family: 'IBM Plex Mono', monospace;
    word-break: break-all;
    margin-bottom: 4px;
}
.cert-entry .meta { color: #666; font-size: 0.75rem; display: flex; gap: 12px; flex-wrap: wrap; }
.live-stats { display: flex; flex-direction: column; gap: 12px; }
.live-stat-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 16px;
}
.live-stat-card h4 {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.live-stat-card .value { font-size: 1.5rem; font-weight: 600; color: #fff; }
.live-stat-card .value.highlight { color: #4ade80; }

.rate-limits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.rate-limit-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.rate-limit-card .limit-value { font-size: 1.8rem; font-weight: 700; color: #b7410e; margin-bottom: 4px; }
.rate-limit-card .limit-label { font-size: 0.85rem; color: #666; }

.hosting-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hosting-option {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 28px;
    position: relative;
}
.hosting-option.recommended { border-color: #b7410e; }
.hosting-option .badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #b7410e;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}
.hosting-option h4 { font-size: 1.2rem; margin-bottom: 8px; color: #fff; }
.hosting-option .price { font-size: 1.5rem; font-weight: 700; color: #4ade80; margin-bottom: 16px; }
.hosting-option ul { list-style: none; margin-bottom: 20px; }
.hosting-option ul li {
    padding: 8px 0;
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hosting-option ul li::before { content: "\2713"; color: #4ade80; font-weight: bold; }
.hosting-option .action-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}
.hosting-option .action-btn.primary { background: #b7410e; color: #fff; }
.hosting-option .action-btn.primary:hover { background: #9a370c; text-decoration: none; }
.hosting-option .action-btn.secondary { background: #222; color: #ccc; border: 1px solid #333; }
.hosting-option .action-btn.secondary:hover { border-color: #555; text-decoration: none; }

footer {
    padding: 40px 0;
    text-align: center;
    color: #444;
    font-size: 0.85rem;
}
footer a { color: #666; }
footer .links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }

@media (max-width: 1100px) {
    .code-examples { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .features-list, .usecases-grid, .live-demo-container { grid-template-columns: 1fr; }
    .comparison-grid { grid-template-columns: 1fr 1fr 1fr; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 24px; }
    .rate-limits-grid { grid-template-columns: repeat(2, 1fr); }
    .hosting-options { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .comparison-grid { grid-template-columns: 1fr 1fr 1fr; }
    .comparison-cell { padding: 12px 8px; font-size: 0.85rem; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .client-card { grid-template-columns: 1fr; gap: 12px; }
    .rate-limits-grid { grid-template-columns: 1fr; }
    .wrap { padding: 0 20px; }
}
