/* ===================================
   TALLY KNIGHT - Main Stylesheet
   Modern, responsive design with knight/shield theme
   =================================== */

/* === ROOT VARIABLES === */
:root {
    /* Primary Colors - Knight/Shield Theme */
    --primary-color: #1a4d8f;
    --primary-dark: #0f3566;
    --primary-light: #2d5fa8;
    --accent-color: #d4af37;
    --accent-dark: #b8941f;
    
    /* Semantic Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Neutral Colors */
    --dark-bg: #0a1628;
    --dark-secondary: #1a2332;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
    
    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* === SECTION === */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-dark {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
    color: var(--white);
}

.section-accent {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-dark .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-subtitle {
    color: var(--gray-300);
}

.section-subtitle-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* === SOURCE CITATIONS === */
.source-citation {
    display: inline-block;
    margin-left: 8px;
    opacity: 0.6;
    transition: var(--transition);
}

.source-citation:hover {
    opacity: 1;
}

.source-citation a {
    color: inherit;
    font-size: 0.9em;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.nav-menu li a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-menu li a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-cta {
    display: flex;
    gap: 12px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #2d5fa8 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 77, 143, 0.3) 0%, transparent 50%);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
}

.hero-badge i {
    font-size: 3rem;
    color: var(--white);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 16px;
    opacity: 0.95;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--accent-color);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Live Standings Card */
.hero-visual {
    margin-top: 60px;
}

.live-standings-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 32px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    color: var(--gray-800);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--danger-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.live-standings-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.standings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.standing-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 8px;
    transition: var(--transition);
}

.standing-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.standing-1 { border-left: 4px solid #ffd700; }
.standing-2 { border-left: 4px solid #c0c0c0; }
.standing-3 { border-left: 4px solid #cd7f32; }
.standing-4 { border-left: 4px solid var(--gray-400); }

.standing-item .rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.standing-item .house-name {
    flex: 1;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.standing-item .points {
    font-weight: 700;
    color: var(--accent-dark);
}

.update-text {
    margin-top: 16px;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator a {
    color: var(--white);
    font-size: 2rem;
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* === PROBLEM SECTION === */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.problem-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--danger-color);
}

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

.problem-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.problem-icon i {
    font-size: 2rem;
    color: var(--danger-color);
}

.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    padding: 40px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

.cta-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 20px;
}

/* === OPPORTUNITY SECTION === */
.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.opportunity-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.opportunity-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-8px);
}

.opportunity-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.opportunity-icon i {
    font-size: 2rem;
    color: var(--white);
}

.opportunity-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.opportunity-card p {
    color: var(--gray-300);
    line-height: 1.8;
}

/* === SOLUTION SECTION === */
.solution-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-item p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* === REAL-TIME SECTION === */
.realtime-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.realtime-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.realtime-feature {
    position: relative;
    padding-left: 80px;
}

.feature-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.realtime-feature h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.realtime-feature p {
    color: var(--gray-600);
    line-height: 1.7;
}

.live-update-demo {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.live-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--danger-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
}

.update-animation {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.update-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.update-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.update-item span {
    color: var(--gray-700);
    font-weight: 500;
}

/* === DASHBOARDS SECTION === */
.dashboard-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    color: var(--white);
}

.tab-btn i {
    font-size: 1.25rem;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.dashboard-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    line-height: 1.7;
}

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

.feature-list i {
    color: var(--success-color);
    font-size: 1.25rem;
    margin-top: 2px;
}

.dashboard-preview {
    display: flex;
    justify-content: center;
}

.preview-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    width: 100%;
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.preview-header i {
    font-size: 1.5rem;
}

.preview-content {
    padding: 30px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.quick-action:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(8px);
}

.quick-action i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.quick-action:hover i {
    color: var(--white);
}

.student-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--gray-100);
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 8px;
    margin-bottom: 12px;
}

.notification-item i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* === ANALYTICS SECTION === */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: var(--transition);
}

.kpi-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.kpi-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.kpi-content {
    flex: 1;
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.kpi-change {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kpi-change.positive {
    color: var(--success-color);
}

.kpi-change.negative {
    color: var(--danger-color);
}

.kpi-change.neutral {
    color: var(--gray-400);
}

.analytics-insight {
    max-width: 800px;
    margin: 0 auto;
}

.insight-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.insight-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.insight-card p {
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* === IMPACT SECTION === */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.impact-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

.impact-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-number.positive {
    color: var(--success-color);
}

.stat-number.negative {
    color: var(--danger-color);
}

.stat-number.highlight {
    color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--gray-600);
}

.impact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.impact-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.impact-note {
    text-align: center;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

.impact-note p {
    color: var(--gray-600);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* === IMPLEMENTATION SECTION === */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    order: 3;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-icon {
    order: 1;
    text-align: right;
}

.timeline-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    box-shadow: 0 0 0 8px #e0f2fe;
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: right;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--gray-600);
    line-height: 1.7;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.timeline-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* === DEMO SECTION === */
.demo-content {
    max-width: 800px;
    margin: 0 auto;
}

.demo-header {
    text-align: center;
    margin-bottom: 50px;
}

.demo-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.demo-tagline {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 600;
}

.demo-form-container {
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.demo-form h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.demo-form > p {
    color: var(--gray-600);
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--gray-800);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 77, 143, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* === FOOTER === */
.footer {
    background: var(--dark-bg);
    color: var(--gray-300);
    padding: 60px 0 30px;
}

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

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--accent-color);
    font-weight: 600;
}

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

.footer-column h4 {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.source-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.source-note a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

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

.scroll-top i {
    font-size: 1.25rem;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .realtime-content,
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        grid-template-columns: 60px 1fr;
        gap: 20px;
    }
    
    .timeline-number {
        position: static;
        transform: none;
    }
    
    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        order: 2;
        text-align: left;
    }
    
    .timeline-icon {
        display: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: 12px 0;
    }
    
    .nav-cta {
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
    }
    
    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .problem-grid,
    .opportunity-grid,
    .solution-features,
    .impact-grid,
    .kpi-strip {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .demo-form-container {
        padding: 30px 20px;
    }
    
    .demo-header h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline-item {
        grid-template-columns: 40px 1fr;
        gap: 16px;
    }
    
    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .timeline-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .live-standings-card {
        padding: 20px;
    }
    
    .kpi-card {
        flex-direction: column;
        text-align: center;
    }
    
    .kpi-value {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}