:root {
    --bg-color: #030305;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #00f260;
    --accent-secondary: #0575e6;
    --accent-tertiary: #64f38c;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --font-main: 'Outfit', sans-serif;
    --easing: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Perspective removed to fix fixed positioning context */
}

/* Fluid Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    animation-duration: 25s;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #8a2be2, transparent 70%);
    animation-duration: 20s;
    animation-delay: -10s;
    opacity: 0.4;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    width: 100%;
    position: relative;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
}

.dot {
    color: var(--accent-primary);
    display: inline-block;
    animation: bounce 2s infinite var(--easing);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.status-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 242, 96, 0.1);
    transition: all 0.3s var(--easing);
}

.status-badge:hover {
    background: rgba(0, 242, 96, 0.1);
    box-shadow: 0 0 30px rgba(0, 242, 96, 0.2);
    transform: translateY(-2px);
}

/* Main Layout */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 1400px;
    width: 100%;
    min-height: 80vh;
    justify-content: center;
}

@media (min-width: 992px) {
    .hero {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        padding: 2rem 4rem;
        gap: 4rem;
    }

    .hero-content {
        max-width: 550px;
        z-index: 2;
    }

    .hero-visual {
        max-width: 600px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

h1 {
    font-size: 3.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

@media (min-width: 768px) {
    h1 {
        font-size: 5.5rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #fff 20%, var(--accent-primary), var(--accent-secondary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Input Form */
.notify-form {
    position: relative;
    display: flex;
    gap: 0.8rem;
    background: var(--glass-bg);
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.notify-form:focus-within {
    transform: translateY(-2px);
    border-color: var(--glass-highlight);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

button {
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s var(--easing);
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 242, 96, 0.3);
}

button:hover::after {
    opacity: 1;
}

/* 3D Phone Mockup */
.hero-visual {
    perspective: 1500px;
    margin-top: 4rem;
}

@media (min-width: 992px) {
    .hero-visual {
        margin-top: 0;
    }
}

.phone-container {
    position: relative;
    transform-style: preserve-3d;
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {

    0%,
    100% {
        transform: translateY(0) rotateY(-10deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-5deg) rotateX(2deg);
    }
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 45px;
    border: 10px solid #2a2a2a;
    position: relative;
    box-shadow:
        0 0 0 2px #444,
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(0, 242, 96, 0.1);
    overflow: hidden;
    transform-style: preserve-3d;
}

.screen {
    background: linear-gradient(to bottom, #111, #050505);
    height: 100%;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
}

/* Screen Elements */
.app-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(45deg, #333, #666);
    border: 2px solid var(--accent-primary);
}

.greeting-box h4 {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.greeting-box h2 {
    font-size: 1.2rem;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.workout-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: #ccc;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    animation: fillBar 2s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
}

@keyframes fillBar {
    to {
        width: 68%;
    }
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.nutrition-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.donut-chart {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    border-top-color: var(--accent-secondary);
    border-right-color: var(--accent-secondary);
    transform: rotate(45deg);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    transition: transform 0.3s;
}

.ai-badge {
    bottom: 25%;
    right: -40px;
    animation: floatBadge 5s ease-in-out infinite 1s;
}

.cal-badge {
    top: 30%;
    left: -40px;
    animation: floatBadge 6s ease-in-out infinite;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 6rem 2rem;
    max-width: 1400px;
    width: 100%;
    position: relative;
}

.feature-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 30px;
    flex: 1 1 320px;
    max-width: 380px;
    backdrop-filter: blur(20px);
    transition: all 0.4s var(--easing);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--glass-highlight);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--glass-bg);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s var(--easing);
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Animations */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--easing);
}

.animate-visual {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
    transition: all 1s var(--easing);
}

.show {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    animation: fadeIn 1s ease-out 2s backwards;
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}