/* AI Gateway - Dark Infrastructure Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --bg: #06080c;
  --bg-card: #0c1018;
  --bg-card-hover: #101620;
  --bg-surface: #0a0e16;
  --text: #b8c8d8;
  --text-dim: #4a5a6e;
  --text-bright: #dce8f4;
  --border: #141c28;
  --border-hover: #1e2a3a;
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.08);
  --accent-glow: rgba(56, 189, 248, 0.12);
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
a { color: inherit; text-decoration: none; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(6, 8, 12, 0.92); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 2rem; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 26px; height: 26px; background: var(--accent); border-radius: 5px; display: flex; align-items: center; justify-content: center; }
.nav-logo svg { width: 14px; height: 14px; color: var(--bg); }
.nav-title { font-size: 0.82rem; font-weight: 600; color: var(--text-bright); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: 0.8rem; color: var(--text-dim); transition: color 200ms; font-weight: 450; }
.nav-link:hover { color: var(--text); }

/* Hero */
.hero { padding: 120px 2rem 0; max-width: 1120px; margin: 0 auto; min-height: 85vh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 100px; font-size: 0.72rem; color: var(--text-dim); margin-bottom: 1.5rem; font-weight: 450; margin-left: auto; margin-right: auto; width: fit-content; }
.hero-badge .go { color: #00add8; font-weight: 600; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 1.25rem; color: var(--text-bright); }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: 1rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 2.5rem; max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 6px; font-size: 0.82rem; font-weight: 500; font-family: var(--font); transition: all 200ms; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #2aa8d8; }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-hover); }
.btn svg { width: 14px; height: 14px; }

/* Providers Visual */
.providers-visual { margin-top: 4rem; position: relative; padding: 2rem 0; }
.providers-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 2rem; }
.provider-pill { padding: 5px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; font-size: 0.7rem; font-weight: 450; color: var(--text-dim); font-family: var(--mono); transition: all 300ms; }
.provider-pill:hover { border-color: var(--accent); color: var(--text); }
.providers-arrow { display: flex; justify-content: center; margin: 1.5rem 0; }
.providers-arrow svg { width: 40px; height: 40px; color: var(--accent); opacity: 0.5; animation: arrow-pulse 2s infinite; }
@keyframes arrow-pulse { 0%,100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 0.7; transform: translateY(4px); } }
.providers-gateway { display: flex; justify-content: center; }
.gateway-box { padding: 14px 28px; background: var(--bg-card); border: 2px solid var(--accent); border-radius: 10px; font-family: var(--mono); font-size: 0.82rem; font-weight: 600; color: var(--accent); box-shadow: 0 0 40px var(--accent-glow); }

/* Router Visual */
.router-visual { margin-top: 3rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; overflow-x: auto; }
.router-visual svg { width: 100%; max-width: 900px; height: auto; display: block; margin: 0 auto; min-width: 700px; }

/* Section */
.section { padding: 80px 2rem; max-width: 1120px; margin: 0 auto; }
.section-label { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.75rem; font-family: var(--mono); }
.section-title { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 620; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.75rem; color: var(--text-bright); }
.section-desc { font-size: 0.92rem; color: var(--text-dim); max-width: 480px; line-height: 1.7; margin-bottom: 3rem; }

/* Combo Strategies */
.combo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.combo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; transition: border-color 200ms; }
.combo-card:hover { border-color: var(--border-hover); }
.combo-card .combo-name { font-family: var(--mono); font-size: 0.82rem; font-weight: 600; color: var(--accent); margin-bottom: 0.5rem; }
.combo-card h3 { font-size: 1.1rem; font-weight: 620; color: var(--text-bright); margin-bottom: 0.5rem; }
.combo-card p { font-size: 0.78rem; color: var(--text-dim); line-height: 1.6; }
.combo-card .visual { margin: 1rem 0; height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.combo-card .visual .node { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); opacity: 0.4; }
.combo-card .visual .node.active { opacity: 1; box-shadow: 0 0 8px var(--accent-glow); }
.combo-card .visual .arrow { color: var(--text-dim); font-size: 0.7rem; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; transition: border-color 200ms; }
.feature-card:hover { border-color: var(--border-hover); }
.feature-card .icon { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem; background: var(--accent-dim); color: var(--accent); }
.feature-card .icon svg { width: 16px; height: 16px; }
.feature-card h4 { font-size: 0.88rem; font-weight: 620; margin-bottom: 0.4rem; color: var(--text-bright); }
.feature-card p { font-size: 0.78rem; color: var(--text-dim); line-height: 1.6; }

/* Provider Grid */
.provider-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.provider-cell { padding: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; text-align: center; font-size: 0.68rem; font-weight: 450; color: var(--text-dim); transition: all 200ms; }
.provider-cell:hover { border-color: var(--border-hover); color: var(--text); }
.provider-cell .count { font-family: var(--mono); font-size: 0.65rem; color: var(--accent); display: block; margin-top: 2px; }

/* Code */
.code-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--border); background: var(--bg-surface); }
.code-header span { font-size: 0.7rem; color: var(--text-dim); font-family: var(--mono); }
.code-dots { display: flex; gap: 5px; }
.code-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.code-body { padding: 1.25rem; font-family: var(--mono); font-size: 0.78rem; line-height: 1.9; color: var(--text-dim); overflow-x: auto; }
.code-body .c { color: #2a3a4a; }
.code-body .k { color: var(--accent); }
.code-body .s { color: #22d3ee; }

/* Tech */
.tech-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; font-size: 0.72rem; font-weight: 450; color: var(--text-dim); }
.tech-chip .dot { width: 5px; height: 5px; border-radius: 50%; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 2rem; margin-top: 3rem; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-left { font-size: 0.78rem; color: var(--text-dim); font-family: var(--mono); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-link { font-size: 0.78rem; color: var(--text-dim); transition: color 200ms; }
.footer-link:hover { color: var(--text); }

/* Install Grid */
.install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.install-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color 200ms; }
.install-card:hover { border-color: var(--border-hover); }
.install-header { display: flex; align-items: center; gap: 10px; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.install-icon { width: 28px; height: 28px; border-radius: 5px; display: flex; align-items: center; justify-content: center; background: var(--accent-dim); color: var(--accent); }
.install-icon svg { width: 14px; height: 14px; }
.install-header h3 { font-size: 0.88rem; font-weight: 620; color: var(--text-bright); }
.install-card .code-block { border: none; border-radius: 0; }
.install-card .code-header { display: none; }
.install-card .code-body { padding: 1rem 1.25rem; font-size: 0.72rem; line-height: 1.8; }

/* API Grid */
.api-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 2.5rem; }
.api-card { display: flex; align-items: center; gap: 12px; padding: 1rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; transition: border-color 200ms; }
.api-card:hover { border-color: var(--border-hover); }
.api-method { font-family: var(--mono); font-size: 0.65rem; font-weight: 700; color: var(--accent); padding: 3px 6px; background: var(--accent-dim); border-radius: 3px; flex-shrink: 0; }
.api-path { font-family: var(--mono); font-size: 0.75rem; color: var(--text-bright); font-weight: 500; }
.api-desc { display: none; }

/* SDK Example */
.sdk-example { margin-top: 1.5rem; }
.sdk-header { margin-bottom: 0.75rem; }
.sdk-label { font-size: 0.78rem; font-weight: 500; color: var(--text-dim); }

/* RTK Grid */
.rtk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rtk-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; }
.rtk-filter { font-family: var(--mono); font-size: 0.75rem; color: var(--text-bright); font-weight: 500; }
.rtk-savings { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 100px; }
  .providers-visual { display: none; }
  .router-visual { display: none; }
  .combo-grid, .features-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(3, 1fr); }
  .install-grid { grid-template-columns: 1fr; }
  .api-grid { grid-template-columns: 1fr; }
  .rtk-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
