/* ═══════════════════════════════════════════════
   ROXO SELENA — SITE ENGINE (BRAND BOOK COMPLIANT)
   Versão 1.2 — Masterização Responsiva e SEO
═══════════════════════════════════════════════ */

:root {
  --bg: #0A0614; --bg-warm: #120A20; --bg-card: #1A0F2E; --bg-elev: #251642;
  --cream: #F5F0FA; --cream-soft: #C8BFD8; --muted: #8B82A0; --faint: #4D4567;
  --violeta: #7F00FF; --violeta-light: #A24DFF; --violeta-deep: #5500CC;
  --violeta-glow: rgba(127, 0, 255, 0.35); --violeta-glow-strong: rgba(127, 0, 255, 0.55);
  --rosa: #FF1493; --rosa-soft: #FF6BB8;
  --verde-br: #00A859; --amarelo-br: #FFDF00;
  --border: #2A1F45; --border-light: #3D2E5A;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-card: 2px; --radius-pill: 999px;
  --transition: all 250ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Grão + Atmosfera */
body { 
    background-color: var(--bg); color: var(--cream); 
    font-family: var(--font-body); font-size: 14px; line-height: 1.55; 
    overflow-x: hidden; -webkit-font-smoothing: antialiased; 
}
body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 2;
    opacity: 0.04; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }
a { color: var(--violeta-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--violeta); }

/* Tipografia */
.display-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw, 5rem); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; margin-bottom: 25px; color: var(--cream); }
.display-title .accent { color: var(--violeta); text-shadow: 0 0 80px var(--violeta-glow-strong); }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: 42px; line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: 40px; color: var(--cream); }
.section-title .accent { color: var(--violeta); }
.block-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 16px; color: var(--cream); }
.lead-text { font-family: var(--font-body); font-size: 17px; font-weight: 400; color: var(--cream-soft); line-height: 1.65; max-width: 640px; margin: 0 auto 36px; text-wrap: pretty; }

/* Eyebrow */
.eyebrow { font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--violeta-light); letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.eyebrow .num { color: var(--muted); font-weight: 600; }

/* Botões & Pills */
.btn-pill, .btn-ghost, .btn-pill-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; padding: 16px 28px; border-radius: var(--radius-pill); border: 1px solid transparent; text-transform: uppercase; cursor: pointer; line-height: 1; transition: var(--transition); }
.btn-pill { background: var(--violeta); color: var(--cream) !important; }
.btn-pill:hover { background: var(--violeta-light); box-shadow: 0 0 32px var(--violeta-glow-strong); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream) !important; border-color: var(--border-light); }
.btn-ghost:hover { border-color: var(--violeta-light); color: var(--violeta-light) !important; background: rgba(127,0,255,0.05); }
.btn-pill-outline { border: 1px solid var(--violeta); color: var(--cream) !important; padding: 12px 24px; font-size: 12px; }
.btn-pill-outline:hover { background: var(--violeta); box-shadow: 0 0 20px var(--violeta-glow); }

.pill-br { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 100px; font-family: var(--font-body); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; border: 1px solid var(--verde-br); background: rgba(0,168,89,0.10); color: var(--cream); }
.pill-br::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--verde-br); box-shadow: inset 0 0 0 2px var(--amarelo-br); }

/* Header & Logo */
.main-header { background: rgba(10, 6, 20, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--cream) !important; letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.logo .selena { color: var(--violeta); }
.logo .dot { width: 6px; height: 6px; background: var(--violeta); border-radius: 50%; box-shadow: 0 0 12px var(--violeta-glow-strong); }

.nav-links { display: flex; gap: 25px; align-items: center; list-style: none; }
.nav-item { position: relative; padding: 10px 0; }
.nav-item > a { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--cream-soft); }

.mega-menu { position: absolute; top: 100%; left: 0; background: var(--bg-card); border: 1px solid var(--border); min-width: 240px; padding: 15px; border-radius: var(--radius-card); box-shadow: 0 32px 80px rgba(0,0,0,0.5); display: none; }
.nav-item:hover .mega-menu { display: block; }
.mega-menu a { display: block; padding: 8px 10px; font-size: 0.85rem; color: var(--cream-soft); border-bottom: 1px solid var(--border); text-transform: none; }
.mega-menu a:hover { color: var(--violeta-light); padding-left: 15px; border-color: var(--violeta); }
.mega-menu a:last-child { border-bottom: none; }

/* Mobile Menu Toggle */
.mobile-menu-toggle { display: none; background: none; border: none; color: var(--cream); font-size: 24px; cursor: pointer; padding: 10px; transition: var(--transition); }
.mobile-menu-toggle:hover { color: var(--violeta-light); transform: scale(1.1); }

/* Hero Archive (Index) */
.hero-archive { padding: 120px 20px; text-align: center; background: radial-gradient(ellipse 900px 700px at 50% 30%, rgba(127,0,255,0.15), transparent 60%); }
.hero-btn-group { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Silos Grid (Cards Home) */
.silos-section { padding: 80px 0; border-top: 1px solid var(--border); }
.silos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.silo-card { background: var(--bg-card); border: 1px solid var(--border); padding: 32px; border-radius: var(--radius-card); position: relative; transition: var(--transition); }
.silo-card:hover { border-color: rgba(127, 0, 255, 0.4); box-shadow: 0 0 32px rgba(127, 0, 255, 0.18); transform: translateY(-2px); }
.silo-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.silo-tag { font-family: var(--font-mono); font-size: 10px; padding: 4px 8px; border: 1px solid var(--border); color: var(--violeta-light); text-transform: uppercase; background: rgba(127, 0, 255, 0.08); border-radius: 3px; }
.silo-card p { font-size: 13px; color: var(--cream-soft); line-height: 1.55; }

/* Footer */
.main-footer { background: var(--bg-warm); padding: 60px 0 30px; border-top: 1px solid var(--border); margin-top: 80px; position: relative; z-index: 10; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-col-main p { font-size: 13px; color: var(--cream-soft); margin-top: 15px; max-width: 300px; line-height: 1.6; }
.footer-col h5 { color: var(--violeta-light); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 15px; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { display: block; color: var(--cream-soft); font-size: 14px; transition: var(--transition); }
.footer-col a:hover { color: var(--violeta); padding-left: 5px; }

/* Redes Sociais Footer */
.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a { background: rgba(127, 0, 255, 0.1); width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--violeta-light); font-size: 0.7rem; font-weight: bold; border: 1px solid rgba(127, 0, 255, 0.2); transition: var(--transition); }
.footer-social a:hover { background: var(--violeta); color: var(--cream); transform: scale(1.1); box-shadow: 0 0 15px var(--violeta-glow); }

/* Bottom Footer */
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding: 20px 20px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; }

/* Botão Voltar ao Topo */
.back-to-top { position: fixed; bottom: 20px; right: 20px; background: var(--violeta); color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0.7; transition: var(--transition); z-index: 99; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.back-to-top:hover { opacity: 1; transform: translateY(-5px); background: var(--violeta-light); }

/* ═══════════════════════════════════════════════
   RESPONSIVIDADE MASTER (CELULARES E TABLETS)
═══════════════════════════════════════════════ */
@media (max-width: 992px) {
    /* 1. Header & Menus Mobile Centralizados */
    .mobile-menu-toggle { display: block; order: 3; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(10, 6, 20, 0.98); flex-direction: column; padding: 30px 20px; border-bottom: 1px solid var(--violeta); z-index: 999; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
    .nav-links.active { display: flex; }
    .nav-item { width: 100%; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 15px 0; }
    .nav-item:last-child { border-bottom: none; }
    
    .mega-menu { position: static; box-shadow: none; display: none; background: transparent; border: none; padding: 15px 0 0 0; min-width: auto; }
    .nav-item:hover .mega-menu { display: flex; flex-direction: column; align-items: center; gap: 10px; }
    .mega-menu a { border: none; padding: 5px; color: var(--muted); }
    .btn-pill-outline { display: none; }

    /* 2. Hero & Botões Home Centralizados */
    .hero-archive { padding: 80px 15px; }
    .display-title { font-size: 2.8rem; line-height: 1.1; }
    .lead-text { font-size: 15px; padding: 0 10px; }
    .hero-btn-group { flex-direction: column; width: 100%; max-width: 320px; margin: 36px auto 0; }
    .hero-btn-group a { width: 100%; }

    /* 3. Footer Centralizado Total */
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 50px; padding: 40px 20px; }
    .footer-col-main, .footer-col { display: flex; flex-direction: column; align-items: center; }
    .footer-col-main .logo { justify-content: center; margin-bottom: 15px; }
    .footer-col ul { text-align: center; width: 100%; }
    .footer-col a:hover { padding-left: 0; color: var(--violeta-light); } /* Tira o padding lateral no hover do mobile para não entortar o centro */
    .footer-social { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; padding: 30px 20px; }
}