:root {
  color-scheme: dark;
  --bg: #080a09;
  --surface: #101411;
  --surface-strong: #151b17;
  --line: rgba(235, 241, 231, 0.16);
  --text: #f5f2e8;
  --muted: #aeb9af;
  --soft: #d8dfd4;
  --accent: #23e39b;
  --accent-strong: #7ff6c7;
  --warm: #ffb454;
  --danger: #ff6b5f;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  --header: 76px;
  --max: 1180px;
  --site-pattern: url("assets/fundo-Bjp9AddM.svg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(8, 10, 9, 0.78), rgba(8, 10, 9, 0.88)),
    var(--site-pattern);
  background-position: center top, center top;
  background-size: auto, 757px 488px;
  background-repeat: no-repeat, repeat;
  background-attachment: scroll, fixed;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 3px;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(8, 10, 9, 0.64);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 10, 9, 0.9);
  border-color: var(--line);
}

.brand img,
.site-footer img {
  width: 142px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--soft);
  font-size: 0.9rem;
  border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  min-height: calc(100svh - 42px);
  padding: calc(var(--header) + 34px) clamp(20px, 5vw, 72px) 58px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 10, 9, 0.95) 0%, rgba(8, 10, 9, 0.78) 42%, rgba(8, 10, 9, 0.42) 100%),
    linear-gradient(180deg, rgba(8, 10, 9, 0) 72%, var(--bg) 100%),
    url("assets/hero-mesh-rM8NMBJa.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 35%;
  background: linear-gradient(180deg, rgba(8, 10, 9, 0), var(--bg));
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero h1 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(4.8rem, 13vw, 10.5rem);
  line-height: 0.78;
  letter-spacing: 0;
}

.hero h2 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  color: var(--soft);
  font-size: clamp(1.02rem, 1.55vw, 1.24rem);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #07120d;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-strong);
}

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

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.hero-visual {
  align-self: end;
  margin: 0;
}

.hero-visual img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual figcaption {
  max-width: 420px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background:
    linear-gradient(rgba(11, 15, 13, 0.88), rgba(11, 15, 13, 0.94)),
    var(--site-pattern) center / 757px 488px repeat,
    #0b0f0d;
}

.proof-item {
  min-height: 152px;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
}

.proof-item span {
  color: var(--muted);
}

.section,
.showcase,
.operations,
.contact {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(78px, 11vw, 138px) 0;
}

.platform {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(30px, 7vw, 88px);
  align-items: start;
}

.platform,
.modules,
.verticals,
.operations,
.contact,
.site-footer {
  background:
    linear-gradient(rgba(8, 10, 9, 0.84), rgba(8, 10, 9, 0.92)),
    var(--site-pattern) center / 757px 488px repeat;
}

.section-copy h2,
.section-heading h2,
.showcase-copy h2,
.contact-copy h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-copy p:not(.eyebrow),
.showcase-copy p,
.contact-copy p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.05rem;
}

.platform-rail {
  border-top: 1px solid var(--line);
}

.platform-rail div {
  display: grid;
  grid-template-columns: 64px minmax(150px, 0.42fr) minmax(220px, 1fr);
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.platform-rail span {
  color: var(--warm);
  font-weight: 900;
}

.platform-rail strong {
  color: var(--text);
  font-size: 1.1rem;
}

.platform-rail p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 42px;
}

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

.module {
  min-height: 156px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(16, 20, 17, 0.92), rgba(13, 17, 15, 0.96)),
    var(--site-pattern) center / 757px 488px repeat;
  transition: background 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.module:hover {
  border-color: rgba(35, 227, 155, 0.34);
  background:
    linear-gradient(rgba(18, 28, 24, 0.94), rgba(11, 16, 14, 0.98)),
    var(--site-pattern) center / 757px 488px repeat;
  transform: translateY(-4px);
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid rgba(35, 227, 155, 0.32);
  border-radius: 7px;
  background: rgba(35, 227, 155, 0.08);
  color: var(--accent-strong);
  font-size: 1.2rem;
  font-weight: 900;
}

.module-icon.purple {
  border-color: rgba(147, 88, 255, 0.34);
  background: rgba(147, 88, 255, 0.1);
  color: #9a6cff;
}

.module-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module h3 {
  margin-bottom: 8px;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.1;
}

.module p {
  margin-bottom: 0;
  color: var(--muted);
}

.verticals {
  padding-top: 0;
}

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

.vertical-card {
  min-height: 290px;
  padding: clamp(24px, 3.2vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(16, 21, 18, 0.9), rgba(10, 14, 13, 0.96)),
    var(--site-pattern) center / 757px 488px repeat;
}

.vertical-card header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.vertical-card .module-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin: 0;
}

.vertical-card h3 {
  margin-bottom: 2px;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  line-height: 1.05;
}

.vertical-card header p {
  margin: 0;
  color: var(--muted);
}

.vertical-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vertical-card li {
  position: relative;
  padding-left: 18px;
  color: var(--soft);
}

.vertical-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.vertical-card:nth-child(2n) li::before {
  background: #9a6cff;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(30px, 7vw, 82px);
  align-items: center;
  padding: clamp(62px, 9vw, 118px) 0;
}

.showcase.reverse {
  direction: rtl;
}

.showcase.reverse > * {
  direction: ltr;
}

.showcase-media img,
.intelligence-visual img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.flow-list {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.flow-list li {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.flow-list strong {
  color: var(--text);
}

.flow-list span {
  color: var(--muted);
}

.architecture {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.architecture span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
}

.architecture span:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: var(--warm);
}

.intelligence {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.operations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
  margin-bottom: clamp(78px, 10vw, 126px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.operations div {
  min-height: 198px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.operations strong {
  display: block;
  margin-bottom: 14px;
  color: var(--warm);
  font-size: 1.12rem;
}

.operations p {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: 0.76fr 1fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
  padding: clamp(64px, 10vw, 116px) 0;
  border-top: 1px solid var(--line);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form .wide,
.form-actions,
.briefing-output {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 10, 9, 0.86);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(35, 227, 155, 0.7);
  background: #0c110e;
}

.contact-form textarea {
  resize: vertical;
}

.briefing-output {
  display: none;
  min-height: 84px;
  padding: 16px;
  border: 1px solid rgba(35, 227, 155, 0.28);
  border-radius: 6px;
  color: var(--soft);
  background: rgba(35, 227, 155, 0.08);
  white-space: pre-wrap;
}

.briefing-output.is-visible {
  display: block;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero,
  .platform,
  .showcase,
  .intelligence,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header) + 46px);
  }

  .hero-visual {
    max-width: 680px;
  }

  .proof-strip,
  .module-grid,
  .operations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-item:nth-child(2n),
  .operations div:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header: 68px;
  }

  .site-header {
    padding-inline: 18px;
  }

  .brand img,
  .site-footer img {
    width: 128px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header) 12px auto;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 10, 9, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hero {
    gap: 30px;
    padding-inline: 18px;
    padding-bottom: 42px;
  }

  .hero h1 {
    font-size: clamp(4rem, 23vw, 6.4rem);
  }

  .hero h2 {
    font-size: clamp(2rem, 11vw, 3.6rem);
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .proof-strip,
  .module-grid,
  .vertical-grid,
  .operations {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:nth-child(2n),
  .operations div,
  .operations div:nth-child(2n) {
    border-right: 0;
  }

  .section,
  .showcase,
  .operations,
  .contact {
    width: min(100% - 36px, var(--max));
  }

  .platform-rail div,
  .flow-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
