/*
BRS-KB | EasyProTech LLC
*/

:root {
    --bg: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --border: #2a2a3a;
    --text: #e8e8ed;
    --text-dim: #8888a0;
    --text-muted: #5a5a70;
    --accent: #00d4aa;
    --accent-dim: #00a885;
    --get: #4ecdc4;
    --post: #ff6b9d;
    --font: 'Outfit', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.gradient-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 170, 0.06), transparent);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
}

.logo svg, .logo-icon-svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.version-badge {
    font-size: 0.65rem;
    font-family: var(--mono);
    color: var(--accent);
    background: rgba(0, 212, 170, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }
.nav-link svg { width: 16px; height: 16px; }

.nav-company { color: var(--accent); }
.nav-company:hover { color: var(--accent-dim); }

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-toggle svg { width: 14px; height: 14px; }

/* Hero */
.hero {
    padding: 140px 0 60px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.badge svg { width: 14px; height: 14px; }

.badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.badges .badge { margin-bottom: 0; }

.badge-unlimited {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
    color: #b366ff;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--mono);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* API Section */
.api-section {
    padding: 60px 0;
}

.api-section h2,
.docs-section h2,
.browse-section h2,
.example-section h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.api-section h2 svg,
.docs-section h2 svg,
.browse-section h2 svg,
.example-section h2 svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.api-key-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.api-key-value {
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-key-value code {
    flex: 1;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
    background: var(--bg-tertiary);
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    word-break: break-all;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover { background: var(--accent-dim); }
.copy-btn svg { width: 16px; height: 16px; }

.api-base {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.api-base svg { width: 16px; height: 16px; }

.api-base code {
    font-family: var(--mono);
    color: var(--text);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 4px;
}

.api-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
}

.api-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
}

.api-feature svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

/* Docs Section */
.docs-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.endpoints {
    display: grid;
    gap: 12px;
}

.endpoint {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    transition: border-color 0.2s;
}

.endpoint:hover { border-color: var(--accent-dim); }

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.method {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.method.get {
    background: rgba(78, 205, 196, 0.15);
    color: var(--get);
}

.method.post {
    background: rgba(255, 107, 157, 0.15);
    color: var(--post);
}

.endpoint-header code {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--text);
}

.public-badge {
    font-size: 0.65rem;
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.endpoint p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Example Section */
.example-section {
    padding: 60px 0;
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.8;
}

/* Footer */
footer {
    padding: 32px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-logo svg { width: 16px; height: 16px; color: var(--accent); }

.separator { color: var(--text-muted); }

.footer-company {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-company:hover { color: var(--accent); }

.footer-right {
    display: flex;
    gap: 16px;
}

.footer-right a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-right a:hover { color: var(--accent); }
.footer-right svg { width: 18px; height: 18px; }

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Browse Section */
.browse-section {
    padding: 60px 0;
}

.browse-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover { border-color: var(--accent); color: var(--text); }
.tab-btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.search-box svg { width: 18px; height: 18px; color: var(--text-muted); }

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
}

.search-box input::placeholder { color: var(--text-muted); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.context-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.context-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.context-card .name {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 6px;
    word-break: break-all;
}

.context-card .meta {
    display: flex;
    gap: 8px;
    font-size: 0.7rem;
}

.context-card .severity {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.severity.critical { background: rgba(255, 70, 70, 0.2); color: #ff4646; }
.severity.high { background: rgba(255, 140, 0, 0.2); color: #ff8c00; }
.severity.medium { background: rgba(255, 200, 0, 0.2); color: #ffc800; }
.severity.low { background: rgba(0, 200, 100, 0.2); color: #00c864; }

.context-card .count { color: var(--text-muted); }

.items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.payload-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text);
    word-break: break-all;
    cursor: pointer;
    transition: border-color 0.2s;
}

.payload-item:hover { border-color: var(--accent); }

.load-more-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover { border-color: var(--accent); color: var(--accent); }

.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

/* Hero Tagline */
.hero-tagline {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

/* Scanner Badge */
.badge-scanner {
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.3);
    color: var(--get);
    text-decoration: none;
    transition: all 0.2s;
}

.badge-scanner:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.5);
}

/* Scanner Section */
.scanner-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.scanner-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.scanner-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
}

.scanner-logo svg {
    width: 28px;
    height: 28px;
    color: var(--get);
}

.scanner-version {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 4px;
}

.scanner-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.scanner-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.scanner-feature svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.scanner-links {
    display: flex;
    gap: 12px;
}

.scanner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.scanner-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.scanner-btn.primary {
    background: var(--get);
    border-color: var(--get);
    color: var(--bg);
}

.scanner-btn.primary:hover {
    background: #3dbdb5;
    border-color: #3dbdb5;
}

.scanner-btn svg {
    width: 16px;
    height: 16px;
}

/* Legal Section */
.legal-section {
    padding: 60px 0;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.legal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.legal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 180, 0, 0.1);
    border-radius: 12px;
}

.legal-icon svg {
    width: 24px;
    height: 24px;
    color: #ffb400;
}

.legal-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.legal-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.legal-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.2);
    border-radius: 8px;
    padding: 16px 24px;
    color: #ff6464;
    font-size: 0.9rem;
    text-align: center;
}

.legal-notice svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .stats { flex-direction: column; gap: 24px; }
    .api-key-value { flex-direction: column; }
    nav { gap: 16px; }
    .nav-link span { display: none; }
    .footer-content { flex-direction: column; gap: 16px; }
    .items-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .legal-grid { grid-template-columns: 1fr; }
    .scanner-features { grid-template-columns: 1fr; }
    .scanner-links { flex-direction: column; }
    .badges { flex-wrap: wrap; }
    .api-features { flex-direction: column; gap: 12px; }
}

