:root {
  --ink: #101418;
  --ink-soft: #3a454f;
  --paper: #f7fafc;
  --paper-deep: #e8eef3;
  --cyan: #1aa6b8;
  --cyan-bright: #26c6da;
  --amber: #e89a1c;
  --amber-bright: #f9a825;
  --crimson: #e14b48;
  --blue: #1e6fbf;
  --whatsapp: #25d366;
  --whatsapp-deep: #1ebe57;
  --line: rgba(16, 20, 24, 0.08);
  --shadow: 0 24px 60px rgba(16, 40, 56, 0.12);
  --font-display: "Chakra Petch", sans-serif;
  --font-body: "Manrope", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(38, 198, 218, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(249, 168, 37, 0.14), transparent 50%),
    linear-gradient(165deg, #fbfcfd 0%, #eef4f8 45%, #f8f4ec 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

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

.grid-plane {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 72%);
  animation: grid-drift 28s linear infinite;
  opacity: 0.9;
}

.wash {
  position: absolute;
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.35;
  animation: wash-breathe 9s ease-in-out infinite;
}

.wash-cyan {
  top: -8%;
  right: -4%;
  background: var(--cyan-bright);
}

.wash-amber {
  bottom: -12%;
  left: -6%;
  background: var(--amber-bright);
  animation-delay: -4s;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--amber);
  opacity: 0.35;
  animation: orbit-spin 18s linear infinite;
}

.orbit-a {
  width: min(70vw, 680px);
  height: min(70vw, 680px);
  top: 8%;
  left: 50%;
  translate: -50% 0;
  border-bottom-color: var(--crimson);
}

.orbit-b {
  width: min(52vw, 460px);
  height: min(52vw, 460px);
  top: 16%;
  left: 50%;
  translate: -50% 0;
  border-top-color: var(--blue);
  border-left-color: var(--cyan-bright);
  animation-direction: reverse;
  animation-duration: 24s;
  opacity: 0.28;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: clamp(1rem, 3vw, 2.5rem);
  text-align: center;
}

.brand-mark {
  margin: 0;
  width: min(58vw, min(38vh, 360px));
  animation: rise-in 0.9s var(--ease-out) both;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.copy {
  max-width: 36rem;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  animation: rise-in 1s var(--ease-out) 0.12s both;
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-indent: 0.18em;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.lede {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
  animation: rise-in 1.05s var(--ease-out) 0.24s both;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.cta-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.cta:hover {
  transform: translateY(-2px);
}

.cta:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.cta-primary {
  background: var(--ink);
  color: #fff;
}

.cta-primary:hover {
  background: #1e2a33;
}

.cta-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(16, 20, 24, 0.22);
}

.cta-secondary:hover {
  border-color: var(--cyan);
  color: #0f6f7c;
}

.cta-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.cta-whatsapp:hover {
  background: var(--whatsapp-deep);
}

.cta-whatsapp:focus-visible {
  outline-color: var(--whatsapp);
}

.contact-line {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.contact-line a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

.contact-line a:hover {
  color: var(--cyan);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grid-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-36px, -36px, 0);
  }
}

@keyframes wash-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.28;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.42;
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .hero {
    gap: 0.85rem;
    padding-block: 1.5rem 2rem;
  }

  .brand-mark {
    width: min(70vw, min(34vh, 280px));
  }

  .cta-group {
    width: 100%;
    flex-direction: column;
  }

  .cta {
    width: 100%;
  }
}

@media (max-height: 760px) and (min-width: 641px) {
  .brand-mark {
    width: min(42vw, 280px);
  }

  .copy {
    gap: 0.55rem;
  }

  .cta {
    min-height: 2.55rem;
    padding: 0.55rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grid-plane,
  .wash,
  .orbit,
  .brand-mark,
  .copy,
  .cta-group {
    animation: none !important;
  }
}
