:root {
    --bg-dark: #0f172a;
    /* Deep baseline */
    --bg-primary: #193373;
    /* Converted from (0.1, 0.2, 0.45) */
    --bg-secondary: #264080;
    /* Converted from (0.15, 0.25, 0.5) */
    --accent: #4ccea6;
    /* Converted from (0.3, 0.8, 0.6) */
    --accent-hover: #3eb58f;
    --card-bg: rgba(38, 64, 128, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65);
    --yellow-badge: #ffd60a;
    --yellow-bg: rgba(255, 214, 10, 0.2);

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    --glass-blur: blur(16px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    background-image: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Utilities --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 4px 15px rgba(76, 206, 166, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 206, 166, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(48, 76, 140, 0.8);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(25, 51, 115, 0.7);
    /* Slightly transparent for glassmorphism */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: var(--glass-blur);
    padding: 24px;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }
}

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

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    clip-path: inset(0);
    /* Contain the visual rendering completely */
    content-visibility: auto;
    contain-intrinsic-size: 100vh;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
    will-change: transform, filter;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.blob-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--bg-secondary) 0%, transparent 70%);
    animation-delay: -10s;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: var(--glass-blur);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.stat-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* --- App Mockup (CSS only) --- */
.hero-visual {
    perspective: 1000px;
}

.app-screenshot-wrapper {
    width: 320px;
    margin: 0 auto;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #333;
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    will-change: transform;
    background: #000;
    padding: 8px;
    /* For the bezel look */
}

.app-screenshot-wrapper:hover {
    transform: rotateY(-5deg) rotateX(2deg);
}

.app-screenshot-wrapper::before {
    /* Notch */
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 20;
}

.app-screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
    /* Slightly less than wrapper */
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

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

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

    .hero-visual {
        margin-top: 60px;
    }

    .app-screenshot-wrapper {
        transform: none;
    }

    .app-screenshot-wrapper:hover {
        transform: translateY(-10px);
    }
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

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

/* --- Fasting Modes --- */
.features {
    padding: 100px 0;
    background: var(--bg-dark);
}

.fasting-modes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

.mode-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    will-change: transform, background-color;
}

.mode-card:hover {
    transform: translateY(-4px);
    background: rgba(48, 76, 140, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mode-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(76, 206, 166, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mode-content {
    flex-grow: 1;
}

.mode-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.mode-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.mode-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.mode-card:hover .mode-arrow {
    transform: translateX(4px);
    color: var(--text-main);
}

.mode-popular {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: auto;
}

.mode-popular .mode-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.05), transparent);
    z-index: 0;
}

.mode-bg-icon {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mode-popular>.mode-badge,
.mode-popular>.mode-title,
.mode-popular>.mode-desc {
    position: relative;
    z-index: 1;
}

.mode-badge {
    background: var(--yellow-bg);
    color: var(--yellow-badge);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.mode-popular .mode-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.mode-popular .mode-desc {
    font-size: 1.05rem;
    max-width: 80%;
}

/* --- Milestones Section --- */
.milestones {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-primary) 100%);
    position: relative;
    /* Added relative context */
    z-index: 1;
    /* Added stacking context */
}

/* --- Benefits Section --- */
.benefits {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.benefits-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    /* Added to stop blob bleed */
    clip-path: inset(0);
    /* Added to contain layer */
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.blob-3 {
    top: 20%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(76, 206, 166, 0.1) 0%, transparent 60%);
    animation: float 25s infinite ease-in-out alternate-reverse;
}

.benefits .container {
    position: relative;
    z-index: 1;
}

.benefits-badge {
    margin-bottom: 24px;
    background: rgba(76, 206, 166, 0.1);
    border-color: rgba(76, 206, 166, 0.3);
    color: var(--accent);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    will-change: transform, background-color;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.benefit-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(48, 76, 140, 0.8);
    border-color: rgba(76, 206, 166, 0.3);
}

.benefit-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Custom Icon Colors */
.autophagy-icon {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    color: white;
}

.fat-icon {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.brain-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.inflammation-icon {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
}

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

.benefit-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.benefit-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .benefit-card {
        padding: 30px;
    }

    .benefit-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.timeline {
    margin-top: 40px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 6px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 36px;
    margin-bottom: 32px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.timeline-item.active,
.timeline-item:hover {
    opacity: 1;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    z-index: 2;
    transition: all 0.3s;
}

.timeline-item.active .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(76, 206, 166, 0.5);
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.evolution-showcase {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 40px;
    padding: 60px 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.evo-stage {
    font-size: 3.5rem;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.4));
}

.evo-arrow {
    color: var(--accent);
    opacity: 0.5;
}

@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Details / Grid --- */
.details {
    padding: 100px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.detail-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: transform 0.3s;
}

.detail-card:hover {
    transform: translateY(-8px);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, #20b2aa 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(76, 206, 166, 0.3);
}

.detail-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.detail-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.cta-box {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 1px solid rgba(76, 206, 166, 0.3);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(76, 206, 166, 0.2) 0%, transparent 70%);
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

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

/* --- Footer --- */
.footer {
    padding: 60px 0 30px;
    background: #080c17;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.footer-desc {
    color: var(--text-muted);
    max-width: 300px;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.footer-col a {
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* --- Animations --- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

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