/* MindSurf Benchmark Results - Styles */
/* Inspired by OpenAI product announcement pages */

/* ==================== CSS Variables ==================== */
:root {
    /* Primary - Teal/Cyan palette */
    --mindsurf-primary: #2BB2FC;
    --mindsurf-teal: #0D9488;
    --mindsurf-teal-dark: #0A7468;
    --mindsurf-teal-light: #B8EAE7;
    --mindsurf-cyan: rgba(184, 234, 231, 0.3);

    /* Semantic colors */
    --mindsurf-success: #04AA6D;
    --mindsurf-warning: #F59E0B;
    --mindsurf-danger: #EF4444;

    /* Chart colors */
    --chart-mindsurf: #0D9488;
    --chart-gpt51: #6B7280;
    --chart-gpt4o: #D1D5DB;

    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FFFE;
    --bg-gradient: linear-gradient(180deg, #FFFFFF 0%, #EBF9F8 50%, #DBF5F3 100%);
    --bg-gradient-hero: linear-gradient(135deg, #FFFFFF 0%, #E0F7F5 40%, #B8EAE7 100%);
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: rgba(255, 255, 255, 1);

    /* Text */
    --text-primary: #1A1A1A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-inverse: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 65ch;
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

/* ==================== Layout ==================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--section-padding) 0;
}

/* ==================== Navigation ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
    transition: var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--mindsurf-teal);
    text-decoration: none;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--mindsurf-teal);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--mindsurf-cyan);
    border: 1px solid var(--mindsurf-teal-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mindsurf-teal);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-toggle:hover {
    background: var(--mindsurf-teal-light);
}

/* Mobile nav */
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition-fast);
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-gradient-hero);
    padding-top: 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(43, 178, 252, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(13, 148, 136, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--mindsurf-teal-light);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mindsurf-teal);
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

.hero-badge::before {
    content: '🔬';
}

.hero h1 {
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .highlight {
    color: var(--mindsurf-teal);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Score Display */
.hero-scores {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.score-item {
    text-align: center;
}

.score-item.featured {
    transform: scale(1.15);
}

.score-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-item.featured .score-label {
    color: var(--mindsurf-teal);
}

.score-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
}

.score-item.featured .score-value {
    font-size: 4.5rem;
    color: var(--mindsurf-teal);
}

.score-model {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.score-item.featured .score-model {
    color: var(--mindsurf-teal-dark);
    font-weight: 600;
}

/* CTA Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--mindsurf-teal);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--mindsurf-teal-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--mindsurf-teal);
    border: 2px solid var(--mindsurf-teal);
}

.btn-secondary:hover {
    background: var(--mindsurf-cyan);
}

.hero-cta {
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* ==================== Stats Section ==================== */
.stats {
    background: var(--bg-secondary);
    padding: 80px 0;
}

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

.stat-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.stat-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: var(--mindsurf-cyan);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}

.stat-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mindsurf-teal);
    margin-bottom: 8px;
}

.stat-value.success { color: var(--mindsurf-success); }
.stat-value.warning { color: var(--mindsurf-warning); }

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==================== Comparison Section ==================== */
.comparison {
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    margin: 0 auto;
}

.chart-container {
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 48px;
}

.chart-wrapper {
    position: relative;
    height: 400px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.mindsurf { background: var(--chart-mindsurf); }
.legend-color.gpt51 { background: var(--chart-gpt51); }
.legend-color.gpt4o { background: var(--chart-gpt4o); }

/* ==================== Metrics Section ==================== */
.metrics {
    background: var(--bg-gradient);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.metric-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.metric-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.metric-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.metric-badge.safety {
    background: rgba(4, 170, 109, 0.1);
    color: var(--mindsurf-success);
}

.metric-badge.quality {
    background: rgba(13, 148, 136, 0.1);
    color: var(--mindsurf-teal);
}

.metric-scores {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.metric-score {
    flex: 1;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    text-align: center;
}

.metric-score-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.metric-score-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.metric-score-value.mindsurf { color: var(--mindsurf-teal); }
.metric-score-value.gpt51 { color: var(--chart-gpt51); }
.metric-score-value.gpt4o { color: var(--chart-gpt4o); }

.metric-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.metric-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.metric-status.excellent { color: var(--mindsurf-success); }
.metric-status.good { color: var(--mindsurf-teal); }
.metric-status.warning { color: var(--mindsurf-warning); }

.metric-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* ==================== Safety Section ==================== */
.safety {
    background: var(--bg-secondary);
}

.safety-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.safety-text h3 {
    margin-bottom: 16px;
}

.safety-text p {
    margin-bottom: 24px;
}

.safety-highlight {
    background: linear-gradient(135deg, rgba(4, 170, 109, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
    padding: 24px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--mindsurf-success);
}

.safety-highlight h4 {
    color: var(--mindsurf-success);
    margin-bottom: 8px;
}

.safety-highlight p {
    font-size: 1rem;
    margin: 0;
}

.safety-chart-container {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.safety-comparison {
    margin-top: 32px;
}

.safety-bar {
    margin-bottom: 20px;
}

.safety-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.safety-bar-label {
    font-size: 0.9375rem;
    font-weight: 600;
}

.safety-bar-value {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
}

.safety-bar-track {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 100px;
    overflow: hidden;
}

.safety-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1s ease;
}

.safety-bar-fill.mindsurf { background: var(--mindsurf-teal); }
.safety-bar-fill.gpt51 { background: var(--chart-gpt51); }
.safety-bar-fill.gpt4o { background: var(--chart-gpt4o); }

/* Problems comparison */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.problem-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.problem-card.featured {
    border: 2px solid var(--mindsurf-teal);
}

.problem-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.problem-count.success { color: var(--mindsurf-success); }
.problem-count.warning { color: var(--mindsurf-warning); }
.problem-count.danger { color: var(--mindsurf-danger); }

.problem-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.problem-critical {
    font-size: 0.8125rem;
    font-weight: 600;
}

.problem-critical.success { color: var(--mindsurf-success); }
.problem-critical.danger { color: var(--mindsurf-danger); }

/* ==================== Methodology Section ==================== */
.methodology {
    background: var(--bg-primary);
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-top: 48px;
}

.methodology-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.methodology-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.methodology-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mindsurf-cyan);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}

.methodology-list {
    list-style: none;
}

.methodology-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

.methodology-list li:last-child {
    border-bottom: none;
}

.methodology-list .bullet {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mindsurf-teal);
    color: var(--text-inverse);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.methodology-list .content {
    flex: 1;
}

.methodology-list .title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.methodology-list .desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ==================== Conclusion Section ==================== */
.conclusion {
    background: var(--bg-gradient-hero);
    text-align: center;
}

.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
}

.conclusion h2 {
    margin-bottom: 24px;
}

.conclusion p {
    margin: 0 auto 32px;
    font-size: 1.25rem;
}

.conclusion-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
}

.conclusion-stat {
    text-align: center;
}

.conclusion-stat-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--mindsurf-teal);
}

.conclusion-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--text-primary);
    color: var(--text-inverse);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo img {
    height: 32px;
    filter: brightness(0) invert(1);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

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

.footer-copy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== Animations ==================== */
@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 countUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

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

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

    .safety-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .methodology-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: block;
    }

    .hero-scores {
        flex-direction: column;
        gap: 24px;
    }

    .score-item.featured {
        transform: scale(1);
    }

    .score-item.featured .score-value {
        font-size: 3.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        padding: 24px;
    }

    .chart-wrapper {
        height: 300px;
    }

    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .conclusion-stats {
        flex-direction: column;
        gap: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .metric-scores {
        flex-direction: column;
        gap: 8px;
    }

    .methodology-card {
        padding: 24px;
    }
}

/* ==================== Utility Classes ==================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.no-scroll {
    overflow: hidden;
}
