/*
  Ultron Labs - Site institucional e portfólio
  Edite as variáveis abaixo para alterar rapidamente cores, espaçamentos e aparência geral.
*/
:root {
  --bg: #050509;
  --bg-soft: #0c0c15;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.095);
  --border: rgba(255, 255, 255, 0.13);
  --text: #f7f4ff;
  --muted: #b9b5c9;
  --muted-2: #8d879f;
  --purple: #8b35ff;
  --violet: #b45cff;
  --pink: #ff4db8;
  --blue: #3478ff;
  --cyan: #48e5ff;
  --green: #52ffad;
  --warning: #ffcc3d;
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
  --container: 1180px;
  --section: clamp(86px, 9vw, 150px);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(255, 77, 184, 0.35);
  color: #fff;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: #06060a;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section-pad {
  position: relative;
  padding-block: var(--section);
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at 46% 12%, rgba(139, 53, 255, 0.25), transparent 26%),
    radial-gradient(circle at 78% 62%, rgba(255, 77, 184, 0.13), transparent 28%),
    radial-gradient(circle at 18% 52%, rgba(52, 120, 255, 0.12), transparent 25%),
    #050509;
}

.grid-layer {
  position: absolute;
  inset: 0;
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1.2px);
  background-size: 88px 88px, 88px 88px, 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.92) 58%, rgba(0,0,0,0.35) 100%);
}

.grid-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, transparent 0 47%, rgba(255,255,255,0.08) 48%, transparent 51%);
  background-size: 88px 88px;
}

.orb {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.4;
  transform: translate3d(0,0,0);
}

.orb-one {
  top: -130px;
  left: 20%;
  background: var(--purple);
}

.orb-two {
  right: -120px;
  top: 34%;
  background: var(--pink);
}

.orb-three {
  left: -120px;
  bottom: 12%;
  background: var(--blue);
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 18px;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

.header.is-scrolled {
  padding-block: 10px;
  background: rgba(5, 5, 9, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 156px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
}

.nav-menu a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(247, 244, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 10px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.36), transparent);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(130%);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 18px 45px rgba(139, 53, 255, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 22px 60px rgba(255, 77, 184, 0.42);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn-small {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 0.84rem;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 132px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(34px, 5vw, 82px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #f1d9ff;
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--blue));
}

.hero-title,
.section-head h2,
.cta-box h2 {
  margin: 0;
  color: #fff;
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero-title {
  max-width: 850px;
  font-size: clamp(3.3rem, 7.2vw, 7.4rem);
}

.hero-title::selection,
.section-head h2::selection {
  background: rgba(139, 53, 255, 0.6);
}

.hero-content {
  position: relative;
}

.hero-content::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 52%;
  top: 4%;
  left: -5%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 77, 184, 0.28), rgba(139, 53, 255, 0.18), transparent 72%);
  filter: blur(34px);
}

.hero-subtitle {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof span {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.055);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  perspective: 900px;
}

.terminal-card,
.mini-card,
.service-card,
.timeline-item,
.project-card,
.tech-panel,
.why-card,
.team-placeholder,
.cta-box {
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035)),
    rgba(255,255,255,0.055);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.terminal-card {
  position: absolute;
  inset: 82px 22px auto auto;
  width: min(470px, 88%);
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  transform: rotateX(8deg) rotateY(-12deg) rotateZ(2deg);
}

.terminal-card::before,
.service-card::before,
.project-card::before,
.cta-box::before,
.tech-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(180,92,255,0.7), rgba(255,77,184,0.25), rgba(52,120,255,0.52));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
}

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

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 20px rgba(255, 77, 184, 0.7);
}

.terminal-top span:nth-child(2) {
  background: var(--warning);
  box-shadow: 0 0 20px rgba(255, 204, 61, 0.6);
}

.terminal-top span:nth-child(3) {
  background: var(--green);
  box-shadow: 0 0 20px rgba(82, 255, 173, 0.6);
}

.terminal-lines {
  padding: 26px;
}

.terminal-lines p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.78);
  font-size: 1.04rem;
  line-height: 1.5;
}

.terminal-lines p::before {
  content: ">";
  margin-right: 10px;
  color: var(--pink);
}

.terminal-lines strong {
  color: #fff;
}

.terminal-lines em {
  color: var(--green);
  font-style: normal;
}

.terminal-lines b {
  color: var(--cyan);
}

.mini-card {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 118px;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.card-sites { top: 30px; right: 64px; }
.card-ai { top: 222px; left: 0; }
.card-auto { top: 478px; left: 84px; }
.card-social { right: 0; top: 445px; }
.card-int { right: 20px; top: 315px; }
.card-sys { left: 80px; top: 104px; }

.hero-shape {
  position: absolute;
  z-index: -1;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(139,53,255,0.84), rgba(255,77,184,0.2));
  filter: drop-shadow(0 30px 80px rgba(139,53,255,0.35));
}

.shape-a {
  width: 340px;
  height: 340px;
  right: 110px;
  top: 210px;
  transform: rotate(34deg) skew(-12deg);
  opacity: 0.72;
}

.shape-b {
  width: 150px;
  height: 150px;
  left: 70px;
  bottom: 32px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(52,120,255,0.65), rgba(72,229,255,0.1));
}

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

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.section-head.centered .eyebrow {
  justify-content: center;
}

.section-head h2,
.cta-box h2 {
  font-size: clamp(2.4rem, 5vw, 5.1rem);
}

.section-head p,
.cta-box p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 58px;
}

.service-card {
  position: relative;
  min-height: 290px;
  padding: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 77, 184, 0.4);
  background:
    radial-gradient(circle at top right, rgba(255,77,184,0.2), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.04));
}

.icon-box {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 53, 255, 0.38), rgba(255, 77, 184, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.11), 0 0 30px rgba(139, 53, 255, 0.2);
  font-size: 1.65rem;
}

.service-card h3,
.timeline-item h3,
.project-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.service-card p,
.timeline-item p,
.project-card p,
.why-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.process-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.process .section-head {
  position: sticky;
  top: 120px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline-line {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 34px;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--pink), var(--blue));
  transform-origin: top;
  opacity: 0.8;
}

.timeline-item {
  position: relative;
  min-height: 170px;
  margin-left: 72px;
  padding: 26px;
  border-radius: var(--radius);
}

.timeline-item span {
  position: absolute;
  left: -72px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 0 40px rgba(139, 53, 255, 0.28);
}

.projects {
  overflow: hidden;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 58px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.project-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(255,77,184,0.24), transparent 46%), rgba(255,255,255,0.045);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.06);
  filter: saturate(1.16);
}

.status {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.status-dev { background: rgba(82, 255, 173, 0.16); color: #a8ffd6; }
.status-evo { background: rgba(52, 120, 255, 0.18); color: #afcaff; }
.status-soon { background: rgba(255, 77, 184, 0.16); color: #ffb4e1; }

.project-body {
  padding: 26px;
}

.project-category {
  margin: 0 0 10px !important;
  color: #e6c7ff !important;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tech-list span,
.marquee-track span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.055);
  font-weight: 850;
}

.tech-list span {
  padding: 8px 10px;
  font-size: 0.78rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tech-panel {
  position: relative;
  padding: clamp(34px, 6vw, 72px) 0;
  border-radius: clamp(28px, 4vw, 48px);
  overflow: hidden;
}

.tech-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(139,53,255,0.2), transparent 45%);
}

.marquee {
  position: relative;
  width: 100%;
  margin-top: 52px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.92rem;
  white-space: nowrap;
  box-shadow: inset 0 0 22px rgba(139,53,255,0.12);
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 58px;
}

.why-card {
  min-height: 172px;
  padding: 24px;
  border-radius: 24px;
}

.why-card:nth-child(1),
.why-card:nth-child(5) {
  grid-column: span 2;
}

.why-card span {
  display: inline-flex;
  color: transparent;
  background: linear-gradient(135deg, var(--violet), var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 0.9rem;
  font-weight: 950;
}

.why-card p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 520px;
}

.team-placeholder {
  position: absolute;
  inset: 30px 30px 30px 0;
  display: grid;
  place-items: center;
  border-radius: 44px;
  overflow: hidden;
}

.team-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,77,184,0.11));
}

.team-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-chip {
  position: absolute;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 20px 55px rgba(0,0,0,0.35);
}

.chip-one { left: 28px; top: 42px; }
.chip-two { right: 0; top: 52%; }
.chip-three { left: 8px; bottom: 54px; }

.about .btn {
  margin-top: 30px;
}

.cta {
  padding-top: 70px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 84px);
  border-radius: clamp(30px, 4vw, 54px);
  text-align: center;
  background:
    radial-gradient(circle at 25% 0%, rgba(255,77,184,0.23), transparent 38%),
    radial-gradient(circle at 80% 70%, rgba(52,120,255,0.2), transparent 38%),
    linear-gradient(135deg, rgba(139,53,255,0.18), rgba(255,255,255,0.04));
}

.cta-box h2 {
  max-width: 930px;
  margin-inline: auto;
}

.cta-box p {
  max-width: 710px;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.cta-glow {
  position: absolute;
  inset: auto auto -80px 50%;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 77, 184, 0.32);
  filter: blur(70px);
}

.footer {
  padding: 70px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
}

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

.footer p,
.footer a {
  color: var(--muted);
}

.footer-brand p {
  max-width: 300px;
  line-height: 1.7;
}

.footer h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 0.95rem;
}

.footer a {
  display: block;
  margin-top: 10px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  margin: 0;
  color: #fff;
  font-weight: 850;
}

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-card,
.reveal-project {
  will-change: transform, opacity;
}

@media (max-width: 1080px) {
  .nav-cta {
    display: none;
  }

  .hero-grid,
  .process-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 540px;
    order: -1;
  }

  .terminal-card {
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotateX(8deg) rotateY(-10deg) rotateZ(2deg);
  }

  .process .section-head {
    position: static;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-card,
  .why-card:nth-child(1),
  .why-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 102;
  }

  .nav {
    gap: 12px;
  }

  .nav-menu {
    position: fixed;
    inset: 76px 14px auto 14px;
    z-index: 101;
    display: grid;
    justify-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(10, 10, 18, 0.92);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-menu a {
    padding: 14px 16px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-title {
    font-size: clamp(3rem, 13vw, 5.2rem);
  }

  .hero-visual {
    min-height: 430px;
  }

  .terminal-card {
    inset: 30px auto auto 50%;
    width: min(390px, 92%);
    min-height: 300px;
  }

  .terminal-lines p {
    font-size: 0.94rem;
  }

  .mini-card {
    min-width: auto;
    min-height: 44px;
    padding: 12px 14px;
    font-size: 0.86rem;
  }

  .card-sites { top: 0; right: 12px; }
  .card-ai { top: 148px; left: 0; }
  .card-auto { top: 362px; left: 14px; }
  .card-social { right: 0; top: 334px; }
  .card-int { right: 12px; top: 220px; }
  .card-sys { left: 28px; top: 58px; }

  .shape-a {
    width: 230px;
    height: 230px;
    right: 60px;
    top: 148px;
  }

  .shape-b {
    width: 110px;
    height: 110px;
  }

  .services-grid,
  .projects-grid,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .timeline-item {
    margin-left: 58px;
  }

  .timeline-line {
    left: 26px;
  }

  .timeline-item span {
    left: -58px;
    width: 52px;
    height: 52px;
    border-radius: 17px;
    font-size: 0.82rem;
  }

  .about-visual {
    min-height: 430px;
  }

  .team-placeholder {
    inset: 20px 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .section-pad {
    padding-block: 82px;
  }

  .brand {
    min-width: 140px;
  }

  .hero-actions,
  .cta-actions,
  .project-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-proof span {
    width: 100%;
    text-align: center;
  }

  .section-head h2,
  .cta-box h2 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .section-head.centered {
    text-align: left;
  }

  .section-head.centered .eyebrow {
    justify-content: flex-start;
  }

  .hero-visual {
    min-height: 370px;
  }

  .terminal-card {
    width: 100%;
    min-height: 270px;
  }

  .terminal-lines {
    padding: 20px;
  }

  .card-social,
  .card-auto {
    display: none;
  }

  .cta-box {
    padding-inline: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/*
  Ajustes solicitados: identidade visual oficial da Ultron, hero mais equilibrado
  e refinamentos de responsividade para Android/iOS.
*/
:root {
  --acid: #d7ea00;
  --header-height: 82px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.brand img,
.footer-brand img {
  width: clamp(142px, 13vw, 190px);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(215, 234, 0, 0.12));
}

.brand {
  min-width: clamp(142px, 13vw, 190px);
}

.nav-menu .mobile-menu-cta {
  display: none;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

.hero-title {
  max-width: 720px;
  font-size: clamp(2.7rem, 4.65vw, 4.9rem);
  line-height: 1.01;
  letter-spacing: -0.058em;
}

.hero-subtitle {
  max-width: 620px;
  font-size: clamp(1rem, 1.24vw, 1.18rem);
  line-height: 1.72;
}

.hero-content::before {
  width: 76%;
  height: 46%;
  opacity: 0.85;
}

.terminal-card {
  width: min(450px, 88%);
  min-height: 330px;
}

.terminal-lines p {
  font-size: 0.98rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 72%, var(--acid) 145%);
}

.eyebrow::before {
  background: linear-gradient(90deg, var(--acid), var(--purple), var(--pink), var(--blue));
}

@media (min-width: 921px) and (max-width: 1080px) {
  .nav-cta {
    display: inline-flex;
  }

  .nav-menu a {
    padding-inline: 10px;
    font-size: 0.84rem;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-content {
    max-width: 800px;
  }

  .hero-visual {
    order: initial;
    min-height: 480px;
  }
}

@media (max-width: 920px) {
  .nav-cta {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --section: 92px;
  }

  .header {
    padding-block: 12px;
  }

  .header.is-scrolled {
    padding-block: 8px;
  }

  .nav {
    min-height: 54px;
  }

  .brand,
  .brand img {
    width: 148px;
    min-width: 148px;
  }

  .nav-menu {
    inset: calc(68px + env(safe-area-inset-top)) 14px auto 14px;
    max-height: calc(100svh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-color: rgba(255, 255, 255, 0.14);
    background:
      radial-gradient(circle at top right, rgba(255, 77, 184, 0.16), transparent 44%),
      rgba(8, 8, 14, 0.94);
    backdrop-filter: blur(22px);
  }

  .nav-menu a {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
  }

  .nav-menu .mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 14px 35px rgba(139, 53, 255, 0.28);
  }

  .hero {
    min-height: auto;
    padding-top: 108px;
  }

  .hero-title {
    max-width: 680px;
    font-size: clamp(2.35rem, 9.4vw, 4.05rem);
    line-height: 1.03;
  }

  .hero-subtitle {
    max-width: 580px;
    margin-top: 22px;
    font-size: 1.02rem;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-proof {
    margin-top: 22px;
  }

  .hero-visual {
    min-height: 390px;
    margin-top: 4px;
  }

  .terminal-card {
    inset: 24px auto auto 50%;
    width: min(390px, 94%);
    min-height: 280px;
    transform: translateX(-50%) rotateX(5deg) rotateY(-6deg) rotateZ(1deg);
  }

  .terminal-lines {
    padding: 22px;
  }

  .terminal-lines p {
    margin-bottom: 14px;
    font-size: 0.9rem;
  }

  .mini-card {
    min-height: 40px;
    padding: 10px 13px;
    font-size: 0.8rem;
  }
}

@media (max-width: 680px) {
  .hero-grid {
    gap: 26px;
  }

  .hero-title {
    max-width: 560px;
  }

  .services-grid,
  .projects-grid,
  .why-grid,
  .footer-grid {
    gap: 14px;
  }

  .service-card,
  .project-body,
  .timeline-item,
  .why-card {
    padding: 22px;
  }

  .project-actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .section-pad {
    padding-block: 72px;
  }

  .brand,
  .brand img {
    width: 132px;
    min-width: 132px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .hero {
    padding-top: 98px;
  }

  .eyebrow {
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.7rem;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }

  .eyebrow::before {
    width: 24px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.08rem, 10.4vw, 3.05rem);
    line-height: 1.04;
    letter-spacing: -0.048em;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero-proof {
    display: none;
  }

  .hero-visual {
    min-height: 315px;
    overflow: hidden;
  }

  .terminal-card {
    top: 18px;
    width: min(340px, 96%);
    min-height: 230px;
    border-radius: 22px;
    transform: translateX(-50%);
  }

  .terminal-top {
    padding: 14px;
  }

  .terminal-lines {
    padding: 16px;
  }

  .terminal-lines p {
    margin-bottom: 10px;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .mini-card {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.72rem;
    border-radius: 999px;
  }

  .card-sites { top: 0; right: 18px; }
  .card-ai { top: 130px; left: 0; }
  .card-sys { left: 8px; top: 48px; }
  .card-int,
  .card-auto,
  .card-social {
    display: none;
  }

  .shape-a {
    width: 185px;
    height: 185px;
    right: 52px;
    top: 120px;
    opacity: 0.58;
  }

  .shape-b {
    width: 90px;
    height: 90px;
    left: 42px;
    bottom: 28px;
    opacity: 0.78;
  }

  .section-head h2,
  .cta-box h2 {
    font-size: clamp(2rem, 10.5vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
  }

  .section-head p,
  .cta-box p {
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .services-grid,
  .projects-grid,
  .why-grid {
    margin-top: 34px;
  }

  .service-card {
    border-radius: 22px;
  }

  .icon-box {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 15px;
  }

  .timeline {
    gap: 14px;
  }

  .timeline-item {
    min-height: auto;
    margin-left: 48px;
    border-radius: 22px;
  }

  .timeline-line {
    left: 22px;
  }

  .timeline-item span {
    left: -48px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .project-media {
    aspect-ratio: 16 / 10;
  }

  .status {
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    font-size: 0.68rem;
  }

  .tech-panel {
    margin-inline: -2px;
    padding: 30px 0;
    border-radius: 24px;
  }

  .marquee {
    margin-top: 30px;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  .marquee-track span {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  .about-visual {
    min-height: 310px;
  }

  .team-placeholder {
    inset: 8px 0;
    border-radius: 26px;
  }

  .about-chip {
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .chip-two {
    right: 6px;
  }

  .cta-box {
    padding: 30px 20px;
    border-radius: 26px;
  }

  .footer {
    padding-top: 50px;
  }
}

@media (max-width: 390px) {
  .brand,
  .brand img {
    width: 122px;
    min-width: 122px;
  }

  .hero-title {
    font-size: clamp(1.95rem, 10vw, 2.45rem);
  }

  .hero-subtitle {
    font-size: 0.94rem;
  }

  .btn {
    min-height: 48px;
    padding-inline: 16px;
    font-size: 0.9rem;
  }

  .hero-visual {
    min-height: 285px;
  }

  .terminal-card {
    width: 100%;
    min-height: 215px;
  }

  .terminal-lines p:nth-child(4) {
    display: none;
  }
}

@media (hover: none) {
  .service-card:hover,
  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}
