/* ============================================
   NEPHORA HEALTH - Investor Pitch Showcase
   Premium, Professional Design System
   ============================================ */

:root {
    /* Primary Colors */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Accent Colors */
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;

    /* Neutral Colors */
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    --gray-950: #09090b;

    /* Semantic Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-hero: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 30%, #161633 70%, #0f0f23 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: 8rem 4rem;
    --card-padding: 2rem;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(180deg,
            #0f0f23 0%,
            #1a1a3e 8%,
            #161633 20%,
            #12122a 35%,
            #0f0f23 50%,
            #0a0a18 100%);
    background-attachment: fixed;
    color: var(--gray-100);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--gray-300);
    font-size: 1.1rem;
}

strong {
    color: #fff;
    font-weight: 600;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fff;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid var(--gray-600);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gray-400);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    padding: 10rem 4rem 6rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-300);
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 3rem;
    max-width: 540px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 140px;
    backdrop-filter: blur(10px);
}

.stat-card.highlight {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-300);
    margin-top: 0.25rem;
}

.stat-compare {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    width: 320px;
    height: 420px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16162b 100%);
    border-radius: 40px;
    padding: 16px;
    border: 1px solid var(--glass-border);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0a18 0%, #0f0f23 100%);
    border-radius: 28px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.glucose-display {
    text-align: center;
    margin-bottom: 2rem;
}

.current-glucose {
    font-size: 5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.glucose-unit {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.glucose-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--success);
    font-weight: 500;
}

.device-graph {
    width: 100%;
    height: 60px;
}

.device-graph svg {
    width: 100%;
    height: 100%;
}

.graph-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    padding: 0.75rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 30%;
    left: -40px;
    animation-delay: 1s;
}

.badge-3 {
    bottom: 10%;
    right: -30px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-400);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-section {
    background: transparent;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.problem-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.problem-card p {
    font-size: 1rem;
    color: var(--gray-400);
}

.problem-quote {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
}

.problem-quote blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gray-300);
    line-height: 1.6;
    position: relative;
    padding: 2rem;
}

.problem-quote blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 5rem;
    color: var(--primary-600);
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* ============================================
   SOLUTION SECTION
   ============================================ */
.solution-section {
    background: transparent;
}

.solution-showcase {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.tech-diagram {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.diagram-layer {
    width: 100%;
    max-width: 280px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    transition: transform 0.3s;
}

.diagram-layer:hover {
    transform: scale(1.05);
}

.layer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.layer-icon {
    font-size: 1.25rem;
}

.layer-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
}

.layer-2 {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: #fff;
}

.layer-3 {
    background: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
    color: #fff;
}

.layer-4 {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    color: #fff;
}

.layer-5 {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: #fff;
}

.diagram-arrow {
    font-size: 1.5rem;
    color: var(--gray-500);
}

.solution-content h3 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-500);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.feature-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-400);
}

.feature h4 {
    font-size: 1.1rem;
}

.feature p {
    font-size: 0.95rem;
    color: var(--gray-400);
}

/* ============================================
   COMPARISON SECTION
   ============================================ */
.comparison-section {
    background: transparent;
}

.comparison-table-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-disclaimer {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-table th {
    background: var(--glass-bg);
    font-weight: 600;
    color: var(--gray-300);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table th.nephora {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-300);
}

.comparison-table td.competitor {
    color: var(--gray-400);
}

.comparison-table td.nephora {
    background: rgba(99, 102, 241, 0.05);
    color: #fff;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ============================================
   HARDWARE DEVICE SECTION
   ============================================ */
.hardware-section {
    background: transparent;
}

.hardware-showcase {
    max-width: 1400px;
    margin: 0 auto;
}

.device-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.device-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.device-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Crossfade transition setup */
.device-assembled {
    opacity: 1;
}

.device-exploded-overlay {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(0.98);
}

/* Hover effect - smooth crossfade */
.device-image-container:hover .device-assembled {
    opacity: 0;
    transform: scale(1.02);
}

.device-image-container:hover .device-exploded-overlay {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 40px 100px rgba(99, 102, 241, 0.3);
}

/* Hover hint */
.hover-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--gray-400);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.device-image-container:hover .hover-hint {
    opacity: 0;
}

.device-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.device-tagline {
    font-size: 1.2rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.device-specs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.spec-item:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.05);
}

.spec-icon {
    font-size: 1.5rem;
}

.spec-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-detail strong {
    color: var(--gray-100);
    font-size: 0.95rem;
}

.spec-detail span {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* Exploded View with Smooth Transition */
.exploded-view {
    text-align: center;
    position: relative;
}

.exploded-view h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.exploded-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    transition: all 0.5s ease;
}

.exploded-image:hover {
    transform: scale(1.02);
}

.component-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.component-tag {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-300);
    transition: all 0.3s ease;
}

.component-tag:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

/* ============================================
   TECHNOLOGY SECTION
   ============================================ */
.technology-section {
    background: transparent;
}

.tech-architecture {
    max-width: 900px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.arch-layer {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    transition: border-color 0.3s;
}

.arch-layer:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.arch-layer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
}

.arch-icon {
    font-size: 1.5rem;
}

.arch-layer-header h4 {
    font-size: 1rem;
    font-weight: 600;
}

.arch-components {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.component {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--gray-300);
}

.tech-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.spec-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.spec-card h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-300);
}

.spec-card ul {
    list-style: none;
}

.spec-card li {
    padding: 0.5rem 0;
    color: var(--gray-300);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-card li:last-child {
    border-bottom: none;
}

/* ============================================
   MOATS SECTION
   ============================================ */
.moats-section {
    background: transparent;
}

.moats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.moats-grid>.moat-card:nth-child(4),
.moats-grid>.moat-card:nth-child(5) {
    grid-column: span 1;
}

.moat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s;
    cursor: default;
}

.moat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-500);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

.moat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.moat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-500);
}

.moat-card h3 {
    font-size: 1.25rem;
}

.moat-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.moat-metric {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
}

.metric-label {
    color: var(--gray-500);
}

.metric-value {
    font-weight: 600;
    color: var(--primary-400);
}

/* Flywheel */
.moat-flywheel {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.moat-flywheel h3 {
    margin-bottom: 3rem;
    font-size: 1.75rem;
}

.flywheel-circle {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.flywheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    z-index: 10;
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.3);
}

.center-icon {
    font-size: 2rem;
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.center-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-200);
    text-align: center;
    line-height: 1.2;
}

.flywheel-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: pulse-ring 4s ease-in-out infinite;
}

@keyframes pulse-ring {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.flywheel-node {
    position: absolute;
    width: 100px;
    height: 80px;
    background: rgba(15, 15, 35, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
    top: 50%;
    left: 50%;
    transform: rotate(calc(var(--i) * 60deg)) translateY(-180px) rotate(calc(var(--i) * -60deg)) translate(-50%, -50%);
}

.flywheel-node:hover {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    transform: rotate(calc(var(--i) * 60deg)) translateY(-180px) rotate(calc(var(--i) * -60deg)) translate(-50%, -50%) scale(1.1);
}

.node-icon {
    font-size: 1.5rem;
}

.node-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-300);
    text-align: center;
}

/* ============================================
   PATENTS SECTION
   ============================================ */
.patents-section {
    background: transparent;
}

.patents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.patent-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.patent-card:hover {
    border-color: var(--primary-500);
}

.patent-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.patent-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.patent-card h4 {
    font-size: 1rem;
}

.patent-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.patent-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-500);
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.patent-summary {
    max-width: 800px;
    margin: 0 auto;
}

.summary-card {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.summary-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-300);
}

/* ============================================
   TRACTION SECTION
   ============================================ */
.traction-section {
    background: transparent;
}

.traction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.traction-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.traction-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.traction-card h4 {
    margin-bottom: 1rem;
}

.traction-card ul {
    list-style: none;
}

.traction-card li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray-400);
    position: relative;
    padding-left: 1.25rem;
}

.traction-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

.code-metrics {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.code-metrics .metric {
    text-align: center;
}

.metric-big {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.code-metrics .metric-label {
    color: var(--gray-400);
    font-size: 1rem;
}

/* ============================================
   MARKET SECTION
   ============================================ */
.market-section {
    background: transparent;
}

.market-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.market-card {
    text-align: center;
    padding: 2rem 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.market-value {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.market-label {
    color: var(--gray-400);
    margin-top: 0.5rem;
}

.market-segments {
    max-width: 800px;
    margin: 0 auto;
}

.market-segments h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.segment {
    margin-bottom: 1.5rem;
}

.segment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.segment-name {
    font-weight: 600;
}

.segment-potential {
    font-size: 0.85rem;
    color: var(--primary-400);
}

.segment-bar {
    height: 12px;
    background: var(--gray-800);
    border-radius: 6px;
    overflow: hidden;
}

.segment-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 6px;
    transition: width 1s ease-out;
}

/* ============================================
   VISION SECTION
   ============================================ */
.vision-section {
    background: transparent;
}

.roadmap {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.roadmap::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-500) 0%, var(--gray-700) 100%);
}

.roadmap-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.roadmap-marker {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--gray-800);
    border: 2px solid var(--gray-600);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.roadmap-marker.active {
    background: var(--primary-500);
    border-color: var(--primary-400);
}

.roadmap-content h4 {
    margin-bottom: 0.5rem;
}

.roadmap-content p {
    font-size: 0.95rem;
    color: var(--gray-400);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: transparent;
    text-align: center;
    padding: 8rem 4rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cta-tagline {
    font-size: 1.3rem;
    color: #fff;
    margin-top: 2rem;
}

.cta-quote {
    margin-top: 3rem;
}

.cta-quote blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-300);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 3rem 4rem;
    background: transparent;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.footer-legal {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 3rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .solution-showcase {
        grid-template-columns: 1fr;
    }

    .tech-diagram {
        margin-bottom: 3rem;
    }

    .moats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .patents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .traction-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 8rem 1.5rem 4rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 200px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .moats-grid {
        grid-template-columns: 1fr;
    }

    .patents-grid {
        grid-template-columns: 1fr;
    }

    .traction-grid {
        grid-template-columns: 1fr;
    }

    .market-stats {
        flex-direction: column;
        align-items: center;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }

    .flywheel-visual {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Scroll animations - applied via JS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   DEMO SECTION
   ============================================ */
.demo-section {
    background: transparent;
}

/* Block Diagram */
.block-diagram-container {
    max-width: 1200px;
    margin: 0 auto 4rem;
    text-align: center;
}

.diagram-title {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
    font-weight: 500;
}

.block-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.block-item {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    min-width: 140px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.block-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.block-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.block-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.block-sublabel {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.block-item.source {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
}

.block-item.process {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: #fff;
}

.block-item.ml {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    color: #fff;
}

.block-item.safety {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
    color: #fff;
}

.block-item.output {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
}

.block-arrow {
    font-size: 1.5rem;
    color: var(--gray-500);
    font-weight: bold;
}

.click-hint {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray-500);
}

.block-item {
    cursor: pointer;
}

/* Block Info Modal */
.block-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.block-info-modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a2e 0%, #16162b 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--gray-400);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.modal-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-right: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-300);
}

/* Demo Container */
.demo-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.demo-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-300);
}

.demo-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-600);
}

.demo-indicator.live {
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.main-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.demo-glucose {
    margin-bottom: 1rem;
}

.glucose-value {
    font-size: 5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.glucose-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.glucose-meta .unit {
    font-size: 1.25rem;
    color: var(--gray-400);
}

.glucose-meta .confidence {
    font-size: 0.85rem;
    color: var(--success);
}

.glucose-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
}

.glucose-status.stable {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.glucose-status.high {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.status-icon {
    font-size: 0.75rem;
}

/* Chart Panel */
.chart-panel .demo-chart {
    height: 150px;
    position: relative;
}

.demo-chart svg {
    width: 100%;
    height: 100%;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Metrics Panel */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.metric-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.metric-item .metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.metric-item .metric-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Table Footnote */
.table-footnote {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 1rem;
    font-style: italic;
}

/* ============================================
   IP SECTION (STREAMLINED)
   ============================================ */
.ip-section {
    background: transparent;
}

.ip-summary {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.ip-card {
    text-align: center;
    padding: 2rem 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.ip-stat {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ip-label {
    color: var(--gray-400);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.ip-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.ip-area {
    text-align: center;
    padding: 2rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
}

.ip-area h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-300);
}

.ip-area p {
    font-size: 0.9rem;
    color: var(--gray-400);
}

/* ============================================
   FOUNDER SECTION
   ============================================ */
.founder-section {
    background: transparent;
}

.founder-profile {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.founder-image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.founder-content h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.founder-title {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-300);
    margin-bottom: 2rem;
}

.founder-bio {
    margin-bottom: 2rem;
}

.founder-bio p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.founder-quote {
    font-size: 1.15rem;
    color: #fff;
    padding: 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary-500);
    border-radius: 0 12px 12px 0;
    margin-top: 1.5rem;
}

.founder-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--gray-200);
}

.highlight-icon {
    font-size: 1.25rem;
}

/* Responsive for new sections */
@media (max-width: 1200px) {
    .demo-container {
        grid-template-columns: 1fr;
    }

    .block-diagram {
        flex-direction: column;
    }

    .block-arrow {
        transform: rotate(90deg);
    }

    .founder-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .founder-quote {
        text-align: left;
    }

    .ip-areas {
        grid-template-columns: 1fr;
    }

    .ip-summary {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .glucose-value {
        font-size: 4rem;
    }

    .founder-content h3 {
        font-size: 2rem;
    }

    .highlight {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}