/* ==========================================================================
   Spawncore — identidade visual
   Direção: técnico-industrial / editorial, quente e confiante.
   Tinta escura + vermelho de marca + papel quente. Tipo condensado grande.
   ========================================================================== */

:root {
  --ink: #0d0b0a;
  --ink-soft: #17120e;
  --ink-raised: #1e1712;
  --paper: #f3ede3;
  --muted: #a89f92;
  --muted-2: #7c7468;
  --red: #a62121;
  --red-bright: #e24b30;
  --red-soft: #6d1d1d;
  --line: rgba(243, 237, 227, 0.12);
  --line-strong: rgba(243, 237, 227, 0.22);

  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 10px;

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

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 3px; }

.mono { font-family: var(--font-mono); }
em { font-style: normal; color: var(--red-bright); }
strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ===== Grain overlay ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--red);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 11, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark svg { display: block; }
.brand-word {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-word strong { font-weight: 400; color: var(--red-bright); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.main-nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--paper); }
.main-nav a.nav-cta {
  color: var(--paper);
  background: var(--red);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.main-nav a.nav-cta:hover { background: var(--red-bright); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.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); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.mobile-nav ul { list-style: none; padding: 8px 0 16px; }
.mobile-nav a {
  display: block;
  padding: 14px var(--gutter);
  font-size: 18px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { color: var(--red-bright); }
.mobile-nav.open { display: block; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 90px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 80%);
  pointer-events: none;
}
.hero .container { position: relative; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker-dot {
  width: 9px; height: 9px;
  background: var(--red-bright);
  border-radius: 2px;
  box-shadow: 0 0 14px var(--red-bright);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 11vw, 132px);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero-accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--red-bright);
}
.hero-punct { color: var(--red-bright); }

.hero-sub {
  margin-top: 26px;
  max-width: 560px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(226, 75, 48, 0.5);
}
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--red-bright); color: var(--red-bright); }
.btn-block { width: 100%; }

.hero-meta {
  margin-top: clamp(44px, 6vw, 70px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-meta > div {
  background: var(--ink-soft);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta dt { font-size: 13px; color: var(--red-bright); letter-spacing: 0.1em; }
.hero-meta dd { font-size: 15px; color: var(--muted); }

/* ===== Marquee ===== */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--red);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}
.marquee i { color: rgba(255,255,255,0.55); font-style: normal; font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Section base ===== */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.section-note { margin-top: 16px; color: var(--muted); max-width: 560px; }

/* ===== Pain ===== */
.pain { border-top: 1px solid var(--line); }
.pain-copy {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.5;
  color: var(--paper);
  max-width: 720px;
}
.pain-list {
  margin-top: 32px;
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 720px;
}
.pain-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 17px;
}
.pain-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--red-bright);
  font-family: var(--font-mono);
}

/* ===== Services ===== */
.services { background: var(--ink-soft); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--red-soft); transform: translateY(-4px); }
.card-index {
  font-size: 13px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--red-bright);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.card p { color: var(--muted); font-size: 15.5px; }
.card ul {
  list-style: none;
  margin-top: 6px;
  display: grid;
  gap: 8px;
}
.card ul li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--muted);
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 2px;
}

/* ===== Processo ===== */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.steps li {
  background: var(--ink);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-num {
  font-size: 13px;
  color: var(--red-bright);
  letter-spacing: 0.1em;
}
.steps h3 { font-size: 20px; font-weight: 600; }
.steps p { color: var(--muted); font-size: 15px; }

/* ===== Portfólio ===== */
.portfolio { background: var(--ink-soft); border-block: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.work:hover { border-color: var(--red-soft); transform: translateY(-4px); }
.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.14), transparent 55%);
}
.work-thumb--barber { background: linear-gradient(135deg, #2a2320, #14100d); }
.work-thumb--restaurant { background: linear-gradient(135deg, #4a2417, #2b1410); }
.work-thumb--hotel { background: linear-gradient(135deg, #15402f, #0c241b); }
.work-thumb--law { background: linear-gradient(135deg, #16283f, #0c1624); }
.work-thumb--florist { background: linear-gradient(135deg, #46182f, #260e1b); }
.work-thumb--al { background: linear-gradient(135deg, #3a2a12, #1f160a); }
.thumb-label {
  position: absolute;
  top: 14px; left: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  z-index: 1;
}
.thumb-glyph { font-size: 46px; opacity: 0.85; transform: translateY(6px); }
.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}
.work-name { font-weight: 600; font-size: 16px; }
.work-meta .mono { font-size: 12px; color: var(--muted-2); }

/* ===== Diferencias ===== */
.dif-panel {
  background: var(--red);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.dif-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.dif-panel .section-title { color: #fff; margin-top: 0; }
.dif-panel .section-title em { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.dif-list { display: grid; gap: 22px; position: relative; z-index: 1; }
.dif-list > div { display: flex; gap: 18px; align-items: flex-start; }
.dif-list .mono {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
}
.dif-list p { color: rgba(255,255,255,0.92); font-size: 15.5px; }
.dif-list strong { color: #fff; display: block; font-size: 17px; margin-bottom: 2px; }

/* ===== Contacto ===== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.contacto-copy { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 440px; }
.contacto-direct { list-style: none; margin-top: 30px; display: grid; gap: 18px; }
.contacto-direct li { display: flex; flex-direction: column; gap: 3px; }
.contacto-direct .mono {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contacto-direct a { color: var(--paper); font-weight: 600; border-bottom: 1px solid var(--line-strong); width: fit-content; }
.contacto-direct a:hover { color: var(--red-bright); border-color: var(--red-bright); }

.contacto-form {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px);
  display: grid;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--paper); }
.field .opt { color: var(--muted-2); font-size: 12px; font-weight: 400; }
.field input, .field select, .field textarea {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--paper);
  transition: border-color 0.2s;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red-bright);
  outline: none;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a89f92' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select:invalid { color: var(--muted-2); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { text-align: center; font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand--footer { font-size: 18px; }
.brand--footer .brand-word { font-size: 22px; }
.footer-tag { font-size: 13px; color: var(--muted-2); }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { font-size: 14px; color: var(--muted); }
.footer-nav a:hover { color: var(--paper); }

/* ===== Reveal animations ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal]:nth-child(2) { transition-delay: 0.06s; }
[data-reveal]:nth-child(3) { transition-delay: 0.12s; }
[data-reveal]:nth-child(4) { transition-delay: 0.18s; }
[data-reveal]:nth-child(5) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .kicker-dot { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .dif-panel { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .hero-meta { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
/* ===== 404 ===== */
.nf { min-height: 100vh; display: flex; align-items: center; padding: 80px 0; }
.nf-code { color: var(--red-bright); letter-spacing: 0.18em; margin-bottom: 20px; }
.nf-title { font-family: var(--font-display); font-size: clamp(64px, 10vw, 130px); line-height: 0.95; text-transform: uppercase; font-weight: 400; }
.nf-copy { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 480px; margin-top: 24px; }
.nf-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .nf-inner > * { animation: nf-in 0.5s ease both; }
  .nf-inner > :nth-child(2) { animation-delay: 0.08s; }
  .nf-inner > :nth-child(3) { animation-delay: 0.16s; }
  .nf-inner > :nth-child(4) { animation-delay: 0.24s; }
}
@keyframes nf-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
