:root {
  --ink: #ffffff;
  --ink-2: #121b2c;
  --surface: #121b2c;
  --surface-2: #121b2c;
  --line: rgba(7, 7, 56, 0.12);
  --fg: #00a2ff;
  --muted: #ffffff; 
  --cyan: #023668c0;
  --cyan-dim: #14416bc0;
  --teal: rgb(32, 32, 146);
  --radius: 14px;
  --display: 'Space Grotesk', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #00a2ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(59, 59, 176, .18);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(250, 250, 250, 0.55);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: var(--cyan-dim);
  background: rgba(59, 59, 176, .06);
}

header .btn-ghost {
  border-color: rgba(255, 255, 255, .4);
  color: #ffffff;
}

header .btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, .12);
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .25s ease, padding .25s ease, border-color .25s ease, box-shadow .25s ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(120deg, #121b2c, #121b2c 55%, #121b2c);
}

header.scrolled {
  background: linear-gradient(120deg, #121b2c, #121b2c 55%, #121b2c);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 12px 0;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 8px 24px -12px rgba(7, 7, 56, .45);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 110px;
  width: auto;
}

.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -.01em;
  color: #ffffff;
}

.brand-name span {
  color: #41a8e0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, .78);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .15s ease;
}

nav a:hover {
  color: #ffffff;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1.5px;
  width: 0;
  background: #41a8e0;
  transition: width .2s ease;
}

nav a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  padding: 8px 10px;
  color: #ffffff;
}

@media (max-width: 860px) {
  nav {
    display: none;
  }
  .nav-cta .btn-ghost {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: linear-gradient(160deg, #040424, #070738 60%, #0a0a4a);
  padding: 96px 28px 28px;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav a {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  color: #ffffff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.mobile-nav .btn-primary {
  margin-top: 24px;
}

.menu-btn.open span {
  display: none;
}

.menu-btn.open::before {
  content: "✕";
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 78% 8%, #0650d8, transparent 60%), radial-gradient(ellipse 55% 50% at 8% 95%, #0c57e0, transparent 60%), var(--ink);
}

#meshCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  margin: 18px 0 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}

.hero p.lead {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
}

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

/* Signature: live status console */
.console {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px -30px rgba(7, 7, 56, .18);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.console-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.dots span:nth-child(1) {
  background: #ff6b6b;
  opacity: .7;
}

.dots span:nth-child(2) {
  background: #ffd166;
  opacity: .7;
}

.dots span:nth-child(3) {
  background: #3b3bb0;
  opacity: .7;
}

.console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}

.console-row:first-of-type {
  border-top: none;
}

.console-row .svc {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(29, 29, 110, .6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(29, 29, 110, .55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(29, 29, 110, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(29, 29, 110, 0);
  }
}

.console-row .metric {
  color: var(--muted);
}

.console-row .metric b {
  color: var(--cyan);
  font-weight: 500;
}

.console-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* ===== Banner carousel (dentro do console) ===== */
.banner-viewport {
  position: relative;
  height: 230px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .8s ease, transform 6s ease;
  pointer-events: none;
}

.banner-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0));
}

.banner-slide .b-eyebrow {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.banner-slide .b-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(233, 3, 3, 0);
  border: 1px solid var(--line);
  color: var(--cyan);
}

.banner-slide .b-icon svg {
  width: 18px;
  height: 18px;
}

.banner-slide h4 {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 4px;
}

.banner-slide p {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 88%;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.banner-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}

.banner-dots button.active {
  background: var(--cyan);
  width: 20px;
  border-radius: 4px;
}

/* ===== Sections shared ===== */
section {
  padding: 108px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 14px 0 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

.bg-alt {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ===== Services banner carousel ===== */
.svc-banner {
  position: relative;
}

.svc-banner-viewport {
  position: relative;
  height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.svc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}

.svc-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.svc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(.9);
}

.svc-slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 4, 36, .92) 0%, rgba(4, 4, 36, .55) 42%, rgba(4, 4, 36, .15) 68%, rgba(4, 4, 36, .35) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 44px;
}

.svc-slide .b-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b8b8ff;
  margin-bottom: 10px;
}

.svc-slide h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  color: #ffffff;
  margin-bottom: 8px;
}

.svc-slide p {
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  max-width: 520px;
  margin: 0 0 14px;
}

.svc-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: #b8b8ff;
  background: rgba(184, 184, 255, .1);
  border: 1px solid rgba(184, 184, 255, .28);
  padding: 4px 9px;
  border-radius: 100px;
}

.svc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(4, 4, 36, .45);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}

.svc-arrow:hover {
  background: rgba(4, 4, 36, .7);
  border-color: rgba(255, 255, 255, .5);
}

.svc-arrow.prev {
  left: 14px;
}

.svc-arrow.next {
  right: 14px;
}

.svc-banner .banner-dots {
  margin-top: 16px;
}

@media (max-width: 620px) {
  .svc-banner-viewport {
    height: 380px;
  }
  .svc-slide .overlay {
    padding: 26px 22px;
  }
}

/* ===== Services CTA ===== */
.svc-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:#121b2c;
  position: relative;
  overflow: hidden;
}

.svc-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .14), transparent 55%);
  pointer-events: none;
}

.svc-cta-text h3 {
  color: #ffffff;
  font-size: clamp(19px, 2.2vw, 24px);
  margin: 0 0 6px;
}

.svc-cta-text p {
  color: rgba(255, 255, 255, .82);
  font-size: 14.5px;
  margin: 0;
  max-width: 480px;
}

.svc-cta .btn-primary {
  background: #ffffff;
  color: #121b2c;
  white-space: nowrap;
  flex-shrink: 0;
}

.svc-cta .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
}

@media (max-width: 620px) {
  .svc-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 24px;
  }
  .svc-cta .btn-primary {
    width: 100%;
  }
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: saturate(1.05) brightness(.98);
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0));
}

.about-media-cap {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pillar {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

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

.pillar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pillar-head .mark {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--cyan);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.pillar-head h3 {
  font-size: 17px;
}

.pillar p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ccard {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .15s ease, transform .15s ease;
}

.ccard:hover {
  border-color: var(--cyan-dim);
  transform: translateX(2px);
}

.ccard .ic {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(59, 59, 176, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.ccard .ic svg {
  width: 19px;
  height: 19px;
}

.ccard .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ccard .value {
  font-size: 14.5px;
  font-weight: 500;
}

form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 7px;
}

.field input, .field textarea {
  width: 100%;
  background: rgba(7, 7, 56, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--fg);
  font-family: var(--body);
  font-size: 14.5px;
  transition: border-color .15s ease;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-msg {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--teal);
  margin-top: 14px;
  display: none;
}

.form-msg.show {
  display: block;
}

@media (max-width: 760px) {
  .f-row {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 40px 0;
  background: linear-gradient(120deg, #121b2c, #121b2c 55%, #121b2c);
}

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.foot-brand img {
  height: 24px;
}

footer .muted-sm {
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  font-family: var(--mono);
}

footer nav ul {
  display: flex;
  gap: 22px;
}

footer nav a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .78);
}

footer nav a:hover {
  color: #ffffff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pulse {
    animation: none;
  }
}
