/* AINNA AI Ecosystem - Apple-Inspired Minimalist Design */

:root {
    /* Day Mode - Light */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #e8e8ed;
    --text-primary: #1d1d1f;
    --text-secondary: #424245;
    --text-tertiary: #86868b;
    --accent-primary: #6e6e73;
    --accent-secondary: #86868b;
    --border-light: #d2d2d7;
    --border-medium: #c2c2c7;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.1);
    --gradient-pastel: linear-gradient(135deg, #f5f7fa 0%, #e8eaf0 50%, #f0f2f8 100%);
    --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glow-subtle: 0 0 40px rgba(102,126,234,0.1);
}

[data-theme="dark"] {
    /* Night Mode - Dark */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #d0d0e0;
    --text-tertiary: #9090a8;
    --accent-primary: #00ffff;
    --accent-secondary: #ff00ff;
    --border-light: #2a2a3a;
    --border-medium: #3a3a4a;
    --shadow-sm: 0 2px 8px rgba(0,255,255,0.1);
    --shadow-md: 0 4px 16px rgba(0,255,255,0.15);
    --shadow-lg: 0 8px 32px rgba(0,255,255,0.2);
    --shadow-xl: 0 12px 48px rgba(0,255,255,0.3);
    --gradient-pastel: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #1a1a25 100%);
    --gradient-accent: linear-gradient(135deg, #00ffff 0%, #ff00ff 100%);
    --glow-subtle: 0 0 60px rgba(0,255,255,0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

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

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-lg);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-pastel);
    padding: 120px 24px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/ainna-ai/assets/images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.3; /* 70% transparent */
    z-index: 0;
    pointer-events: none;
}

[data-theme="dark"] .hero::before {
    opacity: 0.3; /* 70% transparent for night mode too */
    filter: brightness(0.7);
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-accent);
    opacity: 0.08;
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
}

.shape-1 { width: 400px; height: 400px; top: -100px; left: -100px; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; bottom: -50px; right: -50px; animation-delay: 5s; }
.shape-3 { width: 250px; height: 250px; top: 40%; right: 10%; animation-delay: 10s; }
.shape-4 { width: 200px; height: 200px; bottom: 20%; left: 15%; animation-delay: 15s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(40px, 10px) rotate(270deg); }
}

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

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-headline {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

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

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Ecosystem Cards - Clean Grid Layout */
.scrolling-cards {
    padding: 60px 0;
    background: var(--bg-secondary);
    overflow: visible;
    position: relative;
}

.scrolling-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.card-scroll {
    display: contents;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    min-width: 280px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    min-width: 320px;
    max-width: 320px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(102,126,234,0.1);
    border-radius: 50px;
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

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

/* Info Cards */
.info-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.info-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Feature Boxes */
.feature-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.feature-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-box p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stat Cards */
.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 64px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.tech-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.tech-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tech-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Detached Flow */
.detached-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.flow-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.flow-step h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.flow-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.flow-arrow {
    font-size: 48px;
    color: var(--accent-primary);
    font-weight: 300;
}

/* Automation Cards */
.automation-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.automation-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.automation-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.automation-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Governance */
.governance-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.governance-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.governance-item ul {
    list-style: none;
}

.governance-item li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    font-size: 16px;
}

.governance-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

/* Case Study */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.case-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.case-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.case-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.case-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pitch Grid */
.pitch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.pitch-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.pitch-phase {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-accent);
    color: #ffffff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.pitch-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pitch-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pitch-cta {
    display: inline-block;
    margin-top: 20px;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-pastel);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cta-content > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: 15px;
    color: var(--text-secondary);
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Globe Button */
.globe-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.globe-panel {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow-xl);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.globe-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.globe-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.globe-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.globe-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.globe-icon {
    font-size: 20px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

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

/* Responsive */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 48px; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero-title { font-size: 36px; }
    .hero-headline { font-size: 20px; }
    .hero-subtitle { font-size: 16px; }
    .section-header h2 { font-size: 32px; }
    .detached-flow { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); }
    .pitch-grid { grid-template-columns: 1fr; }
    .case-study-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .cta-actions { flex-direction: column; }
}

/* Dark Mode Overrides */
[data-theme="dark"] .hero-title {
    text-shadow: 0 0 40px rgba(0,255,255,0.3);
}

[data-theme="dark"] .stat-value {
    text-shadow: 0 0 30px rgba(0,255,255,0.5);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .feature-box,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .tech-item,
[data-theme="dark"] .flow-step,
[data-theme="dark"] .automation-card,
[data-theme="dark"] .governance-item,
[data-theme="dark"] .case-card,
[data-theme="dark"] .pitch-card {
    background: rgba(22,22,31,0.8);
    border-color: rgba(0,255,255,0.2);
}

[data-theme="dark"] .section-tag {
    background: rgba(0,255,255,0.1);
    color: #00ffff;
}

[data-theme="dark"] .btn-primary {
    box-shadow: 0 4px 20px rgba(0,255,255,0.3);
}

[data-theme="dark"] .globe-btn {
    border-color: rgba(0,255,255,0.3);
    box-shadow: 0 4px 20px rgba(0,255,255,0.2);
}

/* Process Flow - Detached Systems (Card Style) */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.process-step {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background: var(--gradient-accent);
    color: white;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.process-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.process-arrow {
    font-size: 32px;
    color: var(--accent-primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* Responsive: Stack on mobile */
@media (max-width: 1024px) {
    .process-flow {
        flex-direction: column;
        align-items: stretch;
    }
    
    .process-step {
        max-width: 100%;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        text-align: center;
    }
}

[data-theme="dark"] .process-step {
    background: rgba(22,22,31,0.8);
    border-color: rgba(0,255,255,0.2);
}

[data-theme="dark"] .process-arrow {
    color: #00ffff;
}

/* ========================================
   AUTO-SCROLL CARDS (Mobile Optimization)
   ======================================== */

.scrolling-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

.scrolling-track {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    cursor: grab;
    touch-action: pan-y;
}

.scroll-content {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scroll-left 40s linear infinite;
    cursor: grab;
}

.scroll-content:active {
    cursor: grabbing;
    animation-play-state: paused !important;
}

.scroll-content:hover,
.scroll-content.paused {
    animation-play-state: paused;
}

/* Alternate scroll directions */
.scroll-left .scroll-content {
    animation-direction: normal;
}

.scroll-right .scroll-content {
    animation-direction: reverse;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Feature card styling for scrolling sections */
.scrolling-section .feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px 32px 32px 32px;
    min-width: 340px;
    max-width: 340px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.scrolling-section .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.scrolling-section .feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scrolling-section .feature-icon svg {
    width: 100%;
    height: 100%;
}

.scrolling-section .feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    min-height: 27px;
    line-height: 1.3;
}

.scrolling-section .feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: auto;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .scrolling-section {
        padding: 40px 0;
    }
    
    .scrolling-section .feature-card {
        min-width: 280px;
        max-width: 280px;
        padding: 32px 24px 24px 24px;
    }
    
    .scrolling-section .feature-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }
    
    .scroll-content {
        gap: 16px;
    }
}
