:root {
  --bg: #080b12;
  --bg-soft: #0d1320;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #a7b0c0;
  --muted-2: #667085;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --green: #22c55e;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 18, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1200px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 224px;
  height: auto;
  object-fit: contain;
  opacity: 0.96;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.12))
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.34));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-cta {
  color: #07111a;
  background: var(--text);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("../img/syntax-hero.png") center right / cover no-repeat;
  opacity: 0.78;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.96) 0%, rgba(8, 11, 18, 0.76) 43%, rgba(8, 11, 18, 0.38) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 11, 18, 0) 28%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 76px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy {
  max-width: 630px;
  margin: 26px 0 0;
  color: #d7dce6;
  font-size: 19px;
}

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

.button.primary {
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), #6ee7b7);
  box-shadow: 0 16px 42px rgba(34, 211, 238, 0.24);
}

.button.secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.button.light {
  color: #0f172a;
  border-color: #d1d5db;
  background: #ffffff;
}

.button-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metrics-band {
  position: relative;
  z-index: 2;
  margin-top: -70px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 19, 32, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.metrics-grid div {
  padding: 26px;
  border-right: 1px solid var(--line);
}

.metrics-grid div:last-child {
  border-right: 0;
}

.metrics-grid strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.metrics-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 100px 0;
}

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

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.section-heading h2,
.about-card h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow),
.about-card p,
.contact-card p,
.timeline-item p,
.service-card p {
  color: var(--muted);
}

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

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.42);
  background: var(--panel-strong);
}

.service-card .icon {
  width: 32px;
  height: 32px;
  color: var(--cyan);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 24px 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.service-card p {
  margin: 0;
  font-size: 15px;
}

.provider-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(34, 211, 238, 0.18), transparent 32%),
    linear-gradient(180deg, #0a101b 0%, #080b12 100%);
}

.provider-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.provider-copy h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.provider-copy > p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.provider-tabs {
  margin-top: 32px;
}

.provider-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.tab-labels label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

#tab-atendimento:checked ~ .tab-labels label[for="tab-atendimento"],
#tab-roteadores:checked ~ .tab-labels label[for="tab-roteadores"],
#tab-monitoramento:checked ~ .tab-labels label[for="tab-monitoramento"],
#tab-sistemas:checked ~ .tab-labels label[for="tab-sistemas"] {
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), #6ee7b7);
}

.tab-panels {
  margin-top: 14px;
}

.tab-panel {
  display: none;
  min-height: 278px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

#tab-atendimento:checked ~ .tab-panels .atendimento-panel,
#tab-roteadores:checked ~ .tab-panels .roteadores-panel,
#tab-monitoramento:checked ~ .tab-panels .monitoramento-panel,
#tab-sistemas:checked ~ .tab-panels .sistemas-panel {
  display: block;
}

.tab-panel h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.tab-panel p,
.tab-panel li {
  color: var(--muted);
}

.tab-panel p {
  margin: 0 0 18px;
}

.tab-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.provider-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(13, 19, 32, 0.82);
  box-shadow: var(--shadow);
}

.dashboard-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(5, 7, 12, 0.58);
}

.main-chart {
  grid-column: 1 / -1;
  padding: 20px 20px 8px;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-head strong {
  color: var(--text);
  font-size: 28px;
}

.main-chart svg {
  display: block;
  width: 100%;
  margin-top: 12px;
}

.chart-fill {
  fill: url("#lineFill");
}

.chart-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 5;
  stroke-linecap: round;
}

.mini-card,
.router-card {
  padding: 18px;
}

.mini-card span,
.router-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mini-card strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.meter {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cyan);
}

.meter.green i {
  background: var(--green);
}

.vendor-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.vendor-list b {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  color: #d8f8ff;
  background: rgba(34, 211, 238, 0.1);
  font-size: 13px;
}

.split-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.2), transparent 34%),
    var(--bg-soft);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #061018;
  background: var(--cyan);
  font-weight: 800;
}

.timeline-item h3 {
  margin: 0 0 6px;
}

.timeline-item p {
  margin: 0;
}

.about-card,
.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(37, 99, 235, 0.06)),
    var(--panel);
}

.about-card p,
.contact-card p {
  margin: 0;
  font-size: 18px;
}

.contact-section {
  padding: 100px 0;
  background: #f8fafc;
  color: #0f172a;
}

.contact-card {
  border-color: #e5e7eb;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

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

.contact-card p {
  color: #475467;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  padding: 28px 0;
  color: var(--muted-2);
  background: #05070c;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

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

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

  .metrics-grid div:nth-child(2) {
    border-right: 0;
  }

  .metrics-grid div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .split-grid,
  .provider-grid,
  .about-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-shell {
    width: min(100% - 28px, 1120px);
  }

  .nav-shell {
    min-height: 84px;
  }

  .nav-cta {
    display: none;
  }

  .brand-logo {
    width: min(280px, 78vw);
  }

  .hero {
    min-height: 700px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .metrics-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics-grid div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 72px 0;
  }

  .service-card,
  .tab-panel,
  .about-card,
  .contact-card,
  .timeline-item {
    border-radius: 16px;
    padding: 22px;
  }

  .provider-visual {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 18px;
  }

  .tab-labels label {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    padding: 0 10px;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
  }
}
