/* ==========================================================================
   llmlingua.online - Modern Cyberpunk / Obsidian Dark Aesthetic
   ========================================================================== */

:root {
    --bg-main: #06080d;
    --bg-card: rgba(14, 18, 27, 0.75);
    --bg-card-hover: rgba(20, 26, 38, 0.9);
    --bg-panel: #0a0e16;
    --bg-panel-alt: #101622;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(56, 189, 248, 0.25);
    --border-cutoken: rgba(16, 185, 129, 0.4);
    --border-llm: rgba(244, 63, 94, 0.35);

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --brand-cutoken: #10b981;
    --brand-cutoken-glow: rgba(16, 185, 129, 0.2);
    --brand-llm: #f43f5e;
    --brand-llm-glow: rgba(244, 63, 94, 0.15);
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px -5px var(--border-glow);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 50% -20%, rgba(6, 182, 212, 0.12), transparent 45%),
        radial-gradient(circle at 90% 40%, rgba(139, 92, 246, 0.08), transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.08), transparent 45%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #38bdf8;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    position: relative;
    z-index: 100;
}
.disclaimer-banner strong {
    color: #fbbf24;
}

/* Header & Navigation */
.site-header {
    background: rgba(6, 8, 13, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 99;
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.brand-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #090e17;
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px -2px rgba(6, 182, 212, 0.25);
    transition: all 0.25s ease;
}
.site-brand:hover .brand-logo-wrap {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 4px 25px 0 rgba(6, 182, 212, 0.4);
    transform: translateY(-1px);
}
.brand-logo-img {
    width: 32px;
    height: 32px;
    display: block;
}
.brand-text-wrap {
    display: flex;
    flex-direction: column;
}
.brand-title {
    display: flex;
    align-items: center;
    line-height: 1.15;
}
.brand-main {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}
.brand-light {
    font-weight: 500;
    color: #e2e8f0;
}
.brand-tld {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #38bdf8;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    margin-left: 8px;
    display: inline-block;
}
.brand-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
    margin-top: 3px;
    text-transform: uppercase;
}
.brand-meta .status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-cutoken);
    box-shadow: 0 0 8px var(--brand-cutoken);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    color: #ffffff;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-subtle);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 80px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #38bdf8;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.15;
    margin-bottom: 24px;
}
.hero-title .gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    max-width: 800px;
    margin: 0 auto 36px;
    font-size: 1.2rem;
    color: var(--text-muted);
}
.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* Empirical Stat Bar */
.empirical-stat-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: left;
    backdrop-filter: blur(10px);
}
.stat-card.cutoken-highlight {
    border-color: var(--border-cutoken);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(14, 18, 27, 0.85) 100%);
}
.stat-card.llm-highlight {
    border-color: var(--border-llm);
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.08) 0%, rgba(14, 18, 27, 0.85) 100%);
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.cutoken-highlight .stat-number { color: var(--brand-cutoken); }
.llm-highlight .stat-number { color: var(--brand-llm); }
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.stat-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
}
.tag-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tag-danger { background: rgba(244, 63, 94, 0.2); color: #fb7185; }

/* Screenshot Showcase */
.screenshot-section {
    max-width: 1240px;
    margin: 40px auto 60px;
    padding: 0 24px;
}
.screenshot-card {
    background: linear-gradient(180deg, rgba(14, 22, 33, 0.8) 0%, rgba(8, 12, 18, 0.95) 100%);
    border: 1px solid var(--border-cutoken);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 0 35px -5px rgba(16, 185, 129, 0.25);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: center;
}
.screenshot-frame {
    background: #000;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.screenshot-frame:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.2);
}
.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}
.screenshot-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.screenshot-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}
.sc-metric-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.sc-metric-val {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--brand-cutoken);
}
.sc-metric-title {
    font-size: 0.76rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

@media (max-width: 960px) {
    .screenshot-card {
        grid-template-columns: 1fr;
    }
}

.arena-section {
    max-width: 1320px;
    margin: 60px auto;
    padding: 0 24px;
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-badge {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}
.section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.section-subtitle {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Arena Controller */
.arena-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    padding: 14px 20px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.preset-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.preset-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}
.preset-btn.active, .preset-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--accent-cyan);
    color: #fff;
}

/* Arena Grid */
.arena-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}
.arena-column {
    background: var(--bg-panel);
    display: flex;
    flex-direction: column;
    height: 640px;
}
.arena-column.cutoken-col {
    background: #090f14;
    border-left: 2px solid var(--brand-cutoken);
}
.arena-column.llm-col {
    background: #11090d;
    border-left: 2px solid var(--brand-llm);
}
.col-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}
.col-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.col-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}
.metric-pill {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}
.pill-cutoken {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.pill-llm {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.col-body {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.65;
    color: #cbd5e1;
    white-space: pre-wrap;
    word-break: break-word;
}
.col-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Fragment Highlights */
.hl-fail {
    background: rgba(244, 63, 94, 0.25);
    color: #fda4af;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: line-through;
}
.hl-pass {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* QA Scorecard Box */
.qa-scorecard-section {
    max-width: 1320px;
    margin: 40px auto;
    padding: 0 24px;
}
.qa-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-card);
}
.qa-card-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.qa-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.qa-row:last-child {
    border-bottom: none;
}
.qa-col-header {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.qa-question-box {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
}
.qa-ground-truth {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 4px;
}
.qa-result-box {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    font-family: var(--font-mono);
}
.qa-result-fail {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #fb7185;
}
.qa-result-pass {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
}

/* Calculator Section */
.calc-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}
.calc-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    box-shadow: var(--shadow-glow);
}
.calc-controls {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
}
.slider-val {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}
input[type="range"] {
    width: 100%;
    accent-color: var(--accent-cyan);
    cursor: pointer;
}
.model-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.model-option {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.model-option.active {
    border-color: var(--brand-cutoken);
    background: rgba(16, 185, 129, 0.1);
}
.model-option-name {
    font-size: 0.88rem;
    font-weight: 600;
    display: block;
}
.model-option-price {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.calc-output {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.savings-metric-box {
    margin-bottom: 24px;
}
.savings-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.savings-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand-cutoken);
    line-height: 1.1;
    font-family: var(--font-mono);
}
.savings-annual {
    font-size: 1.1rem;
    color: #6ee7b7;
    margin-top: 4px;
    font-weight: 600;
}
.breakdown-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 0.88rem;
}
.breakdown-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-subtle);
    padding-bottom: 8px;
    color: var(--text-muted);
}
.breakdown-item span:last-child {
    color: #fff;
    font-family: var(--font-mono);
}

/* Architecture Deep Dive Section */
.arch-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}
.arch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 36px;
}
.arch-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px;
}
.arch-card.llm-fail-card {
    border-top: 4px solid var(--brand-llm);
}
.arch-card.cutoken-win-card {
    border-top: 4px solid var(--brand-cutoken);
}
.arch-card-title {
    font-size: 1.25rem;
    margin-bottom: 14px;
}
.arch-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
    font-size: 0.92rem;
    color: var(--text-muted);
}
.arch-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.arch-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Quickstart & Integration */
.quickstart-section {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 24px;
}
.code-box-container {
    background: #080c14;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 24px;
}
.code-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.code-tabs {
    display: flex;
    gap: 10px;
}
.code-tab {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
}
.code-tab.active {
    color: var(--accent-cyan);
}
.copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.copy-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.code-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.7;
    color: #e2e8f0;
    overflow-x: auto;
}

/* CTA Card */
.cta-banner {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.cta-banner p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 32px;
}

/* Footer */
.site-footer {
    background: #040609;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 24px 30px;
    color: var(--text-dim);
    font-size: 0.88rem;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
}
.footer-links a:hover {
    color: #fff;
}
.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    border: 1px solid var(--brand-cutoken);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    font-size: 0.88rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile & Responsive Enhancements (Android & iOS) */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 1024px) {
    .arena-grid {
        grid-template-columns: 1fr;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    .arena-column {
        height: 380px;
        border-left: none !important;
        border-bottom: 2px solid var(--border-subtle);
    }
    .arena-column.cutoken-col {
        border-top: 3px solid var(--brand-cutoken);
    }
    .arena-column.llm-col {
        border-top: 3px solid var(--brand-llm);
    }
    .qa-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .calc-container {
        grid-template-columns: 1fr;
        padding: 24px 18px;
        gap: 28px;
    }
    .arch-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .screenshot-card {
        grid-template-columns: 1fr;
        padding: 24px 18px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    /* Header & Navigation */
    .nav-container {
        padding: 12px 16px;
    }
    .brand-logo-wrap {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    .brand-logo-img {
        width: 26px;
        height: 26px;
    }
    .brand-main {
        font-size: 1.05rem;
    }
    .brand-tld {
        font-size: 0.58rem;
        padding: 1px 5px;
        margin-left: 4px;
    }
    .brand-meta {
        font-size: 0.6rem;
    }
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: block;
        padding: 4px 8px;
    }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #070a10;
        border-bottom: 1px solid var(--border-subtle);
        padding: 20px;
        gap: 16px;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.9);
        z-index: 200;
    }

    /* Hero Section */
    .hero-section {
        padding: 40px 16px 30px;
    }
    .hero-title {
        font-size: 2.1rem;
        line-height: 1.2;
    }
    .hero-desc {
        font-size: 1rem;
        padding: 0 8px;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-ctas .btn {
        width: 100%;
        padding: 12px 20px;
    }

    /* Arena & Preset Controls */
    .arena-section {
        padding: 0 12px;
        margin: 35px auto;
    }
    .arena-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
        gap: 12px;
    }
    .preset-tabs {
        flex-direction: column;
        width: 100%;
    }
    .preset-btn {
        width: 100%;
        text-align: left;
        padding: 10px 14px;
        font-size: 0.82rem;
    }
    .col-header {
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .col-stats {
        width: 100%;
        justify-content: space-between;
    }
    .col-body {
        padding: 14px;
        font-size: 0.78rem;
    }
    .col-footer {
        padding: 10px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    /* Empirical Stats */
    .empirical-stat-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-number {
        font-size: 1.8rem;
    }

    /* Screenshot Card */
    .screenshot-section {
        padding: 0 12px;
        margin: 30px auto;
    }
    .screenshot-metric-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .sc-metric-box {
        padding: 10px;
    }
    .sc-metric-val {
        font-size: 1.1rem;
    }
    .sc-metric-title {
        font-size: 0.68rem;
    }

    /* Calculator & Quickstart */
    .calc-section, .quickstart-section, .arch-section, .qa-scorecard-section {
        padding: 0 12px;
        margin: 40px auto;
    }
    .model-select-grid {
        grid-template-columns: 1fr;
    }
    .savings-amount {
        font-size: 2.2rem;
    }
    .cta-banner {
        padding: 36px 18px;
        margin: 40px 12px;
    }
    .cta-banner h2 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .brand-meta {
        display: none;
    }
    .brand-main {
        font-size: 1rem;
    }
    .disclaimer-banner {
        font-size: 0.72rem;
        padding: 6px 10px;
    }
    .code-body {
        font-size: 0.75rem;
        padding: 14px;
    }
}

