/* ================================================
   BidCanvas — Light Precision Theme
   Premium sports analytics aesthetic
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --color-primary: #059669;
    --color-primary-hover: #047857;
    --color-primary-glow: rgba(5, 150, 105, 0.10);

    --color-bg-white: #FFFFFF;
    --color-bg-light: #F8FAFC;
    --color-bg-section: #F1F5F9;
    --color-bg-elevated: #FFFFFF;

    --color-text-heading: #0F172A;
    --color-text-body: #334155;
    --color-text-secondary: #64748B;
    --color-text-muted: #94A3B8;

    --color-accent-green: #059669;
    --color-accent-blue: #2563EB;
    --color-accent-purple: #7C3AED;
    --color-accent-orange: #D97706;
    --color-accent-red: #DC2626;

    --color-link: #2563EB;
    --color-link-hover: #1D4ED8;

    --color-border: rgba(15, 23, 42, 0.08);
    --color-border-hover: rgba(15, 23, 42, 0.16);
    --color-card-shadow: rgba(15, 23, 42, 0.04);

    --font-heading: 'Sora', -apple-system, sans-serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
}

/* ---- Reset & Base ---- */

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

body {
    font-family: var(--font-body);
    background: var(--color-bg-white);
    color: var(--color-text-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle dot grid overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    color: var(--color-text-body);
    line-height: 1.7;
}

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

a:hover {
    color: var(--color-link-hover);
}

/* ---- Layout ---- */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

.container-narrow {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---- Navigation ---- */

nav {
    padding: 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-heading);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links a:not(.btn) {
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--color-text-heading);
    background: rgba(15, 23, 42, 0.04);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text-heading);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---- Buttons ---- */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 14px;
    letter-spacing: -0.01em;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 12px var(--color-primary-glow), 0 1px 3px rgba(0,0,0,0.08);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.18), 0 2px 6px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-heading);
    border: 1px solid var(--color-border-hover);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(5, 150, 105, 0.04);
}

.btn-small {
    padding: 8px 18px;
    font-size: 13px;
}

/* ---- Hero ---- */

.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.06), rgba(37, 99, 235, 0.04), transparent 70%);
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(100px);
    animation: heroGlow 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); }
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--color-text-heading);
    animation: fadeInUp 0.7s ease forwards;
}

.hero p {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 72px;
    animation: fadeInUp 0.7s ease 0.2s both;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 0 0;
    border-top: 1px solid var(--color-border);
    animation: fadeInUp 0.7s ease 0.3s both;
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent-green);
    letter-spacing: -0.02em;
}

.stat-value.blue { color: var(--color-accent-blue); }
.stat-value.purple { color: var(--color-accent-purple); }
.stat-value.orange { color: var(--color-accent-orange); }

.stat-label {
    color: var(--color-text-muted);
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- Sections ---- */

section {
    padding: 80px 0;
}

section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.025em;
}

section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

section > .container > p {
    color: var(--color-text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
}

.section-dark {
    background: var(--color-bg-section);
}

.section-gradient {
    background: linear-gradient(135deg, #0F172A, #1E293B);
}

/* ---- Cards ---- */

.card {
    background: var(--color-bg-elevated);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px var(--color-card-shadow), 0 4px 24px rgba(15, 23, 42, 0.03);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 12px 40px rgba(15, 23, 42, 0.06);
    transform: translateY(-3px);
}

.card h3 {
    margin-bottom: 8px;
}

.card .subtitle {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ---- Grids ---- */

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

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

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

/* ---- Tags ---- */

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--color-bg-section);
    color: var(--color-text-secondary);
    margin-right: 6px;
    margin-bottom: 8px;
}

.tag.primary {
    background: #EEF2FF;
    color: #4338CA;
}

.tag.green {
    background: #ECFDF5;
    color: #047857;
}

.tag.blue {
    background: #EFF6FF;
    color: #1D4ED8;
}

.tag.orange {
    background: #FEF3C7;
    color: #B45309;
}

/* ---- Tables ---- */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--color-bg-section);
}

td {
    color: var(--color-text-body);
}

tr:hover td {
    background: var(--color-bg-light);
}

.highlight-value {
    color: var(--color-accent-green);
    font-weight: 600;
}

/* ---- Blockquote ---- */

blockquote {
    background: var(--color-bg-light);
    border-left: 3px solid var(--color-primary);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
    color: var(--color-text-body);
}

/* ---- Code Blocks ---- */

.code-block {
    background: #1E293B;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    border: 1px solid rgba(30, 41, 59, 0.5);
}

.code-block pre {
    font-family: 'JetBrains Mono', 'Fira Code', Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    color: #E2E8F0;
}

.code-block .comment { color: #94A3B8; }
.code-block .keyword { color: #A78BFA; }
.code-block .string { color: #4ADE80; }
.code-block .function { color: #60A5FA; }

/* ---- Problem Stats ---- */

.problem-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.problem-stat {
    background: #FEF2F2;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #FECACA;
}

.problem-stat .value {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent-red);
}

.problem-stat .label {
    color: #991B1B;
    margin-top: 4px;
    font-size: 14px;
}

/* ---- Comparison ---- */

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.comparison-card {
    background: var(--color-bg-elevated);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px var(--color-card-shadow);
}

.comparison-card.highlight {
    border-color: var(--color-primary);
    border-width: 2px;
}

.comparison-card h3 {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.comparison-card.highlight h3 {
    color: var(--color-text-heading);
}

.comparison-card pre {
    background: var(--color-bg-section);
    padding: 16px;
    border-radius: 8px;
    font-size: 13px;
    overflow-x: auto;
    white-space: pre-wrap;
    font-family: 'JetBrains Mono', Monaco, monospace;
    color: var(--color-text-body);
}

/* ---- Steps ---- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.step {
    text-align: center;
    padding: 28px;
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    box-shadow: 0 2px 12px var(--color-primary-glow);
}

.step h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step p {
    color: var(--color-text-body);
    font-size: 14px;
}

/* ---- Features Grid ---- */

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

.feature {
    background: var(--color-bg-elevated);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px var(--color-card-shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.feature:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 12px 40px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.feature h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.feature p {
    color: var(--color-text-body);
    font-size: 14px;
    line-height: 1.6;
}

/* ---- CTA Section ---- */

.cta-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.08), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    pointer-events: none;
}

.cta-section h2 {
    color: #F1F5F9;
}

.cta-section > .container > p {
    color: #94A3B8;
    margin-bottom: 28px;
}

.cta-section .btn-primary {
    background: #FFFFFF;
    color: var(--color-text-heading);
}

.cta-section .btn-primary:hover {
    background: #F1F5F9;
    color: var(--color-text-heading);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.cta-section .btn-secondary {
    border-color: rgba(148, 163, 184, 0.3);
    color: #E2E8F0;
    background: transparent;
}

.cta-section .btn-secondary:hover {
    border-color: #FFFFFF;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
}

/* ---- Footer ---- */

footer {
    padding: 36px 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-section);
}

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

footer p {
    color: var(--color-text-muted);
    font-size: 13px;
}

footer a {
    color: var(--color-text-muted);
    text-decoration: none;
    margin-left: 24px;
    font-size: 13px;
    transition: color 0.2s ease;
}

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

/* ---- Research Hub ---- */

.research-hero {
    padding: 64px 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.research-hero h1 {
    font-size: 38px;
    margin-bottom: 14px;
}

.research-hero p {
    color: var(--color-text-secondary);
    font-size: 16px;
}

.featured-article {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
    align-items: center;
    border: 1px solid rgba(30, 41, 59, 0.6);
    transition: box-shadow 0.3s ease;
    color: #FFFFFF;
}

.featured-article:hover {
    box-shadow: 0 12px 48px rgba(15, 23, 42, 0.15);
}

.featured-article h2 {
    font-size: 26px;
    margin-bottom: 12px;
    color: #F1F5F9;
}

.featured-article p {
    color: #94A3B8;
    margin-bottom: 20px;
}

.featured-article .btn-primary {
    background: #FFFFFF;
    color: var(--color-text-heading);
}

.featured-article .btn-primary:hover {
    background: #F1F5F9;
}

.featured-article .btn-secondary {
    border-color: rgba(148, 163, 184, 0.3);
    color: #E2E8F0;
    background: transparent;
}

.featured-article .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}

.featured-article .stats {
    display: flex;
    gap: 24px;
}

.featured-article .stat-box {
    text-align: center;
}

.featured-article .stat-box .value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
}

.featured-article .stat-box .label {
    font-size: 11px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-card {
    background: var(--color-bg-elevated);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px var(--color-card-shadow);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.article-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 12px 40px rgba(15, 23, 42, 0.06);
    transform: translateY(-3px);
}

.article-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-heading);
}

.article-card p {
    color: var(--color-text-body);
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ---- Article Page ---- */

.article-header {
    padding: 64px 0 32px;
    border-bottom: 1px solid var(--color-border);
}

.article-header h1 {
    font-size: 34px;
    margin-bottom: 16px;
    line-height: 1.15;
}

.article-header .lead {
    font-size: 17px;
    color: var(--color-text-body);
    margin-bottom: 20px;
    line-height: 1.7;
}

.article-content {
    padding: 48px 0;
}

.article-content h2 {
    font-size: 22px;
    margin: 40px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    font-size: 17px;
    margin: 28px 0 12px;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.article-content strong {
    color: var(--color-text-heading);
    font-weight: 600;
}

.article-content a:not(.btn) {
    color: var(--color-link);
}

.article-content a:not(.btn):hover {
    text-decoration: underline;
}

.article-content ul, .article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--color-text-body);
}

.article-content li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.article-content table {
    margin: 24px 0;
    background: var(--color-bg-elevated);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.article-content .highlight-box {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 24px;
    margin: 24px 0;
}

.article-content .highlight-box.important {
    border-left: 3px solid var(--color-primary);
}

.article-content .highlight-box strong {
    color: var(--color-text-heading);
}

.article-content .highlight-box ul {
    margin-bottom: 0;
}

/* ---- Stat Badges ---- */

.stat-positive {
    color: var(--color-accent-green);
    font-weight: 600;
}

.stat-negative {
    color: var(--color-accent-red);
    font-weight: 600;
}

/* ---- Demo Form ---- */

.demo-form {
    max-width: 640px;
    margin: 0 auto;
}

.demo-form .form-group {
    margin-bottom: 22px;
}

.demo-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 8px;
    font-size: 14px;
}

.demo-form label .optional {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 13px;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border-hover);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--color-text-heading);
    background: var(--color-bg-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
    color: var(--color-text-muted);
}

.demo-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-color: var(--color-bg-white);
    cursor: pointer;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.demo-form textarea {
    resize: vertical;
    min-height: 100px;
}

.demo-form .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
}

.form-success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #047857;
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
}

.form-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
}

/* ---- Animations ---- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.07s; opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.14s; opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.21s; opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.28s; opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.35s; opacity: 1; transform: none; }

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 48px;
    }

    .hero h1 {
        font-size: 32px;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .stats-row,
    .problem-stats,
    .comparison,
    .grid-2,
    .grid-3,
    .grid-4,
    .steps,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-bg-white);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 16px 28px;
        gap: 4px;
    }

    .nav-links a:not(.btn) {
        padding: 12px 0;
    }

    .nav-links .btn {
        margin-top: 8px;
        text-align: center;
    }

    nav.nav-open .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .featured-article {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .article-header h1 {
        font-size: 26px;
    }

    section {
        padding: 56px 0;
    }

    section h2 {
        font-size: 26px;
    }

    footer .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    footer div a {
        margin-left: 0;
        margin: 0 12px;
    }
}

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

    .container,
    .container-narrow {
        padding: 0 20px;
    }

    .card,
    .feature {
        padding: 20px;
    }
}
