:root {
  --bg: #050816;
  --bg-deep: #01040b;
  --panel: rgba(5, 16, 34, 0.76);
  --panel-strong: rgba(6, 18, 39, 0.92);
  --line: rgba(0, 110, 255, 0.38);
  --line-hot: rgba(0, 229, 255, 0.56);
  --blue: #006eff;
  --cyan: #00e5ff;
  --text: #ffffff;
  --muted: #bac7da;
  --soft: #7e91ad;
  --glow: 0 0 32px rgba(0, 110, 255, 0.5);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 5%, rgba(0, 110, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 10% 24%, rgba(0, 229, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #050816 0%, #02050d 52%, #050816 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 110, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 110, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
}

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

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

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

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.ambient::before,
.ambient::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(0, 110, 255, 0.22);
  box-shadow: var(--glow);
  transform: rotate(26deg);
}

.ambient::before {
  right: 9%;
  top: 13%;
  width: 280px;
  height: 520px;
}

.ambient::after {
  left: -120px;
  bottom: 9%;
  width: 380px;
  height: 180px;
  opacity: 0.5;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(100%, 1600px);
  height: 84px;
  padding: 0 42px;
  transform: translateX(-50%);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-elevated {
  border-bottom-color: rgba(0, 110, 255, 0.25);
  background: rgba(2, 6, 16, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
}

.brand-logo {
  width: 176px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 18px rgba(0, 110, 255, 0.42));
}

.brand-symbol {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: white;
  font-size: 2rem;
  font-weight: 950;
  background:
    linear-gradient(135deg, transparent 0 18%, #00dfff 18% 35%, transparent 35% 43%),
    linear-gradient(135deg, #006eff, #00dfff 48%, #0940c8);
  clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 28% 100%, 0 72%);
  box-shadow: var(--glow);
}

.brand-text strong,
.brand-text small {
  display: block;
  line-height: 0.92;
  letter-spacing: 1px;
}

.brand-text strong {
  font-size: 1.32rem;
  font-weight: 900;
}

.brand-text small {
  margin-top: 4px;
  color: var(--blue);
  font-size: 0.98rem;
  font-weight: 900;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: clamp(18px, 2.8vw, 48px);
}

.main-nav a {
  position: relative;
  padding: 32px 0 28px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a::after {
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: var(--glow);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cyan);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 42px;
}

.outline-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: var(--radius);
  font-weight: 900;
  text-transform: uppercase;
}

.outline-action {
  min-width: 220px;
  border: 1px solid var(--blue);
  color: var(--cyan);
  background: rgba(0, 110, 255, 0.06);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 110, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: #fff;
}

main > section,
.footer {
  width: min(100% - 64px, 1500px);
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: 42px;
  align-items: center;
  min-height: 100vh;
  padding: 118px 0 72px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 70px -6% 0 34%;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(5, 8, 22, 0.98) 0%, rgba(5, 8, 22, 0.62) 24%, rgba(5, 8, 22, 0.08) 58%),
    linear-gradient(180deg, rgba(5, 8, 22, 0.04), rgba(5, 8, 22, 0.72)),
    url("./assets/ref-pagina-inicial.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 69% 7%;
  filter: saturate(1.16) contrast(1.08);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 7%;
  z-index: -1;
  width: 44%;
  height: 34%;
  content: "";
  background:
    radial-gradient(circle, rgba(0, 110, 255, 0.42), transparent 62%),
    linear-gradient(rgba(0, 110, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 110, 255, 0.18) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  opacity: 0.8;
  transform: perspective(700px) rotateX(64deg);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

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

h1,
h2 {
  margin-bottom: 24px;
  font-weight: 950;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.8rem, 7vw, 7.5rem);
  text-transform: uppercase;
}

h2 {
  max-width: 780px;
  font-size: clamp(2.4rem, 4vw, 5rem);
}

h1 span,
h2 span {
  color: var(--blue);
  text-shadow: var(--glow);
}

p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-content > p:not(.eyebrow),
.about-copy > p,
.tech-copy > p,
.section-heading > p:not(.eyebrow),
.codex-text > p {
  max-width: 620px;
}

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

.btn {
  min-width: 220px;
  padding: 0 24px;
  border: 1px solid transparent;
  line-height: 1.15;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover,
.outline-action:hover,
.service-card:hover,
.product-card:hover {
  transform: translateY(-3px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #006eff, #078cff);
  box-shadow: 0 0 36px rgba(0, 110, 255, 0.56);
}

.btn.secondary {
  border-color: var(--line);
  color: #fff;
  background: rgba(4, 16, 35, 0.72);
}

.trusted {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trusted strong {
  color: rgba(255, 255, 255, 0.52);
}

.hero-visual {
  position: relative;
  min-height: 720px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-art {
  position: absolute;
  inset: -4% -6% -2% -20%;
  background-image: url("./assets/ref-pagina-inicial.png");
  background-size: cover;
  background-position: 73% 8%;
  filter: saturate(1.18) contrast(1.08) drop-shadow(0 34px 70px rgba(0, 0, 0, 0.72));
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 88%, transparent 100%);
  animation: floatHero 6s ease-in-out infinite;
}

.hero-visual::after,
.codex-panel::after,
.nexon-core::after,
.tech-map::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(0, 5, 14, 0.72));
}

.hero-visual::after {
  display: none;
}

.codex-mini-card {
  position: absolute;
  right: 26px;
  bottom: 118px;
  z-index: 2;
  display: grid;
  gap: 10px;
  width: 230px;
  padding: 22px;
  border: 1px solid var(--line-hot);
  border-radius: var(--radius);
  background: rgba(2, 9, 21, 0.86);
  box-shadow: var(--glow);
  backdrop-filter: blur(12px);
}

.codex-mini-card strong {
  color: var(--cyan);
  text-transform: uppercase;
}

.codex-mini-card span {
  color: #fff;
  line-height: 1.45;
}

.codex-mini-card a {
  width: max-content;
  padding: 10px 18px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-section,
.contact {
  padding: 78px 0;
}

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

.section-heading.centered {
  text-align: center;
}

.section-heading.centered h2,
.section-heading.centered p {
  margin-right: auto;
  margin-left: auto;
}

.product-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  min-height: 335px;
  overflow: hidden;
  border: 1px solid rgba(0, 110, 255, 0.32);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 75% 20%, rgba(0, 110, 255, 0.22), transparent 22rem),
    linear-gradient(135deg, rgba(7, 21, 45, 0.94), rgba(2, 8, 20, 0.92));
  box-shadow: inset 0 0 42px rgba(0, 110, 255, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow), inset 0 0 46px rgba(0, 110, 255, 0.12);
}

.product-card::before,
.service-card::before,
.contact-form::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.8), transparent) top left / 100% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(0, 110, 255, 0.55), transparent) top right / 1px 100% no-repeat;
  opacity: 0.72;
}

.product-copy {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.product-icon,
.service-card i {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--cyan);
  font-weight: 950;
  background: rgba(0, 110, 255, 0.16);
  box-shadow: var(--glow);
  font-style: normal;
}

.product-card h3,
.service-card h3 {
  margin-bottom: 16px;
  font-size: 1.48rem;
  line-height: 1.1;
}

.product-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.product-card li::before {
  content: "+";
  margin-right: 10px;
  color: var(--cyan);
  font-weight: 950;
}

.product-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid rgba(0, 229, 255, 0.42);
  border-radius: var(--radius);
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 110, 255, 0.2), rgba(0, 229, 255, 0.08));
  box-shadow: inset 0 0 22px rgba(0, 110, 255, 0.1);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.product-card a::after,
.service-card a::after,
.content-card a::after {
  content: ">";
  margin-left: 10px;
  color: #fff;
}

.product-card a:hover,
.service-card a:hover,
.content-card a:hover {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 110, 255, 0.68), rgba(0, 229, 255, 0.2));
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.product-visual {
  min-height: 100%;
  background-size: cover;
  background-position: center;
  mask-image: linear-gradient(to right, transparent, #000 20%);
  filter: saturate(1.14) contrast(1.08);
}

.chat-visual {
  background-image: url("./assets/ref-produtos.png");
  background-position: 20% center;
}

.etiq-visual {
  background-image: url("./assets/ref-produtos.png");
  background-position: 83% center;
}

.metric-strip,
.values,
.stack-row {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.metric-strip {
  grid-template-columns: repeat(4, 1fr);
}

.metric-strip div,
.values span,
.stack-row span {
  border: 1px solid rgba(0, 110, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(4, 15, 32, 0.76);
  box-shadow: inset 0 0 28px rgba(0, 110, 255, 0.06);
}

.metric-strip div {
  min-height: 104px;
  padding: 20px;
}

.metric-strip strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  text-shadow: var(--glow);
}

.metric-strip span,
.values span,
.stack-row span {
  color: #fff;
}

.solution-finder {
  position: relative;
}

.finder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.finder-card {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 110, 255, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 12%, rgba(0, 229, 255, 0.16), transparent 17rem),
    linear-gradient(145deg, rgba(6, 18, 39, 0.92), rgba(2, 8, 20, 0.9));
  box-shadow: inset 0 0 34px rgba(0, 110, 255, 0.08);
  align-content: start;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.finder-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.72), transparent) top left / 100% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(0, 110, 255, 0.48), transparent) top right / 1px 100% no-repeat;
  opacity: 0.68;
}

.finder-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow), inset 0 0 42px rgba(0, 110, 255, 0.12);
  transform: translateY(-3px);
}

.finder-card span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.42);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(0, 110, 255, 0.13);
  box-shadow: inset 0 0 18px rgba(0, 110, 255, 0.12);
  font-weight: 950;
}

.finder-card h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.14;
}

.finder-card p {
  margin: 0;
  font-size: 1rem;
}

.finder-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  margin-top: auto;
  padding: 0 16px;
  border: 1px solid rgba(0, 229, 255, 0.38);
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 110, 255, 0.58), rgba(0, 229, 255, 0.14));
  box-shadow: inset 0 0 22px rgba(0, 110, 255, 0.12);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.finder-card a::after {
  content: ">";
  margin-left: 10px;
  color: var(--cyan);
}

.finder-card a:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.about,
.technology,
.codex {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 46px;
  align-items: center;
  min-height: 92vh;
  padding: 88px 0 64px;
}

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

.values span {
  padding: 18px;
  color: #fff;
  font-weight: 800;
}

.nexon-core,
.tech-map,
.codex-panel {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid rgba(0, 110, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(3, 12, 28, 0.82);
  box-shadow: var(--shadow), inset 0 0 60px rgba(0, 110, 255, 0.12);
}

.nexon-core {
  background-image: linear-gradient(180deg, rgba(5, 8, 22, 0.2), rgba(5, 8, 22, 0.62)), url("./assets/ref-sobre.png");
  background-size: cover;
  background-position: 70% center;
}

.core-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 1px solid var(--line-hot);
  border-radius: 28px;
  color: #fff;
  font-size: 5rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 70px rgba(0, 110, 255, 0.72);
  transform: translate(-50%, -50%) rotate(45deg);
}

.core-chip::first-letter {
  transform: rotate(-45deg);
}

.core-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 9, 21, 0.86);
  box-shadow: var(--glow);
}

.core-card strong,
.node,
.contact-list span {
  color: var(--cyan);
  text-transform: uppercase;
}

.core-card span {
  color: var(--muted);
}

.top-left { left: 8%; top: 12%; }
.top-right { right: 8%; top: 14%; }
.bottom-left { left: 8%; bottom: 14%; }
.bottom-right { right: 8%; bottom: 12%; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 315px;
  padding: 26px;
  border: 1px solid rgba(0, 110, 255, 0.32);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 110, 255, 0.2), transparent 42%),
    rgba(4, 15, 32, 0.84);
  box-shadow: inset 0 0 34px rgba(0, 110, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow), inset 0 0 38px rgba(0, 110, 255, 0.1);
}

.service-card p {
  font-size: 1rem;
}

.service-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 16px;
  border: 1px solid rgba(0, 229, 255, 0.34);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(0, 110, 255, 0.1);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tech-map {
  background-image: linear-gradient(180deg, rgba(5, 8, 22, 0.22), rgba(5, 8, 22, 0.72)), url("./assets/ref-tecnologia.png");
  background-size: cover;
  background-position: center 18%;
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 140px;
  min-height: 54px;
  place-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 9, 21, 0.86);
  box-shadow: var(--glow);
  font-weight: 900;
}

.node.center {
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  min-width: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 4.2rem;
  background: radial-gradient(circle, var(--cyan), var(--blue) 62%, rgba(0, 110, 255, 0.12));
  transform: translate(-50%, -50%);
}

.n1 { left: 8%; top: 15%; }
.n2 { right: 8%; top: 17%; }
.n3 { left: 10%; bottom: 20%; }
.n4 { right: 12%; bottom: 18%; }
.n5 { left: 40%; top: 8%; }
.n6 { left: 43%; bottom: 8%; }

.stack-row {
  grid-column: 1 / -1;
  grid-template-columns: repeat(10, 1fr);
}

.stack-row span {
  display: grid;
  min-height: 72px;
  place-items: center;
  font-weight: 900;
}

.codex-panel {
  min-height: 600px;
}

.codex-art {
  position: absolute;
  inset: -8% -10% -5% -10%;
  background-image: linear-gradient(90deg, rgba(5, 8, 22, 0.46), transparent 42%), url("./assets/ref-codex.png");
  background-size: cover;
  background-position: center 14%;
  filter: saturate(1.14) contrast(1.08);
}

.skill-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-left: auto;
}

.skill-panel div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  color: #fff;
  font-weight: 850;
}

.skill-panel i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.skill-panel i::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: var(--glow);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.42fr) 1fr;
  gap: 28px;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-list article,
.contact-form {
  border: 1px solid rgba(0, 110, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(4, 15, 32, 0.84);
  box-shadow: inset 0 0 34px rgba(0, 110, 255, 0.06);
}

.contact-list article {
  display: grid;
  gap: 7px;
  padding: 26px;
}

.contact-list strong {
  font-size: 1.16rem;
}

.contact-list small {
  color: var(--muted);
}

.contact-whatsapp a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid rgba(0, 229, 255, 0.38);
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 110, 255, 0.48), rgba(0, 229, 255, 0.14));
  box-shadow: inset 0 0 22px rgba(0, 110, 255, 0.12);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-whatsapp a::after {
  content: ">";
  margin-left: 10px;
  color: var(--cyan);
}

.contact-whatsapp a:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 32px;
  box-shadow: var(--glow);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(0, 110, 255, 0.34);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(2, 8, 19, 0.74);
  outline: none;
  padding: 0 18px;
}

.contact-form select,
.contact-form textarea,
.contact-actions,
.form-status {
  grid-column: 1 / -1;
}

.contact-form textarea {
  min-height: 150px;
  padding-top: 16px;
  resize: vertical;
}

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

.form-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--soft);
  font-size: 0.9rem;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 46px 0;
  border-top: 1px solid rgba(0, 110, 255, 0.24);
}

.footer p {
  max-width: 440px;
  margin: 0;
  font-size: 0.98rem;
}

.footer small {
  color: var(--soft);
}

.footer small a {
  color: var(--cyan);
}

.detail-main {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 132px 0 76px;
}

.detail-hero {
  min-height: auto;
  padding: 56px 0 34px;
  border-bottom: 1px solid rgba(0, 110, 255, 0.24);
}

.detail-hero h1 {
  max-width: 960px;
  margin: 0 0 24px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
}

.detail-hero p {
  max-width: 760px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 28px;
  margin-top: 34px;
}

.detail-panel,
.detail-card {
  border: 1px solid rgba(0, 110, 255, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(6, 18, 39, 0.86), rgba(2, 8, 19, 0.74));
  box-shadow: var(--shadow);
}

.detail-panel {
  padding: 32px;
}

.detail-panel h2,
.detail-panel h3 {
  margin: 0 0 16px;
}

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

.detail-panel ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.detail-card {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 28px;
}

.detail-card span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-card strong {
  font-size: 1.28rem;
}

.detail-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.detail-band article {
  min-height: 178px;
  padding: 24px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(4, 14, 31, 0.72);
}

.detail-band h3 {
  margin: 0 0 10px;
}

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

.product-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.82fr;
  gap: 28px;
  margin-top: 32px;
  align-items: stretch;
}

.interface-preview {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 24px;
  border: 1px solid rgba(0, 110, 255, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 229, 255, 0.18), transparent 28rem),
    linear-gradient(145deg, rgba(4, 15, 32, 0.94), rgba(1, 5, 13, 0.9));
  box-shadow: var(--shadow), inset 0 0 80px rgba(0, 110, 255, 0.1);
}

.interface-preview::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 110, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 110, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.preview-window {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(2, 8, 19, 0.72);
}

.preview-topbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 110, 255, 0.22);
}

.preview-topbar i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.76);
}

.preview-layout {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 14px;
}

.preview-sidebar,
.preview-main,
.preview-card {
  border: 1px solid rgba(0, 110, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(5, 16, 34, 0.74);
}

.preview-sidebar,
.preview-main {
  padding: 14px;
}

.preview-sidebar {
  display: grid;
  gap: 10px;
  align-content: start;
}

.preview-pill,
.preview-line {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(186, 199, 218, 0.22);
}

.preview-pill.active {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 24px rgba(0, 110, 255, 0.54);
}

.preview-main {
  display: grid;
  gap: 12px;
}

.preview-card {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.preview-card strong {
  font-size: 0.92rem;
}

.preview-line.short {
  width: 62%;
}

.preview-line.hot {
  background: linear-gradient(90deg, rgba(0, 110, 255, 0.85), rgba(0, 229, 255, 0.72));
}

.insight-stack {
  display: grid;
  gap: 18px;
}

.insight-card {
  padding: 24px;
  border: 1px solid rgba(0, 110, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(4, 14, 31, 0.78);
}

.insight-card span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.insight-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

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

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.workflow-strip article {
  padding: 22px;
  border: 1px solid rgba(0, 110, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(2, 8, 19, 0.62);
}

.workflow-strip span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid var(--line-hot);
  border-radius: var(--radius);
  color: var(--cyan);
  font-weight: 900;
}

.workflow-strip h3 {
  margin: 0 0 10px;
}

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

.real-product-frame {
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(0, 110, 255, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 110, 255, 0.2), transparent 26rem),
    rgba(2, 8, 19, 0.88);
  box-shadow: var(--shadow), var(--glow);
}

.real-product-frame img {
  width: 100%;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: var(--radius);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.screenshot-card {
  overflow: hidden;
  border: 1px solid rgba(0, 110, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(4, 14, 31, 0.82);
  box-shadow: var(--shadow);
}

.screenshot-card.wide {
  grid-column: 1 / -1;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid rgba(0, 110, 255, 0.24);
}

.screenshot-card div {
  padding: 22px;
}

.screenshot-card span {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screenshot-card h3 {
  margin: 10px 0;
}

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

.detail-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
  padding: 30px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 110, 255, 0.18), rgba(0, 229, 255, 0.08)),
    rgba(4, 14, 31, 0.84);
  box-shadow: var(--glow);
}

.detail-cta h2 {
  margin: 0 0 10px;
}

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

.privacy-content {
  display: grid;
  gap: 22px;
}

.content-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.content-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(0, 110, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(4, 14, 31, 0.82);
  box-shadow: var(--shadow);
}

.content-card span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-card h2,
.content-card h3 {
  margin: 0;
}

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

.content-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: fit-content;
  padding: 0 18px;
  border: 1px solid rgba(0, 229, 255, 0.34);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(0, 110, 255, 0.1);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.case-list {
  display: grid;
  gap: 24px;
}

.case-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) 1fr;
  gap: 28px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(0, 110, 255, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 15%, rgba(0, 229, 255, 0.13), transparent 24rem),
    linear-gradient(135deg, rgba(5, 16, 34, 0.94), rgba(2, 8, 20, 0.92));
  box-shadow: inset 0 0 42px rgba(0, 110, 255, 0.07);
}

.case-card.featured {
  border-color: rgba(0, 229, 255, 0.38);
}

.case-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.7), transparent) top left / 100% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(0, 110, 255, 0.5), transparent) top right / 1px 100% no-repeat;
  opacity: 0.68;
}

.case-logo-panel,
.case-copy {
  position: relative;
  z-index: 2;
}

.case-logo-panel {
  display: grid;
  min-height: 290px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 110, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.case-logo-panel img {
  width: min(78%, 280px);
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.46));
}

.mells-case {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 214, 169, 0.34), transparent 17rem),
    linear-gradient(145deg, rgba(72, 37, 22, 0.88), rgba(14, 7, 5, 0.96));
}

.cr-case {
  background:
    radial-gradient(circle at 42% 32%, rgba(0, 229, 255, 0.28), transparent 18rem),
    linear-gradient(145deg, rgba(4, 36, 91, 0.9), rgba(2, 8, 22, 0.96));
}

.case-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.case-copy span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.6rem);
}

.case-copy p,
.case-copy li {
  color: var(--muted);
}

.case-copy ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-copy li::before {
  content: "+";
  margin-right: 10px;
  color: var(--cyan);
  font-weight: 950;
}

.case-copy strong {
  color: #fff;
}

.article-content {
  max-width: 900px;
}

.article-content h2 {
  margin-top: 38px;
}

.article-content p,
.article-content li {
  color: var(--muted);
}

.article-content ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.seo-summary {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid rgba(0, 110, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(0, 110, 255, 0.08);
}

.seo-summary strong {
  color: var(--text);
}

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.faq-list article {
  padding: 18px;
  border: 1px solid rgba(110, 166, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.faq-list h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.faq-list p {
  margin: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.related-links a {
  padding: 12px 14px;
  border: 1px solid rgba(0, 110, 255, 0.34);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(4, 14, 31, 0.74);
  font-weight: 800;
}

.codex-assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  font-family: "Segoe UI", Arial, sans-serif;
}

.codex-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 18px 0 10px;
  border: 1px solid var(--line-hot);
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 24% 50%, rgba(0, 229, 255, 0.32), transparent 38%),
    rgba(2, 9, 21, 0.9);
  box-shadow: var(--glow), 0 18px 48px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.launcher-face,
.codex-avatar {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 16px;
  background: #06111f;
  box-shadow: inset 0 0 18px rgba(0, 110, 255, 0.55), var(--glow);
}

.launcher-face::before,
.codex-avatar::before {
  position: absolute;
  left: 9px;
  top: 14px;
  width: 8px;
  height: 12px;
  content: "";
  border-radius: 5px;
  background: var(--cyan);
  box-shadow: 16px 0 0 var(--cyan), 0 0 16px var(--blue), 16px 0 16px var(--blue);
}

.launcher-face::after,
.codex-avatar::after {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 15px;
  height: 7px;
  content: "";
  border-bottom: 2px solid var(--cyan);
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.codex-chat {
  position: absolute;
  right: 0;
  bottom: 76px;
  display: none;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line-hot);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(7, 20, 43, 0.96), rgba(2, 7, 18, 0.97)),
    var(--panel-strong);
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(18px);
}

.codex-assistant.is-open .codex-chat {
  display: block;
}

.codex-chat-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(0, 110, 255, 0.26);
  background: rgba(0, 110, 255, 0.08);
}

.codex-chat-header strong,
.codex-chat-header span {
  display: block;
}

.codex-chat-header strong {
  color: #fff;
  font-size: 1.05rem;
}

.codex-chat-header span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.codex-chat-header button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 110, 255, 0.36);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 1.3rem;
}

.codex-chat-body {
  display: grid;
  gap: 12px;
  max-height: 360px;
  padding: 16px;
  overflow-y: auto;
}

.message {
  max-width: 88%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 110, 255, 0.22);
  border-radius: 12px;
  background: rgba(4, 15, 32, 0.82);
}

.message strong {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.message p {
  margin: 0;
  color: #dfe8f7;
  font-size: 0.9rem;
  line-height: 1.48;
}

.message.user {
  justify-self: end;
  border-color: rgba(0, 229, 255, 0.36);
  background: rgba(0, 110, 255, 0.28);
}

.message.user strong {
  color: #fff;
}

.codex-suggestions {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto;
}

.codex-suggestions button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(0, 110, 255, 0.34);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0, 110, 255, 0.08);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.codex-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid rgba(0, 110, 255, 0.26);
}

.codex-chat-form input {
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(0, 110, 255, 0.34);
  border-radius: 10px;
  color: #fff;
  background: rgba(2, 8, 19, 0.86);
  outline: none;
  padding: 0 12px;
}

.codex-chat-form button {
  height: 44px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #078cff);
  cursor: pointer;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes floatHero {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-12px) scale(1.01);
  }
}

@media (max-width: 1280px) {
  .hero,
  .about,
  .technology,
  .codex {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual,
  .nexon-core,
  .tech-map,
  .codex-panel {
    min-height: 650px;
  }

  .product-showcase,
  .finder-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stack-row {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto auto;
    height: 74px;
    padding: 0 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-symbol {
    width: 42px;
    height: 42px;
    font-size: 1.45rem;
  }

  .brand-logo {
    width: 142px;
    height: 48px;
  }

  .brand-text strong {
    font-size: 1.04rem;
  }

  .brand-text small {
    font-size: 0.82rem;
  }

  .menu-toggle {
    justify-self: end;
    display: grid;
  }

  .main-nav,
  .outline-action {
    display: none;
  }

  .site-header.is-open .main-nav {
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(2, 6, 16, 0.96);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .main-nav a {
    padding: 14px 10px;
  }

  .site-header.is-open .main-nav a::after {
    display: none;
  }
}

@media (max-width: 920px) {
  main > section,
  .footer {
    width: min(100% - 28px, 1500px);
  }

  .hero {
    padding-top: 110px;
  }

  .hero::before {
    inset: 74px -52% 0 -18%;
    background-image:
      linear-gradient(90deg, rgba(5, 8, 22, 0.98) 0%, rgba(5, 8, 22, 0.74) 42%, rgba(5, 8, 22, 0.24) 100%),
      linear-gradient(180deg, rgba(5, 8, 22, 0.1), rgba(5, 8, 22, 0.78)),
      url("./assets/ref-pagina-inicial.png");
    background-position: 72% top;
    opacity: 0.72;
  }

  .hero-visual,
  .nexon-core,
  .tech-map,
  .codex-panel {
    min-height: 520px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 280px;
    mask-image: linear-gradient(to bottom, #000, transparent 100%);
  }

  .metric-strip,
  .values,
  .finder-grid,
  .service-grid,
  .stack-row,
  .footer {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .detail-grid,
  .detail-band,
  .case-card,
  .product-lab,
  .workflow-strip,
  .detail-cta,
  .screenshot-gallery,
  .content-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  html,
  body {
    overflow-x: hidden;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 11.5vw, 3.25rem);
    line-height: 1.05;
    overflow-wrap: normal;
  }

  h2 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  p {
    font-size: 1rem;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero,
  .hero-content,
  .hero-content > p:not(.eyebrow),
  .trusted {
    max-width: 100%;
    min-width: 0;
  }

  .hero-actions {
    align-items: stretch;
    gap: 12px;
    max-width: 100%;
  }

  .hero-actions .btn {
    min-width: 0;
    min-height: 54px;
    padding: 13px 14px;
    font-size: 0.88rem;
    white-space: normal;
  }

  .trusted {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card a,
  .service-card a,
  .finder-card a,
  .content-card a {
    width: 100%;
    min-width: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .nexon-core,
  .tech-map,
  .codex-panel {
    min-height: 430px;
  }

  .codex-mini-card {
    right: 16px;
    bottom: 18px;
    width: 190px;
    padding: 16px;
  }

  .core-card,
  .node {
    width: auto;
    min-width: 112px;
    padding: 12px;
    font-size: 0.76rem;
  }

  .core-chip,
  .node.center {
    width: 104px;
    height: 104px;
    font-size: 3rem;
  }

  .metric-strip,
  .values,
  .service-grid,
  .stack-row,
  .footer {
    grid-template-columns: 1fr;
  }

  .product-copy,
  .service-card,
  .case-card,
  .case-copy ul,
  .contact-form,
  .detail-panel,
  .detail-card {
    padding: 24px;
  }

  .detail-main {
    width: min(100% - 28px, 1180px);
    padding-top: 104px;
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }

  .codex-assistant {
    right: 12px;
    bottom: 12px;
  }

  .codex-launcher {
    min-height: 52px;
  }
}
