:root {
    /* Dark Theme Default */
    --bg-main: #0d1b3d;
    --bg-surface: #05101f;
    --bg-surface-opaque: #05101f;
    --border-color: rgba(212, 175, 55, 0.15);
    --border-glow: rgba(212, 175, 55, 0.2);
    
    --primary: #D4AF37;
    --primary-glow: rgba(212, 175, 55, 0.35);
    --secondary: #D4AF37;
    --secondary-glow: rgba(212, 175, 55, 0.35);
    --accent: #D4AF37;
    
    --text-main: #FFFFFF;
    --text-muted: #e0e0e0;
    --text-inverse: #040712;
    
    --nav-height: 80px;
    --card-radius: 12px;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="light"] {
    --bg-main: #e8f0f8;
    --bg-surface: rgba(245, 250, 255, 0.95);
    --bg-surface-opaque: #f0f5fb;
    --border-color: rgba(212, 175, 55, 0.15);
    --border-glow: rgba(212, 175, 55, 0.2);
    
    --primary: #D4AF37;
    --primary-glow: rgba(212, 175, 55, 0.25);
    --secondary: #D4AF37;
    --secondary-glow: rgba(212, 175, 55, 0.25);
    --accent: #D4AF37;
    
    --text-main: #0a0a0a;
    --text-muted: #4a4a4a;
    --text-inverse: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-3xl {
    max-width: 48rem;
}

/* Background Aurora Spheres */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.aurora-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    transition: opacity var(--transition-smooth);
}

[data-theme="light"] .aurora-sphere {
    opacity: 0.05;
}

.aurora-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: float1 25s infinite alternate ease-in-out;
}

.aurora-2 {
    bottom: -10%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation: float2 20s infinite alternate ease-in-out;
}

.aurora-3 {
    top: 40%;
    left: 30%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation: float1 18s infinite alternate-reverse ease-in-out;
}

@keyframes float1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8%, 10%) scale(1.15); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-8%, -10%) scale(0.9); }
}

/* Navigation Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-surface);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

/* Altura fixa, largura automática: a proporção do PNG (495x320) é diferente
   da do SVG antigo, e travar os dois eixos distorceria o desenho.
   26px = altura do desenho que o SVG renderizava dentro da caixa de 38px. */
.logo-img {
    height: 26px;
    width: auto;
    flex-shrink: 0;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--border-color);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.lang-btn:hover, .lang-btn.active {
    color: var(--primary);
}

.lang-btn.active {
    background-color: rgba(212, 175, 55, 0.08);
}

.lang-divider {
    color: var(--text-muted);
    opacity: 0.3;
}

.mobile-menu-btn {
    display: none;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.btn-icon {
    margin-right: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-inverse);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--border-glow);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-h: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 40%);
    position: relative;
    z-index: 10;
}

.hero-badge-wrapper {
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary);
    animation: pulse 1.5s infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description-block {
    max-width: 680px;
    margin: 0 auto 3rem;
}

.hero-text-p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-main);
    margin-bottom: 1rem;
}

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

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    50% { top: 14px; opacity: 0; }
    100% { top: 6px; opacity: 1; }
}

/* Sections General Typography */
.section-tag {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin-bottom: 2rem;
}

.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.grid-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.stat-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--card-radius);
    text-align: left;
    backdrop-filter: blur(10px);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-visual-card {
    display: flex;
    justify-content: center;
    position: relative;
}

.visual-deco-box {
    width: min(100%, 460px);
    aspect-ratio: 3 / 2;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.visual-deco-box::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--card-radius);
    padding: 1px;
    background: linear-gradient(135deg, var(--border-color), var(--primary-glow));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.about-brand-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.molecules-container {
    width: 200px;
    height: 200px;
}

.molecule-svg {
    width: 100%;
    height: 100%;
}

.mol-center {
    animation: pulse 3s infinite alternate ease-in-out;
}

.node-1 { animation: orbit1 8s infinite linear; transform-origin: 100px 100px; }
.node-2 { animation: orbit2 10s infinite linear; transform-origin: 100px 100px; }
.node-3 { animation: orbit3 12s infinite linear; transform-origin: 100px 100px; }

.bond-1 { animation: rotateBond 8s infinite linear; transform-origin: 100px 100px; }
.bond-2 { animation: rotateBond 10s infinite linear; transform-origin: 100px 100px; }
.bond-3 { animation: rotateBond 12s infinite linear; transform-origin: 100px 100px; }

@keyframes orbit1 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit2 { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes orbit3 { from { transform: rotate(0deg); } to { transform: rotate(180deg); } }

.deco-details {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.deco-code {
    color: var(--secondary);
}

/* Principles Section */
.principles-section {
    padding: 8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.principle-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: var(--card-radius);
    transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.principle-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.05);
}

.card-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.principle-card:hover .card-bg-glow {
    opacity: 1;
}

.principle-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(212, 175, 55, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.principle-icon {
    width: 22px;
    height: 22px;
}

.principle-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.principle-card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Catalog Section */
.catalog-section {
    padding: 8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.compound-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-fast);
    backdrop-filter: blur(10px);
    height: 100%;
}

.compound-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.08);
}

.compound-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.compound-purity {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.05em;
    background-color: rgba(212, 175, 55, 0.06);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.compound-middle {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.compound-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.compound-formula {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.compound-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.compound-bottom-actions {
    margin-top: auto;
}

.btn-card-details {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 100%;
}

.btn-card-details:hover {
    background-color: rgba(212, 175, 55, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
}

.contact-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 3rem 2.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input, .input-group textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
    outline: none;
}

[data-theme="light"] .input-group input, [data-theme="light"] .input-group textarea {
    background-color: rgba(0, 0, 0, 0.01);
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary);
    background-color: rgba(212, 175, 55, 0.02);
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), font-size 0.25s ease, color 0.25s ease;
}

/* Floating Label Logic */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-1.75rem) scale(0.85);
    left: 0.5rem;
    color: var(--primary);
}

.form-success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    animation: scaleIn 0.4s var(--transition-smooth) forwards;
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-success-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
}

/* Footer styling */
.main-footer {
    background-color: #02040a;
    border-t: 1px solid var(--border-color);
    padding: 5rem 0 0;
    transition: background-color var(--transition-smooth);
}

[data-theme="light"] .main-footer {
    background-color: #eaeef6;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* 23px = altura do desenho dentro da caixa de 34px do SVG antigo.
   Mantém o rodapé um pouco menor que a navbar, como já era. */
.footer-logo-img {
    height: 23px;
    width: auto;
    flex-shrink: 0;
    display: block;
}

.footer-brand .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #f7df9b 0%, #c6923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-about-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 380px;
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.social-link:hover {
    color: var(--primary);
}

.social-qr {
    width: 76px;
    height: 76px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    padding: 0.25rem;
}

.footer-bottom {
    padding: 2rem 0;
    background-color: #010206;
}

[data-theme="light"] .footer-bottom {
    background-color: #dfe4f0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.disclaimer {
    max-width: 480px;
    text-align: right;
}

/* Modals general styling */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(1, 3, 9, 0.75);
    backdrop-filter: blur(8px);
}

.modal-card {
    background-color: var(--bg-surface-opaque);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

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

.modal-large {
    max-width: 780px;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--primary);
}

.modal-header {
    padding: 2rem 2.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-icon {
    width: 24px;
    height: 24px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.modal-body {
    padding: 2rem 2.5rem 2.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Batch Validation Modal specifics */
.val-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.val-input-group input {
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
    letter-spacing: 0.05em;
    font-size: 1rem;
}

.val-input-group input:focus {
    border-color: var(--primary);
}

.val-tip {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.val-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.radar-spinner {
    position: relative;
    width: 48px;
    height: 48px;
}

.radar-spinner .circle {
    position: absolute;
    inset: 0;
    border: 2px stroke var(--primary);
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.radar-spinner .circle:nth-child(1) { animation-delay: -0.45s; }
.radar-spinner .circle:nth-child(2) { animation-delay: -0.3s; }
.radar-spinner .circle:nth-child(3) { animation-delay: -0.15s; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.val-result-box {
    display: none;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background-color: rgba(212, 175, 55, 0.02);
    animation: slideUpIn 0.4s var(--transition-smooth) forwards;
}

.coa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.coa-badge-ok {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    background-color: var(--secondary);
    color: var(--text-inverse);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.coa-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.coa-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.coa-line {
    display: flex;
    justify-content: space-between;
}

.coa-line strong {
    color: var(--text-muted);
}

/* BATCH ID e VERIFY ID: é o par que o cliente confere contra a caixa e
   contra a etiqueta do frasco. Ganham monoespaçada e um pouco de peso. */
.coa-line.coa-destaque span {
    font-family: monospace;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
    word-break: break-all;
    text-align: right;
}

.purity-bar-wrapper {
    margin-bottom: 1rem;
}

.purity-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.purity-bar-bg {
    width: 100%;
    height: 8px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.purity-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.coa-footer {
    font-size: 0.75rem;
    color: var(--secondary);
    text-align: center;
}

/* Lote reprovado: bloco cheio, não uma linha discreta. Precisa ser
   impossível confundir com o certificado normal. */
.coa-footer.coa-reprovado {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 6px;
    padding: 0.9rem 1rem;
    color: #ef4444;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
}

.coa-footer.coa-pendente {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.coa-badge-ok.badge-reprovado {
    color: #ffffff;
    letter-spacing: 0.08em;
}

.val-error-box {
    display: none;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background-color: rgba(239, 68, 68, 0.02);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    animation: slideUpIn 0.4s var(--transition-smooth) forwards;
}

.error-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.val-error-box h4 {
    font-family: var(--font-heading);
    color: #ef4444;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.val-error-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Calculator Modal specific styles */
.grid-calculator {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.calc-inputs-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-field label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.input-field input, .input-field select {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    outline: none;
    font-size: 0.95rem;
    width: 100%;
}

[data-theme="light"] .input-field input, [data-theme="light"] .input-field select {
    background-color: rgba(0, 0, 0, 0.01);
}

.input-field input:focus, .input-field select:focus {
    border-color: var(--primary);
}

/* Mesma correção do painel: a lista aberta do <select> não herda o tema.
   Vale para o seletor de seringa da calculadora, que é público. */
.input-field select option,
.input-field select optgroup {
    background-color: var(--bg-surface-opaque);
    color: var(--text-main);
}

.calc-results-col {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calc-numeric-result {
    text-align: center;
    margin-bottom: 2rem;
}

.result-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Syringe Graphical Representation */
.syringe-visual {
    width: 100%;
    max-width: 280px;
    height: 120px;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
}

.syringe-barrel {
    width: 200px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-left: none;
    border-right: none;
    border-radius: 0 4px 4px 0;
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.02);
}

/* Flanges of syringe */
.syringe-barrel::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -12px;
    width: 4px;
    height: 58px;
    background-color: var(--text-muted);
}

/* Needle hub */
.syringe-barrel::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 9px;
    width: 10px;
    height: 16px;
    background-color: var(--text-muted);
    border-radius: 0 2px 2px 0;
}

.syringe-needle {
    position: absolute;
    right: -50px;
    top: 57px;
    width: 40px;
    height: 1.5px;
    background-color: var(--text-muted);
    opacity: 0.7;
}

.syringe-fluid {
    height: 100%;
    width: 0%; /* Dynamic fill based on dosage calculated */
    background-color: rgba(0, 242, 254, 0.25);
    border-right: 2px solid var(--primary);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    left: 0;
    top: 0;
}

.syringe-plunger {
    height: 30px;
    width: 100%; /* Plunger position aligns with the end of the barrel */
    position: absolute;
    left: 0%; /* Moves dynamically: left = percentage of syringe units loaded */
    top: 2px;
    display: flex;
    align-items: center;
    transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Plunger seal */
.syringe-plunger::before {
    content: '';
    width: 8px;
    height: 32px;
    background-color: #4b5563;
    border-radius: 2px;
    position: absolute;
    left: -8px;
}

/* Plunger rod */
.syringe-plunger::after {
    content: '';
    width: 140px;
    height: 6px;
    background-color: var(--text-muted);
    position: absolute;
    left: -148px;
    border-radius: 2px 0 0 2px;
}

.syringe-graduations {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.grad-mark {
    width: 1px;
    height: 8px;
    background-color: var(--text-muted);
    opacity: 0.3;
    align-self: flex-start;
}

.grad-mark.long {
    height: 14px;
    opacity: 0.6;
}

.calc-details-summary {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-size: 0.85rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

.summary-line strong {
    color: var(--text-main);
}

/* Peptide details modal specific elements */
.peptide-info-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.peptide-diagram-box {
    width: 100%;
    height: 180px;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.peptide-structure-svg {
    max-width: 90%;
    max-height: 85%;
}

.peptide-spec-sheet {
    background-color: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem;
}

.spec-heading {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.peptide-sequence-text {
    font-family: monospace;
    font-size: 0.8rem;
    word-break: break-all;
}

.peptide-full-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Animation utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--d, 0s);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--d, 0s);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUpIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsive media queries */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-visual-card {
        order: -1;
    }
}


@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--bg-surface-opaque);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
        pointer-events: none;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .whatsapp-float-button {
        min-width: 180px;
        padding: 0.72rem 1rem;
        gap: 0.65rem;
        font-size: 0.9rem;
        right: calc(0.85rem + env(safe-area-inset-right, 0px));
        bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    }

    .whatsapp-label {
        font-size: 0.88rem;
    }

    .whatsapp-float-icon {
        width: 1.2rem;
        height: 1.2rem;
    }
}

@keyframes whatsappPulse {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.02); }
}

    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 101;
    }
    
    .mobile-menu-btn span {
        width: 100%;
        height: 2px;
        background-color: var(--text-main);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .grid-calculator {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .disclaimer {
        text-align: center;
    }
}
/* === VALIDADOR V2.0 — Estado "Já Verificado" === */
.val-verificado-aviso {
    background-color: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    text-align: left;
}
.val-verificado-titulo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
}
.val-verificado-texto {
    color: #d4a056;
    font-size: 0.8rem;
    margin: 0 0 0.6rem;
    line-height: 1.4;
}
.val-verificado-detalhes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(245, 158, 11, 0.15);
}
.val-verificado-detalhes span {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.val-verificado-detalhes strong {
    color: #f59e0b;
}

/* === VALIDADOR — Estados neutros (limite / revogado) ===
   Nem verde nem vermelho: o problema não é o produto do cliente. */
.val-neutro-box {
    display: none;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background-color: rgba(148, 163, 184, 0.04);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    animation: slideUpIn 0.4s var(--transition-smooth) forwards;
}
.neutro-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(148, 163, 184, 0.1);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
}
.val-neutro-box h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.val-neutro-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* === VALIDADOR — Estado "Primeira Verificação" === */
.val-primeira-aviso {
    background-color: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    text-align: left;
}
.val-primeira-titulo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
}
.val-primeira-texto {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}