/* ==========================================================================
   Eyou — Design System
   ========================================================================== */

:root {
  /* Brand colors (do logo) */
  --eyou-orange: #FF6B00;
  --eyou-purple: #5236FF;
  --eyou-cyan:   #00DCC9;
  --eyou-magenta:#D83596;
  --whatsapp-green: #25D366;

  /* Light mode (default) */
  --bg:          #ffffff;
  --bg-elevated: #f7f8fb;
  --bg-panel:    #ffffff;
  --bg-chip:     rgba(82, 54, 255, 0.06);
  --fg:          #0B1020;
  --fg-muted:    #5b6479;
  --fg-subtle:   #8992a6;
  --border:      rgba(11, 16, 32, 0.08);
  --border-strong: rgba(11, 16, 32, 0.14);
  --glow-1: rgba(255, 107, 0, 0.28);
  --glow-2: rgba(82, 54, 255, 0.28);
  --glow-3: rgba(0, 220, 201, 0.22);
  --header-bg: rgba(255,255,255,0.72);
  --grid-line: rgba(11,16,32,0.05);

  /* Accents used in gradients */
  --grad-1: var(--eyou-orange);
  --grad-2: var(--eyou-magenta);
  --grad-3: var(--eyou-purple);
  --grad-4: var(--eyou-cyan);

  --brand-gradient: linear-gradient(120deg, var(--eyou-orange) 0%, var(--eyou-magenta) 35%, var(--eyou-purple) 70%, var(--eyou-cyan) 100%);
  --brand-gradient-soft: linear-gradient(120deg, rgba(255,107,0,0.14), rgba(216,53,150,0.14), rgba(82,54,255,0.14), rgba(0,220,201,0.14));

  /* Type */
  --font-sans: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii & spacing */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg:          #060814;
  --bg-elevated: #0c0f1e;
  --bg-panel:    #0f1328;
  --bg-chip:     rgba(255,255,255,0.06);
  --fg:          #f4f6fb;
  --fg-muted:    #a0a8bd;
  --fg-subtle:   #6b728a;
  --border:      rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --glow-1: rgba(255, 107, 0, 0.35);
  --glow-2: rgba(82, 54, 255, 0.45);
  --glow-3: rgba(0, 220, 201, 0.3);
  --header-bg: rgba(6,8,20,0.72);
  --grid-line: rgba(255,255,255,0.05);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
.h-display { font-size: clamp(40px, 7vw, 92px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.h-1 { font-size: clamp(32px, 4.5vw, 56px); letter-spacing: -0.028em; line-height: 1.05; }
.h-2 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.022em; line-height: 1.1; }
.h-3 { font-size: clamp(20px, 2vw, 26px); }
.h-4 { font-size: 18px; font-weight: 600; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  font-weight: 500;
}
.lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--fg-muted); line-height: 1.55; max-width: 68ch; }
p { margin: 0 0 1em; }

.grad-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Layout ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 10vw, 140px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--glow-2), 0 6px 18px -10px var(--glow-1);
}
.btn-primary:hover { box-shadow: 0 18px 40px -8px var(--glow-2), 0 10px 24px -8px var(--glow-1); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-chip); }

.btn-glass {
  background: var(--bg-chip);
  color: var(--fg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-logo { display: flex; align-items: center; position: relative; }
.site-logo img {
  height: 48px; width: auto;
  display: block;
}
.site-logo .logo-light { display: none; }
html[data-theme="light"] .site-logo .logo-dark { display: none; }
html[data-theme="light"] .site-logo .logo-light { display: block; }
html[data-theme="light"] .site-logo .logo-brand-text { filter: none; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 20px; }
.site-nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
  transition: color .2s var(--ease), background .2s var(--ease);
  position: relative;
}
.site-nav a:hover { color: var(--fg); background: var(--bg-chip); }
.site-nav a.active { color: var(--fg); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 2px;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--eyou-orange);
}

.site-header-spacer { flex: 1; }
.site-header-actions { display: flex; gap: 10px; align-items: center; }
.header-contact { display: flex; gap: 14px; align-items: center; color: var(--fg-muted); font-size: 13px; }
.header-contact a { display: inline-flex; align-items: center; gap: 6px; }
.header-contact a:hover { color: var(--fg); }

.theme-toggle {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-chip);
  border: 1px solid var(--border);
  color: var(--fg);
  transition: background .2s var(--ease);
}
.theme-toggle:hover { background: var(--border); }
.theme-toggle .sun, .theme-toggle .moon { position: absolute; transition: transform .4s var(--ease), opacity .3s var(--ease); }
html[data-theme="light"] .theme-toggle .moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
html[data-theme="dark"]  .theme-toggle .sun  { opacity: 0; transform: rotate(-90deg) scale(0.5); }

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--bg-chip);
  border: 1px solid var(--border);
  color: var(--fg);
  cursor: pointer;
  transition: background .2s var(--ease);
  position: relative;
  margin-left: auto;
}
.mobile-toggle:hover { background: var(--border); }
.mobile-toggle .mt-close { display: none; }
.mobile-toggle[aria-expanded="true"] .mt-open { display: none; }
.mobile-toggle[aria-expanded="true"] .mt-close { display: block; }

/* Mobile drawer (aside) */
.mobile-drawer {
  position: fixed;
  top: 64px; right: 0;
  width: min(360px, 88vw);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg, 0 20px 48px rgba(0,0,0,.25));
  padding: 24px 22px 32px;
  display: flex; flex-direction: column; gap: 20px;
  transform: translateX(100%);
  transition: transform .28s var(--ease, cubic-bezier(.22,.61,.36,1));
  z-index: 90;
  visibility: hidden;
}
.mobile-drawer.open { transform: translateX(0); visibility: visible; }
.mobile-drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer-nav a {
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 16px; font-weight: 500;
  color: var(--fg);
  transition: background .15s var(--ease);
}
.mobile-drawer-nav a:hover, .mobile-drawer-nav a:active { background: var(--bg-chip); }
.mobile-drawer-divider { height: 1px; background: var(--border); margin: 4px 0; }
.mobile-drawer-contact { display: flex; flex-direction: column; gap: 12px; padding: 0 14px; }
.mobile-drawer-contact a { display: inline-flex; gap: 10px; align-items: center; color: var(--fg-muted); font-size: 14px; }
.mobile-drawer-contact a:hover { color: var(--fg); }
.mobile-drawer-cta { width: 100%; justify-content: center; margin-top: 4px; }

.mobile-drawer-backdrop {
  position: fixed; inset: 64px 0 0 0;
  background: rgba(0,0,0,.5);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
  z-index: 85;
}
.mobile-drawer-backdrop.open { opacity: 1; visibility: visible; }

@media (max-width: 980px) {
  .site-nav, .header-contact { display: none; }
  .site-header-actions .btn-primary { display: none; }
  .mobile-toggle { display: inline-flex; }
  /* Tweaks toggle (engrenagem fixa bottom-left) sobrepõe CTAs em mobile — esconder. */
  .tweaks-toggle { display: none !important; }
}
@media (max-width: 560px) {
  .header-offset { height: 64px; }
  .site-header-inner { padding: 8px 16px; gap: 12px; }
  .site-logo img { height: 36px; }
  .lang-switcher { margin-right: 0; }
  .lang-trigger { padding: 4px 6px; }
}

/* Spacer so content doesn't hide behind fixed header */
.header-offset { height: 72px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 500px; height: 500px;
  background: radial-gradient(closest-side, var(--glow-2), transparent);
  filter: blur(40px);
  opacity: .4;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
}
.footer-brand img { height: 48px; width: auto; margin-bottom: 20px; }
.footer-brand .logo-light { display: none; }
html[data-theme="light"] .footer-brand .logo-dark { display: none; }
html[data-theme="light"] .footer-brand .logo-light { display: block; }
.footer-brand p { color: var(--fg-muted); font-size: 14px; max-width: 30ch; }
.footer-col h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--fg-muted); margin-bottom: 18px; font-family: var(--font-mono); font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--fg); font-size: 14px; opacity: .85; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: var(--eyou-orange); }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-chip);
  border: 1px solid var(--border);
  transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.social-row a:hover { transform: translateY(-2px); border-color: var(--eyou-orange); color: var(--eyou-orange); }
.footer-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--fg-muted);
}
.oracle-badge { height: 28px; opacity: .85; }
html[data-theme="light"] .oracle-badge { filter: invert(1) hue-rotate(180deg) brightness(0.4); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Card / glass ===== */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 30px 60px -30px var(--glow-2); }

.glass {
  background: var(--bg-chip);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
}

/* ===== Chips / badges ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-chip);
  font-size: 13px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--eyou-cyan); box-shadow: 0 0 10px var(--eyou-cyan); }
.chip-grad {
  background: var(--brand-gradient);
  color: #fff;
  border: 0;
  padding: 6px 14px;
}

/* ===== WhatsApp floating button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px -10px rgba(37, 211, 102, 0.5);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: wa-pulse 2.2s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 16px 40px -10px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.4); }
  70% { box-shadow: 0 16px 40px -10px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
}

/* ===== Form ===== */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-size: 12px; color: var(--fg-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.form-field input, .form-field select, .form-field textarea {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color .2s, background .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 0;
  border-color: var(--eyou-orange);
  background: var(--bg-panel);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ===== Utilities ===== */
.center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: 8px; } .gap-md { gap: 16px; } .gap-lg { gap: 24px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-md > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }
.mono { font-family: var(--font-mono); }
.tight { letter-spacing: -0.02em; }

/* grid background */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Aurora background */
.aurora {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.aurora::before, .aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.aurora::before {
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, var(--glow-1), transparent);
  top: -20%; left: -10%;
  animation: drift1 22s var(--ease) infinite alternate;
}
.aurora::after {
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, var(--glow-2), transparent);
  bottom: -20%; right: -10%;
  animation: drift2 24s var(--ease) infinite alternate;
}
@keyframes drift1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(120px,60px) scale(1.1); } }
@keyframes drift2 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-100px,-80px) scale(1.2); } }

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 96px; right: 24px;
  width: 280px;
  z-index: 95;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.3);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 { font-size: 14px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.tweaks-panel h4 button { color: var(--fg-muted); font-size: 18px; line-height: 1; }
.tweak-row { margin-bottom: 14px; }
.tweak-row-label { font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-mono); margin-bottom: 6px; }
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent;
  transition: transform .2s, border-color .2s;
}
.tweak-swatch:hover { transform: scale(1.1); }
.tweak-swatch.active { border-color: var(--fg); }
.tweak-select {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
}

/* ---------- Contact form: honeypot + reCAPTCHA badge ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
/* reCAPTCHA badge: deixar comportamento default do Google
   (recolhido mostrando só o ícone, expande no hover). NÃO sobrescrever
   right/bottom/transform — quebra a animação de slide-in/slide-out. */

/* Form submit-row pode ficar muito alto quando o note é longo: respiro */
.submit-row .note { line-height: 1.5; }

/* Estado de envio do form */
#contactForm.is-submitting button[type="submit"] { opacity: .6; cursor: progress; }
