/* =============================================================
   Foxys — Marketing site
   Paleta: dark base + laranja "fox"
   ============================================================= */

:root {
  --bg: #FAFAF7;
  --bg-soft: #F2F0EA;
  --ink: #0B0B0F;
  --ink-2: #1A1A20;
  --muted: #5A5A65;
  --line: #E6E3DC;
  --accent: #FF6B2C;
  --accent-2: #FF8A4C;
  --accent-soft: #FFE8DA;
  --white: #FFFFFF;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11,11,15,0.04), 0 4px 12px rgba(11,11,15,0.04);
  --shadow-md: 0 8px 28px rgba(11,11,15,0.08);
  --shadow-lg: 0 30px 60px -20px rgba(11,11,15,0.25);

  --container: 1180px;

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Inter', serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .4em;
  color: var(--ink);
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

p { margin: 0 0 1em; color: var(--muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  transition: transform .4s var(--ease);
}

.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }

.logo-text { line-height: 1; }
.logo-dot { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .2s var(--ease);
}

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

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}

.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.btn-ghost,
.nav a.btn-ghost {
  padding: 9px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
}
.btn-ghost:hover,
.nav a.btn-ghost:hover { background: var(--accent); color: var(--ink); }

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.lang-switch:hover { border-color: var(--ink); }
.lang-opt {
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .2s var(--ease);
}
.lang-opt.active { color: var(--ink); }
.lang-sep { color: var(--line); font-weight: 400; }

.btn-lg { padding: 16px 28px; font-size: 16px; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.45), transparent 60%);
  top: -120px; right: -80px;
}
.hero::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 138, 76, 0.35), transparent 60%);
  bottom: -120px; left: -80px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.pulse {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .4;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-title .accent {
  position: relative;
  white-space: nowrap;
}
.hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 10px;
  background: var(--accent);
  opacity: .25;
  z-index: -1;
  border-radius: 4px;
}

.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-trust > span {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .15em;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  opacity: .55;
}
.trust-logos span {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .02em;
  color: var(--ink);
}

/* =============================================================
   SECTIONS GENERIC
   ============================================================= */
.section {
  padding: 110px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker-light { color: var(--accent-2); }

.section-head h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  margin-bottom: 14px;
}

.section-head p {
  font-size: 17px;
}

.grid { display: grid; gap: 20px; }

/* =============================================================
   SERVICES
   ============================================================= */
.services {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .35s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 107, 44, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 22px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.card-icon svg { width: 24px; height: 24px; }
.card:hover .card-icon { background: var(--ink); color: var(--accent); }

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.card p {
  font-size: 15px;
  margin: 0;
}

/* =============================================================
   PROCESSO (dark)
   ============================================================= */
.section-dark {
  background: var(--ink);
  color: var(--white);
  border-radius: 32px;
  margin: 0 24px;
}

.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.65); }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.steps li:hover {
  background: rgba(255,107,44,0.08);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.step-num {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 14px;
}

.steps h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.steps p {
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

/* =============================================================
   RESULTADOS / STATS
   ============================================================= */
.stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  padding: 40px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat span {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .02em;
}

/* =============================================================
   SOBRE
   ============================================================= */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 18px;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
.bullets li:last-child { border-bottom: 0; }
.bullets li span {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.about-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ink) 0%, #1A1A20 60%, #2A1F18 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 107, 44, 0.4), transparent 50%);
}
.about-card::after {
  content: "Foxys";
  position: absolute;
  bottom: -30px;
  right: -10px;
  font-family: 'Fraunces', serif;
  font-size: 200px;
  font-weight: 600;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  line-height: 1;
}

.about-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.about-quote {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  line-height: 1.3;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.about-sign {
  font-size: 13px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .2em;
}

/* =============================================================
   CTA / FORM
   ============================================================= */
.cta {
  background: var(--ink);
  color: var(--white);
  border-radius: 32px;
  margin: 0 24px 80px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,44,0.3), transparent 60%);
  filter: blur(80px);
  top: -200px; right: -200px;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta h2 {
  color: var(--white);
  font-size: clamp(32px, 4.5vw, 52px);
  margin-bottom: 14px;
}
.cta p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  margin-bottom: 40px;
}

.form {
  text-align: left;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form label {
  display: block;
}
.form label.full { display: block; margin-bottom: 20px; }

.form span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  resize: vertical;
}
.form input::placeholder,
.form textarea::placeholder { color: rgba(255,255,255,0.35); }

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}

.form .btn-primary {
  background: var(--accent);
  color: var(--ink);
  width: 100%;
  justify-content: center;
}
.form .btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }

.form-status {
  font-size: 14px;
  color: var(--accent-2);
  margin: 16px 0 0;
  text-align: center;
  min-height: 1em;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  background: var(--bg-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  max-width: 320px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-links h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about-card { aspect-ratio: 5/4; max-width: 480px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-md);
  }
  .nav.open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .nav.open .lang-switch {
    margin: 14px auto;
    align-self: center;
  }
  .nav.open a:last-child {
    margin-top: 8px;
    border: 0;
    text-align: center;
  }

  .hero { padding: 60px 0 80px; }
  .section { padding: 72px 0; }
  .section-dark, .cta { margin: 0 12px; border-radius: 22px; padding: 72px 0; }

  .services { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 22px; }

  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  .about-card-inner { padding: 28px; }
  .about-quote { font-size: 22px; }

  .trust-logos { gap: 22px; }
  .trust-logos span { font-size: 15px; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
