:root {
  --bg-0: #07070f;
  --bg-1: #0d0c1f;
  --bg-2: #141432;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(168, 85, 247, 0.25);
  --border-strong: rgba(168, 85, 247, 0.6);

  --text: #ecebff;
  --text-dim: #a8a6c9;
  --text-mute: #6f6c93;

  --violet: #a855f7;
  --violet-2: #c084fc;
  --cyan: #22d3ee;
  --fuchsia: #ec4899;

  --grad-1: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #22d3ee 100%);
  --grad-violet: linear-gradient(135deg, #c084fc, #a855f7);
  --grad-cyan: linear-gradient(135deg, #67e8f9, #22d3ee);
  --grad-fuchsia: linear-gradient(135deg, #f9a8d4, #ec4899);

  --shadow-neon: 0 0 0 1px rgba(168, 85, 247, 0.4), 0 8px 24px rgba(168, 85, 247, 0.25), 0 0 40px rgba(168, 85, 247, 0.15);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --nav-h: 72px;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--violet);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { top: 8px; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 15, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.45);
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.nav__brand-sub {
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__menu a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
.nav__menu a:hover { color: var(--text); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s, filter 0.2s;
  white-space: nowrap;
}
.btn--neon {
  background: var(--grad-1);
  color: #0a0a14;
  box-shadow: var(--shadow-neon);
}
.btn--neon:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.6), 0 14px 40px rgba(168, 85, 247, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--violet);
}
.btn--block {
  width: 100%;
  padding: 14px 22px;
  position: relative;
}
.btn__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10, 10, 20, 0.3);
  border-top-color: #0a0a14;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.btn.loading .btn__spinner { display: inline-block; }
.btn.loading .btn__label { opacity: 0.6; }
.btn:disabled { cursor: not-allowed; opacity: 0.8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -10% -10% -10% -10%;
  background:
    radial-gradient(900px circle at 20% 0%, rgba(168, 85, 247, 0.35), transparent 50%),
    radial-gradient(700px circle at 90% 30%, rgba(34, 211, 238, 0.22), transparent 50%),
    radial-gradient(800px circle at 50% 90%, rgba(236, 72, 153, 0.18), transparent 50%);
  filter: blur(0);
  animation: hero-pan 18s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes hero-pan {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, -2%, 0) scale(1.05); }
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 12px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.06);
}

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  margin: 18px 0 18px;
  letter-spacing: -1px;
  font-weight: 700;
}
.grad-violet, .grad-cyan, .grad-fuchsia {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grad-violet { background-image: var(--grad-violet); }
.grad-cyan { background-image: var(--grad-cyan); }
.grad-fuchsia { background-image: var(--grad-fuchsia); }

.hero__sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 540px;
  margin: 0 0 28px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero__badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero__badges li {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__badges li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hero__visual {
  display: flex;
  justify-content: center;
}
.hero__logo-glow {
  position: relative;
  padding: 20px;
}
.hero__logo-glow img {
  width: 320px;
  height: 320px;
  max-width: 100%;
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.4),
    0 0 60px rgba(168, 85, 247, 0.5),
    0 0 120px rgba(236, 72, 153, 0.3);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.4), 0 0 60px rgba(168, 85, 247, 0.5), 0 0 120px rgba(236, 72, 153, 0.3); }
  50% { box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4), 0 0 70px rgba(34, 211, 238, 0.5), 0 0 140px rgba(168, 85, 247, 0.4); }
}

/* ===== SECTIONS ===== */
.section {
  padding: 90px 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.04) 50%, transparent 100%);
}
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  margin: 14px 0 12px;
  letter-spacing: -0.5px;
}
.section__lead {
  color: var(--text-dim);
  font-size: 17px;
  margin: 0;
}

/* ===== CARDS ===== */
.grid { display: grid; gap: 22px; }
.grid--cards { grid-template-columns: repeat(3, 1fr); }
.grid--pillars { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-1);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
  border-radius: inherit;
  filter: blur(40px);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(168, 85, 247, 0.2);
}
.card:hover::before { opacity: 0.08; }
.card > * { position: relative; z-index: 1; }

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.12);
  color: var(--violet-2);
  margin-bottom: 18px;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.card__icon svg { width: 28px; height: 28px; }

.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  margin: 0 0 12px;
  font-weight: 600;
}
.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}
.card ul li {
  padding: 5px 0 5px 18px;
  position: relative;
}
.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* ===== PILLARS ===== */
.pillar {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}
.pillar__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}
.pillar h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  margin: 8px 0 8px;
  font-weight: 600;
}
.pillar p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ===== CONTACT ===== */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}
.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.field .optional { color: var(--text-mute); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}
.field input.error,
.field textarea.error {
  border-color: var(--fuchsia);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18);
}

.form__status {
  margin: 4px 0 0;
  font-size: 14px;
  min-height: 20px;
}
.form__status.success { color: #4ade80; }
.form__status.error { color: var(--fuchsia); }

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.2s;
}
.info:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
}
.info__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.12);
  color: var(--violet-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info__label {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.info__value {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-top: 2px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  padding: 36px 0 30px;
  background: var(--bg-1);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.footer__brand img {
  border-radius: 8px;
}
.footer__links {
  display: flex;
  gap: 22px;
}
.footer__links a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--violet-2); }
.footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-mute);
}

/* ===== WHATSAPP FAB ===== */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 2px rgba(37, 211, 102, 0.3);
  z-index: 90;
  transition: transform 0.2s, box-shadow 0.25s;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .grid--pillars { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__badges { justify-content: center; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: var(--nav-h);
    right: 0;
    left: 0;
    background: rgba(13, 12, 31, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 22px;
    gap: 14px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__menu a {
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav__menu .nav__cta { border-bottom: 0; justify-content: center; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 60px 0 70px; }
  .section { padding: 70px 0; }
  .hero__logo-glow img { width: 240px; height: 240px; }

  .footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 520px) {
  .grid--cards { grid-template-columns: 1fr; }
  .grid--pillars { grid-template-columns: 1fr; }
  .wa-fab { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-fab svg { width: 24px; height: 24px; }
  .btn { padding: 11px 18px; font-size: 14.5px; }
}

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