:root {
  --teal: #29dcc2;
  --blue: #0032cf;
  --ink: #0c1430;
  --paper: #ffffff;
  --mist: #f3f5fa;
  --line: #d9dee9;
  --line-dark: rgba(255, 255, 255, 0.18);
  --text: #1b2440;
  --text-soft: #586079;
  --font-display: 'Catamaran', sans-serif;
  --font-body: 'Muli', 'Lato', sans-serif;
  --nav-h: 76px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background: var(--paper);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--teal);
  color: var(--ink);
}

/* ── Shared editorial elements ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.25rem;
}

.eyebrow::before {
  content: '';
  width: 36px;
  height: 2px;
  background: var(--teal);
}

.eyebrow--light {
  color: var(--teal);
}

.eyebrow--light::before {
  background: var(--teal);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--text-soft);
  max-width: 34rem;
}

.container {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Navbar ── */
#mainNav {
  min-height: var(--nav-h);
  padding: 0.85rem 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease;
}

#mainNav.navbar-shrink {
  padding: 0.45rem 0;
}

/* ── Brand lockup (Speedweb → uni) for nav & footer ── */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-lockup__from {
  height: 30px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(0.15);
}

.brand-lockup__to {
  height: 26px;
  width: auto;
}

.brand-lockup__sep {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-lockup__text {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.brand-lockup__arrow {
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  position: relative;
}

.brand-lockup__arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--blue);
}

.brand-lockup--footer .brand-lockup__from {
  height: 38px;
}

.brand-lockup--footer .brand-lockup__to {
  height: 32px;
}

.brand-lockup--footer .brand-lockup__text {
  color: var(--teal);
}

.brand-lockup--footer .brand-lockup__arrow {
  background: var(--teal);
}

.brand-lockup--footer .brand-lockup__arrow::after {
  border-left-color: var(--teal);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--teal);
  border: none;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-contact:hover,
.btn-contact:focus {
  background: var(--ink);
  color: var(--paper);
}

.btn-contact i {
  font-size: 1.15rem;
}

.navbar-collapse {
  justify-content: flex-end;
}

/* ── Hero ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  background: var(--mist);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55%;
  height: 160%;
  background:
    radial-gradient(closest-side, rgba(41, 220, 194, 0.16), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero__content {
  max-width: 40rem;
  border-left: 4px solid var(--teal);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
}

/* ── Rebrand lockup (Speedweb → agora é → uni) ── */
.rebrand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.rebrand__from {
  width: clamp(180px, 22vw, 260px);
  opacity: 0.55;
  filter: grayscale(0.15);
}

.rebrand__sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.rebrand__label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue);
}

.rebrand__arrow {
  width: 2px;
  height: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(var(--teal), var(--blue));
  position: relative;
}

.rebrand__arrow::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--blue);
}

.rebrand__to {
  width: clamp(220px, 30vw, 340px);
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--blue);
  margin: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0.25rem 0 1.75rem;
}

.hero__title span {
  color: var(--blue);
}

.hero__text {
  font-size: clamp(1rem, 1.7vw, 1.125rem);
  color: var(--text);
  max-width: 36rem;
}

.hero__text + .hero__text {
  margin-top: 1rem;
}

.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.hero__note i {
  color: var(--blue);
  font-size: 1.25rem;
}

/* ── Section scaffolding ── */
.section {
  padding: var(--section-y) 0;
}

.section--mist {
  background: var(--mist);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.split__media {
  text-align: center;
}

.split__media img {
  max-height: 460px;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, #000 78%, rgba(0, 0, 0, 0) 100%);
}

.heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.heading--teal {
  color: var(--blue);
}

/* ── Companies (solid block, editorial list) ── */
.companies {
  background: var(--blue);
  color: var(--paper);
  padding: var(--section-y) 0;
}

.companies__head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.companies__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--paper);
  margin: 0 0 1.25rem;
}

.companies__intro {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.125rem);
  max-width: 40rem;
  margin: 0;
}

.company-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
}

.company-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: baseline;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line-dark);
}

.company-list__index {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

.company-list__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 0.35rem;
}

.company-list__desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  margin: 0;
  max-width: 38rem;
}

/* ── Documents ── */
.doc-text {
  font-size: clamp(1rem, 1.7vw, 1.125rem);
  color: var(--text-soft);
  max-width: 34rem;
}

.doc-text + .doc-text {
  margin-top: 1rem;
}

.download {
  margin-top: 2.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--teal);
}

.download__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.download__city {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 1rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--blue);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-download:hover,
.btn-download:focus {
  background: var(--ink);
  color: var(--paper);
}

/* ── History (solid ink block) ── */
.history {
  background: var(--ink);
  color: var(--paper);
  padding: var(--section-y) 0;
}

.history__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--teal);
  margin: 0 0 1.5rem;
  max-width: 18ch;
}

.history__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.7vw, 1.125rem);
  max-width: 36rem;
}

.history__text + .history__text {
  margin-top: 1rem;
}

.history__text em {
  color: var(--teal);
  font-style: normal;
}

/* ── Values (columns with rules, no cards) ── */
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.value {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line);
}

.value:first-child {
  border-left: none;
  padding-left: 0;
}

.value:last-child {
  padding-right: 0;
}

.value__index {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue);
}

.value__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0.5rem 0 0.85rem;
}

.value__text {
  font-size: 1rem;
  color: var(--text-soft);
  margin: 0;
}

.value__text dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.85rem;
}

.value__text dd {
  margin: 0;
}

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer .brand-lockup img {
  width: auto;
}

.site-footer__copy {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

/* ── Floating contact (mobile) ── */
.fab-contact {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1030;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--ink);
  border-radius: 50%;
  font-size: 1.6rem;
}

.fab-contact:hover,
.fab-contact:focus {
  color: var(--ink);
  background: #1ec7af;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 1rem;
  }

  .btn-contact {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .rebrand {
    order: -1;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split__media {
    order: -1;
  }

  .split__media img {
    max-height: 300px;
  }

  .values__grid {
    grid-template-columns: 1fr;
  }

  .value {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-right: 0;
  }

  .value:first-child {
    border-top: none;
    padding-top: 0;
  }

  .fab-contact {
    display: flex;
  }
}

@media (max-width: 575.98px) {
  .hero {
    min-height: auto;
    background-position: center;
  }

  #mainNav .brand-lockup__text {
    display: none;
  }

  #mainNav .brand-lockup__from {
    height: 26px;
  }

  #mainNav .brand-lockup__to {
    height: 22px;
  }

  .company-list__item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
