:root {
    --color-bg: #0f172a;
    --color-bg-alt: #0a0f1d;
    --color-primary: #3b82f6; /* bright blue */
    --color-primary-dark: #1e3a8a; /* deep blue */
    --color-primary-light: #60a5fa;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-glass-bg: rgba(30, 41, 59, 0.5);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease-out;

    --glow-primary: 0 0 40px rgba(59, 130, 246, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, .hero-title, .section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; }

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

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-light), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 800px;
}

.text-center { text-align: center; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.mt-auto { margin-top: auto; }

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 99px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: none;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1.125rem; }

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--color-border);
}

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

.full-width {
    width: 100%;
}

.glass-card {
    background: var(--color-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
}

.glass-panel {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary-light);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-base);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo i {
    color: var(--color-primary);
    font-size: 1.75rem;
}

.nav-links {
    display: none;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: white;
}

.nav-actions {
    display: none;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-btn {
    display: block;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 90;
    padding: 5rem 1.5rem 2rem;
    transform: translateY(-100%);
    transition: var(--transition-base);
    opacity: 0;
    pointer-events: none;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.mobile-link {
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

@media (min-width: 768px) {
    .nav-links, .nav-actions { display: flex; }
    .mobile-menu-btn { display: none; }
}

/* Sections Global */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-desc {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 10;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 1.5rem 0 2.5rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1.2fr;
        gap: 6rem;
    }
    .hero-content {
        text-align: left;
        margin: 0;
    }
    .hero-cta {
        flex-direction: row;
    }
}

/* Dashboard Mockup Illustration */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.dashboard-mockup {
    border-radius: 12px;
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg) scale(1);
    transition: transform var(--transition-slow);
}

.dashboard-mockup:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
}

.mockup-header {
    height: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    margin-right: 6px;
}
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #22c55e; margin-right: 0;}

.mockup-body {
    display: flex;
    height: 400px;
}

.dash-sidebar {
    width: 60px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
}

.dash-item {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.dash-item.active { background: var(--color-primary); }

.dash-main {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dash-top {
    display: flex;
    justify-content: space-between;
}

.dash-title {
    width: 120px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.dash-profile {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.dash-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dash-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.dash-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-lines { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.dash-lines span { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
.dash-lines span:first-child { width: 80%; }
.dash-lines span:last-child { width: 50%; }

.dash-chart {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-chart-header {
    width: 150px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dash-chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 10%;
    padding-top: 1rem;
}

.bar {
    flex: 1;
    background: linear-gradient(0deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}

.h-40 { height: 40%; }
.h-70 { height: 70%; }
.h-50 { height: 50%; }
.h-90 { height: 90%; }
.h-60 { height: 60%; }
.h-100 { height: 100%; }
.h-80 { height: 80%; }

/* Modules Section */
.modules { background-color: var(--color-bg-alt); }

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.module-card {
    padding: 2.5rem 2rem;
    transition: var(--transition-base);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.module-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Platform Section */
.platform-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .platform-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-list li {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    color: var(--color-primary-light);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.modular-graphic {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-node {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--glow-primary);
    z-index: 2;
    animation: pulse 3s infinite alternate;
}

.satellite-node {
    position: absolute;
    padding: 0.75rem 1.25rem;
    background: var(--color-glass-bg);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    font-weight: 500;
}

.node-1 { top: 10%; left: 10%; }
.node-2 { top: 20%; right: 5%; }
.node-3 { bottom: 20%; left: 5%; }
.node-4 { bottom: 10%; right: 10%; }

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
    100% { box-shadow: 0 0 50px rgba(59, 130, 246, 0.6); }
}

/* Patient Journey */
.patient-journey { background: var(--color-bg-alt); }

.flow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    position: relative;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    z-index: 2;
}

.flow-step:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.step-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flow-step:nth-child(even) .step-content {
    flex-direction: row-reverse;
}

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

.flow-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-primary) 0%, rgba(59, 130, 246, 0) 100%);
    margin: 0.5rem 0;
}

/* Benefits */
.benefits { background: var(--color-bg); }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem 1rem;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition-base);
}

.benefit-item:hover .benefit-icon {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary);
    transform: scale(1.1);
}

/* Integrations */
.integrations { background: var(--color-bg-alt); }

.integration-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .integration-diagram {
        flex-direction: row;
        justify-content: space-between;
    }
}

.diagram-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .diagram-side { width: 25%; }
}

.diagram-box, .diagram-pill {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-border);
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

.diagram-box { border-radius: 8px; }
.diagram-pill { border-radius: 99px; }

.diagram-center {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.diagram-connection {
    color: var(--color-border);
    font-size: 2rem;
}

@media (max-width: 768px) {
    .diagram-connection {
        transform: rotate(90deg);
    }
}

.api-core {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.api-rings {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* About Seciton */
.targets-container, .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.tag {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    font-weight: 500;
}

/* CTA */
.cta {
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-tagline {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.25rem;
    color: white;
}

.footer-links a {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--color-text-muted);
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: white;
}

/* Animations (Intersection Observer) */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}
