/* =========================================
   JOINT GENESIS - PREMIUM DESIGN SYSTEM
   ========================================= */

/* --- CSS Variables (Design Tokens) --- */
:root {
    /* Colors */
    --primary: #0077b6;
    /* Deep, vibrant, medical trust blue */
    --primary-light: #00b4d8;
    /* Bright energetic cyan */
    --primary-dark: #03045e;
    /* Navy */

    --accent: #f77f00;
    /* Vibrant energetic orange for CTAs */
    --accent-hover: #d62828;
    /* Deep red/orange on hover */

    --text-main: #1d3557;
    /* Very dark blue instead of harsh black */
    --text-muted: #457b9d;
    /* Softer blue-grey */
    --text-light: #f8f9fa;

    --bg-main: #f8f9fa;
    /* Off-white */
    --bg-card: rgba(255, 255, 255, 0.85);
    /* Glassmorphism base */
    --bg-light: #e9ecef;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --border-radius: 24px;
    --border-radius-sm: 12px;

    /* Effects */
    --shadow-soft: 0 10px 40px rgba(3, 4, 94, 0.08);
    --shadow-hover: 0 20px 50px rgba(0, 180, 216, 0.15);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.gap-large {
    gap: 60px;
}

/* --- UI Components --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ff9e00);
    color: white;
    box-shadow: 0 10px 20px rgba(247, 127, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(247, 127, 0, 0.4);
    color: white;
    /* ensure text stays white */
}

.btn-large {
    font-size: 1.2rem;
    padding: 18px 40px;
}

.btn-nav {
    background-color: rgba(0, 119, 182, 0.1);
    color: var(--primary);
}

.btn-nav:hover {
    background-color: var(--primary);
    color: white;
}

.btn-text {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.btn-text i {
    transition: var(--transition);
}

.btn-text:hover i {
    transform: translateX(5px);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

/* Animations */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(247, 127, 0, 0.6);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(247, 127, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(247, 127, 0, 0);
    }
}

/* Scroll Animations Initial States */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animation active states applied by JS */
.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}


/* --- Placeholders (Temporary) --- */
.image-placeholder {
    width: 100%;
    background: linear-gradient(135deg, #e0eaf5, #f0f4f8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
    gap: 15px;
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.5;
}

.product-placeholder {
    height: 500px;
    border-radius: var(--border-radius);
}

.lifestyle-placeholder {
    height: 600px;
    border-radius: var(--border-radius);
}


/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--primary-light);
}

.logo-highlight {
    color: var(--primary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--primary);
}


/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(to bottom right, #f8f9fa, #e0eaf5);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    top: -100px;
    right: -100px;
    opacity: 0.2;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 119, 182, 0.1);
    bottom: -50px;
    left: -100px;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.badge i {
    color: #ffb703;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card {
    padding: 20px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.floating-badge i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.badge-formula {
    top: 10%;
    right: -20px;
}

.badge-doctor {
    bottom: 20%;
    left: -30px;
}

.guarantee-text {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.guarantee-text i {
    color: #2a9d8f;
}

/* --- Trust Banner --- */
.trust-banner {
    background: var(--primary-dark);
    color: white;
    padding: 40px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--primary-light);
}

.trust-item span {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* --- General Sections --- */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.h3-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.p-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* --- How it Works --- */
.image-card {
    padding: 15px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list-item {
    display: flex;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-soft);
    align-items: flex-start;
}

.feature-icon-small {
    background: rgba(0, 180, 216, 0.1);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Ingredients Grid --- */
.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ingredient-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.ingredient-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 180, 216, 0.3);
}

.ingredient-icon-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-soft);
}

.ingredient-icon-wrapper i {
    font-size: 2rem;
}

.ingredient-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.ingredient-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Guarantee Section --- */
.guarantee-section {
    position: relative;
    overflow: hidden;
}

.guarantee-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(0, 180, 216, 0.2);
}

.guarantee-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 3rem;
    box-shadow: 0 15px 30px rgba(0, 119, 182, 0.3);
}

.guarantee-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.guarantee-box p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* --- Footer --- */
.footer {
    background: #02033b;
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    color: white;
}

.footer-desc {
    max-width: 350px;
    font-size: 0.95rem;
}

.footer h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links a,
.footer-legal a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-weight: 400;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.disclaimer {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.copyright {
    font-size: 0.9rem;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero {
        padding: 150px 0 80px;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-cta-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        margin-top: 50px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .content-visual {
        order: -1;
    }

    /* Image on top for mobile */
    .content-text {
        text-align: center;
    }

    .feature-list {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-desc {
        margin: 15px auto 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Hide links on mobile for simplicity in this demo */
    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.3rem;
    }

    .guarantee-box {
        padding: 40px 20px;
    }

    .trust-item span {
        font-size: 0.95rem;
    }

    .floating-badge {
        display: none;
    }

    /* Hide floating badges on small screens */
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #333;
    text-decoration: none;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    text-align: center;
}

.modal-header p {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}