:root {
    --primary: #06c167;
    /* MgHealthy Green */
    --primary-hover: #05a056;
    --dark-bg: #111111;
    --dark-card: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --light-bg: #ffffff;
    --text-dark: #1a1a1a;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   DARK HERO SECTION
   ========================================= */
.hero-wrapper {
    background-color: var(--dark-bg);
    color: var(--text-white);
    position: relative;
    padding-bottom: 6rem;
    border-bottom-right-radius: 40px;
    border-bottom-left-radius: 40px;
    overflow: hidden;
}

/* Floating Navbar */
.navbar-container {
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

.floating-nav {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
}

.logo {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-btn {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.nav-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Hero Content */
.hero-content {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    position: relative;
    z-index: 5;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    /* Extra bold */
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    display: block;
}

.hero-text p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 450px;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.store-badge {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.store-badge:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: border-color 0.2s;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(6, 193, 103, 0.3);
}

.btn-outline:hover {
    border-color: #fff;
}

/* Hero Image & Decorative */
.hero-image-container {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-leaf {
    position: absolute;
    width: 60px;
    height: auto;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.leaf-1 {
    top: 10%;
    right: 10%;
    transform: rotate(45deg);
}

.leaf-2 {
    bottom: 20%;
    left: 10%;
    transform: rotate(-15deg);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    50% {
        transform: translateY(-20px) rotate(50deg);
    }
}

@keyframes float-vertical {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* =========================================
   LIGHT SECTIONS (Cards)
   ========================================= */
.features-section {
    background: var(--light-bg);
    padding: 8rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    /* Serif vibe in reference, kept sans but bold */
    color: var(--text-dark);
}

.section-header .green-accent {
    color: var(--primary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Specialized Card Design */
.feature-card {
    background: #fff;
    border-radius: 30px;
    padding: 3.5rem 2rem 2.5rem;
    position: relative;
    text-align: left;
    border: 1px solid #f0f0f0;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, background 0.3s;
}

/* Floating Icon on Border */
.icon-circle {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: -35px;
    /* Half height */
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 5px 15px rgba(6, 193, 103, 0.3);
    border: 4px solid #fff;
    /* White border to separate from bg */
}

/* Active State (Dark Card) */
.feature-card.dark {
    background: #1f2220;
    color: #fff;
}

.feature-card.dark .icon-circle {
    border-color: #1f2220;
}

.feature-card.dark h3 {
    color: #fff;
}

.feature-card.dark p {
    color: #aaa;
}

.feature-card.dark .link-arrow {
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.link-arrow {
    display: inline-block;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* =========================================
   HOW IT WORKS (Steps)
   ========================================= */
.how-it-works {
    background: var(--light-bg);
    padding: 8rem 2rem;
}

.steps-container {
    max-width: 1100px;
    margin: 0 auto;
}

.step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8rem;
    gap: 4rem;
}

.step-row:last-child {
    margin-bottom: 0;
}

/* Alternate order for even rows (Zig-Zag) */
.step-row:nth-child(even) {
    flex-direction: row-reverse;
}

.step-text {
    flex: 1;
    max-width: 450px;
}

.step-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(6, 193, 103, 0.1);
    line-height: 1;
    margin-bottom: -1rem;
    display: block;
}

.step-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.step-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

.step-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Phone Frame Placeholder */
.phone-frame {
    width: 280px;
    height: 580px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-text {
    color: #666;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {

    .step-row,
    .step-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .step-text {
        max-width: 100%;
    }
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    background: #f9f9f9;
}

.footer-links a {
    color: #666;
    margin: 0 1rem;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-container {
        height: 350px;
        order: -1;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .cta-buttons {
        justify-content: center;
    }
}
/* =========================================
   TESTING MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background: #1a1a1a; /* Dark card similar to app */
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #666;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.modal-header h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-step {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-badge {
    width: 32px;
    height: 32px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

.step-info h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.step-info p {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Modal Buttons */
.btn-modal {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-outline-modal {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline-modal:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary-modal {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 193, 103, 0.3);
}

.btn-primary-modal:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

