/* --- FULL ENERGY DESIGN SYSTEM --- */
:root {
    --primary-blue: #3584FC;
    --primary-dark: #2a6cd1;
    --accent-orange: #FF8C00;
    --success-green: #34C759;
    --text-main: #1D1D1F;
    --text-secondary: #6E6E73;
    --bg-page: #FFFFFF;
    --bg-section: #F5F7FA;
    --card-bg: #FFFFFF;
    --border-color: #E5E5EA;
    --radius-large: 24px;
    --radius-medium: 16px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 32px rgba(53, 132, 252, 0.12);
    --container-width: 1160px;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { color: var(--text-secondary); margin-bottom: 1.2rem; }

.text-blue { color: var(--primary-blue); }
.text-orange { color: var(--accent-orange); }
.text-green { color: var(--success-green); }
.text-center { text-align: center; }
.bold { font-weight: 700; color: var(--text-main); }

/* --- LAYOUT --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; border-bottom: 1px solid var(--border-color); }
.bg-gray { background-color: var(--bg-section); }
.bg-dark { background-color: #1D1D1F; color: #fff; }
.bg-dark p { color: #aaa; }
.bg-dark h2, .bg-dark h3 { color: #fff; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* --- COMPONENTS --- */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    font-weight: 600; font-size: 1rem; border-radius: var(--radius-medium);
    padding: 16px 32px; text-decoration: none; cursor: pointer;
    transition: all 0.2s ease; border: none; gap: 8px;
}
.btn-primary {
    background-color: var(--primary-blue); color: #fff;
    box-shadow: 0 4px 12px rgba(53, 132, 252, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(53, 132, 252, 0.4); background-color: var(--primary-dark); }
.btn-secondary {
    background-color: rgba(255, 255, 255, 0.8); color: var(--primary-blue);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background-color: #fff; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary-blue); color: var(--primary-blue); background: transparent; }
.btn-outline:hover { background: var(--primary-blue); color: #fff; }
.btn-block { width: 100%; }

.badge {
    display: inline-block; background: #FFF4E5; color: var(--accent-orange);
    padding: 6px 12px; border-radius: 100px; font-size: 0.85rem; font-weight: 700; margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.card {
    background: var(--card-bg); border-radius: var(--radius-large);
    padding: 30px; box-shadow: var(--shadow-card); height: 100%;
    transition: 0.3s ease; border: 1px solid transparent;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(53, 132, 252, 0.2); }

/* --- HEADER & NAV --- */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color); padding: 12px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.logo-main { font-size: 1.4rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.logo-sub { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); margin-left: 36px; text-transform: uppercase; letter-spacing: 0.5px; }

.nav-desktop { display: flex; gap: 24px; }
.nav-desktop a { text-decoration: none; color: var(--text-secondary); font-weight: 500; transition: 0.2s; font-size: 0.95rem; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--primary-blue); }

.burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { width: 24px; height: 2px; background: var(--text-main); transition: 0.3s; }

/* --- MOBILE NAV --- */
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100%;
    background: #fff; z-index: 1001; padding: 80px 24px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1); transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-nav.active { right: 0; }
.mobile-nav a { display: block; padding: 15px 0; color: var(--text-main); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--border-color); font-size: 1.1rem; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; pointer-events: none; transition: 0.3s; }
.overlay.active { opacity: 1; pointer-events: all; }

/* --- SPECIFIC: SCIENCE & TABLES --- */
.science-citation {
    font-size: 0.8rem; color: #999; margin-top: 10px;
    border-top: 1px solid #eee; padding-top: 10px; font-style: italic;
}

.custom-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); }
.custom-table th { background: var(--primary-blue); color: #fff; padding: 15px; text-align: left; }
.custom-table td { padding: 15px; border-bottom: 1px solid #eee; color: var(--text-secondary); }
.custom-table tr:last-child td { border-bottom: none; }

.protocol-step {
    border-left: 3px solid var(--primary-blue); padding-left: 20px; margin-bottom: 20px;
}

/* --- FOOTER --- */
footer { padding: 60px 0; background: #fff; border-top: 1px solid var(--border-color); margin-top: auto; }
footer h4 { margin-bottom: 1.5rem; }
footer ul li { margin-bottom: 0.8rem; }
footer a { color: var(--text-secondary); text-decoration: none; transition: 0.2s; }
footer a:hover { color: var(--primary-blue); }

/* --- UTILS & ANIMATION --- */
.fade-in { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.img-responsive { width: 100%; height: auto; border-radius: var(--radius-medium); }

@media(max-width: 900px) {
    .nav-desktop { display: none; }
    .burger { display: flex; }
    h1 { font-size: 2.2rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .logo-sub { margin-left: 0; display: block; margin-top: 4px; font-size: 0.65rem;}
}