:root {
  --ink: #11101a;
  --muted: #6c6578;
  --paper: #f7f5fb;
  --panel: #ffffff;
  --line: rgba(17, 16, 26, 0.12);
  --violet-dark: #4b0082;
  --violet: #7b25e8;
  --violet-soft: #b56cff;
  --silver: #f4f2f8;
  --charcoal: #090912;
  --header: rgba(9, 9, 18, 0.78);
  --shadow: 0 22px 60px rgba(43, 18, 77, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  content: "";
  background: var(--charcoal);
  opacity: 0;
  transition: opacity 380ms ease;
}

body.is-transitioning::before {
  opacity: 0.5;
}

.pointer-glow {
  position: fixed;
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 2;
  width: 420px;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(181, 108, 255, 0.16), rgba(123, 37, 232, 0.07) 38%, transparent 68%);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 260ms ease;
}

body.has-pointer .pointer-glow {
  opacity: 1;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 54px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: var(--header);
  box-shadow: 0 10px 34px rgba(9, 9, 18, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(142px, 17vw, 190px);
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a {
  position: relative;
  opacity: 0.82;
  transition: opacity 180ms ease, color 180ms ease;
}

.nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--violet-soft), transparent);
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover {
  opacity: 1;
}

.nav a:hover::after,
.nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav a.is-active {
  opacity: 1;
  color: #fff;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-bottom: 112px;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 66% 30%, rgba(123, 37, 232, 0.32), transparent 34%),
    linear-gradient(90deg, rgba(9, 9, 18, 0.98), rgba(9, 9, 18, 0.78) 50%, rgba(9, 9, 18, 0.92)),
    repeating-linear-gradient(90deg, rgba(181, 108, 255, 0.08) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(244, 242, 248, 0.045) 0 1px, transparent 1px 72px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  animation: gridDrift 18s linear infinite;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-atmosphere span {
  position: absolute;
  width: 44vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 108, 255, 0.55), transparent);
  opacity: 0.34;
  transform: rotate(-16deg);
  animation: lightSweep 8s linear infinite;
}

.hero-atmosphere span:nth-child(1) {
  top: 24%;
  left: -45%;
}

.hero-atmosphere span:nth-child(2) {
  top: 54%;
  left: -60%;
  animation-delay: 2.4s;
  opacity: 0.24;
}

.hero-atmosphere span:nth-child(3) {
  top: 76%;
  left: -52%;
  animation-delay: 4.8s;
  opacity: 0.2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(9, 9, 18, 0.88) 0%, rgba(9, 9, 18, 0.08) 46%),
    radial-gradient(ellipse at 50% 100%, rgba(123, 37, 232, 0.3), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 116px);
  padding-top: 76px;
  color: #fff;
}

.hero-logo {
  width: min(720px, 100%);
  margin: 0 0 32px;
  animation: heroRise 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  filter: drop-shadow(0 24px 48px rgba(123, 37, 232, 0.22));
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.3rem, 6.4vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: 0;
  animation: heroRise 900ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-copy {
  max-width: 640px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.55;
  animation: heroRise 900ms 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  animation: heroRise 900ms 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 42%, transparent 64%);
  pointer-events: none;
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(123, 37, 232, 0.24);
}

.button:hover::after {
  transform: translateX(120%);
}

.button.primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-soft));
  color: #fff;
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--violet-dark), var(--violet));
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
}

.whatsapp-button {
  min-width: 230px;
}

.whatsapp-button::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: #25d366;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.56);
  animation: whatsappPulse 1.7s ease-out infinite;
}

.hero-strip {
  position: absolute;
  left: clamp(18px, 8vw, 116px);
  right: clamp(18px, 8vw, 116px);
  bottom: 22px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(181, 108, 255, 0.28);
  border-radius: 8px;
  background: rgba(123, 37, 232, 0.14);
  color: #fff;
  backdrop-filter: blur(18px);
  animation: heroStrip 900ms 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-strip span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: rgba(9, 9, 18, 0.46);
  font-weight: 800;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro > p {
  margin: 44px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.8;
}

.ecosystem,
.identity,
.structure {
  border-top: 1px solid var(--line);
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  --lift: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --mx: 50%;
  --my: 50%;
  min-height: 320px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.product-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(181, 108, 255, 0.16), transparent 42%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.product-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.24), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.product-card:hover {
  --lift: -8px;
  border-color: rgba(123, 37, 232, 0.34);
  box-shadow: 0 28px 72px rgba(43, 18, 77, 0.2);
}

.product-card:hover::before,
.product-card:hover::after {
  opacity: 1;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card.featured {
  background: var(--charcoal);
  color: #fff;
}

.product-index {
  color: var(--violet);
  font-weight: 900;
}

.product-card.featured .product-index {
  color: var(--violet-soft);
}

.product-card h3,
.structure-item h3 {
  margin: 52px 0 14px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.product-card p,
.structure-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 28px;
  color: var(--violet);
  font-size: 0.9rem;
  font-weight: 900;
}

.card-link::after {
  content: " ->";
}

.product-card.featured p {
  color: rgba(255, 255, 255, 0.76);
}

.identity-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: center;
  margin-top: 42px;
}

.identity-logo {
  display: grid;
  --lift: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  min-height: 280px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(9, 9, 18, 0.96), rgba(23, 12, 39, 0.96)),
    repeating-linear-gradient(90deg, rgba(181, 108, 255, 0.09) 0 1px, transparent 1px 50px);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.identity-logo:hover {
  --lift: -6px;
  box-shadow: 0 30px 80px rgba(43, 18, 77, 0.22);
}

.identity-logo img {
  width: min(300px, 74%);
}

.identity-notes p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.8;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.swatches span {
  width: 58px;
  height: 38px;
  border: 1px solid rgba(17, 16, 26, 0.12);
  border-radius: 8px;
  background: var(--swatch);
  box-shadow: 0 10px 28px rgba(43, 18, 77, 0.12);
  transition: transform 180ms ease;
}

.swatches span:hover {
  transform: translateY(-4px);
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 44px;
}

.structure-item {
  padding-top: 24px;
  border-top: 3px solid var(--violet);
  transition: transform 220ms ease;
}

.structure-item:hover {
  transform: translateY(-5px);
}

.structure-item span {
  color: var(--violet);
  font-weight: 900;
}

.contact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: none;
  padding-inline: clamp(18px, 8vw, 116px);
  background: var(--charcoal);
  color: #fff;
}

.contact h2 {
  max-width: 760px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 54px);
  background: #07070d;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.footer img {
  width: 146px;
  height: auto;
}

@media (max-width: 840px) {
  .nav-toggle {
    position: relative;
    z-index: 30;
    display: grid;
    gap: 6px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: transparent;
    color: inherit;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(181, 108, 255, 0.24);
    border-radius: 8px;
    background: rgba(9, 9, 18, 0.96);
    color: #fff;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 15px;
  }

  .nav a::after {
    bottom: 8px;
  }

  .hero {
    min-height: 96vh;
    align-items: flex-start;
    padding-top: 116px;
    padding-bottom: 210px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(9, 9, 18, 0.94) 0%, rgba(9, 9, 18, 0.74) 54%, rgba(9, 9, 18, 0.42) 100%),
      linear-gradient(0deg, rgba(9, 9, 18, 0.76), rgba(9, 9, 18, 0));
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 0;
  }

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

  .intro,
  .product-grid,
  .identity-layout,
  .structure-grid {
    grid-template-columns: 1fr;
  }

  .intro > p {
    margin-top: 0;
  }

  .product-card {
    min-height: 260px;
  }

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

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroStrip {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: 0 0, 0 0, 72px 0, 0 72px;
  }
}

@keyframes lightSweep {
  from {
    transform: translateX(0) rotate(-16deg);
  }

  to {
    transform: translateX(180vw) rotate(-16deg);
  }
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.56);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

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

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-strip {
    bottom: 14px;
  }

  .hero-strip span {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}
