/* ===== Theme Variables ===== */
:root {
    --bg: #111116;
    --bg-card: #1a1a21;
    --bg-card-hover: #22222b;
    --bg-surface: #16161d;
    --accent: rgb(128, 9, 179);
    --accent-dim: rgba(128,9,179,0.18);
    --accent-subtle: rgba(128,9,179,0.10);
    --success: #36c48b;
    --warning: #f3b04c;
    --text: #e8e8ed;
    --text-secondary: #9898a6;
    --text-muted: #62626e;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.16);
}

[data-theme="light"] {
    --bg: #f7f7f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f4;
    --bg-surface: #ededf1;
    --accent: rgb(128, 9, 179);
    --accent-dim: rgba(128,9,179,0.12);
    --accent-subtle: rgba(128,9,179,0.06);
    --success: #0f9f6e;
    --warning: #c78612;
    --text: #1a1a2e;
    --text-secondary: #5a5a6e;
    --text-muted: #8a8a9a;
    --border: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.16);
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 2000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ===== Nav ===== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(17,17,22,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0 2rem;
}

[data-theme="light"] nav {
    background: rgba(247,247,249,0.92);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    width: 34px; height: 34px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px; height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.theme-toggle:hover { border-color: var(--border-hover); }

.nav-portal {
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-portal:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 0.55rem 1.25rem;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.9; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ===== Mobile Nav Overlay ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    z-index: 999;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
    display: block;
    padding: 0.6rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a.active { color: var(--accent); }

/* ===== Page Header ===== */
.page-header {
    max-width: 700px;
    margin: 0 auto;
    padding: 9rem 2rem 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-header h1 span { color: var(--accent); }

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===== Section ===== */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
}

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

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
    background: transparent;
    color: var(--text);
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-hover);
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== CTA ===== */
.cta {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    text-align: center;
}

.cta-box {
    padding: 3.5rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.cta-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
footer {
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 280px;
    margin-top: 0.75rem;
}

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 34px; height: 34px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.social-links a:hover { border-color: var(--border-hover); }

/* ===== Announcement Bar ===== */
.announce-bar {
    background: linear-gradient(90deg, var(--accent), #6d28d9);
    color: #fff;
    text-align: center;
    padding: 0.55rem 2rem;
    font-size: 0.82rem;
    font-weight: 500;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.announce-bar a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announce-bar-close {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem;
    line-height: 1;
}

.announce-bar-close:hover { color: #fff; }

body.has-announce-bar nav { top: 34px; }
body.has-announce-bar .mobile-nav { top: 98px; }
body.has-announce-bar .page-header { padding-top: 11rem; }
body.has-announce-bar .hero { padding-top: 12rem; }

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    z-index: 998;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ===== Responsive - Shared ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-portal { display: none; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { max-width: none; }
    .footer-bottom { flex-direction: column; gap: 1rem; }
    .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
    .announce-bar { font-size: 0.75rem; padding: 0.5rem 2.5rem 0.5rem 1rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
}
