:root {
  --bg: #0b0f17;
  --bg-2: #101624;
  --card: #141b2b;
  --line: #222c42;
  --text: #eaf0f7;
  --muted: #93a1b8;
  --accent: #ff8a3d;
  --accent-2: #ffa86b;
  --on-accent: #1a0d02;
  --ok: #86efac;
  --radius: 14px;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 15, 23, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; color: var(--text); font-size: 1.05rem; }
.brand span { color: var(--accent); font-weight: 600; margin-left: -6px; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #ff5d5d);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.nav__links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: .92rem; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__links .nav__cta {
  color: var(--on-accent); background: var(--accent); font-weight: 700;
  padding: 7px 14px; border-radius: 9px;
}
.nav__links .nav__cta:hover { background: var(--accent-2); color: var(--on-accent); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(64px, 12vw, 136px) 0 clamp(56px, 9vw, 96px);
  background:
    radial-gradient(900px 440px at 88% -10%, rgba(255, 138, 61, .16), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(255, 93, 93, .07), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.eyebrow { color: var(--accent); font-size: .95rem; margin-bottom: 14px; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.02em; max-width: 960px; }
h1 em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 22px; max-width: 660px; font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; font-size: .86rem; color: var(--muted); }
.hero__proof b { color: var(--accent); font-weight: 700; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: 600 .95rem var(--sans);
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
}
.btn:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.sec:nth-of-type(even) { background: var(--bg-2); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 28px; letter-spacing: -.01em; }
h2 .mono { color: var(--accent); font-size: .85em; margin-right: 8px; }
.lead { color: var(--muted); max-width: 660px; margin: -12px 0 36px; }

/* ---------- serviços ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .18s, transform .18s;
}
.service:hover { border-color: rgba(255, 138, 61, .5); transform: translateY(-2px); }
.service__icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255, 138, 61, .12); color: var(--accent); font-size: 1.25rem; margin-bottom: 14px;
}
.service h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .95rem; }

/* ---------- filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  font: 600 .85rem var(--sans); color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.is-on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

/* ---------- portfólio ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 138, 61, .5); }

/* moldura de janela para os prints */
.shot {
  position: relative; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #111a2c, #182640 60%, #111a2c);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.shot::before {
  content: attr(data-initials);
  position: absolute; font: 800 5rem var(--mono); color: rgba(255, 138, 61, .1);
}
.shot img { position: absolute; inset: 28px 0 0 0; width: 100%; height: calc(100% - 28px); object-fit: cover; object-position: top; }
.shot__bar { position: absolute; top: 0; left: 0; right: 0; height: 28px; background: #0a101c; display: flex; align-items: center; gap: 6px; padding-left: 12px; z-index: 1; }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3750; }
.shot em { font: .78rem var(--mono); color: var(--muted); font-style: normal; z-index: 1; margin-top: 28px; }
a.shot { text-decoration: none; }

.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .93rem; }
.card p strong { color: var(--text); font-weight: 600; }
.card__link { font: .8rem var(--mono); color: var(--accent); margin-top: 2px; }

.badge {
  align-self: flex-start;
  font: 600 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ok); background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .3);
  border-radius: 6px; padding: 2px 8px;
}
.badge--wip { color: #fde68a; background: rgba(250, 204, 21, .1); border-color: rgba(250, 204, 21, .3); }
.badge--off { color: var(--muted); background: rgba(147, 161, 184, .1); border-color: rgba(147, 161, 184, .3); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.tags li {
  font: .76rem var(--mono); color: var(--accent-2);
  background: rgba(255, 138, 61, .08); border: 1px solid rgba(255, 138, 61, .22);
  border-radius: 999px; padding: 2px 10px;
}

/* ---------- processo ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps b { color: var(--accent); font-size: .9rem; }
.steps h3 { font-size: 1.05rem; margin: 6px 0 6px; }
.steps p { color: var(--muted); font-size: .92rem; }

/* ---------- diferenciais ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 36px; }
.why h3 { font-size: 1.05rem; margin-bottom: 6px; padding-left: 14px; border-left: 3px solid var(--accent); }
.why p { color: var(--muted); font-size: .95rem; padding-left: 17px; }

/* ---------- tecnologias ---------- */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 32px; }
.skills h3 { font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.skills .tags { margin-top: 0; }
.skills .tags li { font-size: .82rem; padding: 4px 12px; }

/* ---------- contato ---------- */
.sec--contact { border-bottom: 0; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact h2 { margin-bottom: 28px; }
.form {
  display: grid; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--text); }
.form .opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  font: 400 .95rem var(--sans); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 100%;
}
.form textarea { resize: vertical; }
.form__hint { color: var(--muted); font-size: .8rem; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .8rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .service { transition: none; }
}
