:root {
    --primary-dark: #0f2d1d;
    --primary-light: #1e5631;
    --accent-glow: #00b4d8;
    --success-green: #2a9d8f;
    --text-main: #1e293b;
    --text-light: #64748b;
    --bg-main: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    
    --shadow-soft: 0 12px 40px -10px rgba(15, 45, 29, 0.06);
    --shadow-hover: 0 20px 40px -10px rgba(0, 180, 216, 0.18);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.75;
    color: var(--text-main);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.25;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-size: clamp(1.6rem, 4vw, 2.2rem); 
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--primary-dark);
    line-height: 1;
}

.logo span {
    color: var(--success-green);
    font-weight: 500;
    font-size: 0.9em; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--success-green);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hero {
    min-height: 65vh;
    padding: 140px 0 80px 0;
    background: linear-gradient(135deg, #0f2d1d 0%, #1e5631 50%, #2a9d8f 100%);
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 850px;
    width: 90%;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    max-width: 650px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--success-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(42, 157, 143, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(42, 157, 143, 0.45);
    background: #218476;
}

.content-section {
    padding: clamp(50px, 8vw, 90px) 0;
}

.bg-card-section {
    background-color: rgba(241, 245, 249, 0.6);
    border-radius: 24px;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(42, 157, 143, 0.1);
    color: var(--success-green);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.center-text {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 60px);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}

.text-content p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.image-content {
    width: 100%;
}

.shadow-lg {
    box-shadow: 0 25px 60px -15px rgba(15, 45, 29, 0.15);
}

.chemical-formula-box {
    background: linear-gradient(135deg, var(--primary-dark), #163e26);
    padding: 40px;
    border-radius: 20px;
    color: var(--white);
    text-align: center;
}

.formula-header {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--success-green);
    margin-bottom: 15px;
    font-weight: 600;
}

.formula-details {
    text-align: left;
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.formula-details div {
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.formula-details div:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.biokinetics-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border-left: 6px solid var(--accent-glow);
    box-shadow: var(--shadow-soft);
}

.bio-line {
    font-size: 1.1rem;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.bio-line:last-of-type {
    border-bottom: none;
}

.bio-tag {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 14px;
    background: rgba(0, 180, 216, 0.1);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 1rem;
    min-width: 750px;
}

th, td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8fafc;
    color: var(--primary-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 30px;
}

.grid-cards.three-cols {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
}

.hover-up:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 180, 216, 0.2);
}

.card-visual-header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.direct-action { background: linear-gradient(135deg, #2a9d8f, #1d665d); }
.indirect-action { background: linear-gradient(135deg, #00b4d8, #0077b6); }

.card-body {
    padding: 30px;
    flex-grow: 1;
}

.card-body h3 { margin-bottom: 12px; }
.card-body p { font-size: 0.95rem; color: var(--text-light); }
.icon-placeholder { font-size: 2.2rem; margin-bottom: 15px; }

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.comp-image-wrapper {
    position: relative;
    height: 280px;
}

.comp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
    backdrop-filter: blur(4px);
}

.untreated {
    background: rgba(220, 38, 38, 0.85); 
    border: 1px solid #dc2626;
}

.treated {
    background: rgba(42, 157, 143, 0.9); 
    border: 1px solid var(--success-green);
}

.comp-details { padding: 30px; }
.comp-details h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--primary-dark); }
.comp-list { list-style: none; padding: 0; }
.comp-list li { margin-bottom: 12px; font-size: 0.95rem; color: var(--text-light); display: flex; align-items: flex-start; gap: 10px; }

.cross { color: #ef4444; font-weight: bold; font-size: 1.1rem; }
.check { color: var(--success-green); font-weight: bold; font-size: 1.1rem; }

.text-block {
    max-width: 850px;
    margin: 0 auto;
}

.warning-box {
    background-color: #fff5f5;
    border-left: 5px solid #ef4444;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.warning-box h4 { color: #991b1b; font-size: 1.1rem; margin-bottom: 6px; }
.warning-box p { color: #7f1d1d; font-size: 0.95rem; }

.protocol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    margin-top: 30px;
}

.protocol-item {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.protocol-item strong { display: block; color: var(--primary-dark); margin-bottom: 8px; }

.in-text-link {
    color: var(--success-green);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted var(--success-green);
    transition: var(--transition);
}

.in-text-link:hover {
    color: var(--primary-dark);
    border-bottom: 1px solid var(--primary-dark);
}

.glass-effect {
    background: linear-gradient(135deg, #0a1f14, #122c1e);
    border-radius: 24px;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 50px);
    color: var(--white);
    text-align: center;
    box-shadow: 0 30px 60px rgba(15, 45, 29, 0.35);
}

.info-text h2 { color: var(--white); margin-bottom: 15px; }
.info-text p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); max-width: 850px; margin: 0 auto 20px auto; }

.highlight-link {
    color: var(--accent-glow);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-glow);
    transition: var(--transition);
}

.highlight-link:hover { color: var(--white); border-color: var(--white); }

footer {
    background: var(--white);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer .disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 12px;
    max-width: 750px;
    margin: 12px auto 0 auto;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

.content-section + .content-section { padding-top: clamp(20px, 4vw, 40px); }
.content-section + .bg-card-section { margin-top: clamp(10px, 2vw, 30px); }

@media (max-width: 968px) {
    .split-section { grid-template-columns: 1fr; gap: 40px; }
    .image-content { order: 2; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-links.active { right: 0; }

    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }
}
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: var(--success-green);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    
    /* Center the arrow */
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(15, 45, 29, 0.4);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 25px;
        right: 25px;
        width: 45px;
        height: 45px;
    }
}