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

:root {
    --bg-darkest: #030303;
    --bg-darker: #08080c;
    --bg-card: #0d0d14;
    --bg-card-hover: #12121e;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-glow: rgba(59, 130, 246, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Background grid details */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.003) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.003) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Logo flotante */
.floating-logo {
    position: fixed;
    top: -20px;
    left: 20px;
    z-index: 100;
    text-decoration: none;
    opacity: 0;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.floating-logo img {
    width: 115px;
    height: 115px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

/* Landing Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-badge {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards, pulseGlow 3s infinite alternate;
}

.hero-badge i {
    font-size: 10px;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.1);
    }

    100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    max-width: 900px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero h1 span.gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.tagline {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    gap: 12px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Feature Showcase Grid */
.section-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Model Comparison Section */
.comparison-section {
    padding: 80px 0;
}

.comparison-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    align-items: center;
}

.model-selector-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.model-tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.model-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.model-tab-btn.active {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.model-tab-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-tab-title i {
    font-size: 16px;
    color: var(--accent-blue);
}

.model-tab-btn.active .model-tab-title i {
    color: var(--text-primary);
}

.model-tab-btn.active .model-tab-title {
    color: var(--accent-blue);
}

.model-tab-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Interactive Chart Area */
.chart-display-panel {
    background: #06060a;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.chart-title-model {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

.chart-badge {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

.metrics-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    justify-content: center;
}

.metric-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-label-wrapper {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.metric-name {
    color: var(--text-primary);
}

.metric-value {
    color: var(--accent-blue);
}

.metric-track {
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.metric-bar {
    height: 100%;
    border-radius: 9999px;
    background: var(--accent-gradient);
    width: 0%;
    /* Dynamic animation */
    transition: width 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 10px var(--accent-glow);
}

.chart-desc-text {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    min-height: 70px;
}

/* Documentation section */
.docs-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.docs-wrapper {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

.docs-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.docs-tabs {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

.docs-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 16px 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.docs-tab:hover {
    color: var(--text-primary);
}

.docs-tab.active {
    color: var(--accent-blue);
}

.docs-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.docs-content {
    padding: 30px;
}

.code-container {
    background: #050508;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
}

.code-container pre {
    margin: 0;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Feature bullet points */
.features-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon-wrapper {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.feature-item:nth-child(even) .feature-icon-wrapper {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.feature-details h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-details p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Tech Stack Section */
.tech-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.08);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-icon {
    font-size: 40px;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tech-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tech-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border);
    background: #030305;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-divider {
    height: 1px;
    background: var(--border);
    width: 100%;
    margin-bottom: 24px;
}

.footer-copyright {
    text-align: center;
    font-size: 13px;
    color: #4b5563;
}

/* Syntax Coloring */
.token-keyword {
    color: #f472b6;
    font-weight: 600;
}

.token-string {
    color: #34d399;
}

.token-function {
    color: #60a5fa;
}

.token-comment {
    color: #6b7280;
    font-style: italic;
}

.token-class {
    color: #fbbf24;
}

/* Responsive adjustments */
@media (max-width: 1024px) {

    .comparison-wrapper,
    .docs-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .hero p.tagline {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .floating-logo {
        top: -11px;
        left: 15px;
    }

    .floating-logo img {
        width: 95px;
        height: 80px;
    }

    .comparison-wrapper {
        padding: 24px;
    }

    .chart-display-panel {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* Scroll Reveal Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}