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

:root {
  --bg-dark: #020617;
  --bg-card: rgba(15, 23, 42, 0.92);
  --accent: #22d3ee;
  --accent-2: #6366f1;
  --accent-3: #fbbf24;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.4);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --blur-bg: 18px;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  overflow: hidden;
}

/* Fundo animado */

.bg-gradient {
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 10% 0%, #0f172a 0, transparent 45%),
    radial-gradient(circle at 90% 100%, #1f2937 0, transparent 45%),
    radial-gradient(circle at 0% 100%, #0ea5e9 0, transparent 55%),
    radial-gradient(circle at 100% 0%, #6366f1 0, transparent 55%);
  filter: blur(4px);
  animation: bg-pulse 18s ease-in-out infinite alternate;
  z-index: -3;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: screen;
  opacity: 0.45;
  animation: grid-move 50s linear infinite;
  z-index: -2;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.45), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.55), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: glow-shift 18s ease-in-out infinite alternate;
  z-index: -1;
}

/* Partículas */

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

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  box-shadow: 0 0 8px rgba(226, 232, 240, 0.9);
  opacity: 0;
  animation: particle-float linear infinite;
}

/* Layout principal */

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.card {
  width: min(1100px, 100%);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--blur-bg));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(130deg, rgba(56, 189, 248, 0.9), rgba(139, 92, 246, 0.8), rgba(250, 204, 21, 0.8))
    border-box;
  mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0.45;
}

/* Colunas */

.card-left,
.card-right {
  position: relative;
  z-index: 1;
}

.card-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 22px;
  border: 1px solid rgba(248, 250, 252, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.9), transparent 60%),
              rgba(15, 23, 42, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
  transform: translateY(0);
  animation: logo-bounce 3.5s ease-in-out infinite;
}

.logo-icon {
  font-size: 1.8rem;
}

.title {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.title-highlight {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9em;
  font-weight: 500;
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.12), transparent 55%),
              rgba(15, 23, 42, 0.75);
  font-size: 0.78rem;
  color: #e5e7eb;
}

.badge i {
  font-size: 0.82rem;
  color: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.btn-primary {
  position: relative;
  border: none;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.6), transparent 55%),
              linear-gradient(135deg, var(--accent-2), var(--accent));
  color: white;
  font-size: 0.86rem;
  padding: 9px 16px 9px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(248, 250, 252, 0.4), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.btn-primary:hover::after {
  opacity: 1;
  transform: translateX(20%);
}

.btn-dot {
  position: absolute;
  left: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
  animation: dot-pulse 1.8s ease-in-out infinite;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.soon-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-3);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.9);
}

.credits {
  margin-top: auto;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.credits strong {
  color: #e5e7eb;
}

/* Lado direito: imagens tech + ícones */

.card-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-stack {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.35), transparent 55%),
    rgba(15, 23, 42, 0.95);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.tech-layer {
  position: absolute;
  inset: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.tech-layer img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.6));
}

.layer-orbit {
  animation: layer-orbit 24s linear infinite;
}

.layer-circuit {
  inset: 18%;
  animation: layer-circuit 26s linear infinite;
  opacity: 0.6;
}

.layer-data {
  inset: 26%;
  animation: layer-data 18s ease-in-out infinite alternate;
  opacity: 0.8;
}

/* Ícones flutuantes ao redor */

.floating-icon {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.6), transparent 55%),
              rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}

.icon-1 {
  top: 10%;
  left: 4%;
  animation: float-1 7s ease-in-out infinite;
}

.icon-2 {
  top: 12%;
  right: 6%;
  animation: float-2 8s ease-in-out infinite;
}

.icon-3 {
  bottom: 12%;
  left: 3%;
  animation: float-3 7.4s ease-in-out infinite;
}

.icon-4 {
  bottom: 8%;
  right: 8%;
  animation: float-4 6.8s ease-in-out infinite;
}

/* Responsivo */

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .card {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }

  .card-right {
    order: -1;
  }

  .tech-stack {
    max-width: 280px;
  }
}

/* Animações */

@keyframes bg-pulse {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.05) translate(-2%, 1%);
  }
  100% {
    transform: scale(1.12) translate(2%, -2%);
  }
}

@keyframes grid-move {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 160px 160px, 160px 160px;
  }
}

@keyframes glow-shift {
  0% {
    opacity: 0.6;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.95;
    transform: translate3d(1%, -2%, 0);
  }
  100% {
    opacity: 0.7;
    transform: translate3d(-2%, 1%, 0);
  }
}

@keyframes particle-float {
  0% {
    transform: translate3d(0, 0, 0) scale(0.3);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translate3d(var(--tx, 0), -120vh, 0) scale(0.9);
    opacity: 0;
  }
}

@keyframes logo-bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.03);
  }
}

@keyframes dot-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.4;
  }
}

@keyframes layer-orbit {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.02);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes layer-circuit {
  0% {
    transform: rotate(0deg) scale(1.05);
  }
  100% {
    transform: rotate(-360deg) scale(1.05);
  }
}

@keyframes layer-data {
  0% {
    transform: translateY(6px);
  }
  100% {
    transform: translateY(-6px);
  }
}

@keyframes float-1 {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, 8px);
  }
}

@keyframes float-2 {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-8px, 12px);
  }
}

@keyframes float-3 {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(6px, -10px);
  }
}

@keyframes float-4 {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10px, -4px);
  }
}
