/* ====================================
   LongevityCreation Landing Page Styles
   Inspired by Function Health
   ==================================== */

/* CSS Variables */
:root {
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --color-bg: #FAFAFA;
    --color-bg-dark: #0A0A0A;
    --color-text: #191919;
    --color-text-muted: #666666;
    --color-text-light: #999999;
    --color-accent: #2563EB;
    --color-accent-light: #DBEAFE;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-border: #E5E5E5;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.16);
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Overrides */
body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 500;
}

em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-text);
}

/* Header Updates */
.header {
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.logo h1 {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 26px;
    letter-spacing: -0.5px;
}

.nav-item {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
    text-decoration: none;
}

.nav-item:hover {
    color: var(--color-text);
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    min-height: 100vh;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #FAFAFA 0%, #F0F0F0 100%);
}

.hero .container {
    max-width: 100%;
    padding: 0 40px;
}

/* Background Elements */
.hero-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
    width: 800px;
    height: 800px;
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
    top: 20%;
    left: 25%;
    animation-delay: -14s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

/* Hero Content */
.hero > .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 180px);
}

.hero-content {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(48px, 9vw, 96px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 28px;
}

.title-line {
    display: block;
}

.title-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.title-highlight {
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 22px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 44px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 50px;
}

.btn-hero-primary {
    background: var(--color-text);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: var(--shadow-md);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #333;
}

.btn-hero-secondary {
    background: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-hero-secondary:hover {
    background: var(--color-bg);
    border-color: var(--color-text);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 20px;
}

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

.stat-number {
    font-size: 56px;
    font-weight: 600;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

.stat-plus, .stat-suffix {
    font-size: 36px;
    font-weight: 500;
    color: var(--color-accent);
}

.stat-label {
    display: block;
    font-size: 15px;
    color: var(--color-text-muted);
    margin-top: 6px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--color-border);
}

/* Scroll Indicator */
.scroll-indicator {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 13px;
    padding: 30px 0 20px;
    margin-top: auto;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-text-muted);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--color-text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ====================================
   Scroll Animations
   ==================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.animate-on-scroll:nth-child(5) { transition-delay: 400ms; }

/* ====================================
   Section Common Styles
   ==================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ====================================
   How It Works Section
   ==================================== */
.how-it-works-section {
    padding: 120px 0;
    background: white;
    position: relative;
}

.steps-container {
    display: grid;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    padding: 40px;
    background: var(--color-bg);
    border-radius: 24px;
    transition: all 0.4s var(--ease-out-expo);
}

.step-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}

.step-icon {
    width: 36px;
    height: 36px;
    color: var(--color-accent);
}

.step-decoration {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.deco-line {
    width: 2px;
    flex: 1;
    min-height: 40px;
    background: linear-gradient(to bottom, var(--color-border), transparent);
}

.deco-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    margin-top: 8px;
}

.step-card:last-child .step-decoration {
    display: none;
}

.step-content {
    padding-top: 8px;
}

.step-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.step-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

/* ====================================
   Features Section
   ==================================== */
.features-section {
    padding: 120px 0;
    background: var(--color-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border);
}

.feature-card-inner {
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-large {
    grid-column: 1 / -1;
}

.feature-large .feature-card-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--color-accent-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Feature Visual - Upload Demo */
.feature-visual {
    background: var(--color-bg);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.upload-demo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upload-area {
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: white;
}

.upload-icon-big {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--color-text-light);
}

.upload-icon-big svg {
    width: 100%;
    height: 100%;
}

.upload-area p {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
}

.extracted-data {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    animation: fade-slide-in 0.5s var(--ease-out-expo) forwards;
}

.feature-card:hover .data-item {
    animation-play-state: running;
}

@keyframes fade-slide-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.data-label {
    font-weight: 500;
    color: var(--color-text);
}

.data-value {
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

.data-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
}

.data-status.optimal {
    background: #D1FAE5;
    color: #065F46;
}

.data-status.warning {
    background: #FEF3C7;
    color: #92400E;
}

/* ====================================
   Biomarkers Showcase Section
   ==================================== */
.biomarkers-section {
    padding: 120px 0;
    background: white;
    overflow: hidden;
}

.biomarkers-showcase {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.biomarkers-track {
    display: flex;
    gap: 12px;
    animation: scroll-track 40s linear infinite;
    width: max-content;
}

.biomarkers-track.reverse {
    animation: scroll-track-reverse 35s linear infinite;
}

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

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

.biomarker-pill {
    padding: 12px 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.biomarker-pill:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: scale(1.05);
}

/* ====================================
   CTA Section
   ==================================== */
.cta-section {
    padding: 120px 0;
    background: var(--color-bg);
}

.cta-card {
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a2e 100%);
    border-radius: 32px;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-title em {
    color: #60A5FA;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-cta-primary {
    background: white;
    color: var(--color-text);
    border: none;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* CTA Decoration */
.cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.cta-orb-1 {
    width: 400px;
    height: 400px;
    background: #3B82F6;
    top: -100px;
    right: -100px;
}

.cta-orb-2 {
    width: 300px;
    height: 300px;
    background: #8B5CF6;
    bottom: -50px;
    left: -50px;
}

.cta-orb-3 {
    width: 200px;
    height: 200px;
    background: #10B981;
    top: 50%;
    left: 30%;
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background: white;
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border);
}

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

.footer-logo {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--color-text);
}

.footer-tagline {
    font-size: 15px;
    color: var(--color-text-muted);
}

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

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 15px;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--color-text);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 1024px) {
    .step-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .step-visual {
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }
    
    .step-decoration {
        display: none;
    }
    
    .feature-large .feature-card-inner {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .hero .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 40px;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-divider {
        width: 50px;
        height: 1px;
    }
    
    .scroll-indicator {
        padding: 20px 0 10px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .how-it-works-section,
    .features-section,
    .biomarkers-section,
    .cta-section {
        padding: 80px 0;
    }
    
    .step-card {
        padding: 24px;
    }
    
    .cta-card {
        padding: 48px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .step-features {
        flex-direction: column;
    }
    
    .feature-tag {
        width: 100%;
        justify-content: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }
}

/* ====================================
   Remove old hero coin styles
   ==================================== */
.coin {
    display: none;
}

