/* ========================================
   ReconLog - Main Styles
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Primary gradient */
    --gradient-start: #8B5CF6;
    --gradient-end: #EC4899;
    --gradient: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    
    /* Accent colors */
    --accent-violet: #8B5CF6;
    --accent-pink: #EC4899;
    --accent-cyan: #06B6D4;
    
    /* Semantic colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Backgrounds */
    --bg-primary: #0A0A0B;
    --bg-secondary: #111113;
    --bg-elevated: #18181B;
    --bg-card: rgba(24, 24, 27, 0.8);
    
    /* Text */
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    
    /* Navigation */
    --nav-bg: rgba(10, 10, 11, 0.85);
    --nav-border: rgba(255, 255, 255, 0.06);
    
    /* Cards */
    --card-bg: rgba(24, 24, 27, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.5);
    
    /* Misc */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Override */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #FAFAFA;
        --bg-secondary: #FFFFFF;
        --bg-elevated: #FFFFFF;
        --bg-card: rgba(255, 255, 255, 0.9);
        
        --text-primary: #18181B;
        --text-secondary: #52525B;
        --text-muted: #A1A1AA;
        
        --border-color: rgba(0, 0, 0, 0.08);
        --border-color-hover: rgba(0, 0, 0, 0.15);
        
        --nav-bg: rgba(255, 255, 255, 0.85);
        --nav-border: rgba(0, 0, 0, 0.06);
        
        --card-bg: rgba(255, 255, 255, 0.8);
        --card-border: rgba(0, 0, 0, 0.08);
        --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
        --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.15);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

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

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: 14px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

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

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--nav-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    display: flex;
}

.logo-text {
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.nav-link svg {
    opacity: 0.6;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 30%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 30%, black 30%, transparent 70%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 25s ease-in-out infinite;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-start);
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-end);
    bottom: -100px;
    left: -150px;
    animation-delay: -12s;
}

.hero-glow {
    position: absolute;
    width: 100%;
    height: 60%;
    bottom: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(139, 92, 246, 0.15), transparent 70%);
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-violet);
    margin-bottom: 32px;
}

.hero-badge svg {
    color: var(--accent-pink);
}

.hero-title {
    font-size: clamp(44px, 10vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(17px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Phone Mockup */
.hero-phone {
    margin-top: 72px;
    perspective: 1200px;
}

.phone-frame {
    width: 300px;
    height: 620px;
    margin: 0 auto;
    background: linear-gradient(160deg, #2A2A2E, #1A1A1E);
    border-radius: 48px;
    padding: 12px;
    box-shadow: 
        0 60px 120px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
    transform: rotateX(8deg) rotateY(0deg);
    transform-style: preserve-3d;
}

.phone-notch {
    width: 120px;
    height: 32px;
    background: #1A1A1E;
    border-radius: 20px;
    margin: 8px auto 0;
    position: relative;
    z-index: 10;
}

.phone-screen {
    height: calc(100% - 16px);
    background: var(--bg-primary);
    border-radius: 36px;
    overflow: hidden;
    padding: 0;
    margin-top: -16px;
}

.phone-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.phone-status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-status-icons svg {
    height: 12px;
    width: auto;
}

.phone-header {
    padding: 8px 20px 20px;
}

.phone-greeting {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.phone-title {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.phone-card {
    margin: 0 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.phone-card-protocol {
    margin-bottom: 16px;
}

.protocol-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.protocol-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border-radius: 12px;
    flex-shrink: 0;
}

.protocol-info {
    flex: 1;
    min-width: 0;
}

.protocol-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.protocol-dose {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

.protocol-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-violet);
}

.protocol-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 1s ease-out;
}

.progress-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.phone-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 16px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--card-border);
    padding: 32px;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

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

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

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Library Section
   ======================================== */
.library {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.library::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.library-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.library-text .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.library-text .section-subtitle {
    text-align: left;
    margin: 0 0 32px;
    max-width: none;
}

.library-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.library-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    color: var(--text-primary);
}

.library-features svg {
    flex-shrink: 0;
    color: var(--success);
}

.library-visual {
    position: relative;
}

.peptide-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.peptide-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.peptide-card:hover {
    transform: translateX(8px);
    border-color: var(--border-color-hover);
}

.peptide-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.peptide-category {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-violet);
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 100px;
}

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

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

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

.cta-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

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

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .nav-logo {
    margin-bottom: 12px;
}

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

.footer-vyze {
    display: flex;
    align-items: center;
}

.vyze-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.vyze-link:hover {
    color: var(--text-primary);
}

.vyze-icon {
    display: flex;
}

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

.footer-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.footer-copyright {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-disclaimer {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
    .library-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .library-visual {
        order: -1;
    }
    
    .peptide-cards {
        transform: none;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-badge {
        margin-bottom: 24px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .phone-frame {
        width: 260px;
        height: 540px;
        border-radius: 40px;
    }
    
    .phone-screen {
        border-radius: 30px;
    }
    
    .phone-notch {
        width: 100px;
        height: 28px;
    }
    
    .features, .library, .cta {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 320px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}
