/* ============================================================
   Cabra da Tech — Modelo MOBILE-FIRST (app-like)
   Clean & profissional · cores da marca (navy + laranja)
   Base = smartphone (~390px), enhanced para tablet/desktop
   Type: Space Grotesk (display) · Manrope (texto)
   ============================================================ */

:root {
  --navy: #0A3A66;
  --navy-700: #0d4a82;
  --navy-900: #072844;
  --orange: #C15810;
  --orange-600: #a8480a;
  --navy-tint: #eef3f9;
  --orange-tint: #fcefe4;

  --ink: #0A3A66;
  --body: #46515e;
  --muted: #6f7a87;
  --faint: #9aa4b1;
  --line: #e7ebf1;
  --line-soft: #eff2f6;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;

  --display: "Space Grotesk", system-ui, sans-serif;
  --textf: "Manrope", system-ui, sans-serif;

  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(10, 58, 102, .05), 0 4px 12px -4px rgba(10, 58, 102, .08);
  --shadow: 0 12px 30px -14px rgba(10, 58, 102, .22), 0 4px 12px -6px rgba(10, 58, 102, .10);
  --shadow-lg: 0 24px 50px -20px rgba(10, 58, 102, .3);

  --top-h: 84px;
  --tab-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 14px);
}

body {
  margin: 0;
  font-family: var(--textf);
  color: var(--body);
  background: var(--bg);
  line-height: 1.62;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* espaço para a tab bar fixa no mobile */
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

::selection {
  background: var(--orange);
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section--soft {
  background: var(--bg-soft);
}

/* ---------- shared ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
  border-radius: 2px;
}

.s-head {
  margin: 0 0 30px;
}

.s-head.center {
  text-align: center;
}

.s-head.center .eyebrow {
  justify-content: center;
}

.s-head h2 {
  font-size: clamp(26px, 7.5vw, 34px);
  letter-spacing: -.03em;
}

.s-head h2 em {
  font-style: normal;
  color: var(--orange);
}

.s-head p {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--muted);
}

/* botões — alvos de toque grandes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 24px;
  border-radius: 13px;
  transition: .2s ease;
  white-space: nowrap;
  min-height: 52px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(193, 88, 16, .7);
}

.btn--primary:active {
  transform: scale(.97);
}

.btn--navy {
  background: var(--navy);
  color: #fff;
}

.btn--navy:active {
  transform: scale(.97);
}

.btn--ghost {
  background: #fff;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn--ghost:active {
  transform: scale(.97);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.btn--block {
  width: 100%;
}

/* ============================================================
   TOP BAR (slim, mobile)
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--top-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: .3s;
}

.topbar.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .95);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .brand {
  display: flex;
  align-items: center;
  height: 70px;
}

.topbar .brand img {
  height: 66px;
  width: auto;
}

/* nav desktop — escondido no mobile */
.topnav {
  display: none;
}

.top-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-tint);
  color: var(--navy);
  transition: .2s;
}

.icon-btn:active {
  transform: scale(.94);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--navy);
}

/* ============================================================
   BOTTOM TAB BAR (app)
   ============================================================ */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  box-shadow: 0 -6px 24px -16px rgba(10, 58, 102, .3);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px 0;
  color: var(--muted);
  transition: .18s;
  position: relative;
}

.tab svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  transition: .18s;
}

.tab span {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}

.tab.active {
  color: var(--navy);
}

.tab.active svg {
  stroke: var(--navy);
}

/* item central destacado */
.tab--cta {
  margin-top: -18px;
}

.tab--cta .bubble {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 22px -8px rgba(193, 88, 16, .75);
  transition: .18s;
}

.tab--cta .bubble svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2.2;
}

.tab--cta span {
  color: var(--orange);
  margin-top: 2px;
}

.tab--cta:active .bubble {
  transform: scale(.92);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--top-h) + 30px);
  padding-bottom: 42px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--navy-tint), transparent 68%);
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 7px 14px 7px 11px;
  border-radius: 100px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-tint);
}

.hero h1 {
  font-size: clamp(34px, 9.5vw, 46px);
  letter-spacing: -.035em;
}

.hero h1 .accent {
  color: var(--orange);
}

.hero .lead {
  margin-top: 18px;
  font-size: 17.5px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 26px;
}

.hero-trust {
  margin-top: 32px;
}

.hero-trust .label {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.hero-trust .names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.hero-trust .names span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
  opacity: .6;
}

/* hero visual — janela do app (mock) */
.hero-visual {
  position: relative;
  margin-top: 42px;
  padding: 42px 0 36px;
}

.window {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcfd;
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dde3ea;
  display: block;
}

.window-bar i:nth-child(1) {
  background: #f0a368;
}

.window-bar .url {
  margin-left: 10px;
  font-family: var(--display);
  font-size: 11.5px;
  color: var(--faint);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 4px 11px;
}

.window-body {
  padding: 20px;
}

.wb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wb-head h4 {
  font-size: 16px;
}

.wb-head .pill {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  color: #1b8a5b;
  background: #e7f6ee;
  padding: 5px 11px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wb-head .pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22a96b;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 16px;
}

.metric {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
}

.metric .k {
  font-family: var(--display);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .04em;
}

.metric .v {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  margin-top: 3px;
}

.metric .v small {
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
  margin-left: 2px;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 104px;
  padding: 14px 15px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.chart .bar {
  flex: 1;
  background: linear-gradient(180deg, #1b5e9e, var(--navy));
  border-radius: 5px 5px 2px 2px;
  opacity: .9;
  transition: height .8s cubic-bezier(.2, .8, .2, 1);
}

.chart .bar.hi {
  background: linear-gradient(180deg, #e08644, var(--orange));
}

/* code card flutuante */
.code-card {
  position: absolute;
  left: -6px;
  bottom: 0;
  z-index: 3;
  width: 226px;
  background: var(--navy-900);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 15px 17px;
  font-family: "Space Grotesk", monospace;
  font-size: 12px;
  line-height: 1.8;
  color: #9fc7ec;
}

.code-card .ln {
  white-space: nowrap;
}

.code-card .c-key {
  color: #f0a368;
}

.code-card .c-str {
  color: #7fd1a8;
}

.code-card .c-fn {
  color: #fff;
}

.code-card .c-mut {
  color: #5c789a;
}

.hero-goat {
  position: absolute;
  right: 4px;
  top: 0;
  width: 92px;
  z-index: 4;
  transform: rotate(4deg);
  filter: drop-shadow(0 12px 18px rgba(10, 58, 102, .22));
}

/* ============================================================
   SERVICES — grid de toque
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 18px;
  transition: .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc:active {
  transform: scale(.985);
  background: var(--bg-soft);
}

.svc .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc .ic svg {
  width: 24px;
  height: 24px;
  stroke: var(--navy);
}

.svc h3 {
  font-size: 16.5px;
}

.svc p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   TECH — pills scroll + grid
   ============================================================ */
.tech-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  margin: 0 -20px 18px;
  padding-left: 20px;
  padding-right: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tech-tabs::-webkit-scrollbar {
  display: none;
}

.tech-tab {
  flex: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  padding: 9px 17px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: .2s;
}

.tech-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tech-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: .22s;
}

.tech-card.show {
  opacity: 1;
  transform: none;
}

.tech-card .badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--orange-tint);
  color: var(--orange);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.tech-card h4 {
  font-size: 14.5px;
  line-height: 1.2;
}

.tech-card span {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

/* ============================================================
   PROCESS — timeline vertical
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 8px;
}

.tl-step {
  position: relative;
  padding: 0 0 26px 52px;
}

.tl-step:last-child {
  padding-bottom: 0;
}

.tl-step::before {
  /* linha */
  content: "";
  position: absolute;
  left: 19px;
  top: 6px;
  bottom: -6px;
  width: 2px;
  background: var(--line);
}

.tl-step:last-child::before {
  display: none;
}

.tl-step .num {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  z-index: 1;
}

.tl-step.dot-on .num {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.tl-step h4 {
  font-size: 17px;
  margin-bottom: 5px;
}

.tl-step p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ============================================================
   PROJECTS — carrossel snap
   ============================================================ */
.proj-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -20px;
  padding: 4px 20px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.proj-rail::-webkit-scrollbar {
  display: none;
}

.proj {
  flex: 0 0 84%;
  max-width: 340px;
  scroll-snap-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.proj .shot {
  position: relative;
  background: var(--navy-tint);
  height: 190px;
}

.proj image-slot {
  width: 100%;
  height: 100%;
}

.proj .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.proj .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 58, 102, .92);
  padding: 5px 11px;
  border-radius: 100px;
}

.proj-body {
  padding: 18px 20px 20px;
}

.proj-body h3 {
  font-size: 19px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.proj-body h3 svg {
  width: 18px;
  height: 18px;
  stroke: var(--faint);
  flex: none;
}

.proj-body p {
  font-size: 14px;
  color: var(--muted);
}

.rail-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.rail-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: .2s;
}

.rail-dots button.active {
  background: var(--orange);
  width: 22px;
  border-radius: 4px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.section--navy {
  background: var(--navy);
  color: #cfe0ef;
}

.section--navy .s-head h2 {
  color: #fff;
}

.section--navy .eyebrow {
  color: var(--orange-tint);
}

.section--navy .eyebrow::before {
  background: var(--orange-tint);
}

.tst-wrap {
  position: relative;
}

.tst-track {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.tst-rail {
  display: flex;
  width: 100%;
  transition: transform .5s cubic-bezier(.4, 0, .1, 1);
}

.tst {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 2px;
}

.tst .quote-mark {
  font-family: var(--display);
  font-size: 52px;
  line-height: .5;
  color: var(--orange);
  display: block;
  margin-bottom: 16px;
}

.tst blockquote {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.42;
  color: #fff;
  margin: 0 0 22px;
  letter-spacing: -.01em;
}

.tst .who {
  display: flex;
  align-items: center;
  gap: 13px;
}

.tst .who .av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  color: var(--orange-tint);
  font-size: 16px;
}

.tst .who b {
  display: block;
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
}

.tst .who span {
  font-size: 13px;
  color: #9bb6d0;
}

.tst-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.tst-dots {
  display: flex;
  gap: 7px;
}

.tst-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  transition: .2s;
}

.tst-dots button.active {
  background: var(--orange);
  width: 22px;
  border-radius: 4px;
}

.tst-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tst-arrow:active {
  background: rgba(255, 255, 255, .1);
}

.tst-arrow svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-photo {
  position: relative;
  margin-bottom: 30px;
  max-width: 340px;
}

.about-photo image-slot {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-photo img.about-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  display: block;
  object-fit: cover;
}

.about-photo .badge-card {
  position: absolute;
  right: -8px;
  bottom: 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 15px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-photo .badge-card img {
  width: 34px;
}

.about-photo .badge-card b {
  font-family: var(--display);
  font-size: 14px;
  display: block;
}

.about-photo .badge-card span {
  font-size: 11.5px;
  color: #9bb6d0;
}

.about .role {
  font-family: var(--display);
  font-weight: 600;
  color: var(--orange);
  font-size: 15px;
  margin: 6px 0 18px;
}

.about p {
  font-size: 16px;
  color: var(--body);
  margin-bottom: 15px;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.about-points li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--body);
}

.about-points li svg {
  width: 21px;
  height: 21px;
  flex: none;
  stroke: var(--orange);
  margin-top: 1px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-info h2 {
  color: var(--ink);
}

.contact-card {
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--textf);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  transition: .18s;
  min-height: 52px;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 4px var(--navy-tint);
}

.field.err input,
.field.err select,
.field.err textarea {
  border-color: #d8472f;
  background: #fdf3f1;
}

.field .msg {
  font-size: 12.5px;
  color: #d8472f;
  margin-top: 6px;
  display: none;
  font-weight: 500;
}

.field.err .msg {
  display: block;
}

.contact-card .btn {
  margin-top: 6px;
}

.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.cf-turnstile {
  margin: 10px 0 4px;
}

.contact-quick {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.contact-quick a,
.contact-quick div {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15.5px;
  color: var(--body);
}

.contact-quick .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-quick .ic svg {
  width: 21px;
  height: 21px;
  stroke: var(--navy);
}

.contact-quick small {
  display: block;
  color: var(--faint);
  font-size: 11.5px;
  font-family: var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-quick b {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--display);
}

.form-success {
  text-align: center;
  padding: 26px 8px;
}

.form-success .check {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--orange-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.form-success .check svg {
  width: 30px;
  height: 30px;
  stroke: var(--orange);
}

.form-success h3 {
  font-size: 21px;
  margin-bottom: 9px;
}

.form-success p {
  color: var(--muted);
  font-size: 15px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-900);
  color: #9bb6d0;
  padding: 44px 0 30px;
}

.footer .brand img {
  height: 72px;
  margin-bottom: 18px;
}

.footer p.desc {
  font-size: 14px;
  color: #88a3bf;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 26px;
}

.footer-links a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14.5px;
  color: #cfe0ef;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom p {
  font-size: 12.5px;
  color: #6f8aa6;
}

.footer-bottom .tag {
  font-family: var(--display);
  font-style: italic;
  color: var(--orange-tint);
  font-size: 13px;
}

/* ============================================================
   REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

[data-reveal][data-delay="1"] {
  transition-delay: .07s;
}

[data-reveal][data-delay="2"] {
  transition-delay: .14s;
}

[data-reveal][data-delay="3"] {
  transition-delay: .21s;
}

[data-reveal][data-delay="4"] {
  transition-delay: .28s;
}

@media (prefers-reduced-motion:reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   ===============  TABLET (>=720px)  =========================
   ============================================================ */
@media (min-width:720px) {
  .wrap {
    max-width: 720px;
  }

  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .proj {
    flex-basis: 48%;
  }

  .hero h1 {
    font-size: 52px;
  }
}

/* ============================================================
   ===============  DESKTOP (>=1000px)  =======================
   vira layout web: top nav, sem tab bar inferior
   ============================================================ */
@media (min-width:1000px) {
  body {
    font-size: 17px;
    padding-bottom: 0;
  }

  html {
    scroll-padding-top: 84px;
  }

  .wrap {
    max-width: 1140px;
    padding: 0 32px;
  }

  :root {
    --top-h: 84px;
  }

  .section {
    padding: 96px 0;
  }

  /* esconde tab bar, mostra nav topo */
  .tabbar {
    display: none;
  }

  .topnav {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .topnav a {
    font-family: var(--display);
    font-weight: 500;
    font-size: 15px;
    color: var(--body);
    padding: 9px 14px;
    border-radius: 8px;
    transition: .18s;
    position: relative;
  }

  .topnav a:hover {
    color: var(--navy);
    background: var(--navy-tint);
  }

  .topnav a.active {
    color: var(--navy);
  }

  .topnav a.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
  }

  .top-cta .icon-btn {
    display: none;
  }

  .top-cta .btn {
    display: inline-flex;
  }

  /* hero em 2 colunas */
  .hero {
    padding-top: calc(var(--top-h) + 56px);
    padding-bottom: 80px;
  }

  .hero::before {
    width: 680px;
    height: 680px;
    top: -260px;
    right: -180px;
  }

  .hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero .lead {
    font-size: 19px;
    max-width: 520px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
  }

  .hero-visual {
    margin-top: 0;
    padding: 54px 0 44px;
  }

  .code-card {
    left: -30px;
    width: 250px;
    font-size: 12.5px;
  }

  .hero-goat {
    width: 110px;
    right: -12px;
  }

  .s-head {
    max-width: 700px;
    margin-bottom: 48px;
  }

  .s-head h2 {
    font-size: 42px;
  }

  .s-head p {
    font-size: 18px;
  }

  .svc-grid {
    gap: 20px;
  }

  .svc {
    padding: 28px 26px;
    gap: 14px;
  }

  .svc:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
  }

  .svc .ic {
    width: 52px;
    height: 52px;
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .tech-tabs {
    margin: 0 0 30px;
    padding: 0 0 4px;
    overflow: visible;
    flex-wrap: wrap;
  }

  /* timeline volta a horizontal 5 colunas */
  .timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-left: 0;
    gap: 0;
  }

  .tl-step {
    padding: 0 18px;
  }

  .tl-step::before {
    left: 60px;
    right: -18px;
    top: 19px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .tl-step:last-child::before {
    display: none;
  }

  .tl-step .num {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 20px;
    margin-bottom: 20px;
  }

  /* projetos: grid 2x2, sem snap */
  .proj-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .proj {
    flex: none;
    max-width: none;
  }

  .proj:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
  }

  .proj .shot {
    height: 230px;
  }

  .rail-dots {
    display: none;
  }

  /* depoimentos centralizados */
  .tst-wrap {
    max-width: 820px;
    margin: 0 auto;
  }

  .tst blockquote {
    font-size: 28px;
  }

  /* sobre em 2 colunas */
  .about-wrap {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 56px;
    align-items: center;
  }

  .about-photo {
    margin-bottom: 0;
    max-width: none;
  }

  .about-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 26px;
  }

  /* contato em 2 colunas */
  .contact-wrap {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 52px;
    align-items: start;
  }

  .contact-card {
    margin-top: 0;
    padding: 32px;
  }

  .contact-quick {
    margin-top: 32px;
  }

  .field .row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  /* footer expandido */
  .footer {
    padding: 64px 0 34px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .footer p.desc {
    max-width: 340px;
  }
}

@media (min-width:1000px) {
  .field.row-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
    margin-bottom: 0;
  }
}