/* Core Design System & Tokens */
:root {
    --bg-dark: #05060a;
    --bg-card: rgba(10, 12, 22, 0.45);
    
    --color-pink: #ff79c6;
    --color-orange: #ffb86c;
    --color-yellow: #f1fa8c;
    --color-green: #50fa7b;
    --color-cyan: #8be9fd;
    --color-purple: #bd93f9;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Canvas */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 6, 10, 0.6);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
}

.logo svg {
    filter: drop-shadow(0 0 6px rgba(255, 121, 198, 0.3));
}

.nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

/* Buttons System */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #8be9fd, #bd93f9);
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(139, 233, 253, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(139, 233, 253, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.badge-glow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-cyan);
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(139, 233, 253, 0.1);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 64px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-pink), var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    padding: 0 40px;
}

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

/* Features Showcase */
.features-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 120px;
}

.feature-section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.alt-row .feature-grid {
    grid-template-columns: 0.9fr 1.1fr;
}

.alt-row .feature-info {
    order: 2;
}

.alt-row .mockup-slot {
    order: 1;
}

.feature-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.feature-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.feature-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
}

/* Sub-features list */
.sub-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sub-col {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sub-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sub-col h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sub-col p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* iPhone Frame Mockups */
.mockup-slot {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.iphone-frame {
    width: 270px;
    height: 550px;
    border-radius: 44px;
    background: #0f1016;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-color);
    position: relative;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.iphone-frame:hover {
    transform: rotateY(-8deg) rotateX(8deg) scale(1.03);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    border-radius: 34px;
    background: #06070a;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

/* Phone App Standard components */
.app-header {
    padding: 24px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 12, 22, 0.4);
    text-align: center;
}

.app-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Chat Screen Mockup */
.chat-container {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-end;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 11px;
    line-height: 1.4;
    max-width: 85%;
}

.chat-bubble.user {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.bot {
    background: rgba(255, 121, 198, 0.15);
    border: 1px solid rgba(255, 121, 198, 0.3);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: #ffeef7;
}

.chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.chat-sug-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    padding: 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.chat-sug-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Camera Scanner Screen Mockup */
.camera-screen {
    background: radial-gradient(circle, rgba(40,40,45,1) 0%, rgba(10,10,12,1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.scan-laser {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--color-orange), transparent);
    box-shadow: 0 0 10px var(--color-orange);
    animation: laser-sweep 3.5s ease-in-out infinite;
}

.scan-reticle {
    width: 160px;
    height: 160px;
    border: 1px dashed rgba(255, 184, 108, 0.5);
    border-radius: 20px;
    position: relative;
}

.scan-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.scan-target {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scan-dot {
    width: 12px;
    height: 12px;
    background: var(--color-orange);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--color-orange);
    animation: scan-pulse 1.5s infinite;
}

.scan-tag {
    background: rgba(10, 12, 22, 0.85);
    border: 1px solid rgba(255, 184, 108, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 9px;
}

.scan-tag h5 {
    font-family: var(--font-heading);
    margin-bottom: 2px;
    color: var(--color-orange);
}

.scan-tag p {
    color: rgba(255, 255, 255, 0.7);
}

.scan-shutter {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.shutter-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    background: transparent;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Chef Recipe Screen Mockup */
.chef-screen {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chef-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(241, 250, 140, 0.08);
    border: 1px solid rgba(241, 250, 140, 0.2);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 9px;
    font-weight: 700;
}

.cooking-badge {
    color: var(--color-yellow);
}

.completion-percent {
    color: #ffffff;
    background: rgba(241, 250, 140, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.recipe-image {
    flex: 1;
    background: linear-gradient(135deg, #1a1b24, #12131a);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Rising steam particles */
.steam-particle {
    position: absolute;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(4px);
    animation: rise-steam infinite linear;
}

.steam-particle.s1 { width: 14px; height: 14px; left: 40%; animation-duration: 2.5s; }
.steam-particle.s2 { width: 18px; height: 18px; left: 50%; animation-duration: 3s; animation-delay: 0.5s; }
.steam-particle.s3 { width: 12px; height: 12px; left: 60%; animation-duration: 2.2s; animation-delay: 1s; }

.recipe-card {
    background: rgba(15, 17, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px;
}

.recipe-card h3 {
    font-size: 12px;
    margin-bottom: 4px;
}

.chef-instruction {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
    margin-bottom: 8px;
}

.timer-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.timer-fill {
    width: 82%;
    height: 100%;
    background: var(--color-yellow);
    box-shadow: 0 0 6px var(--color-yellow);
}

/* Before / After Slider Mockup */
.progress-screen {
    padding: 0;
}

.slider-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: ew-resize;
    user-select: none;
}

.image-before, .image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.image-before {
    background: linear-gradient(to bottom, #1d1511, #0b0705);
}

.image-after {
    background: linear-gradient(to bottom, #101c13, #050a06);
    width: 50%;
    overflow: hidden;
}

.before-tag, .after-tag {
    position: absolute;
    bottom: 16px;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.before-tag {
    left: 16px;
    color: var(--color-orange);
    background: rgba(255, 184, 108, 0.15);
    border: 1px solid rgba(255, 184, 108, 0.3);
}

.after-tag {
    right: 16px;
    color: var(--color-green);
    background: rgba(80, 250, 123, 0.15);
    border: 1px solid rgba(80, 250, 123, 0.3);
}

.slider-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #000000;
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 16px 20px;
    background: rgba(10, 12, 22, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-box span {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.stat-box strong {
    font-size: 12px;
    font-family: var(--font-heading);
    color: var(--color-green);
}

/* Analytics & Hydration Mockup */
.analytics-screen {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hydration-container {
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(10, 12, 22, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 14px;
}

.water-cylinder {
    width: 44px;
    height: 90px;
    border: 2px solid rgba(139, 233, 253, 0.3);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 12px rgba(139, 233, 253, 0.15);
}

.water-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72%;
    background: linear-gradient(to top, rgba(139, 233, 253, 0.8), rgba(139, 233, 253, 0.4));
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.4);
    animation: wave-liquid 2s ease-in-out infinite alternate;
}

.hydration-stats h3 {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 2px;
}

.hydration-stats h2 {
    font-size: 16px;
    font-family: var(--font-heading);
    color: var(--color-cyan);
    margin-bottom: 4px;
}

.hydration-stats p {
    font-size: 9px;
    color: rgba(255,255,255,0.7);
}

.analytics-verdict {
    background: rgba(139, 233, 253, 0.08);
    border: 1px solid rgba(139, 233, 253, 0.2);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.verdict-icon {
    font-size: 12px;
}

.analytics-verdict p {
    font-size: 9px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations declarations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes laser-sweep {
    0%, 100% { top: 10%; }
    50% { top: 90%; }
}

@keyframes scan-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0.3; }
}

@keyframes rise-steam {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    20% { opacity: 0.7; }
    100% { transform: translateY(-70px) scale(1.3); opacity: 0; }
}

@keyframes wave-liquid {
    0% { transform: scaleY(0.97) skewX(-2deg); }
    100% { transform: scaleY(1.03) skewX(2deg); }
}

/* Reveal on scroll styling */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Footer Section */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 6, 10, 0.85);
    padding: 40px 24px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-link {
    text-decoration: none;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.footer-link:hover {
    color: #ffffff;
}

/* Responsive Rules */
@media (max-width: 960px) {
    .header-btn {
        display: none;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        padding: 0;
    }
    
    .feature-grid, .alt-row .feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .alt-row .feature-info {
        order: 1;
    }
    
    .alt-row .mockup-slot {
        order: 2;
    }
    
    .feature-title {
        font-size: 32px;
    }
}
