:root {
  --bg: #03070a;
  --bg-elevated: #071016;
  --bg-cards: rgba(7, 16, 22, 0.78);
  --accent-primary: #00e5ff;
  --accent-secondary: #a6ff4d;
  --accent-tertiary: #ffb84d;
  --accent-glow: rgba(0, 229, 255, 0.28);
  --text-main: #ffffff;
  --text-dim: #a5b3ba;
  --text-muted: #667781;
  --glass-border: rgba(167, 237, 255, 0.14);
  --glass-strong: rgba(0, 229, 255, 0.34);
  --font-heading: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0 1px, transparent 1px 38%),
    linear-gradient(rgba(166, 255, 77, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #03070a 0%, #060d12 45%, #020405 100%);
  background-size: 180px 180px, 54px 54px, 54px 54px, 100% 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 56%, rgba(0, 229, 255, 0.055) 56% 56.35%, transparent 56.35% 100%),
    linear-gradient(245deg, transparent 0 62%, rgba(255, 184, 77, 0.04) 62% 62.35%, transparent 62.35% 100%);
  opacity: 0.8;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.018) 50%, rgba(0, 0, 0, 0.08) 50%);
  background-size: 100% 5px;
  pointer-events: none;
  z-index: 999;
  opacity: 0.16;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0;
}

h2 {
  font-size: 3rem;
  line-height: 1;
}

a {
  color: inherit;
}

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0;
  color: var(--accent-primary);
}

/* Header & Nav */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5vw;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.08), transparent 24%, rgba(166, 255, 77, 0.045) 74%, transparent),
    rgba(3, 7, 10, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  z-index: 1000;
}

.nav::after {
  content: "";
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
  opacity: 0.55;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  text-transform: uppercase;
}

.brand img {
  width: 35px;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 229, 255, 0.06);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 4px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--accent-primary);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 14px var(--accent-glow);
}

.nav-links .nav-cta,
.nav-cta {
  color: var(--accent-primary);
  padding: 10px 12px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: rgba(0, 229, 255, 0.055);
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.mobile-menu {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 118px 6vw 58px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero > *:not(.hero-bg):not(.hero-overlay):not(.hero-glow):not(.hero-grid) {
  position: relative;
  z-index: 3;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.48;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.12);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 7, 10, 0.88) 0%, rgba(2, 8, 10, 0.48) 40%, rgba(2, 7, 10, 0.9) 100%),
    linear-gradient(90deg, rgba(0, 229, 255, 0.12), transparent 22%, transparent 78%, rgba(166, 255, 77, 0.08));
}

.hero-grid {
  position: absolute;
  inset: 70px 0 0;
  z-index: 2;
  background:
    repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.08) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(166, 255, 77, 0.05) 0 1px, transparent 1px 92px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
  opacity: 0.55;
}

.hero-glow {
  position: absolute;
  left: -12vw;
  right: -12vw;
  top: 34%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent) !important;
  box-shadow:
    0 0 22px rgba(0, 229, 255, 0.7),
    0 0 44px rgba(166, 255, 77, 0.22);
  opacity: 0.76 !important;
  z-index: 2;
  animation: signalSweep 5.8s ease-in-out infinite alternate;
}

@keyframes signalSweep {
  from { transform: translateY(-18px) skewY(-0.8deg); }
  to { transform: translateY(38px) skewY(0.8deg); }
}

h1 {
  font-size: 5.8rem;
  line-height: 0.92;
  margin-bottom: 20px;
  background: linear-gradient(110deg, #ffffff 0%, #baf8ff 38%, #d7ff9d 74%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  position: relative;
  display: inline-block;
  max-width: 1120px;
  min-height: 1.86em;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
}

.hero-title-text {
  display: inline;
}

.hero-title::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.88em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.55);
  animation: caretBlink 0.9s steps(1, end) infinite;
}

.hero-title.is-complete::after {
  animation-duration: 1.1s;
}

@keyframes caretBlink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 40px;
}

.hero-kicker {
  margin-bottom: 22px;
  padding: 9px 14px;
  border: 1px solid rgba(0, 229, 255, 0.26);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.06);
}

.hero-copy {
  color: #d3dde1;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-dashboard {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 229, 255, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.dashboard-node {
  min-height: 128px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent 48%),
    rgba(4, 11, 16, 0.86);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-node strong {
  display: block;
  margin: 10px 0 6px;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  color: #ffffff;
}

.dashboard-node small {
  color: var(--text-dim);
  line-height: 1.4;
}

.section-image,
.feature-visual img,
.footer-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.section-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 22px;
  border: 1px solid rgba(0, 229, 255, 0.16);
  filter: saturate(1.05) contrast(1.06);
}

.case-image {
  aspect-ratio: 16 / 10;
}

/* Buttons */
.btn {
  min-height: 54px;
  padding: 16px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #031014;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(0, 229, 255, 0.35);
}

.btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  transition: 0.5s;
}

.btn:hover::after {
  left: 100%;
}

.btn-ghost {
  border-color: var(--glass-border);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.035);
}

.btn-ghost:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
}

/* Cards & Glassmorphism */
.section {
  padding: 120px 5vw;
  position: relative;
}

.section-with-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(0, 229, 255, 0.018);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.section-content {
  position: relative;
  z-index: 2;
}

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

.section-heading h2,
.section-split h2,
.section-narrow h2,
.contact-card h2 {
  margin-top: 14px;
}

.section-heading p,
.section-split p {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--text-dim);
}

.section-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 56px;
}

.section-narrow {
  max-width: 1040px;
  margin: 0 auto;
}

.section-narrow h2 {
  font-size: 2.55rem;
  margin-bottom: 38px;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
}

.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
}

.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 7, 10, 0.94) 0%, rgba(3, 7, 10, 0.72) 45%, rgba(3, 7, 10, 0.94) 100%),
    repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.055) 0 1px, transparent 1px 96px);
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
  counter-reset: section-counter;
}

.grid-services > .card {
  counter-increment: section-counter;
}

.card {
  background: var(--bg-cards);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 6px;
  backdrop-filter: blur(14px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(0, 229, 255, 0.11);
}

.card::before {
  content: "0" counter(section-counter);
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  color: rgba(0, 229, 255, 0.28);
  font-size: 2rem;
  line-height: 1;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(166, 255, 77, 0.08), transparent 28%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  margin: 20px 0;
  color: var(--accent-primary);
}

.card h4 {
  margin: 15px 0;
  font-size: 1.15rem;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.card-code {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn-secondary {
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  background: rgba(0, 229, 255, 0.045);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.12);
}

.info-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.info-list li {
  padding-left: 18px;
  position: relative;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 1px;
  background: var(--accent-primary);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 229, 255, 0.15);
}

.problem-item {
  min-height: 172px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.06), transparent),
    rgba(4, 12, 17, 0.88);
  border-left: 2px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.problem-item:hover {
  border-left-color: var(--accent-tertiary);
  background:
    linear-gradient(180deg, rgba(255, 184, 77, 0.08), transparent),
    rgba(5, 14, 20, 0.92);
}

.problem-item h4 {
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--accent-secondary);
}

.problem-item p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

.case-card {
  padding: 30px;
}

.case-card p {
  font-size: 0.88rem;
}

.contact-card {
  max-width: 920px;
  margin: 0 auto;
  border-color: rgba(0, 229, 255, 0.42);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(166, 255, 77, 0.1), transparent 28%),
    rgba(6, 14, 19, 0.9);
}

.contact-card::before {
  display: none;
}

.contact-card h2 {
  font-size: 2.55rem;
  margin-bottom: 22px;
}

.contact-card p {
  max-width: 680px;
  margin-bottom: 38px;
  color: var(--text-dim);
}

.feature-visual {
  margin: 0 0 28px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

/* Diferenciais */
.diferenciais {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.tag {
  padding: 10px 20px;
  border: 1px solid rgba(166, 255, 77, 0.38);
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-radius: 6px;
  background: rgba(166, 255, 77, 0.045);
}

/* Footer */
footer {
  padding: 80px 5vw;
  border-top: 1px solid var(--glass-border);
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.06), transparent 45%, rgba(255, 184, 77, 0.035)),
    rgba(2, 6, 9, 0.94);
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: left;
  margin-bottom: 60px;
}

.footer-visual {
  margin-top: 24px;
  max-width: 280px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 229, 255, 0.035);
}

.footer-bottom {
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .nav {
    padding: 14px 5vw;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(2, 2, 5, 0.96);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 5vw 24px;
  }

  .mobile-menu.mobile-menu-open {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .mobile-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
  }

  h1 {
    font-size: 3.05rem;
    line-height: 1;
  }

  .hero-title::after {
    height: 0.84em;
  }

  h2 {
    font-size: 2rem !important;
  }

  .hero {
    min-height: auto;
    padding: 112px 6vw 42px;
    align-items: flex-start;
    text-align: left;
  }

  .hero-title {
    min-height: 3.95em;
  }

  .hero p {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start !important;
  }

  .hero-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 26px;
  }

  .dashboard-node {
    min-height: 94px;
    padding: 13px 10px;
  }

  .dashboard-node .mono {
    font-size: 0.54rem;
  }

  .dashboard-node small {
    display: none;
  }

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

  .section {
    padding: 84px 5vw;
  }

  .section-heading {
    margin-bottom: 48px;
    text-align: left;
  }

  .section-heading p,
  .section-split p {
    margin-left: 0;
    margin-right: 0;
  }

  .section-split {
    display: block;
    margin-bottom: 42px;
  }

  .section-narrow h2 {
    font-size: 2rem;
  }

  .section-bg {
    opacity: 0.14;
  }

  .grid-services {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 36px;
  }

  .card {
    padding: 26px 22px;
  }

  .section-image {
    margin-bottom: 18px;
  }

  .card::before {
    font-size: 1.4rem;
    top: 16px;
    right: 16px;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .contact-card h2 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
    margin-bottom: 40px;
  }

  .footer-visual {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px !important;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1rem;
  }

  .brand img {
    width: 30px;
  }

  .mono {
    font-size: 0.64rem;
    letter-spacing: 0;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.65rem !important;
  }

  .btn {
    padding: 16px 18px;
    font-size: 0.72rem;
    width: 100%;
  }

  .hero-glow {
    top: 30%;
  }

  .section {
    padding: 72px 5vw;
  }

  .section-overlay {
    background:
      linear-gradient(180deg, rgba(3, 7, 10, 0.94) 0%, rgba(3, 7, 10, 0.82) 45%, rgba(3, 7, 10, 0.94) 100%);
  }

  .feature-visual,
  .footer-visual {
    border-radius: 4px;
  }

  .hero-bg {
    opacity: 0.28;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(3, 7, 10, 0.86) 0%, rgba(3, 7, 10, 0.66) 38%, rgba(3, 7, 10, 0.92) 100%);
  }

  .hero-title {
    min-height: 4.4em;
  }

  .dashboard-node strong {
    font-size: 1.18rem;
    overflow-wrap: anywhere;
  }
}
