:root {
  --background: #f7f7fb;
  --foreground: #201c2f;
  --purple: #3d2483;
  --purple-dark: #24124f;
  --blue: #3475bf;
  --yellow: #f0c62b;
  --green: #54a95b;
  --ink-soft: #615c70;
  --line: #dedce8;
  --white: #ffffff;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(247, 247, 251, 0.9), rgba(247, 247, 251, 0.9)),
    url("/fundo-papel-tetracom.png") center / 420px repeat;
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

main {
  overflow: hidden;
}

.hero {
  display: flex;
  flex-direction: column;
  min-height: auto;
  padding: 54px clamp(20px, 5vw, 72px) 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 247, 251, 0.94) 45%, rgba(240, 198, 43, 0.2) 100%),
    radial-gradient(circle at 12% 12%, rgba(52, 117, 191, 0.16), transparent 28%),
    url("/fundo-papel-tetracom.png") center / 420px repeat,
    var(--background);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin: clamp(44px, 6vh, 68px) auto clamp(18px, 3vh, 30px);
  width: max-content;
}

.brand {
  display: block;
  margin-bottom: clamp(24px, 4vh, 38px);
  width: clamp(190px, 19vw, 270px);
}

.brand img {
  height: auto;
  width: 100%;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 11px;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--line);
  color: var(--purple);
  outline: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.82fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero-left,
.hero-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-left {
  padding-bottom: clamp(28px, 5vw, 64px);
}

.hero-right {
  align-items: center;
  justify-content: flex-start;
}

.hero-copy {
  max-width: 720px;
  padding-bottom: 0;
}

.eyebrow {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--purple);
  font-size: clamp(34px, 5.04vw, 59px);
  font-weight: 900;
  line-height: 0.88;
  margin-bottom: 24px;
  max-width: 760px;
}

.lead {
  color: #3f394d;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.52;
  margin-bottom: 30px;
  max-width: 520px;
}

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

.button {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.primary {
  background: var(--yellow);
  box-shadow: 0 16px 36px rgba(240, 198, 43, 0.28);
  color: var(--purple);
}

.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--purple);
}

.hero-visual {
  align-self: stretch;
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: clamp(460px, 50vh, 570px);
  overflow: visible;
}

.dog-stage {
  align-items: end;
  display: flex;
  justify-content: center;
  min-height: 100%;
  overflow: visible;
  padding: 0;
  position: relative;
  width: 100%;
}

.dog-stage::before {
  content: none;
}

.dog-image {
  align-self: end;
  filter: drop-shadow(0 30px 32px rgba(36, 18, 79, 0.18));
  height: auto;
  max-height: none;
  max-width: none;
  object-fit: contain;
  position: relative;
  width: min(170%, 1210px);
  z-index: 1;
}

.strip {
  background: var(--purple);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip div {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding: 28px clamp(20px, 4vw, 54px);
}

.strip strong,
.strip span {
  display: block;
}

.strip strong {
  color: var(--yellow);
  font-size: 20px;
  margin-bottom: 6px;
}

.strip span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.section {
  padding: 86px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.section-heading h2,
.contact h2 {
  color: var(--purple);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 18px;
}

.section-heading p:not(.eyebrow),
.contact p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.services {
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url("/fundo-papel-tetracom.png") center / 420px repeat;
}

.service-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(247, 247, 251, 0.9)),
    url("/fundo-papel-tetracom.png") center / 300px repeat;
  border: 1px solid rgba(61, 36, 131, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(36, 18, 79, 0.08);
  min-height: 280px;
  overflow: hidden;
  padding: 30px 26px 28px;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.service-card::before {
  background: linear-gradient(90deg, var(--yellow), var(--blue), var(--purple));
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.service-card::after {
  background: var(--yellow);
  border-radius: 999px;
  bottom: 26px;
  content: "";
  height: 5px;
  left: 26px;
  position: absolute;
  width: 52px;
}

.service-card:hover {
  border-color: rgba(61, 36, 131, 0.28);
  box-shadow: 0 24px 54px rgba(36, 18, 79, 0.14);
  transform: translateY(-5px);
}

.service-card span {
  align-items: center;
  background: var(--purple);
  border-radius: 999px;
  color: var(--yellow);
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  margin-bottom: 34px;
  width: 54px;
}

.service-card h3 {
  color: var(--purple);
  font-size: 27px;
  line-height: 1.08;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 34px;
}

.traffic {
  align-items: center;
  background:
    linear-gradient(120deg, rgba(61, 36, 131, 0.96), rgba(36, 18, 79, 0.96) 58%, rgba(52, 117, 191, 0.82)),
    url("/fundo-papel-tetracom.png") center / 420px repeat;
  color: var(--white);
  display: grid;
  gap: clamp(28px, 5vw, 68px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.78fr);
}

.traffic-copy {
  max-width: 720px;
}

.traffic .eyebrow {
  color: var(--yellow);
}

.traffic h2 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
}

.traffic-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.62;
  margin-bottom: 28px;
}

.traffic-button {
  background: var(--yellow);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  color: var(--purple);
}

.traffic-panel {
  display: grid;
  gap: 14px;
}

.traffic-point {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 62px 1fr;
  padding: 22px;
}

.traffic-point span {
  align-items: center;
  background: var(--yellow);
  border-radius: 50%;
  color: var(--purple);
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.traffic-point p {
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.focus {
  background: var(--purple-dark);
  color: var(--white);
}

.focus .section-heading h2,
.focus .section-heading p:not(.eyebrow) {
  color: var(--white);
}

.focus .eyebrow {
  color: var(--yellow);
}

.focus-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
}

.focus-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  min-height: 330px;
  padding: 30px;
}

.focus-card span {
  color: var(--yellow);
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.8px;
  margin-bottom: 44px;
  text-transform: uppercase;
}

.focus-card h3 {
  color: var(--white);
  font-size: 29px;
  line-height: 1.05;
  margin-bottom: 18px;
}

.focus-card p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.58;
}

.deliverables {
  align-items: center;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.95), rgba(240, 198, 43, 0.18)),
    url("/fundo-papel-tetracom.png") center / 420px repeat;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
}

.deliverables-copy {
  max-width: 540px;
}

.deliverables-copy h2 {
  color: var(--purple);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 18px;
}

.deliverables-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.deliverables-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deliverables-list span {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  color: var(--purple);
  font-size: 17px;
  font-weight: 900;
  padding: 18px 18px 18px 20px;
}

.portfolio {
  background:
    linear-gradient(135deg, rgba(36, 18, 79, 0.96), rgba(53, 117, 191, 0.9)),
    url("/fundo-papel-tetracom.png") center / 420px repeat;
  color: var(--white);
}

.portfolio .section-heading {
  text-align: left;
}

.portfolio .section-heading h2,
.portfolio .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.9);
}

.portfolio .eyebrow {
  color: var(--yellow);
}

.portfolio-wall {
  display: grid;
  align-items: end;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1240px;
  margin: 0 auto;
}

.portfolio-piece {
  align-items: end;
  display: grid;
  gap: 20px;
  justify-items: center;
  min-height: 420px;
}

.portfolio-piece img {
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.2));
  height: auto;
  max-height: 560px;
  object-fit: contain;
  width: 100%;
}

.portfolio-piece h3 {
  color: var(--yellow);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.08;
  margin: 0;
  text-align: center;
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.sites-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 247, 251, 0.9)),
    url("/fundo-papel-tetracom.png") center / 420px repeat;
}

.site-showcase {
  max-width: 1180px;
  margin: 0 auto;
}

.site-toolbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.site-toolbar div:first-child {
  display: grid;
  gap: 4px;
}

.site-toolbar span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.site-toolbar strong {
  color: var(--purple);
  font-size: 24px;
  line-height: 1.1;
}

.site-controls {
  display: flex;
  gap: 10px;
}

.site-controls button,
.site-thumbs button {
  cursor: pointer;
  font: inherit;
}

.site-controls button {
  background: var(--purple);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  min-height: 44px;
  padding: 0 18px;
}

.site-controls button:last-child {
  background: var(--green);
}

.site-browser {
  background: #20202a;
  border: 12px solid #20202a;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(36, 18, 79, 0.2);
  height: min(76vh, 820px);
  overflow: auto;
}

.site-browser img {
  background: var(--white);
  height: auto;
  width: 100%;
}

.site-thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(13, minmax(70px, 1fr));
  margin-top: 16px;
}

.site-thumbs button {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 8px;
  height: 112px;
  overflow: hidden;
  padding: 0;
}

.site-thumbs button.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(240, 198, 43, 0.24);
}

.site-thumbs img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.74;
  width: 100%;
}

.site-thumbs button.active img,
.site-thumbs button:hover img {
  opacity: 1;
}

.process {
  background:
    linear-gradient(90deg, rgba(240, 198, 43, 0.16), transparent 40%),
    #f4f6fb;
}

.timeline {
  display: grid;
  gap: 16px;
  max-width: 940px;
  margin: 0 auto;
}

.timeline-item {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 22px;
  grid-template-columns: 64px 1fr;
  padding: 20px 24px;
}

.timeline-item span {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.timeline-item p {
  color: #3f394d;
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
}

.clients {
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    url("/fundo-papel-tetracom.png") center / 420px repeat;
}

.client-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
}

.client-grid span {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 108px;
  padding: 18px;
}

.client-grid img {
  max-height: 58px;
  object-fit: contain;
  opacity: 1;
  transition: transform 160ms ease;
  width: 100%;
}

.client-grid span:hover img {
  transform: scale(1.04);
}

.contact {
  background: var(--yellow);
  padding: 72px clamp(20px, 5vw, 72px);
  text-align: center;
}

.contact-inner {
  display: grid;
  gap: 34px;
  margin: 0 auto;
  max-width: 1180px;
}

.contact-top {
  align-items: center;
  display: grid;
  gap: clamp(28px, 8vw, 120px);
  grid-template-columns: minmax(280px, 420px) auto;
  justify-content: center;
}

.coffee-art {
  height: auto;
  max-width: 420px;
  width: min(70vw, 420px);
}

.contact .eyebrow {
  color: var(--purple);
}

.contact-copy {
  margin: 0 auto;
  max-width: 900px;
}

.contact h2 {
  color: var(--purple);
  margin-bottom: 16px;
}

.contact p:not(.eyebrow) {
  color: #342b45;
  margin-bottom: 0;
}

.contact-button {
  background: var(--purple);
  box-shadow: 0 18px 38px rgba(61, 36, 131, 0.24);
  color: var(--white);
  min-width: 220px;
}

.copyright {
  border-top: 1px solid rgba(61, 36, 131, 0.18);
  color: rgba(52, 43, 69, 0.74);
  font-size: 7px;
  line-height: 1.5;
  margin: 6px auto 0;
  padding-top: 22px;
  width: min(100%, 900px);
}

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

  .hero-left {
    padding-bottom: 18px;
  }

  .nav {
    margin: 0 0 18px;
  }

  .contact-top {
    gap: 22px;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-copy {
    padding-bottom: 20px;
  }

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

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

  .focus-grid,
  .deliverables,
  .traffic,
  .portfolio-wall {
    grid-template-columns: 1fr;
  }

  .site-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .client-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: auto;
    padding-bottom: 42px;
  }

  .nav {
    display: none;
  }

  .brand {
    margin-bottom: 38px;
    width: 161px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .dog-stage {
    min-height: 360px;
  }

  .dog-image {
    width: min(173%, 806px);
  }

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

  .deliverables-list {
    grid-template-columns: 1fr;
  }

  .site-toolbar {
    align-items: stretch;
    display: grid;
  }

  .site-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-browser {
    border-width: 8px;
    height: 68vh;
  }

  .site-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .strip,
  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .section {
    padding: 64px 20px;
  }

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

  .traffic-point {
    grid-template-columns: 52px 1fr;
    padding: 18px;
  }

  .timeline-item {
    align-items: flex-start;
    grid-template-columns: 48px 1fr;
    padding: 18px;
  }

  .timeline-item span {
    height: 40px;
    width: 40px;
  }
}
