/*esse algoritmo é unicamente e totalmente propriedade intelectual da devdream sob o cnpj 61.829.611/0001-31 */

:root {
  --bg-primary: #0b0214;
  --bg-secondary: #130720;
  --bg-card: rgba(20, 10, 34, 0.78);
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-purple: #9d4edd;
  --accent-purple-strong: #8a2be2;
  --accent-cyan: #00f5ff;
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-neon: 0 0 30px rgba(157, 78, 221, 0.28);
  --shadow-cyan: 0 0 25px rgba(0, 245, 255, 0.18);
  --container-width: min(1120px, calc(100% - 2rem));
  --header-height: 88px;
  --transition: 280ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(157, 78, 221, 0.18), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(0, 245, 255, 0.12), transparent 25%),
    linear-gradient(180deg, #0b0214 0%, #090111 100%);
  color: var(--text-primary);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -2;
}

.page-shell::before {
  top: 5%;
  left: -8rem;
  background: rgba(157, 78, 221, 0.75);
}

.page-shell::after {
  right: -10rem;
  bottom: 12%;
  background: rgba(0, 245, 255, 0.48);
}

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 6rem 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(157, 78, 221, 0.06), transparent 30%),
    linear-gradient(315deg, rgba(0, 245, 255, 0.05), transparent 28%);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 1rem;
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: rgba(11, 2, 20, 0.56);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  font-size: 1.08rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu a {
  position: relative;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  transition: transform var(--transition);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text-primary);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}

.hero {
  min-height: calc(100vh - 1rem);
  display: flex;
  align-items: center;
  padding-top: 3rem;
  overflow: clip;
}

.hero-parallax {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.hero-orb,
.hero-wave,
.hero-grid {
  position: absolute;
}

.hero-orb {
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.7;
}

.orb-one {
  width: 24rem;
  height: 24rem;
  top: 10%;
  right: 8%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.82), rgba(157, 78, 221, 0.12) 70%, transparent 72%);
}

.orb-two {
  width: 18rem;
  height: 18rem;
  bottom: 8%;
  left: 5%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.48), rgba(0, 245, 255, 0.08) 70%, transparent 72%);
}

.hero-grid {
  inset: 10% -10% 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 85%);
  opacity: 0.3;
  transform: perspective(1000px) rotateX(74deg) translateY(18%);
  transform-origin: top center;
}

.hero-wave {
  width: 30rem;
  height: 30rem;
  border-radius: 46%;
  border: 1px solid rgba(0, 245, 255, 0.26);
  filter: blur(0.4px);
}

.wave-top {
  top: -12rem;
  left: -10rem;
  box-shadow:
    0 0 0 12px rgba(157, 78, 221, 0.05),
    0 0 0 24px rgba(0, 245, 255, 0.04);
}

.wave-bottom {
  right: -12rem;
  bottom: -12rem;
  border-color: rgba(157, 78, 221, 0.28);
  box-shadow:
    0 0 0 12px rgba(157, 78, 221, 0.05),
    0 0 0 24px rgba(0, 245, 255, 0.04);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.4rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  max-width: 12ch;
}

.hero-text,
.section-heading p,
.contact-copy p,
.info-card p,
.service-card p,
.hero-stats span,
.site-footer p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.hero-text {
  max-width: 58ch;
  margin: 1.5rem 0 0;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

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

.btn-primary {
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  box-shadow:
    0 12px 35px rgba(157, 78, 221, 0.34),
    0 0 25px rgba(0, 245, 255, 0.16);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow:
    0 16px 36px rgba(157, 78, 221, 0.42),
    0 0 34px rgba(0, 245, 255, 0.24);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow: var(--shadow-cyan);
}

.hero-panel,
.info-card,
.service-card,
.contact-form {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 1.6rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.hero-panel {
  padding: 1.4rem;
  overflow: hidden;
}

.panel-glow {
  position: absolute;
  inset: -20% auto auto 30%;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(157, 78, 221, 0.28);
  filter: blur(70px);
  pointer-events: none;
}

.code-window {
  position: relative;
  z-index: 1;
  padding: 1rem 1rem 1.2rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 4, 12, 0.9);
}

.window-top {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.window-top span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.window-top span:nth-child(1) {
  background: #ff5f57;
}

.window-top span:nth-child(2) {
  background: #febb2e;
}

.window-top span:nth-child(3) {
  background: #28c840;
}

.code-lines {
  display: grid;
  gap: 0.8rem;
  color: #d6ccff;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.98rem;
}

.code-lines p {
  margin: 0;
}

.code-lines span {
  color: var(--accent-cyan);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1rem;
}

.hero-stats article,
.service-card,
.info-card {
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.hero-stats article {
  padding: 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stats strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.about-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.info-card,
.service-card {
  padding: 1.7rem;
}

.info-card::before,
.service-card::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.65), rgba(0, 245, 255, 0.35), transparent 72%);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.45;
  pointer-events: none;
}

.info-card:hover,
.service-card:hover,
.hero-stats article:hover {
  transform: translateY(-6px);
  border-color: rgba(157, 78, 221, 0.35);
  box-shadow: var(--shadow-neon);
}

.info-card h3,
.service-card h3 {
  margin: 0 0 0.85rem;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
}

.service-icon {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  border-radius: 1rem;
  color: var(--accent-cyan);
  background: linear-gradient(180deg, rgba(157, 78, 221, 0.22), rgba(0, 245, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 1.3rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.6rem;
  align-items: start;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}

.social-links a {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow: var(--shadow-cyan);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  outline: 0;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.site-footer {
  padding: 0 0 2.5rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: flex;
  gap: 1rem;
  color: var(--text-secondary);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-content,
  .contact-layout,
  .about-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-panel {
    max-width: 42rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

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

  .site-header {
    padding-top: 0.75rem;
  }

  .navbar {
    position: relative;
    padding: 1rem 1.1rem;
  }

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

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.85rem;
    padding: 1.1rem;
    border-radius: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 2, 20, 0.94);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity var(--transition),
      transform var(--transition);
  }

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

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

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

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

  .section {
    padding: 5rem 0;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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

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

  .brand img {
    width: 42px;
    height: 42px;
  }

  .hero-panel,
  .info-card,
  .service-card,
  .contact-form {
    border-radius: 1.25rem;
  }

  .hero-wave {
    width: 22rem;
    height: 22rem;
  }
}