/* Opti Presentation - Premium Dark Gold Theme v3 */

/* CSS Variables and Design Tokens */
:root {
  /* Primary Colors - Gold Theme */
  --color-primary: #FFD700;
  --color-primary-light: #FFF3B8;
  --color-primary-dark: #D4A017;

  /* Dark Theme Colors */
  --color-black: #0A0A0A;
  --color-dark-gray: #1A1A1A;
  --color-gray: #2A2A2A;
  --color-light-gray: #3A3A3A;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;

  /* Neutral Colors - Dark Theme */
  --color-text: #FFFFFF;
  --color-text-light: #E5E5E5;
  --color-text-muted: #9CA3AF;
  --color-background: #0A0A0A;
  --color-background-light: #1A1A1A;
  --color-background-dark: #0A0A0A;
  --color-border: rgba(255, 215, 0, 0.2);
  --color-border-light: rgba(255, 215, 0, 0.1);
  
  /* Typography Scale */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  
  /* Desktop Typography Scale */
  --font-size-xs: 0.875rem;
  --font-size-sm: 1rem;
  --font-size-base: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.875rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3rem;
  --font-size-5xl: 3.75rem;
  --font-size-6xl: 4.5rem;
  --font-size-7xl: 6rem;
  --font-size-8xl: 8rem;
  --font-size-9xl: 10rem;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-6xl: 12rem;
  
  /* Layout */
  --container-max-width: 1400px;
  --container-padding: var(--space-xl);
  --section-padding: var(--space-4xl);
  --nav-height: 80px;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 40px 80px -20px rgba(0, 0, 0, 0.25);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-base: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-modal: 1030;
  --z-popover: 1040;
  --z-tooltip: 1050;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

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

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-black);
    min-height: 100vh;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Navigation Header - Dark Gold Theme */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.opti-logo {
    color: #FFD700;
    position: relative;
    display: inline;
    background: linear-gradient(
        90deg,
        #FFD700 0%,
        #FFD700 40%,
        #FFFFFF 50%,
        #FFD700 60%,
        #FFD700 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    animation: opti-gold-streak 3s linear infinite;
}

@keyframes opti-gold-streak {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

.nav-subtitle {
    font-size: 0.875rem;
    color: #9CA3AF;
    font-weight: 500;
}

.nav-progress-container {
    flex: 1;
    max-width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.nav-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #D4A017 100%);
    width: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #9CA3AF;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    font-size: 0.875rem;
}

.nav-link:hover,
.nav-link.active {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #9CA3AF;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Container and Layout */
.main-container {
    margin-top: var(--nav-height);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
    box-sizing: border-box;
}

/* Ensure section titles are centered within containers */
.section .container > .section-title-large {
    text-align: center !important;
    display: block;
    width: 100%;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding) 0;
    position: relative;
    background: var(--color-black);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Make hero section fit content within viewport */
.section-hero {
    padding: var(--section-padding) 0;
}

.section-dark {
    background: var(--color-dark-gray);
    color: #ffffff;
}

.section-hero.opti-hero {
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%), var(--color-black);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typography */
h1 { font-size: var(--font-size-6xl); }
h2 { font-size: var(--font-size-5xl); }
h3 { font-size: var(--font-size-4xl); }
h4 { font-size: var(--font-size-3xl); }
h5 { font-size: var(--font-size-2xl); }
h6 { font-size: var(--font-size-xl); }

.section-title-large {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-black);
    line-height: 1.05;
    margin-bottom: var(--space-2xl);
    color: var(--color-text);
    text-align: center !important;
    word-spacing: normal;
    letter-spacing: normal;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.section-dark .section-title-large {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.opti-name {
    font-size: var(--font-size-8xl);
    font-weight: var(--font-weight-black);
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Override the gradient on individual letters */
.opti-name .opti-op {
    color: inherit;
}

.opti-name .opti-ti {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-top: var(--space-sm);
}

.text-large {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    color: var(--color-text-light);
}

.section-dark .text-large {
    color: #e2e8f0;
}

.hub-philosophy {
    margin-bottom: var(--space-3xl);
}

.text-huge {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    text-align: center;
    color: var(--color-text);
    word-spacing: normal;
    letter-spacing: normal;
}

.section-dark .text-huge {
    color: #ffffff;
}

.statement-large {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    text-align: center;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.95);
    word-spacing: normal;
    letter-spacing: normal;
}

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

.intelligence-intro {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto var(--space-3xl) auto;
}

.statement-context {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.highlight {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
}

.subsection-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2xl);
    color: var(--color-text);
}

.section-dark .subsection-title {
    color: #ffffff;
}

/* Hero Section - Opti Avatar */
.hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.opti-avatar {
    margin-bottom: 2rem;
    display: inline-block;
    position: relative;
}

.opti-circle {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.opti-brain {
    font-size: 5rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.opti-pulsing-light {
    width: 64px;
    height: 64px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.opti-pulse {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.pulse-1 {
    width: 180px;
    height: 180px;
    animation-delay: 0s;
}

.pulse-2 {
    width: 260px;
    height: 260px;
    animation-delay: 1s;
}

.pulse-3 {
    width: 300px;
    height: 300px;
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(1.15);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Mobile-optimized floating animation */
@keyframes floatMobile {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatSmall {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Personality Traits */
.opti-personality {
    margin: 2rem 0;
}

.personality-traits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.trait {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.trait:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.trait-icon {
    font-size: 1.5rem;
}

.trait-text {
    font-weight: 500;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.95);
}

/* Sample Conversation */
.sample-conversation {
    max-width: 600px;
    margin: 0 auto;
}

.conversation-window {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    height: 330px;
    display: flex;
    flex-direction: column;
}

.conversation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.opti-indicator {
    font-size: 0.875rem;
    font-weight: 600;
    color: #10b981;
}

.conversation-title {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.conversation-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.conversation-messages::-webkit-scrollbar {
    width: 4px;
}

.conversation-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.conversation-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.conversation-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.message {
    padding: 1rem;
    border-radius: 12px;
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
    animation: messageAppear 0.6s ease forwards;
}

.message.user {
    align-self: flex-end;
    background: rgba(255, 215, 0, 0.2);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.message.opti {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

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

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    min-height: 48px;
    flex-shrink: 0;
    margin-top: auto;
}

.typing-indicator.active {
    opacity: 1;
    visibility: visible;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: typingDot 1.5s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.5s;
}

.typing-dot:nth-child(3) {
    animation-delay: 1s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Bidirectional Flow */
.bidirectional-flow {
    margin: 3rem 0;
}

.flow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
    opacity: 0;
    transform: translateY(30px);
    animation: flowStepAppear 0.8s ease forwards;
}

.flow-step[data-step="1"] {
    animation-delay: 0.2s;
}

.flow-step[data-step="2"] {
    animation-delay: 0.4s;
}

.flow-step[data-step="3"] {
    animation-delay: 0.6s;
}

.flow-step[data-step="4"] {
    animation-delay: 0.8s;
}

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

.step-visual {
    width: 180px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.step-visual:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.user-message,
.opti-response {
    background: rgba(255, 215, 0, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.opti-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.processing-brain {
    font-size: 2rem;
    animation: processingPulse 2s ease-in-out infinite;
}

@keyframes processingPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.processing-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.dashboard-updates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.update-item {
    background: rgba(16, 185, 129, 0.3);
    padding: 0.5rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.step-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
}

.flow-arrow {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    margin: 0 1rem;
}

.arrow-line {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    margin-right: 8px;
}

.arrow-head {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Intelligence Examples */
.intelligence-examples {
    margin-top: 4rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.example-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.example-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.example-input {
    background: rgba(255, 215, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.example-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 1rem 0;
}

.example-analysis {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.example-output {
    background: rgba(16, 185, 129, 0.2);
    padding: 1rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Health HUB Visualization */
.hub-visual {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 500px;
    margin: 3rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FFD700 0%, #D4A017 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #0A0A0A;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
    animation: hubPulse 4s ease-in-out infinite;
}

@keyframes hubPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 25px 50px rgba(255, 215, 0, 0.4);
    }
}

.opti-hub-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hub-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.hub-satellites {
    position: relative;
    width: 100%;
    height: 100%;
}

.satellite {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    color: #1e293b;
}

.satellite:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.satellite[data-category="biomarkers"] {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.satellite[data-category="genetics"] {
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
}

.satellite[data-category="lifestyle"] {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.satellite[data-category="trends"] {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.satellite-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.satellite-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.satellite-count {
    font-size: 0.625rem;
    color: #64748b;
}

.connections-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.connection-line {
    stroke: rgba(255, 215, 0, 0.3);
    stroke-width: 2;
    stroke-dasharray: 5,5;
    animation: connectionFlow 3s linear infinite;
}

@keyframes connectionFlow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 20;
    }
}

/* Capabilities Grid */
.capabilities-grid,
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.capability-card,
.impact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.capability-card:hover,
.impact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.capability-card h4,
.impact-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.capability-card p,
.impact-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.impact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Multi-Pathway Cards */
.pathways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pathway-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pathway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700 0%, #D4A017 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pathway-card:hover::before {
    transform: scaleX(1);
}

.pathway-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pathway-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
}

.pathway-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-align: center;
}

.pathway-description {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-align: center;
}

.pathway-example {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.example-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 85%;
}

.chat-message.user {
    align-self: flex-end;
    background: rgba(255, 215, 0, 0.4);
    color: rgba(255, 255, 255, 0.95);
}

.chat-message.opti {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
}

.tracking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.form-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
}

.form-slider::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 80%;
    background: linear-gradient(90deg, #10b981 0%, #16a085 100%);
    border-radius: 2px;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: transparent;
}

.form-checkbox.checked {
    background: #10b981;
    border-color: #10b981;
    position: relative;
}

.form-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.import-demo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.file-icon {
    font-size: 1.5rem;
}

.file-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.extraction-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.extracted-item {
    background: rgba(16, 185, 129, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.manual-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.biomarker-label {
    min-width: 60px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.biomarker-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    width: 80px;
    text-align: center;
}

.biomarker-unit {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.opti-interpretation {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.interpretation-icon {
    font-size: 1rem;
}

.interpretation-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    line-height: 1.5;
}

.pathway-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-tag {
    background: rgba(255, 215, 0, 0.3);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.unified-intelligence {
    margin-top: 4rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Snapshots Demo */
.snapshots-demo {
    margin: 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.demo-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.demo-question {
    text-align: center;
}

.question-bubble {
    display: inline-block;
    background: rgba(255, 215, 0, 0.3);
    padding: 1.5rem 2rem;
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.question-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.demo-processing {
    text-align: center;
}

.processing-visualization {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.opti-thinking {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.thinking-icon {
    font-size: 3rem;
    animation: processingPulse 2s ease-in-out infinite;
}

.thinking-text {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.data-sources {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.source-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0.5;
}

.source-item.active {
    opacity: 1;
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    animation: sourceActivate 0.8s ease;
}

@keyframes sourceActivate {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.source-icon {
    font-size: 1.5rem;
}

.source-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.source-status {
    font-size: 0.875rem;
    color: #10b981;
}

.demo-response {
    margin-top: 2rem;
}

.response-window {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    overflow: hidden;
    animation: responseAppear 1s ease;
}

@keyframes responseAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.response-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.opti-avatar-small {
    font-size: 1.5rem;
}

.response-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.response-content {
    padding: 1.5rem;
}

.response-summary {
    margin-bottom: 1.5rem;
}

.response-summary p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    font-weight: 500;
}

.response-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.detail-item.positive {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
}

.detail-item.neutral {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
}

.detail-item.focus {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
}

.detail-icon {
    font-size: 1rem;
    margin-top: 0.125rem;
}

.detail-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.response-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-number {
    background: linear-gradient(135deg, #FFD700 0%, #D4A017 100%);
    color: #0A0A0A;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.action-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    color: #1e293b;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.category-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.category-biomarkers {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

/* Daily Timeline */
.daily-philosophy {
    margin: 3rem 0;
    text-align: center;
}

.philosophy-statement {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.philosophy-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.daily-interactions {
    margin: 4rem 0;
}

.interactions-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.interactions-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #FFD700 0%, #D4A017 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    animation: timelineAppear 0.8s ease forwards;
}

.timeline-item[data-time="morning"] {
    animation-delay: 0.2s;
}

.timeline-item[data-time="midday"] {
    animation-delay: 0.4s;
}

.timeline-item[data-time="evening"] {
    animation-delay: 0.6s;
}

.timeline-item[data-time="night"] {
    animation-delay: 0.8s;
}

@keyframes timelineAppear {
    to {
        opacity: 1;
    }
}

.timeline-time {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700 0%, #D4A017 100%);
    color: #0A0A0A;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

.timeline-content {
    margin-top: 3rem;
}

.interaction-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    margin: 0 2rem;
    transition: all 0.3s ease;
}

.interaction-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.interaction-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.interaction-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.interaction-user {
    background: rgba(255, 215, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.interaction-opti {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* System Architecture */
.architecture-overview {
    margin: 3rem 0;
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.architecture-layer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: layerAppear 0.8s ease forwards;
}

.architecture-layer[data-layer="interface"] {
    animation-delay: 0.2s;
    background: rgba(255, 215, 0, 0.1);
}

.architecture-layer[data-layer="intelligence"] {
    animation-delay: 0.4s;
    background: rgba(16, 185, 129, 0.1);
}

.architecture-layer[data-layer="ai"] {
    animation-delay: 0.6s;
    background: rgba(245, 158, 11, 0.1);
}

.architecture-layer[data-layer="data"] {
    animation-delay: 0.8s;
    background: rgba(139, 92, 246, 0.1);
}

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

.layer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

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

.component {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

/* System Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #16a085 100%);
}

.achievement-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.achievement-metric {
    font-size: 3rem;
    font-weight: 800;
    color: #10b981;
    display: block;
    margin-bottom: 0.5rem;
}

.achievement-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.achievement-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* System Status */
.system-status {
    margin-top: 4rem;
}

.status-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.status-item.complete {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.status-item.in-progress {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.status-icon {
    font-size: 1.25rem;
}

.status-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.next-evolution {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.evolution-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.evolution-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.main-footer {
    background: rgba(30, 41, 59, 0.95);
    color: #e2e8f0;
    padding: 2rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
}

.footer-text {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Animation Classes */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    animation-play-state: paused;
}

/* Override any animation interference with title centering */
.section-title-large.animate-fade-up {
    text-align: center !important;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.delay-900 {
    animation-delay: 0.9s;
}

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

/* Responsive Design - Comprehensive Mobile Support */

/* Tablet - Large Mobile */
@media (max-width: 1024px) {
  :root {
    --section-padding: var(--space-3xl);
    --container-padding: var(--space-lg);
  }
  
  .opti-name {
    font-size: var(--font-size-6xl);
  }
  
  .text-huge {
    font-size: var(--font-size-5xl);
  }
  
  .section-title-large {
    font-size: var(--font-size-4xl);
  }
  
  /* Grid adjustments */
  .pathways-grid,
  .categories-grid,
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .opti-circle {
    width: 130px;
    height: 130px;
  }
  
  .pulse-1 {
    width: 150px;
    height: 150px;
  }
  
  .opti-pulsing-light {
    width: 52px;
    height: 52px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: var(--space-xl);
    --container-padding: var(--space-md);
    --nav-height: 70px;
  }
  
  /* Ensure all sections have consistent width */
  .section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    box-sizing: border-box;
  }
  
  /* Use even more subtle and slowest floating animation on smallest screens */
  .animate-float {
    animation: floatSmall 10s ease-in-out infinite;
  }
  
  /* Navigation adjustments */
  .nav-container {
    padding: 0.5rem 1rem;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  /* Compact nav-brand on mobile */
  .nav-brand {
    gap: 0;
    flex-shrink: 0;
  }

  .nav-title {
    font-size: 1.1rem;
    line-height: 1.1;
  }

  .opti-logo {
    font-size: 1.25rem;
  }

  .nav-subtitle {
    font-size: 0.7rem;
    line-height: 1;
  }

  /* Fix the main content to not be overlapped */
  .section-hero {
    padding-top: 100px !important;
  }

  /* Hide progress bar on mobile to save space */
  .nav-progress-container {
    display: none;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    padding: var(--space-lg) 0;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-link {
    padding: var(--space-lg) var(--space-md);
    font-size: var(--font-size-base);
    text-align: center;
    border-radius: var(--radius-lg);
  }
  
  /* Typography scaling */
  .opti-name {
    font-size: var(--font-size-4xl);
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
    margin-top: var(--space-sm);
  }
  
  .text-huge {
    font-size: var(--font-size-2xl);
    line-height: 1.2;
  }
  
  .text-large,
  .statement-large {
    font-size: var(--font-size-lg);
    line-height: 1.4;
  }
  
  .section-title-large {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-2xl);
  }
  
  .subsection-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-lg);
  }
  
  /* Layout adjustments */
  .flow-container {
    flex-direction: column;
    gap: var(--space-2xl);
  }
  
  .flow-arrow {
    transform: rotate(90deg);
    margin: var(--space-lg) 0;
    font-size: var(--font-size-xl);
  }
  
  .pathways-grid,
  .categories-grid,
  .achievements-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg);
  }
  
  .interactions-timeline::before {
    left: var(--space-lg);
  }
  
  .timeline-time {
    left: var(--space-lg);
    transform: none;
  }
  
  .interaction-card {
    margin: 0 0 0 calc(var(--space-2xl) + var(--space-lg));
  }
  
  .hub-satellites .satellite {
    position: static;
    transform: none;
    margin: var(--space-lg);
  }
  
  .hub-visual {
    height: auto;
    flex-direction: column;
    gap: var(--space-2xl);
  }
  
  .hub-center {
    position: static;
    transform: none;
  }
  
  .connections-svg {
    display: none;
  }
  
  /* Demo adjustments */
  .conversation-window {
    padding: var(--space-lg);
    height: 300px;
  }
  
  .sample-conversation {
    margin: var(--space-2xl) 0;
  }
  
  .demo-container {
    gap: var(--space-lg);
  }
  
  .data-sources {
    gap: var(--space-md);
  }
  
  .personality-traits {
    gap: var(--space-lg);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  :root {
    --section-padding: var(--space-md);
    --container-padding: var(--space-sm);
    --nav-height: 60px;
  }
  
  /* Ensure ultra-compact sections don't overflow */
  .section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    box-sizing: border-box;
  }
  
  /* Ultra compact typography */
  .opti-name {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .text-huge {
    font-size: var(--font-size-xl);
  }
  
  .section-title-large {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-lg);
  }
  
  .text-large,
  .statement-large {
    font-size: var(--font-size-base);
  }
  
  .subsection-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
  }
  
  /* Compact layouts */
  .personality-traits {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }
  
  .trait {
    padding: var(--space-sm) var(--space-lg);
  }
  
  .categories-grid,
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .pathway-card,
  .category-card,
  .achievement-card {
    padding: var(--space-lg);
  }
  
  .opti-circle {
    width: 100px;
    height: 100px;
  }
  
  .opti-brain {
    font-size: 3rem;
  }
  
  .pulse-1 {
    width: 120px;
    height: 120px;
  }
  
  .opti-pulsing-light {
    width: 40px;
    height: 40px;
  }
  
  /* Use more subtle and slower floating animation on mobile */
  .animate-float {
    animation: floatMobile 8s ease-in-out infinite;
  }
  
  .conversation-window {
    padding: var(--space-md);
    height: 280px;
  }
  
  .message {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
  }
  
  /* Navigation brand adjustment */
  .nav-title {
    font-size: var(--font-size-lg);
  }
  
  .nav-subtitle {
    font-size: var(--font-size-xs);
  }
  
  /* Prevent any element from causing horizontal overflow */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Force width constraints on all major containers */
  .hub-visual,
  .conversation-window,
  .demo-container,
  .pathways-grid,
  .categories-grid {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* HUB Carousel Styles */
.hub-carousel {
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    height: 500px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 16px;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 3rem 2rem 1.5rem;
    color: white;
    border-radius: 0 0 16px 16px;
}

.slide-caption h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.slide-caption p {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 16px 16px;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
    .carousel-container {
        height: 350px;
    }
    
    .slide-caption {
        padding: 2rem 1rem 1rem;
    }
    
    .slide-caption h4 {
        font-size: var(--font-size-lg);
    }
    
    .slide-caption p {
        font-size: var(--font-size-sm);
    }
    
    .carousel-controls {
        padding: 1rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
}

/* Tablet specific fixes */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-container {
    padding: 0.75rem 1.5rem;
  }

  .nav-brand {
    gap: 0.25rem;
  }

  .nav-title {
    font-size: 1.3rem;
  }

  .opti-logo {
    font-size: 1.5rem;
  }

  .nav-subtitle {
    font-size: 0.8rem;
  }

  /* Ensure proper spacing from top */
  .section-hero {
    padding-top: 90px;
  }
}

/* Health Categories Horizontal Carousel */
.categories-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 2rem 0;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-carousel::-webkit-scrollbar {
    display: none;
}

.categories-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    animation: scroll-left 20s linear infinite;
}

.categories-track:hover {
    animation-play-state: paused;
}

.category-card {
    flex-shrink: 0;
    width: 250px;
    min-height: 140px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.category-biomarkers {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

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

/* Mobile adjustments for categories */
@media (max-width: 768px) {
    .category-card {
        width: 200px;
        min-height: 120px;
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .category-name {
        font-size: 1rem;
    }
    
    .category-biomarkers {
        font-size: 0.75rem;
    }
}