/* ============================================================
   Quantum Link Internet — Design tokens
   ============================================================ */
:root {
  --background: 38 30% 96%;
  --foreground: 222 47% 11%;

  --card-border: 220 15% 88%;

  --primary: 187 75% 32%;
  --primary-foreground: 0 0% 100%;

  --muted: 38 20% 93%;
  --muted-foreground: 220 15% 45%;

  --border: 220 15% 88%;

  --radius: 1rem;

  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: normal;
  color: hsl(var(--primary));
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.btn--dark {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}
.btn--dark:hover { opacity: 0.85; }

.btn--outline {
  border: 2px solid hsl(var(--foreground));
  color: hsl(var(--foreground));
}
.btn--outline:hover {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

.btn--block { width: 100%; justify-content: center; }
.btn--mt { margin-top: 2rem; }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.is-scrolled {
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.navbar__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.logo .accent { color: hsl(var(--primary)); }
.logo .dim { color: hsl(var(--muted-foreground)); font-weight: 300; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: hsl(var(--foreground)); }

.menu-toggle {
  font-size: 1.4rem;
  line-height: 1;
  color: hsl(var(--foreground));
}

.mobile-menu[hidden] { display: none; }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  padding: 0 1.5rem 1.5rem;
}

.mobile-menu a:not(.btn) {
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  font-weight: 500;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 9rem 0 5rem;
}

.hero__content { max-width: 52rem; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}
.eyebrow--light { color: rgba(255,255,255,0.8); }

.hero__title {
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 2rem;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.hero__lead strong { color: hsl(var(--foreground)); font-weight: 600; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__banner {
  margin-top: 4rem;
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  height: 20rem;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero__banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(187 70% 30% / 0.75) 0%, hsl(220 70% 30% / 0.65) 45%, hsl(280 55% 30% / 0.6) 100%);
}

.hero__banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  z-index: 2;
}

.hero__banner-content h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  color: white;
  line-height: 1.25;
}

.blob {
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  filter: blur(30px);
  z-index: 1;
}
.blob--1 { width: 10rem; height: 10rem; right: 3rem; top: 2rem; }
.blob--2 { width: 6rem; height: 6rem; right: 8rem; bottom: 1rem; background: rgba(255,255,255,0.16); }
.blob--3 { width: 12rem; height: 12rem; right: 1rem; bottom: 2rem; background: rgba(255,255,255,0.08); }

@media (min-width: 768px) {
  .hero__banner { height: 22rem; }
}

/* ============================================================
   Stats
   ============================================================ */
.stats {
  padding: 4rem 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background: rgba(255,255,255,0.5);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat { text-align: center; }
.stat__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.stat__label { font-size: 0.9rem; color: hsl(var(--muted-foreground)); }

@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Generic section
   ============================================================ */
.section { padding: 6rem 0; }
.section--tint { background: rgba(255,255,255,0.6); border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.section--dark { background: hsl(var(--foreground)); color: hsl(var(--background)); }

.h2 {
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.h2--narrow { max-width: 36rem; }
.h2--light { color: hsl(var(--background)); }

.lead {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  max-width: 42rem;
}

.grid-2 {
  display: grid;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Como fazemos — steps
   ============================================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: white;
  border: 1px solid hsl(var(--border));
  transition: border-color 0.2s ease;
}
.step:hover { border-color: hsl(var(--primary) / 0.3); }

.step__num {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  transition: background-color 0.2s ease, color 0.2s ease;
}
.step:hover .step__num { background: hsl(var(--primary)); color: white; }

.step h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.step p { font-size: 0.9rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ============================================================
   Soluções — cards
   ============================================================ */
.section__head { margin-bottom: 3.5rem; }
.section__head--center { text-align: center; max-width: 48rem; margin-left: auto; margin-right: auto; }

.section__head-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.section__head-note {
  color: hsl(var(--muted-foreground));
  max-width: 22rem;
}

@media (min-width: 768px) {
  .section__head-row { flex-direction: row; align-items: flex-end; }
  .section__head-note { text-align: right; }
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(255,255,255,0.8);
  transition: transform 0.25s ease;
  overflow: hidden;
}
.service-card:hover { transform: scale(1.02); }

.service-card--teal   { background: linear-gradient(to bottom right, hsl(174 65% 90%), hsl(185 60% 96%)); }
.service-card--violet { background: linear-gradient(to bottom right, hsl(270 65% 92%), hsl(270 50% 97%)); }
.service-card--blue   { background: linear-gradient(to bottom right, hsl(210 90% 92%), hsl(200 80% 96%)); }
.service-card--green  { background: linear-gradient(to bottom right, hsl(150 55% 90%), hsl(140 45% 96%)); }
.service-card--orange { background: linear-gradient(to bottom right, hsl(30 85% 90%), hsl(40 75% 96%)); }
.service-card--rose   { background: linear-gradient(to bottom right, hsl(340 65% 92%), hsl(340 55% 97%)); }

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.tag--teal   { background: hsl(174 55% 30%); }
.tag--violet { background: hsl(270 50% 40%); }
.tag--blue   { background: hsl(215 70% 40%); }
.tag--green  { background: hsl(150 45% 30%); }
.tag--orange { background: hsl(30 65% 40%); }
.tag--rose   { background: hsl(340 55% 40%); }

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.service-card p {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.service-card__more {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.7);
  transition: color 0.2s ease;
}
.service-card:hover .service-card__more { color: hsl(var(--primary)); }

/* ============================================================
   Setores
   ============================================================ */
.sector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }

.sector-card {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  min-height: 27rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.sector-card__scrim {
  position: absolute;
  inset: 0;
}
.sector-card--public .sector-card__scrim {
  background: linear-gradient(145deg, hsl(187 75% 20% / 0.88) 0%, hsl(220 70% 15% / 0.92) 100%);
}
.sector-card--private .sector-card__scrim {
  background: linear-gradient(145deg, hsl(280 60% 20% / 0.88) 0%, hsl(220 55% 12% / 0.92) 100%);
}

.sector-card__content { position: relative; z-index: 2; padding: 2rem; }

.pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sector-card__content h3 {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.sector-card__content p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.sector-card__content ul { display: flex; flex-direction: column; gap: 0.5rem; }
.sector-card__content li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.sector-card__content li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  flex-shrink: 0;
}

/* ============================================================
   Diferenciais
   ============================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .diff-grid { grid-template-columns: repeat(4, 1fr); } }

.diff-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.2s ease;
}
.diff-card:hover { border-color: hsl(var(--primary) / 0.5); }

.diff-card__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: hsl(var(--primary));
  margin-bottom: 1.25rem;
}

.diff-card h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: white; }
.diff-card p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ============================================================
   Contato
   ============================================================ */
.grid-2--contact { align-items: start; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-item__title { font-weight: 600; margin-bottom: 0.125rem; }
.contact-item__text { font-size: 0.9rem; color: hsl(var(--muted-foreground)); }

.contact-form {
  background: white;
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--border));
  padding: 2rem;
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}

.contact-form h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.field textarea { resize: none; }

.form-feedback {
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
  color: hsl(var(--primary));
  min-height: 1.2em;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid hsl(var(--border));
  background: rgba(255,255,255,0.5);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

.logo--footer { margin-bottom: 0.25rem; }
.footer__sub { font-size: 0.9rem; color: hsl(var(--muted-foreground)); }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__links a {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}
.footer__links a:hover { color: hsl(var(--foreground)); }

.footer__copy { font-size: 0.9rem; color: hsl(var(--muted-foreground)); }

@media (min-width: 768px) {
  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 40;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
