/* 𝕺𝖗𝖇𝖞𝖙𝖊𝖐 — Web oficial · Estilos 3D */

:root {
  --bg: #0d0614;
  --bg-alt: #140a1e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4eef8;
  --text-muted: #a89bb5;
  --accent: #da0081;
  --accent-2: #9b4dca;
  --accent-glow: rgba(218, 0, 129, 0.45);
  --telegram: #2aabee;
  --whatsapp: #25d366;
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ─── 3D Scene background ─── */
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  perspective: 1200px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: var(--accent);
  top: -10%;
  right: -5%;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: var(--accent-2);
  bottom: 10%;
  left: -8%;
  animation-delay: -4s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: #6b21a8;
  top: 40%;
  left: 40%;
  animation-delay: -8s;
  opacity: 0.3;
}

.grid-floor {
  position: absolute;
  bottom: -30%;
  left: -50%;
  width: 200%;
  height: 80%;
  background-image:
    linear-gradient(rgba(218, 0, 129, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(218, 0, 129, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(72deg);
  transform-origin: center top;
  mask-image: linear-gradient(to top, black 20%, transparent 80%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

/* ─── Header ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(13, 6, 20, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  transform-style: preserve-3d;
  transition: transform 0.3s;
}

.logo-glyph {
  font-size: 1.6rem;
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ─── Hero ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 4rem 0;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title-main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-title-sub {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--text-muted);
}

.hero-desc {
  margin: 1.5rem 0 2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 32rem;
}

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

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform-style: preserve-3d;
  perspective: 800px;
}

.cube-wrap {
  width: 180px;
  height: 180px;
  transform-style: preserve-3d;
  animation: spinCube 20s linear infinite;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.cube-face {
  position: absolute;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(218, 0, 129, 0.15), rgba(155, 77, 202, 0.1));
  border: 1px solid rgba(218, 0, 129, 0.35);
  border-radius: 12px;
  backface-visibility: visible;
  box-shadow: 0 0 40px var(--accent-glow), inset 0 0 30px rgba(218, 0, 129, 0.1);
}

.cube-face.front  { transform: rotateY(0deg) translateZ(90px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(90px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(90px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(90px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(90px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(90px); }

@keyframes spinCube {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to   { transform: rotateX(-18deg) rotateY(360deg); }
}

.hero-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 2px solid rgba(218, 0, 129, 0.25);
  border-radius: 50%;
  animation: pulseRing 4s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

/* ─── Sections ─── */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, var(--bg-alt) 20%, var(--bg-alt) 80%, transparent);
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.section-head h2 em {
  font-style: normal;
  color: var(--accent);
}

.section-desc {
  margin-top: 0.75rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-inline: auto;
}

/* ─── Cards 3D ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card-3d {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card-3d:hover {
  border-color: rgba(218, 0, 129, 0.35);
  box-shadow: 0 28px 60px rgba(218, 0, 129, 0.15);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card-3d h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

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

/* ─── Canal oficial (apps) ─── */
.channel-feature {
  display: flex;
  justify-content: center;
  max-width: 560px;
  margin-inline: auto;
}

.channel-card {
  position: relative;
  width: 100%;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(42, 171, 238, 0.25);
  text-align: center;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.channel-card:hover {
  border-color: rgba(42, 171, 238, 0.55);
  box-shadow: 0 24px 60px rgba(42, 171, 238, 0.18);
}

.channel-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.25), transparent 70%);
  pointer-events: none;
}

.channel-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.35);
}

.channel-icon-wrap svg {
  width: 40px;
  height: 40px;
  color: var(--telegram);
}

.channel-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.channel-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.75rem;
  line-height: 1.65;
  position: relative;
}

.btn-channel {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2aabee, #1d8ccc);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.btn-channel:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(42, 171, 238, 0.35);
}

/* ─── Apps (legacy grid — unused) ─── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.app-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s, border-color 0.35s;
}

.app-card:hover {
  border-color: rgba(218, 0, 129, 0.4);
}

.app-glow {
  position: absolute;
  top: -40%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.app-glow-bm { background: radial-gradient(circle, rgba(120, 50, 200, 0.4), transparent 70%); }
.app-glow-ios { background: radial-gradient(circle, rgba(50, 150, 255, 0.35), transparent 70%); }

.app-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(218, 0, 129, 0.2);
  color: var(--accent);
  margin-bottom: 1rem;
}

.app-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.app-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.btn-app {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #a0206a);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-app-bm {
  background: linear-gradient(135deg, #6b21a8, #9333ea);
}

.btn-app-ios {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

/* ─── Community links ─── */
.community-block {
  margin-bottom: 2.5rem;
}

.community-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.icon-telegram { width: 28px; height: 28px; color: var(--telegram); }
.icon-whatsapp { width: 28px; height: 28px; color: var(--whatsapp); }

.link-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.link-card:hover {
  transform: translateX(6px) translateZ(8px);
  box-shadow: -4px 12px 32px rgba(0, 0, 0, 0.3);
}

.link-telegram:hover {
  border-color: rgba(42, 171, 238, 0.5);
  box-shadow: -4px 12px 32px rgba(42, 171, 238, 0.15);
}

.link-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: -4px 12px 32px rgba(37, 211, 102, 0.15);
}

.link-owner {
  border-color: rgba(218, 0, 129, 0.25);
}

.link-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.link-telegram .link-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--telegram);
}

.link-whatsapp .link-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--whatsapp);
}

.link-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.link-card-body strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.link-card-body span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.link-card-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.link-card:hover .link-card-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  border-color: rgba(37, 211, 102, 0.45);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.12);
  transform: translateY(-4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--whatsapp);
}

.contact-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-card span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

/* ─── Tilt effect helper ─── */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .cube-wrap {
    width: 140px;
    height: 140px;
  }

  .cube-face {
    width: 140px;
    height: 140px;
    font-size: 2rem;
  }

  .cube-face.front  { transform: rotateY(0deg) translateZ(70px); }
  .cube-face.back   { transform: rotateY(180deg) translateZ(70px); }
  .cube-face.right  { transform: rotateY(90deg) translateZ(70px); }
  .cube-face.left   { transform: rotateY(-90deg) translateZ(70px); }
  .cube-face.top    { transform: rotateX(90deg) translateZ(70px); }
  .cube-face.bottom { transform: rotateX(-90deg) translateZ(70px); }

  .hero-ring {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 6, 20, 0.97);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
