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

:root {
    --bg: #03030a;
    --bg-2: #07071a;
    --glass: rgba(255,255,255,0.025);
    --border: rgba(255,255,255,0.06);
    --text: #f0f4ff;
    --muted: #6272a4;
    --kimi: #00d4ff;
    --openai: #10b981;
    --claude: #f59e0b;
    --gemini: #4285f4;
    --mistral: #ef4444;
    --deepseek: #8b5cf6;
    --grad-a: #00d4ff;
    --grad-b: #7c3aed;
    --font: 'Outfit', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

/* BACKGROUND */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.09;
    animation: drift 20s infinite alternate ease-in-out;
}
.glow-1 { width: 600px; height: 600px; background: var(--kimi); top: -200px; left: -200px; }
.glow-2 { width: 500px; height: 500px; background: var(--grad-b); bottom: -150px; right: -150px; animation-delay: 7s; }
.glow-3 { width: 400px; height: 400px; background: var(--openai); top: 40%; left: 40%; opacity: 0.05; animation-delay: 14s; }
.grid-overlay {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
}
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(60px,60px) scale(1.1); } }

/* LAYOUT */
.container { max-width: 1320px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }

/* HEADER */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(3,3,10,0.85);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.header-inner { display: flex; align-items: center; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.logo-icon { font-size: 1.3rem; filter: drop-shadow(0 0 8px var(--kimi)); }
.header-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.header-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.2s; }
.header-nav a:hover { color: var(--text); }
.btn-gh {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    color: var(--muted); padding: 6px 14px; border-radius: 8px;
    text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; white-space: nowrap;
}
.btn-gh:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }

/* HERO */
.hero { padding: 6rem 0 4rem; }
.hero-inner { max-width: 860px; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.15);
    color: var(--kimi); padding: 5px 14px; border-radius: 20px;
    font-size: 0.8rem; font-family: var(--mono); margin-bottom: 1.5rem;
}
.dot-live {
    width: 7px; height: 7px; border-radius: 50%; background: var(--kimi);
    box-shadow: 0 0 8px var(--kimi); animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 660px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--kimi), var(--grad-b));
    color: #fff; padding: 13px 28px; border-radius: 10px;
    font-weight: 700; font-size: 1rem; text-decoration: none;
    box-shadow: 0 6px 25px rgba(0,212,255,0.3); transition: all 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 35px rgba(0,212,255,0.4); }
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(0,212,255,0.3); color: var(--kimi);
    padding: 13px 28px; border-radius: 10px; font-weight: 700;
    font-size: 1rem; text-decoration: none; transition: all 0.2s;
}
.btn-outline:hover { background: rgba(0,212,255,0.06); }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat .stat-val { display: block; font-size: 2rem; font-weight: 800; font-family: var(--mono); color: var(--kimi); line-height: 1; transition: color 0.3s; }
.hero-stat .stat-label { font-size: 0.8rem; color: var(--muted); }

/* SAVINGS HERO BANNER */
.savings-hero {
    text-align: center;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(124,58,237,0.06) 100%);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}
.savings-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,212,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.savings-label { font-size: 1rem; color: var(--muted); margin-bottom: 0.5rem; font-weight: 600; }
.savings-amount {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    font-family: var(--mono);
    background: linear-gradient(135deg, #ffd700, #00d4ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(0,212,255,0.4));
}
.savings-sub { font-size: 0.9rem; color: var(--muted); font-family: var(--mono); }

/* GRADIENT TEXT */
.grad {
    background: linear-gradient(135deg, var(--kimi), var(--grad-b));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* SECTIONS */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.6rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.section-header h2 i { color: var(--kimi); filter: drop-shadow(0 0 6px var(--kimi)); }
.section-header p { color: var(--muted); font-size: 1rem; }

/* GLASS CARD */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,212,255,0.15);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(0,212,255,0.06);
}

/* MODEL CARDS */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.model-card {
    background: rgba(255,255,255,0.025); border: 1px solid var(--border);
    border-radius: 18px; padding: 1.5rem; transition: all 0.3s; position: relative; overflow: hidden;
}
.model-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--model-color, var(--kimi));
    box-shadow: 0 0 15px var(--model-color, var(--kimi));
}
.model-card:hover { transform: translateY(-5px); border-color: var(--model-color, var(--kimi)); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.model-card.featured { border-color: rgba(0,212,255,0.25); box-shadow: 0 0 30px rgba(0,212,255,0.08); }
.model-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1.2rem; }
.model-avatar {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800;
    background: linear-gradient(135deg, var(--model-color, var(--kimi)) 0%, rgba(255,255,255,0.05) 100%);
    box-shadow: 0 0 15px var(--model-color, var(--kimi));
    color: #fff;
}
.model-name { font-size: 1.1rem; font-weight: 800; }
.model-org { font-size: 0.8rem; color: var(--muted); }
.featured-badge {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--kimi); color: #000; font-size: 0.65rem;
    font-weight: 800; padding: 3px 9px; border-radius: 10px; letter-spacing: 0.5px;
}
.model-pricing { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.price-box { flex: 1; background: rgba(0,0,0,0.2); border-radius: 10px; padding: 0.7rem; text-align: center; }
.price-box .plabel { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--mono); margin-bottom: 4px; display: block; }
.price-box .pval { font-size: 1.1rem; font-weight: 800; font-family: var(--mono); color: var(--text); }
.price-box .punit { font-size: 0.65rem; color: var(--muted); font-family: var(--mono); }
.model-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.tag {
    font-size: 0.7rem; padding: 3px 9px; border-radius: 5px; font-weight: 600;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); color: var(--muted);
}
.tag.strength { background: rgba(0,212,255,0.06); border-color: rgba(0,212,255,0.15); color: var(--kimi); }
.model-score-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.model-score-bar .bar-label { font-size: 0.72rem; color: var(--muted); font-family: var(--mono); width: 75px; flex-shrink: 0; }
.bar-track { flex: 1; height: 5px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 10px; background: var(--model-color, var(--kimi)); transition: width 1s ease; }
.bar-val { font-size: 0.72rem; font-family: var(--mono); color: var(--text); width: 36px; text-align: right; }

/* COST CALCULATOR */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.calc-inputs h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; font-weight: 600; }
.slider-row { display: flex; align-items: center; gap: 12px; }
input[type="range"] {
    flex: 1; -webkit-appearance: none; appearance: none;
    height: 5px; background: rgba(255,255,255,0.06); border-radius: 10px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
    background: linear-gradient(135deg, var(--kimi), var(--grad-b));
    box-shadow: 0 0 10px rgba(0,212,255,0.5);
}
select {
    width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    color: var(--text); padding: 10px 14px; border-radius: 9px; font-family: var(--font);
    font-size: 0.9rem; outline: none; cursor: pointer;
}
.slider-val { font-family: var(--mono); font-size: 0.9rem; font-weight: 700; color: var(--kimi); min-width: 50px; text-align: right; }
.results-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }
.cost-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.cost-row:last-child { border-bottom: none; }
.cost-model { display: flex; align-items: center; gap: 10px; }
.cost-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cost-name { font-size: 0.9rem; font-weight: 600; }
.cost-amount { font-family: var(--mono); font-weight: 700; font-size: 1rem; }
.cost-saving { font-size: 0.72rem; color: var(--openai); font-family: var(--mono); }
.cost-bar-track { flex: 1; height: 4px; background: rgba(255,255,255,0.04); border-radius: 5px; margin: 0 12px; overflow: hidden; }
.cost-bar-fill { height: 100%; border-radius: 5px; transition: width 0.8s ease; }

/* BENCHMARKS */
.bench-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.bench-chart-card h3, .bench-table-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; color: var(--muted); }
.chart-wrap { position: relative; height: 320px; display: flex; align-items: center; justify-content: center; }
.bench-table-wrap { overflow-x: auto; }
.bench-table { width: 100%; border-collapse: collapse; }
.bench-table th { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.bench-table td { padding: 12px 10px; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
.bench-table tbody tr:last-child td { border-bottom: none; }
.bench-table tbody tr:hover td { background: rgba(255,255,255,0.015); }
.bench-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.8rem; }
.bench-badge .b-dot { width: 8px; height: 8px; border-radius: 50%; }
.top-score { color: #ffd700; font-weight: 800; }

/* ADVISOR */
.advisor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.advisor-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; transition: all 0.3s; }
.advisor-card:hover { border-color: rgba(0,212,255,0.2); transform: translateY(-3px); }
.advisor-icon { font-size: 2rem; margin-bottom: 1rem; }
.advisor-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; }
.advisor-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.advisor-stack { display: flex; flex-direction: column; gap: 8px; }
.stack-item { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.2); border-radius: 8px; padding: 8px 12px; }
.stack-item .s-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.stack-item .s-name { font-size: 0.8rem; font-weight: 700; }
.stack-item .s-role { font-size: 0.72rem; color: var(--muted); margin-left: auto; font-family: var(--mono); }
.stack-item .s-pct { font-size: 0.8rem; font-family: var(--mono); font-weight: 700; color: var(--kimi); }

/* GEOPOLITICAL */
.geo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.geo-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem; }
.geo-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.geo-model { font-weight: 700; font-size: 0.95rem; }
.geo-origin { font-size: 0.8rem; font-family: var(--mono); color: var(--muted); }
.risk-meter { display: flex; align-items: center; gap: 10px; margin-bottom: 0.5rem; }
.risk-label-text { font-size: 0.75rem; color: var(--muted); width: 90px; flex-shrink: 0; }
.risk-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }
.risk-fill { height: 100%; border-radius: 10px; }
.risk-fill.low { background: var(--openai); box-shadow: 0 0 6px var(--openai); }
.risk-fill.medium { background: var(--claude); box-shadow: 0 0 6px var(--claude); }
.risk-fill.high { background: var(--mistral); box-shadow: 0 0 6px var(--mistral); }
.geo-note { font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.5; }

/* FOOTER */
footer { padding: 3rem 0; border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 7px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .calc-grid, .bench-grid { grid-template-columns: 1fr; }
    .advisor-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .header-nav { display: none; }
    .advisor-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { gap: 1.5rem; }
}
