/*
 * PeakHuman Landing Page
 * Design: Premium 2025/2026 Style - Linear/V7 Labs inspired
 */

/* ========================================
   Custom Fonts
   ======================================== */
@font-face {
    font-family: 'PeakHuman';
    src: url('../assets/fonts/PeakHuman.ttf?v=4') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* ========================================
   CSS Variables & Design Tokens
   ======================================== */
:root {
    /* Background Colors - Ultra dark like Linear */
    --bg: #0a0a0b;
    --bg-elevated: #111113;
    --bg-card: #151517;
    --bg-card-hover: #1a1a1c;

    /* Single Accent Color */
    --accent: #00D4FF;
    --accent-glow: rgba(0, 212, 255, 0.15);
    --accent-subtle: rgba(0, 212, 255, 0.08);
    --accent-secondary: #00FFAA;

    /* Text Colors */
    --text-primary: #fafafa;
    --text-secondary: #888888;
    --text-tertiary: #555555;

    /* Borders - Ultra thin */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(0, 212, 255, 0.2);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-logo: 'Michroma', sans-serif;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

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

/* Gradient Background with Glowing Blobs */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(0, 184, 230, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse 70% 50% at 50% 80%, rgba(0, 156, 204, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #050A0F 0%, #070B10 50%, #050A0F 100%);
    pointer-events: none;
}

/* Subtle animated glow */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(0, 212, 255, 0.03) 0%, transparent 35%);
    animation: gradientMove 20s ease-in-out infinite;
    pointer-events: none;
    transform-origin: center center;
}

@keyframes gradientMove {
    0%, 100% {
        transform: scale(1.2) rotate(0deg);
    }
    25% {
        transform: scale(1.25) rotate(1deg);
    }
    50% {
        transform: scale(1.3) rotate(0deg);
    }
    75% {
        transform: scale(1.25) rotate(-1deg);
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Typography - Premium with Serif Accent
   ======================================== */
h1 {
    font-family: var(--font-logo);
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

h2 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h3 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Gradient text for highlights */
.highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-4) 0;
    background: rgba(5, 8, 12, 0.95);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow var(--transition-normal);
}

/* Subtle gradient overlay in header - App style */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.04) 0%,
        rgba(0, 212, 255, 0.01) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.header.scrolled {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 36px;
    width: auto;
}

/* Stacked logo layout - logo above text */
.logo.logo-stacked {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.logo.logo-stacked img {
    height: auto;
    width: 70px;
}

/* Logo Brand Block */
.logo-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Text Logo - Split Fonts: PEAK in PeakHuman, HUMAN in MichromaCustom */
.logo-text {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.logo-peak {
    font-family: 'PeakHuman', sans-serif;
    color: var(--accent);
}

.logo-human {
    font-family: 'Michroma', sans-serif;
    color: var(--text-primary);
}

/* Logo Tagline - same width as PeakHuman */
.logo-tagline {
    font-family: var(--font-logo);
    font-size: 7.5px;
    font-weight: 400;
    color: var(--text-tertiary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 2px;
}

/* Tagline - Michroma */
.tagline {
    font-family: var(--font-logo);
    font-size: 10px;
    font-weight: 400;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: var(--space-1);
    margin-bottom: var(--space-2);
}

.nav {
    display: none;
}

.nav-links {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.lang-switch {
    display: flex;
    gap: 2px;
    padding: 2px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.lang-switch a {
    padding: var(--space-1) var(--space-3);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.lang-switch a:hover {
    color: var(--text-secondary);
}

.lang-switch a.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
}

/* App Store Badges */
.app-store-badges {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.store-badge {
    display: block;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.store-badge:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.store-badge img {
    height: 44px;
    width: auto;
}

/* Ensure both badges are same visual size */
.store-badge {
    height: 44px;
}

.desktop-only {
    display: flex;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 12, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--space-8);
    gap: var(--space-8);
}

.mobile-cta {
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.mobile-store-badges {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
}

.mobile-store-badges .store-badge {
    height: 52px;
}

.mobile-store-badges .store-badge img {
    height: 100%;
    width: auto;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.mobile-menu-links a {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.mobile-menu-links a:hover {
    color: var(--text-primary);
}

/* Mobile Language Switcher */
.mobile-lang-switch {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.mobile-lang-switch a {
    font-size: 14px;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.mobile-lang-switch a:hover,
.mobile-lang-switch a.active {
    color: var(--text-primary);
}

.mobile-lang-switch .lang-divider {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ========================================
   Buttons - With Micro-animations
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-logo);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.95) 0%, rgba(0, 150, 200, 0.9) 100%);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-ghost {
    background: linear-gradient(135deg, rgba(30, 40, 50, 0.8) 0%, rgba(20, 30, 40, 0.6) 100%);
    color: #fff;
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.btn-ghost:hover {
    background: linear-gradient(135deg, rgba(0, 150, 200, 0.25) 0%, rgba(0, 100, 150, 0.15) 100%);
    border-color: rgba(0, 212, 255, 0.4);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: 13px;
}

/* Gradient button - App style */
.btn-glow {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.95) 0%, rgba(0, 150, 200, 0.9) 100%);
    color: #fff;
    font-weight: 600;
    border: none;
}

.btn-glow:hover {
    opacity: 0.9;
}

/* ========================================
   Hero Section - Story-Driven
   ======================================== */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: none;
}

.hero h1 {
    margin-bottom: var(--space-5);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    max-width: 440px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.15s forwards;
}

.hero-ctas {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-10);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.45s forwards;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.stat-number {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Visual with Animation */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.phone-mockup {
    position: relative;
    width: 280px;
    animation: float 6s ease-in-out infinite;
}

.phone-frame {
    background: var(--bg-elevated);
    border-radius: 32px;
    padding: 8px;
    border: 1px solid var(--border);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(0, 212, 255, 0.05);
    transition: box-shadow var(--transition-smooth);
}

.phone-frame:hover {
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(0, 212, 255, 0.08);
}

.phone-screen {
    background: var(--bg);
    border-radius: 26px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Screenshot carousel */
.phone-screen-carousel {
    position: relative;
    width: 100%;
    height: auto;
}

.phone-screen-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease;
}

.phone-screen-carousel img:first-child {
    position: relative;
}

.phone-screen-carousel img.active {
    opacity: 1;
}

/* Hero Video Animation */
.hero-video-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(0, 212, 255, 0.08);
    transition: box-shadow var(--transition-smooth);
}

.hero-video:hover {
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(0, 212, 255, 0.12);
}

/* Video glow effect */
.hero-video-container::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 212, 255, 0.15) 0%,
        transparent 60%
    );
    filter: blur(30px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.scroll-indicator span {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator .chevron {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator .chevron svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-tertiary);
    stroke-width: 2;
    fill: none;
}

/* ========================================
   Values Section
   ======================================== */
.philosophy {
    padding: var(--space-16) 0;
    border-top: 1px solid var(--border);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
}

.philosophy-item {
    text-align: left;
    transition: transform var(--transition-smooth);
}

.philosophy-item:hover {
    transform: translateY(-4px);
}

.philosophy-icon {
    display: none;
}

.philosophy-item h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.philosophy-item p {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* ========================================
   Features Section - Bento Grid
   ======================================== */
.features {
    padding: var(--space-20) 0;
}

.features .section-header {
    margin-bottom: var(--space-12);
}

.section-label {
    display: none;
}

.section-title {
    font-family: var(--font-logo);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
}

/* Bento Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-4);
}

.feature-card {
    background: rgba(15, 22, 30, 0.85);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Cyan gradient overlay - always visible */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.20) 0%,
        rgba(0, 212, 255, 0.08) 40%,
        rgba(0, 50, 80, 0.03) 100%
    );
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.feature-card:hover::before {
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.30) 0%,
        rgba(0, 212, 255, 0.12) 40%,
        rgba(0, 50, 80, 0.05) 100%
    );
}

/* Bento grid item sizes */
.feature-card:nth-child(1) {
    grid-column: span 4;
}

.feature-card:nth-child(2) {
    grid-column: span 2;
}

.feature-card:nth-child(3) {
    grid-column: span 2;
}

.feature-card:nth-child(4) {
    grid-column: span 2;
}

.feature-card:nth-child(5) {
    grid-column: span 2;
}

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

.feature-icon {
    display: none;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

/* Product Name Styling - PEAK in PeakHuman font, word in MichromaCustom */
.product-name {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.product-name .peak {
    font-family: 'PeakHuman', sans-serif;
    color: var(--accent);
}

.product-name .word {
    font-family: 'Michroma', sans-serif;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-tag {
    display: inline-block;
    margin-top: var(--space-3);
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    transition: all var(--transition-fast);
}

.feature-card:hover .feature-tag {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.3);
}

/* Feature visual decorations */
.feature-visual {
    margin-top: var(--space-4);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-visual-bar {
    display: flex;
    gap: var(--space-2);
    align-items: flex-end;
    height: 60px;
}

.feature-visual-bar span {
    width: 12px;
    background: linear-gradient(180deg, var(--accent), rgba(0, 212, 255, 0.2));
    border-radius: 4px 4px 0 0;
    animation: barPulse 2s ease-in-out infinite;
}

.feature-visual-bar span:nth-child(1) { height: 40%; animation-delay: 0s; }
.feature-visual-bar span:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.feature-visual-bar span:nth-child(3) { height: 50%; animation-delay: 0.4s; }
.feature-visual-bar span:nth-child(4) { height: 90%; animation-delay: 0.6s; }
.feature-visual-bar span:nth-child(5) { height: 60%; animation-delay: 0.8s; }

/* Recovery score visual */
.feature-visual-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-secondary);
    animation: spin 3s linear infinite;
}

/* ========================================
   Integrations Section
   ======================================== */
.integrations {
    padding: var(--space-16) 0;
    border-top: 1px solid var(--border);
}

.integrations .section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.integrations .section-subtitle {
    margin: 0 auto;
    display: none;
}

.integration-list {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.integration-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    min-width: 160px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
}

.integration-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
    transform: translateY(-2px);
}

.integration-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.integration-item:hover .integration-icon {
    opacity: 1;
}

.integration-icon svg {
    width: 20px;
    height: 20px;
}

/* Integration logos (real images) */
.integration-logo {
    height: 32px;
    width: 32px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.integration-item:hover .integration-logo {
    opacity: 1;
}

.integration-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.integration-item:hover span {
    color: var(--text-primary);
}

.integration-status {
    display: none;
}

.coming-soon {
    display: none;
}

/* ========================================
   New Visualizations
   ======================================== */

/* Training Load Chart (SVG-based) */
.chart-preview {
    margin-top: var(--space-3);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.load-chart {
    width: 100%;
    max-width: 280px;
    height: 60px;
}

.chart-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-area {
    fill: url(#chartGradient);
    opacity: 0.5;
}

/* HRV Trend Bars */
.hrv-trend {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 50px;
}

.trend-bar {
    width: 10px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(0, 212, 255, 0.2) 100%);
    border-radius: 3px 3px 0 0;
    height: var(--height, 50%);
}

.trend-bar.highlight {
    background: linear-gradient(180deg, var(--accent-secondary) 0%, rgba(0, 255, 170, 0.2) 100%);
}

/* Periodization Timeline */
.periodization-visual {
    display: flex;
    gap: 3px;
    margin-top: var(--space-3);
    height: 28px;
}

.phase {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.phase.active {
    color: var(--accent);
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

/* Macro Distribution - Horizontal Bars instead of Rings */
.macro-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: var(--space-3);
    width: 100%;
}

.macro-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.macro-bar-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-tertiary);
    width: 50px;
}

.macro-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.macro-bar-fill {
    height: 100%;
    border-radius: 3px;
}

.macro-bar-fill.protein {
    width: 75%;
    background: var(--accent);
}

.macro-bar-fill.carbs {
    width: 60%;
    background: var(--accent-secondary);
}

.macro-bar-fill.fat {
    width: 45%;
    background: #FFB74D;
}

/* Legacy macro rings (hidden) */
.macro-rings {
    display: none;
}

/* ========================================
   Enhanced Visualizations V3
   ======================================== */

/* Training Load Chart with CTL/ATL/TSB */
.training-load-visual {
    margin-top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.training-load-visual svg {
    width: 100%;
    max-width: 280px;
    height: 80px;
}

.ctl-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
}

.atl-line {
    fill: none;
    stroke: #FF6B6B;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 4 2;
}

.tsb-area {
    fill: rgba(0, 255, 170, 0.15);
}

.chart-legend {
    display: flex;
    gap: var(--space-4);
    font-size: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-tertiary);
}

.legend-item::before {
    content: '';
    width: 12px;
    height: 3px;
    border-radius: 2px;
}

.legend-item.ctl::before {
    background: var(--accent);
}

.legend-item.atl::before {
    background: #FF6B6B;
}

.legend-item.tsb::before {
    background: var(--accent-secondary);
}

/* Recovery Score Enhanced with Factors */
.recovery-visual {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin-top: var(--space-4);
}

.recovery-score-large {
    position: relative;
}

.score-ring {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-ring svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring .ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 4;
}

.score-ring .ring-fill {
    fill: none;
    stroke: var(--accent-secondary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 201 251;
    animation: ringFill 2s ease-out forwards;
}

@keyframes ringFill {
    from {
        stroke-dasharray: 0 251;
    }
    to {
        stroke-dasharray: 201 251;
    }
}

.score-ring .score-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-secondary);
    font-family: 'SF Mono', 'Menlo', monospace;
}

.recovery-factors {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.recovery-factors .factor {
    display: flex;
    align-items: center;
    gap: 8px;
}

.factor-icon {
    font-size: 12px;
    width: 20px;
    text-align: center;
}

.factor-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-tertiary);
    width: 45px;
}

.factor-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.factor-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--fill, 0%);
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%);
    border-radius: 2px;
    animation: barGrow 1s ease-out forwards;
}

@keyframes barGrow {
    from {
        width: 0;
    }
    to {
        width: var(--fill);
    }
}

/* Nutrition Visual with Calorie Ring */
.nutrition-visual {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.calorie-ring {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.calorie-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.calorie-ring .ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 5;
}

.calorie-ring .ring-fill {
    fill: none;
    stroke: #FFB74D;
    stroke-width: 5;
    stroke-linecap: round;
}

.calorie-ring .calorie-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Menlo', monospace;
    line-height: 1.1;
}

.calorie-ring .calorie-value small {
    display: block;
    font-size: 8px;
    font-weight: 500;
    color: var(--text-tertiary);
    font-family: var(--font-body);
}

/* PeakSync Integration Flow Visual */
.sync-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.integration-flow {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.integration-flow .integration-logo {
    width: 36px;
    height: 36px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
}

.integration-flow .integration-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
}

.integration-flow .integration-logo:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.1);
}

.integration-flow .integration-logo:hover img {
    opacity: 1;
}

.sync-arrows {
    display: flex;
    gap: 2px;
}

.sync-arrows .arrow {
    color: var(--accent);
    font-size: 10px;
    opacity: 0.5;
    animation: arrowPulse 1.5s ease-in-out infinite;
}

.sync-arrows .arrow:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-tertiary);
}

.sync-status .pulse {
    width: 6px;
    height: 6px;
    background: var(--accent-secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* AI Coach Visual */
.ai-coach-visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.chat-bubble {
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 11px;
    line-height: 1.4;
    max-width: 90%;
    animation: bubbleIn 0.3s ease-out forwards;
    opacity: 0;
}

.chat-bubble.user {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--text-primary);
    align-self: flex-end;
    animation-delay: 0.2s;
}

.chat-bubble.ai {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    align-self: flex-start;
    animation-delay: 0.5s;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   V2 Visualizations - App-Style
   ======================================== */

/* Training Load Visual Full Width */
.training-load-visual.full-width {
    width: 100%;
}

.training-load-visual.full-width svg {
    width: 100%;
    max-width: 100%;
    height: 90px;
}

/* Recovery Visual V2 - App Style */
.recovery-visual-v2 {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-top: var(--space-3);
}

.recovery-score-ring {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.recovery-score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.recovery-score-ring .ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 6;
}

.recovery-score-ring .ring-fill-recovery {
    fill: none;
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 207 239;
}

.score-value-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 600;
    color: var(--accent);
    font-family: 'SF Mono', 'Menlo', monospace;
}

.recovery-factors-v2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.factor-row-v2 {
    display: flex;
    align-items: center;
    gap: 6px;
}

.factor-icon-v2 {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.factor-icon-v2 svg {
    width: 10px;
    height: 10px;
}

.factor-icon-v2.hrv {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.factor-icon-v2.sleep {
    background: rgba(168, 85, 247, 0.2);
    color: #A855F7;
}

.factor-icon-v2.rhr {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.factor-icon-v2.fatigue {
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
}

.factor-label-v2 {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    width: 42px;
}

.factor-weight {
    font-size: 9px;
    color: var(--text-tertiary);
    width: 24px;
    font-family: 'SF Mono', 'Menlo', monospace;
}

.factor-value-v2 {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    width: 38px;
    text-align: right;
    font-family: 'SF Mono', 'Menlo', monospace;
}

.factor-bar-v2 {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    min-width: 30px;
}

.factor-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.factor-fill.excellent {
    background: linear-gradient(90deg, #00FFAA 0%, #00D4AA 100%);
}

.factor-fill.good {
    background: linear-gradient(90deg, var(--accent) 0%, #00B8E6 100%);
}

.factor-fill.fair {
    background: linear-gradient(90deg, #FBBF24 0%, #F59E0B 100%);
}

.factor-fill.poor {
    background: linear-gradient(90deg, #EF4444 0%, #DC2626 100%);
}

/* Sync Visual V2 - Hub & Spoke */
.sync-visual-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.sync-target {
    display: flex;
    justify-content: center;
}

.peakhuman-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.08) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.peakhuman-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sync-arrows-up {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    height: 24px;
}

.arrow-up {
    color: var(--accent);
    font-size: 14px;
    animation: arrowUp 1.5s ease-in-out infinite;
}

.arrow-up.a1 { animation-delay: 0s; }
.arrow-up.a2 { animation-delay: 0.3s; }
.arrow-up.a3 { animation-delay: 0.6s; }

@keyframes arrowUp {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(4px);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.sync-sources {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
}

.sync-visual-v2 .integration-logo {
    width: 36px;
    height: 36px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-visual-v2 .integration-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
}

/* Improved Recovery Score Visual with HRV Trend */
.feature-visual-score-enhanced {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    justify-content: center;
}

.score-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.score-metric {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 11px;
}

.score-metric-label {
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-metric-value {
    color: var(--accent);
    font-weight: 600;
    font-family: 'SF Mono', 'Menlo', monospace;
}

/* ========================================
   Science Section
   ======================================== */
.science-section {
    padding: var(--space-20) 0;
    border-top: 1px solid var(--border);
    position: relative;
}

.science-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 170, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.science-section .section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.science-section .section-subtitle {
    margin: 0 auto;
    max-width: 550px;
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.science-card {
    background: rgba(15, 22, 30, 0.7);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    position: relative;
    transition: all var(--transition-smooth);
}

.science-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 170, 0.08) 0%,
        rgba(0, 255, 170, 0.02) 50%,
        transparent 100%
    );
    border-radius: var(--radius-lg);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.science-card:hover {
    border-color: rgba(0, 255, 170, 0.25);
    transform: translateY(-2px);
}

.science-card:hover::before {
    opacity: 1;
}

.study-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(0, 255, 170, 0.12);
    border: 1px solid rgba(0, 255, 170, 0.25);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-secondary);
    margin-bottom: var(--space-3);
}

.science-card h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.science-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-3);
}

.science-card cite {
    display: block;
    font-size: 10px;
    font-style: normal;
    color: var(--text-tertiary);
    font-family: 'SF Mono', 'Menlo', monospace;
}

.science-cta {
    text-align: center;
    padding-top: var(--space-4);
}

.science-cta p {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
    padding: var(--space-20) 0;
    border-top: 1px solid var(--border);
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.pricing .section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.pricing .section-subtitle {
    margin: 0 auto var(--space-6);
    max-width: 400px;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.billing-option {
    font-size: 14px;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
    cursor: pointer;
}

.billing-option.active {
    color: var(--text-primary);
}

.save-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 255, 170, 0.15);
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-left: 6px;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 13px;
    transition: all var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Pricing Card Base */
.pricing-card {
    background: rgba(15, 22, 30, 0.85);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    position: relative;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 50%
    );
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Featured Card (Pro) - Gold accent */
.pricing-card.featured {
    border-color: rgba(255, 215, 0, 0.4);
    transform: scale(1.02);
    z-index: 2;
}

.pricing-card.featured::before {
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.15) 0%,
        rgba(255, 215, 0, 0.05) 50%,
        transparent 100%
    );
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.15);
}

/* Premium Card (Elite) - Platinum accent */
.pricing-card.premium::before {
    background: linear-gradient(
        135deg,
        rgba(192, 202, 224, 0.08) 0%,
        rgba(192, 202, 224, 0.02) 50%,
        transparent 100%
    );
}

.pricing-card.premium:hover {
    border-color: rgba(192, 202, 224, 0.3);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: linear-gradient(135deg, #FFE44D 0%, #B8960B 100%);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1A1400;
    white-space: nowrap;
}

/* Pricing Header */
.pricing-header {
    margin-bottom: var(--space-4);
}

.plan-name {
    font-family: 'Michroma', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.plan-name .peak {
    font-family: 'PeakHuman', sans-serif;
    color: var(--accent);
}

.plan-name .human {
    font-family: 'Michroma', sans-serif;
    color: var(--text-primary);
}

/* Tier Badges - Metallic Effect */
.tier-badge {
    display: inline-block;
    padding: 6px 16px;
    font-family: 'Michroma', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 6px;
    margin-bottom: var(--space-3);
}

/* Essential - Metallic Cyan */
.tier-badge.tier-essential {
    background: linear-gradient(135deg, #33E5FF 0%, #008FB3 25%, #00D4FF 50%, #007A99 75%, #00BFEE 100%);
    color: #ffffff;
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow:
        0 2px 8px rgba(0, 150, 200, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Pro - Metallic Gold */
.tier-badge.tier-pro {
    background: linear-gradient(135deg, #FFE44D 0%, #B8960B 25%, #FFD700 50%, #9A7B00 75%, #DDB800 100%);
    color: #1A1400;
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow:
        0 2px 8px rgba(180, 130, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Elite - Metallic Platinum */
.tier-badge.tier-elite {
    background: linear-gradient(135deg, #E8EEF8 0%, #8A96B0 25%, #C0CAE0 50%, #6B7A96 75%, #A8B4CC 100%);
    color: #0A0E18;
    border: 1px solid rgba(192, 202, 224, 0.5);
    box-shadow:
        0 2px 8px rgba(100, 120, 150, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.plan-description {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* Pricing Price */
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: var(--space-1);
}

.price-amount {
    font-size: 42px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Menlo', monospace;
    line-height: 1;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.price-currency {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary);
}

.price-period {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-left: 4px;
}

.price-yearly-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-4);
    min-height: 18px;
}

.price-yearly-note span {
    transition: opacity 0.15s ease;
}

/* Trial Badge */
.trial-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.pricing-card.premium .trial-badge {
    background: rgba(192, 202, 224, 0.1);
    border-color: rgba(192, 202, 224, 0.25);
    color: #C0CAE0;
}

/* Includes Text */
.includes-text {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
    font-style: italic;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.check-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 1px;
}

.pricing-card.premium .check-icon {
    color: #C0CAE0;
}

/* Pricing CTA */
.pricing-cta {
    width: 100%;
    margin-top: auto;
}

.btn-premium {
    border-color: rgba(192, 202, 224, 0.3);
}

.btn-premium:hover {
    background: linear-gradient(135deg, rgba(192, 202, 224, 0.2) 0%, rgba(192, 202, 224, 0.1) 100%);
    border-color: rgba(192, 202, 224, 0.5);
}

/* Pricing Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: var(--space-5);
    }

    .price-amount {
        font-size: 36px;
    }

    .billing-toggle {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
}

/* ========================================
   Final CTA Section
   ======================================== */
.final-cta {
    padding: var(--space-24) 0;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-family: var(--font-logo);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-3);
}

.final-cta p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.final-cta .btn-glow {
    font-size: 15px;
    padding: var(--space-4) var(--space-8);
}

/* ========================================
   Sticky CTA
   ======================================== */
.sticky-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-smooth);
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.sticky-cta .btn {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: var(--space-12) 0 var(--space-6);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: var(--space-12);
    margin-bottom: var(--space-10);
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: var(--space-3);
}

.footer-brand .logo.logo-stacked {
    align-items: center;
    gap: 2px;
    width: fit-content;
}

.footer-brand .logo.logo-stacked img {
    height: auto;
    width: 60px;
}

.footer-brand .logo-brand {
    align-items: center;
}

.footer-brand .logo-text {
    font-size: 18px;
}

.footer-brand .logo-tagline {
    font-size: 6px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.footer-section h4 {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
    text-transform: none;
    letter-spacing: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--space-2);
}

.footer-section a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

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

.footer-legal {
    display: flex;
    gap: var(--space-5);
}

.footer-legal a {
    font-size: 12px;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

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

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(6px);
    }
    60% {
        transform: translateY(3px);
    }
}

@keyframes barPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scroll-triggered animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered animations for grids */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ========================================
   Hidden Sections
   ======================================== */
.science,
.app-preview,
.testimonials {
    display: none;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 34px;
    }

    .science-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-10);
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 0;
    }

    .hero-subtitle {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-card:nth-child(1),
    .feature-card:nth-child(2),
    .feature-card:nth-child(3),
    .feature-card:nth-child(4),
    .feature-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --space-20: 60px;
        --space-24: 80px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    /* Hide desktop app store badges and lang switch, show hamburger */
    .desktop-only,
    .lang-switch {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 130px 0 80px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-ctas {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 260px;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
    }

    .stat {
        text-align: center;
    }

    .phone-mockup {
        width: 240px;
    }

    /* Hero video responsive */
    .hero-video-container {
        max-width: 320px;
    }

    .hero-video {
        border-radius: 12px;
    }

    .section-title {
        font-size: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:nth-child(1),
    .feature-card:nth-child(2),
    .feature-card:nth-child(3),
    .feature-card:nth-child(4),
    .feature-card:nth-child(5) {
        grid-column: span 1;
    }

    .feature-visual {
        height: auto;
        margin-top: var(--space-3);
    }

    .science-grid {
        grid-template-columns: 1fr;
    }

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

    .nutrition-visual {
        flex-direction: column;
    }

    .integration-list {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        flex-direction: column;
        gap: var(--space-6);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .final-cta h2 {
        font-size: 28px;
    }

    .sticky-cta {
        bottom: 16px;
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
    }

    .sticky-cta.visible {
        transform: translateX(0) translateY(0);
    }

    .sticky-cta .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    h1 {
        font-size: 22px;
    }

    .logo.logo-stacked img {
        height: 40px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-tagline {
        font-size: 5.5px;
    }

    .phone-mockup {
        width: 200px;
    }

    .feature-card {
        padding: var(--space-5);
    }

    /* Hide periodization phases on small mobile */
    .periodization-visual .phase {
        font-size: 8px;
        padding: var(--space-1);
    }
}

/* ========================================
   V4 Refinements
   ======================================== */

/* PeakIntelligence - Chart Left, Insights Right */
.intelligence-layout {
    display: flex;
    gap: var(--space-5);
    margin-top: var(--space-4);
    align-items: flex-start;
}

.intelligence-chart {
    flex: 1;
    min-width: 0;
}

.intelligence-chart svg {
    width: 100%;
    height: 80px;
}

.intelligence-insights {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-status {
    font-family: var(--font-logo);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.form-status.good {
    background: rgba(0, 255, 170, 0.15);
    border: 1px solid rgba(0, 255, 170, 0.3);
    color: var(--accent-secondary);
}

.form-status.fair {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #FBBF24;
}

.form-status.poor {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.insight-text {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.recovery-mini {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    color: var(--text-tertiary);
    font-family: 'SF Mono', 'Menlo', monospace;
}

/* PeakRecovery - Phosphor Icons */
.factor-icon-v2 svg {
    width: 12px;
    height: 12px;
}

.factor-icon-v2.hrv {
    background: rgba(239, 68, 68, 0.2);
}

.factor-icon-v2.hrv svg {
    color: #EF4444;
}

.factor-icon-v2.sleep {
    background: rgba(168, 85, 247, 0.2);
}

.factor-icon-v2.sleep svg {
    color: #A855F7;
}

.factor-icon-v2.rhr {
    background: rgba(59, 130, 246, 0.2);
}

.factor-icon-v2.rhr svg {
    color: #3B82F6;
}

.factor-icon-v2.fatigue {
    background: rgba(251, 191, 36, 0.2);
}

.factor-icon-v2.fatigue svg {
    color: #FBBF24;
}

/* PeakCoach - Scientific Chat */
.chat-bubble.ai .study-ref {
    font-size: 9px;
    color: var(--accent);
    font-style: italic;
    display: block;
    margin-top: 4px;
}

/* PeakNutrition V2 - Ring Left, Bars with Values Right */
.nutrition-layout {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
    align-items: center;
}

.macro-bars-v2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.macro-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.macro-row .macro-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-tertiary);
    width: 55px;
    flex-shrink: 0;
}

.macro-row .macro-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.macro-row .macro-bar .fill {
    height: 100%;
    border-radius: 3px;
}

.macro-row .macro-bar .fill.protein {
    background: var(--accent);
}

.macro-row .macro-bar .fill.carbs {
    background: var(--accent-secondary);
}

.macro-row .macro-bar .fill.fat {
    background: #FFB74D;
}

.macro-row .macro-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Menlo', monospace;
    width: 65px;
    text-align: right;
    flex-shrink: 0;
}

.macro-row .macro-value .target {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-tertiary);
    font-family: var(--font-body);
}

/* PeakSync V2 - Black PH Icon, Diagonal Arrows */
.sync-visual-v3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.sync-visual-v3 .sync-target {
    display: flex;
    justify-content: center;
    margin-bottom: -4px;
}

.sync-visual-v3 .peakhuman-icon {
    width: 50px;
    height: 50px;
    background: #000;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.sync-visual-v3 .peakhuman-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sync-arrows-diagonal {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    height: 28px;
    position: relative;
}

.arrow-diagonal {
    color: var(--accent);
    font-size: 14px;
    animation: arrowUp 1.5s ease-in-out infinite;
}

.arrow-diagonal.left {
    transform: rotate(-30deg);
    animation-delay: 0s;
}

.arrow-diagonal.center {
    animation-delay: 0.2s;
}

.arrow-diagonal.right {
    transform: rotate(30deg);
    animation-delay: 0.4s;
}

.sync-visual-v3 .sync-sources {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
}

.sync-visual-v3 .integration-logo {
    width: 36px;
    height: 36px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-visual-v3 .integration-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
}

.sync-visual-v3 .sync-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

/* Responsive adjustments for V4 */
@media (max-width: 768px) {
    .intelligence-layout {
        flex-direction: column;
    }

    .intelligence-insights {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .form-status {
        flex: 1;
    }

    .insight-text {
        flex: 2;
    }

    .recovery-mini {
        flex-direction: row;
        gap: var(--space-3);
    }

    .nutrition-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .calorie-ring {
        margin: 0 auto;
    }
}

/* ========================================
   Utility Classes for Hidden Elements
   ======================================== */
.carousel,
.carousel-container,
.carousel-track,
.carousel-slide,
.carousel-dots,
.carousel-dot,
.research-grid,
.research-card,
.research-citation,
.trust-badges,
.trust-badge,
.testimonials-grid,
.testimonial-card,
.testimonial-quote,
.testimonial-author,
.testimonial-avatar,
.testimonial-info,
.testimonial-name,
.testimonial-role,
.coming-soon-item,
.coming-soon-badge {
    display: none;
}
