/* ============================================================
   Insider X — sistema visual
   Tema escuro, sóbrio, minimalista. Prestação de serviço premium.
   ============================================================ */

:root {
  /* Cor */
  --bg:          #0a0a0b;
  --bg-2:        #0f0f11;
  --surface:     #141416;
  --surface-2:   #1a1a1d;
  --text:        #f2f0ea;
  --muted:       #9b988f;
  --faint:       #5d5b55;
  --line:        rgba(255,255,255,0.085);
  --line-2:      rgba(255,255,255,0.16);
  --accent:      #c9a25f;   /* dourado sóbrio, usado com parcimônia */
  --accent-soft: rgba(201,162,95,0.14);

  /* Tipografia */
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  /* Métrica */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(80px, 11vw, 160px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0a0b; }

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

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

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 760px; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.04; }

.display {
  font-size: clamp(2.8rem, 7.2vw, 6.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.55; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  padding: 14px 24px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .35s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: #0a0a0b; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
.btn .arrow { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s ease, border-color .4s ease, padding .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 19px; letter-spacing: -0.03em; line-height: 1; }
.brand .x {
  color: var(--bg); background: var(--accent);
  width: 22px; height: 22px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; transform: none; margin-left: 0;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a.link { font-size: 14.5px; color: var(--muted); transition: color .25s; position: relative; }
.nav-links a.link:hover { color: var(--text); }
.nav-cta { font-size: 14px; padding: 10px 20px; }

.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(140px, 20vh, 220px); padding-bottom: var(--section-y); overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 80% at 70% 0%, #000 0%, transparent 70%);
  opacity: .5;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { margin-top: 28px; max-width: 16ch; }
.hero h1 .accent-word { color: var(--accent); font-style: italic; font-family: var(--serif); font-weight: 400; }
.hero-sub { margin-top: 32px; max-width: 52ch; }
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 64px; display: flex; gap: 48px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-meta .item .k { font-size: 13px; color: var(--faint); letter-spacing: 0.04em; }
.hero-meta .item .v { font-size: 15px; color: var(--text); margin-top: 4px; }

/* ---------- Serviços ---------- */
.services { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.svc-list { margin-top: 56px; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 80px 1fr 1.1fr auto; gap: 32px; align-items: center;
  padding: 32px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .4s cubic-bezier(.2,.7,.2,1);
}
.svc-row:hover { padding-left: 16px; }
.svc-row .num { font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
.svc-row .name { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 500; letter-spacing: -0.03em; }
.svc-row .desc { color: var(--muted); font-size: 16px; line-height: 1.5; }
.svc-row .go { color: var(--faint); transition: color .3s, transform .35s; }
.svc-row:hover .go { color: var(--accent); transform: translateX(4px); }

/* ---------- Manifesto / pull quote ---------- */
.manifesto { padding-block: var(--section-y); background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto .quote {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.12; letter-spacing: -0.02em;
  max-width: 20ch;
}
.manifesto .quote em { font-style: italic; color: var(--accent); }
.manifesto .sig { margin-top: 40px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.manifesto .sig .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Processo ---------- */
.process { padding-block: var(--section-y); }
.steps { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { padding: 32px 28px 36px; border-left: 1px solid var(--line); position: relative; transition: background .4s; }
.step:first-child { border-left: 0; padding-left: 0; }
.step:hover { background: rgba(255,255,255,0.018); }
.step .snum {
  font-family: var(--serif); font-size: 2.4rem; color: var(--accent);
  line-height: 1; margin-bottom: 24px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 500; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.step .tag {
  display: inline-block; margin-top: 18px; font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint);
}

/* ---------- Equipe ---------- */
.team { padding-block: var(--section-y); background: var(--bg-2); border-top: 1px solid var(--line); }
.team-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.member { padding: 32px 30px 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .35s, transform .35s cubic-bezier(.2,.7,.2,1); }
.member:hover { border-color: var(--line-2); transform: translateY(-3px); }
.member .m-num { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); line-height: 1; display: block; }
.member .m-role { color: var(--text); font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; margin-top: 26px; }
.member .m-desc { color: var(--muted); font-size: 15px; line-height: 1.55; margin-top: 10px; }

/* ---------- Contato ---------- */
.contact { padding-block: var(--section-y); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact h2 { margin-bottom: 20px; }
.contact .lead { max-width: 42ch; }
.address-block { margin-top: 44px; display: grid; gap: 28px; }
.addr-item .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.addr-item .v { font-size: 17px; color: var(--text); line-height: 1.5; }
.addr-item .v a:hover { color: var(--accent); }

/* Form */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.field input, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 15px 16px; color: var(--text);
  font-family: var(--sans); font-size: 15.5px; transition: border-color .25s, background .25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.form .btn-primary { justify-content: center; margin-top: 6px; }
.form-ok { color: var(--accent); font-size: 14.5px; display: none; align-items: center; gap: 8px; }
.form-ok.show { display: flex; }

.map { margin-top: 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.map image-slot { width: 100%; height: 220px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer .brand { font-size: 24px; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14.5px; transition: color .25s; }
.footer-links a:hover { color: var(--text); }
.footer-legal {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--faint); line-height: 1.6;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-left: 1px solid var(--line); }
  .step:nth-child(odd) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 36px; margin-top: 8px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .svc-row { grid-template-columns: 44px 1fr; gap: 8px 18px; padding: 26px 0; }
  .svc-row .num { grid-row: 1; }
  .svc-row .desc { grid-column: 2; }
  .svc-row .go { display: none; }
  .hero-meta { gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(odd) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 30px; }
  .step:first-child { border-top: 0; padding-top: 0; }
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
}
