/* ============================================================
   VG Tech — Premium Design System v3
   ============================================================ */

/* ── RESET ── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }

/* ── TOKENS ── */
:root {
  --bg-void: #050508;
  --bg-base: #0a0a12;
  --bg-surface: #0f0f1a;
  --bg-elevated: #14141f;
  --bg-card: #16161f;

  --border-subtle: rgba(255,255,255,0.06);
  --border-glow: rgba(0,170,255,0.25);

  --accent: #00aaff;
  --accent2: #00e5ff;
  --grad: linear-gradient(135deg, #00aaff 0%, #00e5ff 100%);
  --glow: 0 0 30px rgba(0,170,255,0.3);

  --text: #f0f4ff;
  --text2: #8892a4;
  --text3: #4a5568;

  --font-h: 'Space Grotesk', sans-serif;
  --font-b: 'DM Sans', sans-serif;
  --font-m: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth }

body {
  background: var(--bg-void);
  color: var(--text);
  font-family: var(--font-b);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px }
::-webkit-scrollbar-track { background: var(--bg-void) }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 4%;
  display: flex; align-items: center; justify-content: space-between;
  transition: all .4s;
}
nav.scrolled {
  background: rgba(10,10,18,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none }
.nav-logo svg { width: 36px; height: 36px }
.nav-logo span { font-family: var(--font-h); font-weight: 700; font-size: 1.1rem; color: var(--text) }
.nav-logo span em { color: var(--accent); font-style: normal }

.nav-links { display: flex; gap: 2rem; list-style: none }
.nav-links a {
  color: var(--text2); text-decoration: none; font-size: .9rem;
  font-family: var(--font-b); position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--grad); transition: width .3s;
}
.nav-links a:hover { color: var(--text) }
.nav-links a:hover::after { width: 100% }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative; z-index: 110;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px auto; transition: all .3s; border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0 }

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; padding: 0 2rem }
.hero-eyebrow { font-family: var(--font-m); font-size: .75rem; color: var(--text3); letter-spacing: .35em; margin-bottom: 1.8rem; opacity: 0 }
.hero-h1 { font-family: var(--font-h); font-size: clamp(2.5rem,6vw,5.5rem); font-weight: 700; line-height: 1.05; margin-bottom: 1.2rem }
.hero-h1 .line1 { display: block; color: var(--text); opacity: 0; transform: translateY(50px) }
.hero-h1 .line2 { display: block; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0; transform: translateY(50px) }
.hero-sub { color: var(--text2); font-size: clamp(0.95rem, 2vw, 1.1rem); margin-bottom: 2.2rem; opacity: 0 }

.hero-cta {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--grad); color: #fff; padding: .9rem 2rem;
  border-radius: 50px; font-family: var(--font-h); font-weight: 600;
  font-size: .95rem; text-decoration: none; position: relative;
  overflow: hidden; opacity: 0; transition: transform .3s, box-shadow .3s;
}
.hero-cta::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: translateX(-100%); transition: transform .5s;
}
.hero-cta:hover { transform: scale(1.04); box-shadow: 0 0 40px rgba(0,170,255,0.5) }
.hero-cta:hover::before { transform: translateX(100%) }
.hero-cta svg { width: 18px; height: 18px }

.hero-fog {
  position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to top, var(--bg-void), transparent); z-index: 2;
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
section { padding: clamp(4rem, 8vw, 6rem) 4% }
.eyebrow { font-family: var(--font-m); font-size: .72rem; color: var(--accent); letter-spacing: .25em; margin-bottom: .8rem }
.eyebrow::before { content: '// '; opacity: .5 }

h2.section-title { font-family: var(--font-h); font-size: clamp(1.6rem,3.5vw,3rem); font-weight: 700; margin-bottom: .5rem }
h2.section-title .grad { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text }

.section-line { width: 60px; height: 2px; background: var(--grad); margin: .8rem 0 2rem; border-radius: 2px }
.section-line.center { margin: .8rem auto 2rem }
.section-sub { color: var(--text2); font-size: 1rem; text-align: center; max-width: 560px; margin: 0 auto 3rem }

/* ============================================================
   SOBRE
   ============================================================ */
#sobre { background: var(--bg-base) }
.sobre-grid { display: grid; grid-template-columns: 55% 45%; gap: 3rem; align-items: center; max-width: 1200px; margin: 0 auto }
.sobre-text .section-line { margin: .8rem 0 1.5rem }
.sobre-body { color: var(--text2); line-height: 1.75; margin-bottom: 1rem }

.terminal { background: #0d0d16; border: 1px solid var(--border-subtle); border-radius: 10px; padding: 1.2rem 1.5rem; margin-top: 1.5rem; font-family: var(--font-m); font-size: .82rem }
.terminal-bar { display: flex; gap: .4rem; margin-bottom: .8rem }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50% }
.terminal-bar span:nth-child(1) { background: #ff5f56 }
.terminal-bar span:nth-child(2) { background: #ffbd2e }
.terminal-bar span:nth-child(3) { background: #27c93f }
.terminal-line { color: var(--text2); line-height: 1.8 }
.terminal-line .prompt { color: var(--accent) }
.terminal-line .val { color: #7ec8e3 }

.about-card {
  background: var(--bg-elevated); border: 1px solid var(--border-glow);
  border-radius: 16px; overflow: hidden; position: relative;
  cursor: default; transform-style: preserve-3d; transition: box-shadow .3s;
}
.about-card:hover { box-shadow: var(--glow) }
.about-card img {
  width: 100%; height: 280px; object-fit: cover; display: block;
  filter: brightness(.8); transition: filter .4s, transform .6s;
}
.about-card:hover img { filter: brightness(.95); transform: scale(1.03) }

/* ============================================================
   SERVIÇOS
   ============================================================ */
#servicos { background: var(--bg-surface) }
.servicos-header { text-align: center; margin-bottom: 3rem }
.servicos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; max-width: 1100px; margin: 0 auto }

.serv-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 1.8rem; display: flex; flex-direction: column;
  gap: .8rem; transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.serv-card:hover { border-color: var(--border-glow); transform: translateY(-6px); box-shadow: var(--glow) }
.serv-icon { width: 44px; height: 44px; color: var(--accent) }
.serv-title { font-family: var(--font-h); font-weight: 600; font-size: 1rem; color: var(--text) }
.serv-desc { color: var(--text2); font-size: .88rem; line-height: 1.6; flex: 1 }
.serv-arrow { color: var(--accent); font-size: .9rem; align-self: flex-end; transition: transform .3s }
.serv-card:hover .serv-arrow { transform: translateX(5px) }

/* ============================================================
   LOJA
   ============================================================ */
#loja { background: var(--bg-void) }
.loja-header { text-align: center; margin-bottom: 3rem }
.loja-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; max-width: 1200px; margin: 0 auto }

.prod-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 14px; overflow: hidden; position: relative;
  transition: transform .3s, border-color .3s, box-shadow .3s; cursor: pointer;
  display: flex; flex-direction: column; height: 100%;
}
.prod-card:hover { 
  transform: translateY(-5px); 
  border-color: var(--border-glow);
  box-shadow: var(--glow);
}

.prod-img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .4s; flex-shrink: 0; }
.prod-card:hover .prod-img { transform: scale(1.04) }

.prod-info { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; align-items: flex-start; justify-content: space-between; }
.prod-name { font-family: var(--font-h); font-weight: 600; font-size: .95rem; color: var(--text); margin-bottom: .6rem; }
.prod-tag {
  display: inline-block; font-family: var(--font-m); font-size: .68rem;
  color: var(--text2); border: 1px solid var(--border-subtle);
  border-radius: 20px; padding: .2rem .7rem; letter-spacing: .08em;
}

.prod-more { display: flex; align-items: center; justify-content: center }

/* ============================================================
   POR QUE NÓS
   ============================================================ */
#porquenos { background: var(--bg-surface) }
.porquenos-header { text-align: center; margin-bottom: 3rem }

.pilares-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; max-width: 1100px; margin: 0 auto }
.pilar-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 2rem 1.5rem; text-align: center;
  transition: border-color .3s, transform .3s;
}
.pilar-card:hover { border-color: var(--border-glow); transform: translateY(-4px) }
.pilar-num {
  font-family: var(--font-h); font-size: 3rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; opacity: .18; line-height: 1; margin-bottom: .6rem;
}
.pilar-icon { width: 40px; height: 40px; color: var(--accent); margin: 0 auto .8rem }
.pilar-title { font-family: var(--font-h); font-weight: 600; font-size: .95rem; margin-bottom: .5rem }
.pilar-desc { color: var(--text2); font-size: .83rem; line-height: 1.6 }

/* ============================================================
   CONTATO
   ============================================================ */
#contato { background: var(--bg-base) }
.contato-header { text-align: center; margin-bottom: 3rem }

.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 1100px; margin: 0 auto; align-items: start }

.map-wrap { border-radius: 14px; overflow: hidden; border: 1px solid var(--border-subtle) }
.map-wrap iframe { width: 100%; height: 360px; border: none; filter: invert(90%) hue-rotate(180deg) saturate(.8); display: block }

.contato-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 2rem }
.contato-row { display: flex; align-items: flex-start; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border-subtle) }
.contato-row:last-of-type { border-bottom: none }
.contato-row svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px }
.contato-label { font-family: var(--font-m); font-size: .7rem; color: var(--text3); letter-spacing: .1em; margin-bottom: .2rem }
.contato-val { font-size: .9rem; color: var(--text2) }

.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  background: var(--grad); color: #fff; width: 100%; padding: 1rem;
  border-radius: 10px; font-family: var(--font-h); font-weight: 600;
  font-size: 1rem; text-decoration: none; margin-top: 1.5rem;
  position: relative; overflow: hidden; transition: box-shadow .3s;
}
.wa-btn::before {
  content: ''; position: absolute; inset: -2px; border-radius: 12px;
  background: var(--grad); z-index: -1; animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .6 } 100% { transform: scale(1.06); opacity: 0 } }
.wa-btn:hover { box-shadow: 0 0 50px rgba(0,170,255,0.5) }
.wa-btn svg { width: 20px; height: 20px }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-void); border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 4%; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: .5rem; text-decoration: none }
.footer-logo span { font-family: var(--font-h); font-weight: 600; font-size: .9rem; color: var(--text) }
.footer-logo span em { color: var(--accent); font-style: normal }
.footer-copy { font-size: .8rem; color: var(--text3); font-family: var(--font-m) }
.footer-ig a { color: var(--text2); font-size: .85rem; text-decoration: none; display: flex; align-items: center; gap: .4rem; transition: color .3s }
.footer-ig a:hover { color: var(--accent) }
.footer-ig svg { width: 16px; height: 16px }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.btt {
  position: fixed; bottom: 2rem; right: 2rem; width: 40px; height: 40px;
  background: var(--grad); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; opacity: 0; pointer-events: none;
  transition: opacity .3s; z-index: 99;
}
.btt.visible { opacity: 1; pointer-events: all }
.btt svg { width: 16px; height: 16px; color: #fff }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .loja-grid { grid-template-columns: repeat(2,1fr) }
  .pilares-grid { grid-template-columns: repeat(2,1fr) }
  .servicos-grid { grid-template-columns: repeat(2,1fr) }
  .sobre-grid { grid-template-columns: 1fr }
  .contato-grid { grid-template-columns: 1fr }
}

@media (max-width: 768px) {
  .hamburger { display: block }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 1rem 0;
    background: rgba(5,5,8,0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.open { display: flex }
  .nav-links li { text-align: center }
  .nav-links a { display: block; padding: 1rem; font-size: 1rem }
  footer { flex-direction: column; text-align: center }
}

@media (max-width: 600px) {
  .loja-grid { grid-template-columns: 1fr 1fr }
  .pilares-grid { grid-template-columns: 1fr 1fr }
  .servicos-grid { grid-template-columns: 1fr }
  section { padding: 4rem 5% }
  .hero-cta { width: 100%; justify-content: center }
  .contato-row { flex-direction: column; gap: .5rem }
}

@media (max-width: 400px) {
  .loja-grid { grid-template-columns: 1fr }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
  .hero-eyebrow, .hero-h1 .line1, .hero-h1 .line2, .hero-sub, .hero-cta { opacity: 1 !important; transform: none !important }
}
