:root {
    /* Theme Variables */
    --bg-body: var(--light);
    --bg-surface: var(--white);
    --bg-alt: #F1F5F9;
    --text-heading: #22c55e; /* Green for light mode */
    --text-body: #4ade80; /* Light green */
    --text-muted-theme: #86efac; /* Lighter green */
    --border-theme: rgba(0, 0, 0, 0.1);

    /* Colors */
    --primary: #0076B6;
    --primary-light: #329FE3;
    --primary-dark: #004D7A;
    --secondary: #00A69C;
    --secondary-dark: #00877E;
    
    --dark: #0A192F;
    --dark-surface: #112240;
    --dark-surface-2: #233554;
    
    --light: #F8FBFF;
    --white: #FFFFFF;
    
    --text-main: #334155;
    --text-muted: #64748B;
    --text-light: #CBD5E1;
    
    --danger: #EF4444;
    --warning: #F59E0B;
    --success: #10B981;
    --info: #3B82F6;
    
    /* Spacing & Layout */
    --max-width: 1200px;
    --nav-height: 80px;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(0, 166, 156, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 1);
    --glass-blur: 16px;
    
    --glass-dark-bg: rgba(17, 34, 64, 0.7);
    --glass-dark-border: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] {
    --bg-body: #050B14;
    --bg-surface: #0B1426;
    --bg-alt: #0D1B33;
    --text-heading: #bbf7d0; /* Light green */
    --text-body: #86efac; /* Light green */
    --text-muted-theme: #4ade80; /* Green */
    --border-theme: rgba(255, 255, 255, 0.08);
    
    --glass-bg: rgba(11, 20, 38, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
}

body {
    transition: background-color 0.4s ease, color 0.4s ease;
}


/* 3D Earth Container */
#earth-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 800px; /* Ensure Globe.gl has space even on empty paint */
    z-index: 1; /* Keep above bg, below content */
    pointer-events: auto; /* Globe.gl needs pointer events for orbiting */
    transition: opacity 1.5s ease-in-out;
}
#earth-container canvas {
    outline: none;
}

#problem {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 0;
}

/* Title bar at top of the problem section */
.problem-title-bar {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 4;
    pointer-events: none;
}

/* Floating cards in corners */
.floating-card {
    position: absolute;
    z-index: 4;
    width: 220px;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: white;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

.floating-card.visible {
    opacity: 1;
    transform: scale(1);
}

.floating-card.connected {
    border-color: rgba(0, 166, 156, 0.6);
    box-shadow: 0 0 20px rgba(0, 166, 156, 0.15);
}

.floating-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: white;
}

.floating-card p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
    margin: 0;
}

.fc-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.fc-icon.red { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.fc-icon.orange { background: rgba(234, 179, 8, 0.2); color: #eab308; }
.fc-icon.yellow { background: rgba(250, 204, 21, 0.2); color: #facc15; }

/* Position cards in corners around the globe */
.fc-top-left { top: 15%; left: 3%; }
.fc-top-right { top: 15%; right: 3%; }
.fc-bottom-left { bottom: 15%; left: 3%; }
.fc-bottom-right { bottom: 15%; right: 3%; }

@media (max-width: 768px) {
    .floating-card {
        width: 160px;
        padding: 12px;
    }
    .floating-card h4 { font-size: 0.8rem; }
    .floating-card p { font-size: 0.65rem; }
    .fc-top-left { top: 12%; left: 2%; }
    .fc-top-right { top: 12%; right: 2%; }
    .fc-bottom-left { bottom: 12%; left: 2%; }
    .fc-bottom-right { bottom: 12%; right: 2%; }
}

/* Globe Markers */
.globe-stat-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.stat-indicator {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--danger);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--danger), 0 0 20px rgba(239, 68, 68, 0.5);
    z-index: 2;
}

.stat-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background-color: rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: markerPulse 2s infinite;
}

/* Animated SVG connector lines from globe dots to cards */
.stat-svg-line-animated {
    animation: dash 5s linear infinite;
    filter: drop-shadow(0 0 3px rgba(0, 166, 156, 0.6));
}

@keyframes dash {
    to {
        stroke-dashoffset: -40;
    }
}

/* Glow effect on cards when connected via lines */
.problem-card.connected {
    border-color: rgba(0, 166, 156, 0.6) !important;
    box-shadow: 0 0 15px rgba(0, 166, 156, 0.2), 0 10px 30px rgba(0,0,0,0.3) !important;
    transition: border-color 0.8s ease, box-shadow 0.8s ease;
}

@keyframes markerPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}
/* Keep problem grid interactive while above the globe */
.problem-grid, .alert-banner {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2; /* Content sits above earth */
}

.bg-light {
    background-color: var(--bg-alt);
}

.dark-section {
    background-color: #0A192F;
    color: var(--text-body);
}

.dark-section h2, .dark-section h3, .dark-section h4 {
    color: var(--text-heading);
}

[data-theme="dark"] .dark-section {
    background-color: var(--bg-body);
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-green { color: var(--success); }
.text-red { color: var(--danger); }
.text-blue { color: var(--info); }
.text-light { color: var(--text-light); }

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Typography */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}



.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted-theme);
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle.lg {
    max-width: 800px;
    font-size: 1.25rem;
}

.eyebrow {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    border: 2px solid transparent;
    font-family: 'Outfit', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 118, 182, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 118, 182, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: none;
    background: var(--bg-body);
    color: var(--text-heading);
    cursor: pointer;
    transition: var(--transition-base);
}

.icon-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.glass-panel.dark {
    background: var(--glass-dark-bg);
    border: 1px solid var(--glass-dark-border);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 30px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    z-index: 1001;
}

.navbar.scrolled .logo, .dark-section .logo {
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 118, 182, 0.3);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition-base);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-body);
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
    width: 100%;
    padding: 0 24px;
}

.mobile-menu a {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.w-full {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 40px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 118, 182, 0.15);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 118, 182, 0.3);
    backdrop-filter: blur(4px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 166, 156, 0.7);
    animation: pulse-ring 2s infinite;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted-theme);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.stats-row {
    display: flex;
    gap: 32px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-surface);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text strong {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    font-size: 1.125rem;
}

.stat-text span {
    font-size: 0.8125rem;
    color: var(--text-muted-theme);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Hero Visual / Dashboard */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.main-dashboard {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: 24px;
    transform: rotateY(-5deg) rotateX(5deg);
    transform-style: preserve-3d;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    font-size: 1.5rem;
    display: grid;
    place-items: center;
}

.user-info h4 {
    font-size: 1.125rem;
    margin-bottom: 2px;
}

.user-info span {
    font-size: 0.8125rem;
    color: var(--text-muted-theme);
    font-weight: 600;
}

.risk-score {
    width: 60px;
    height: 60px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

.green .circle {
    stroke: var(--success);
}

.percentage {
    fill: var(--text-heading);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.6rem;
    text-anchor: middle;
}

.dash-alert {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.dash-alert.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.dash-alert.warning .alert-icon {
    color: var(--warning);
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-content strong {
    display: block;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.alert-content p {
    font-size: 0.875rem;
    color: var(--text-muted-theme);
    margin: 0;
}

.dash-doctor h4 {
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-muted-theme);
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-body);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.05);
}

.doc-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.doc-info {
    flex: 1;
}

.doc-info strong {
    display: block;
    color: var(--text-heading);
}

.doc-info span {
    font-size: 0.8125rem;
    color: var(--text-muted-theme);
}

.call-btn {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 118, 182, 0.3);
}

.dash-vitals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vital-box {
    background: var(--bg-surface);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vital-box i {
    font-size: 1.25rem;
}

.vital-box strong {
    font-size: 1.25rem;
    color: var(--text-heading);
}

.vital-box span {
    font-size: 0.75rem;
    color: var(--text-muted-theme);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Floating Elements */
.floating-badge {
    position: absolute;
    background: var(--bg-surface);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
}

.badge-1 {
    top: -20px;
    right: -20px;
    color: var(--primary);
}

.badge-2 {
    bottom: 20px;
    left: -40px;
    color: var(--success);
}

/* The Problem */
.problem-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.problem-card {
    padding: 32px;
    transition: var(--transition-base);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.icon-wrapper.red { background: rgba(239, 68, 68, 0.2); color: #FCA5A5; }
.icon-wrapper.orange { background: rgba(249, 115, 22, 0.2); color: #FDBA74; }
.icon-wrapper.yellow { background: rgba(234, 179, 8, 0.2); color: #FDE047; }

.problem-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.problem-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.alert-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
}

.alert-banner i {
    font-size: 2.5rem;
}

.alert-banner p {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.align-center {
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-list li {
    display: flex;
    gap: 16px;
}

.list-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 118, 182, 0.1);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-list strong {
    display: block;
    color: var(--text-heading);
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.feature-list span {
    color: var(--text-muted-theme);
}

/* Solution Visual (Network/Orbit) */
.solution-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.core-node {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0, 118, 182, 0.4);
}

.orbit-container {
    position: absolute;
    width: 300px;
    height: 300px;
    animation: spin 30s linear infinite;
    z-index: 4;
}

.orbit-node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    animation: spin-reverse 30s linear infinite;
}

.orbit-node.node-1 { top: -30px; left: 120px; }
.orbit-node.node-2 { bottom: 20px; left: 10px; }
.orbit-node.node-3 { bottom: 20px; right: 10px; }

.orbit-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px dashed rgba(0, 118, 182, 0.2);
    border-radius: 50%;
    z-index: 1;
}

.orbit-ring.large {
    width: 450px;
    height: 450px;
    border: 1px solid rgba(0, 166, 156, 0.1);
    animation: pulse-ring 4s infinite;
}

/* Features Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid.problem-grid.compact {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid.problem-grid.compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card {
    background: var(--bg-surface);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid rgba(0,0,0,0.03);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 166, 156, 0.2);
}

.fc-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,118,182,0.1), rgba(0,166,156,0.1));
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    transition: var(--transition-base);
}

.feature-card:hover .fc-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted-theme);
}

/* Moat */
.moat-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.moat-item {
    display: flex;
    gap: 24px;
    background: var(--bg-surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.moat-item.highlight {
    background: linear-gradient(135deg, var(--dark-surface), var(--primary-dark));
    color: var(--white);
}

.moat-item.highlight h3, .moat-item.highlight .moat-number {
    color: var(--white);
}

.moat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 118, 182, 0.1);
    line-height: 1;
}

.moat-content h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.moat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.moat-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.moat-list i {
    color: var(--secondary);
}

/* User Journey Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.timeline-step {
    position: relative;
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.t-dot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark-surface);
    border: 2px solid var(--primary);
    display: grid;
    place-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 0 0 8px var(--dark);
}

.t-content {
    background: var(--glass-dark-bg);
    border: 1px solid var(--glass-dark-border);
    padding: 32px;
    border-radius: var(--radius-lg);
    flex: 1;
}

.t-content h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.t-content p {
    color: var(--text-light);
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 32px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.cta-box h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.beta-form {
    display: flex;
    gap: 16px;
}

.beta-form input {
    flex: 1;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
}

.beta-form .btn {
    background: var(--dark);
    color: var(--white);
    box-shadow: none;
    white-space: nowrap;
}

.beta-form .btn:hover {
    background: var(--dark-surface-2);
}

.small-text {
    font-size: 0.875rem !important;
    opacity: 0.8 !important;
    margin-bottom: 0 !important;
}

.cta-decoration {
    position: absolute;
    right: -50px;
    bottom: -50px;
    font-size: 400px;
    color: rgba(255,255,255,0.1);
    transform: rotate(-15deg);
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: grid;
    place-items: center;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 8px;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact a {
    display: block;
    margin-top: 12px;
    color: var(--white);
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a:hover {
    color: var(--white);
}

/* Background Gradients/Blur Shapes */
.bg-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: rgba(0, 118, 182, 0.2);
    top: -100px;
    left: -200px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 166, 156, 0.2);
    top: 200px;
    right: -100px;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.15);
    bottom: -100px;
    left: 20%;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
    transition: opacity var(--transition-base), background-image var(--transition-base);
}

[data-theme="dark"] .bg-grid {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Add a glowing orb effect to the background */
.bg-grid::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(100px);
    animation: float-glow 15s ease-in-out infinite alternate;
}

.bg-grid::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(120px);
    animation: float-glow 20s ease-in-out infinite alternate-reverse;
}

@keyframes float-glow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, 10%); }
}

/* Animations Core */
@keyframes pulse-ring {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(0, 166, 156, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 166, 156, 0); }
    100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(0, 166, 156, 0); }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    100% { transform: rotate(-360deg); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes float-slow {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
    100% { transform: translateY(0px); }
}

@keyframes progress {
    0% { stroke-dasharray: 0, 100; }
}

.pulse {
    animation: pulse-ring 2s infinite;
}

.pulse-glow {
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 20px rgba(0, 166, 156, 0.2); }
    100% { box-shadow: 0 0 40px rgba(0, 166, 156, 0.6); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* Reveal Animations triggered by JS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.left {
    transform: translateX(-50px);
}

.reveal.right {
    transform: translateX(50px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Initial Load Animations */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.5, 0, 0, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero p {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-row {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .split-image {
        grid-row: 1;
        display: flex;
        justify-content: center;
        margin-bottom: 40px;
    }
    
    .moat-container {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
    
    .cta-content {
        margin: 0 auto;
    }
    
    .beta-form {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .cta-decoration {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .stats-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .beta-form {
        flex-direction: column;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .t-dot {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-step {
        gap: 20px;
    }
    
    .t-content {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}