@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-main: #04060c;
    --bg-surface: #0c101c;
    --bg-card: rgba(15, 20, 36, 0.7);
    --bg-card-hover: rgba(22, 30, 54, 0.85);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(148, 163, 184, 0.12);
    --border-hover: rgba(59, 130, 246, 0.35);
    --accent: #ffffff;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --nav-bg: rgba(4, 6, 12, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Canvas Background */
#galaxy-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

main, footer, .navbar {
    position: relative;
    z-index: 2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-icon {
    height: 28px;
    width: 28px;
    object-fit: contain;
}

.nav-text {
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-primary {
    background: #ffffff;
    color: #06080f !important;
    padding: 9px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 0 32px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary) !important;
    padding: 9px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-primary.large, .btn-secondary.large {
    padding: 13px 28px;
    font-size: 15px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100vw;
    overflow: hidden;
    background: radial-gradient(ellipse 85% 65% at 50% 50%, rgba(15, 23, 50, 0.2) 0%, rgba(5, 7, 14, 0.8) 50%, var(--bg-main) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(850px, 95vw);
    height: min(850px, 95vw);
    background: radial-gradient(circle, 
        rgba(37, 99, 235, 0.18) 0%, 
        rgba(124, 58, 237, 0.11) 35%, 
        rgba(6, 182, 212, 0.06) 55%, 
        transparent 72%
    );
    filter: blur(90px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: auraPulse 7s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(500px, 75vw);
    height: min(500px, 75vw);
    background: radial-gradient(circle, 
        rgba(0, 210, 255, 0.2) 0%, 
        rgba(79, 70, 229, 0.14) 45%, 
        transparent 70%
    );
    filter: blur(65px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: auraCoreGlow 10s ease-in-out infinite alternate;
}

@keyframes auraPulse {
    0% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.8; }
}

@keyframes auraCoreGlow {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.75; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; filter: blur(65px); }
}

.hero-text-left, .hero-text-right {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(65px, 11vw, 140px);
    font-weight: 800;
    letter-spacing: -0.05em;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.hero-text-left {
    left: 8%;
    color: #ffffff;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.2);
}

.hero-text-right {
    right: 8%;
    background: linear-gradient(135deg, #3b82f6 15%, #8b5cf6 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 50px rgba(139, 92, 246, 0.4));
}

.hero-content-overlay {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    width: 100%;
    max-width: 640px;
    padding: 0 20px;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.hero-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
}

.hero-subtitle {
    font-size: clamp(13px, 1.5vw, 15px);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 16px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.hero-actions .btn-primary.large,
.hero-actions .btn-secondary.large {
    padding: 10px 22px;
    font-size: 14px;
}

@media (max-height: 850px) {
    .hero-content-overlay {
        bottom: 12px;
    }
    .hero-subtitle {
        margin-bottom: 12px;
        font-size: 13px;
        line-height: 1.45;
    }
    .hero-pill {
        margin-bottom: 8px;
    }
}

/* Section Common Layout */
.section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 120px 28px;
    position: relative;
    z-index: 5;
}

.section-tag {
    color: var(--accent-blue);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 18px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: clamp(16px, 2vw, 19px);
    max-width: 680px;
    margin-bottom: 60px;
    line-height: 1.6;
}

/* Models Tier Section */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.model-card:hover::before {
    opacity: 1;
}

.model-card.flagship {
    border-color: rgba(139, 92, 246, 0.35);
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), var(--bg-card) 60%);
}

.model-badge {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.badge-fast {
    background: rgba(6, 182, 212, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-versatile {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-reasoning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-flagship {
    background: rgba(139, 92, 246, 0.18);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.model-name {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.model-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.model-specs {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.spec-label {
    color: var(--text-muted);
}

.spec-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    color: #e2e8f0;
}

/* Benchmark Section */
.benchmarks-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(20px);
}

.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.benchmark-table th {
    text-align: left;
    padding: 16px 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.benchmark-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.benchmark-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.bench-name {
    font-weight: 600;
    color: #ffffff;
}

.bench-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.score-badge {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #38bdf8;
}

.score-bar-bg {
    width: 140px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 6px;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 99px;
}

/* Bento Grid Features */
.bento-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

.bento-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 44px;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.bento-card-modern:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.bento-card-modern h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: #ffffff;
}

.bento-card-modern p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.stat-callout {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

/* Enterprise Security */
.enterprise-card {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.15), var(--bg-surface) 70%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 28px;
    padding: 60px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.enterprise-content {
    max-width: 600px;
}

.enterprise-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.enterprise-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.security-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sec-pill {
    padding: 6px 16px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 500;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 80px 28px 40px;
    background-color: var(--bg-surface);
}

.footer-top {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 320px;
    margin-top: 16px;
    line-height: 1.6;
}

.footer-column h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 16px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
    .bento-col-8, .bento-col-4, .bento-col-6 {
        grid-column: span 12;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
    .nav-content {
        padding: 0 16px;
    }
    .nav-links a:not(.btn-primary) {
        display: none;
    }
    .btn-primary {
        padding: 7px 15px;
        font-size: 13px;
    }
    .nav-icon {
        height: 24px;
        width: 24px;
    }
    .nav-text {
        height: 18px;
    }
    .hero-text-left, .hero-text-right {
        font-size: clamp(34px, 10vw, 56px);
        top: 46%;
    }
    .hero-text-left { left: 4%; }
    .hero-text-right { right: 4%; }
    .hero-content-overlay {
        bottom: 24px;
        padding: 0 16px;
    }
    .hero-pill {
        font-size: 11px;
        padding: 4px 12px;
        margin-bottom: 10px;
    }
    .hero-subtitle {
        font-size: 13.5px;
        margin-bottom: 18px;
        line-height: 1.5;
    }
    .hero-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .hero-actions .btn-primary, .hero-actions .btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    .section-container {
        padding: 70px 16px;
    }
    .section-title {
        font-size: clamp(26px, 7vw, 36px);
        margin-bottom: 12px;
    }
    .section-desc {
        font-size: 14.5px;
        margin-bottom: 32px;
    }
    .models-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .model-card {
        padding: 24px 20px;
        border-radius: 18px;
    }
    .benchmarks-wrapper {
        padding: 20px 14px;
        border-radius: 18px;
        overflow-x: auto;
    }
    .benchmark-table {
        min-width: 500px;
    }
    .benchmark-table th, .benchmark-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    .bento-grid-container {
        gap: 16px;
    }
    .bento-card-modern {
        padding: 28px 20px;
        border-radius: 18px;
    }
    .stat-callout {
        font-size: 38px;
    }
    .enterprise-card {
        padding: 32px 20px;
        border-radius: 20px;
    }
    .enterprise-content h3 {
        font-size: 24px;
    }
    .enterprise-card .btn-primary {
        width: 100%;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    footer {
        padding: 50px 20px 30px;
    }
}
