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

/* ── Tema Escuro (Padrão) ── */
:root {
  --bg-primary: #0a0e1a;
  --bg-card: #151c2e;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(99, 102, 241, 0.3);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --glow-bg: rgba(99, 102, 241, 0.06);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
  --shadow-btn: 0 12px 30px rgba(59, 130, 246, 0.25);
  --badge-red-bg: rgba(239, 68, 68, 0.08);
  --badge-red-border: rgba(239, 68, 68, 0.2);
  --icon-color: #64748b;

  /* Centralização do gradiente para evitar repetição (Padrão DRY) */
  --gradient-accent: linear-gradient(
    90deg,
    var(--accent-indigo),
    var(--accent-blue)
  );
}

/* ── Tema Claro ── */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-accent: rgba(99, 102, 241, 0.3);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent-blue: #2563eb;
  --accent-indigo: #6366f1;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --glow-bg: rgba(99, 102, 241, 0.04);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  --shadow-btn: 0 12px 30px rgba(37, 99, 235, 0.2);
  --badge-red-bg: rgba(239, 68, 68, 0.06);
  --badge-red-border: rgba(239, 68, 68, 0.15);
  --icon-color: #94a3b8;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition:
    background 0.4s ease,
    color 0.4s ease;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    circle at 50% 0%,
    var(--glow-bg),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  /* Animando a opacidade em vez do background para melhor performance */
  transition: opacity 0.4s ease;
}

/* Alternador de Tema */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: var(--shadow-card);
}

.theme-toggle:hover {
  transform: scale(1.05);
  border-color: var(--border-accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  transition: stroke 0.4s ease;
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  padding: 24px;
  margin: auto;
}

/* Cabeçalho */
.header {
  text-align: center;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease-out;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-red-bg);
  border: 1px solid var(--badge-red-border);
  color: var(--accent-red);
  font-size: 0.75rem; /* Convertido: 12px */
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
  transition:
    background 0.3s,
    border-color 0.3s;
}

.header-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: blink 1.5s ease-in-out infinite;
}

.header h1 {
  font-size: 0.9375rem; /* Convertido: 15px */
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.4s ease;
}

/* Card do Domínio */
.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out 0.2s both;
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    background 0.4s ease;
  box-shadow: var(--shadow-card);
}

.domain-card:hover {
  border-color: var(--border-accent);
}

.domain-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-accent),
    var(--accent-indigo),
    var(--border-accent),
    transparent
  );
  opacity: 0.6;
}

.domain-card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 0 0 4px 4px;
}

.domain-name-wrapper {
  text-align: center;
  margin-bottom: 28px;
}

.domain-name,
.domain-extension {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.75rem, 6vw, 2.625rem); /* Convertido para rem */
  font-weight: 700;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.domain-name {
  background-image: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--text-secondary) 100%
  );
}

.domain-extension {
  background-image: linear-gradient(
    135deg,
    var(--accent-indigo),
    var(--accent-blue)
  );
}

.domain-underline {
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 10px;
  margin: 16px auto 0;
  opacity: 0.6;
}

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-color),
    rgba(99, 102, 241, 0.1),
    var(--border-color),
    transparent
  );
  margin: 24px 0;
  transition: background 0.4s;
}

/* Descrição & Recursos */
.description {
  text-align: center;
  margin-bottom: 28px;
}

.description p {
  font-size: 0.90625rem; /* Convertido: 14.5px */
  line-height: 1.75;
  color: var(--text-secondary);
  transition: color 0.4s;
}

.description .highlight {
  color: var(--text-primary);
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.feature-item {
  text-align: center;
  padding: 16px 8px;
  background: var(--glow-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.feature-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.feature-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  display: block;
  stroke: var(--icon-color);
  stroke-width: 1.5;
  fill: none;
  transition: stroke 0.4s ease;
}

.feature-label {
  font-size: 0.6875rem; /* Convertido: 11px */
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Preço & Chamada para Ação (CTA) */
.price-section {
  text-align: center;
  margin-bottom: 18px;
}

.price-label {
  font-size: 0.75rem; /* Convertido: 12px */
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.price-value {
  font-size: 1.75rem; /* Convertido: 28px */
  font-weight: 800;
  color: var(--accent-green);
}

.price-note {
  font-size: 0.75rem; /* Convertido: 12px */
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 18px;
  transition: color 0.4s;
}

.cta-button {
  display: inline-flex; /* Alterado para inline-flex para melhor consistência de alinhamento */
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 1.0625rem; /* Convertido: 17px */
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Rodapé */
.footer-info {
  text-align: center;
  margin-top: 24px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.footer-info p {
  font-size: 0.78125rem; /* Convertido: 12.5px */
  color: var(--text-muted);
  line-height: 1.7;
  transition: color 0.4s;
}

.email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.email svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent-green);
  fill: none;
  stroke-width: 2;
}

.email a {
  color: var(--accent-green);
}

/* Animações */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Acessibilidade: Desabilita animações bruscas para quem prefere movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-delay: -1s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* Responsivo */
@media (max-width: 640px) {
  .container {
    padding: 40px 16px;
  }

  .domain-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .features {
    gap: 8px;
  }

  .feature-item {
    padding: 12px 6px;
  }

  .feature-label {
    font-size: 0.625rem; /* Convertido: 10px */
  }

  .cta-button {
    font-size: 1rem; /* Convertido: 16px */
  }
}

/* Outros Domínios */
.other-domains {
  text-align: center;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.other-domains-title {
  text-align: center;
  font-size: 0.75rem; /* Convertido: 12px */
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.domains-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.domain-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem; /* Convertido: 12px */
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition:
    color 0.3s,
    border-color 0.3s,
    transform 0.3s,
    background 0.3s;
}

.domain-chip:hover {
  color: var(--accent-blue);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

/* Categorias de domínios */
.domain-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.domain-category-label {
  font-size: 0.65625rem; /* Convertido: 10.5px */
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  opacity: 0.7;
}

.domain-category-label::after {
  content: " -";
}
.domain-category-label::before {
  content: "- ";
}
.domain-category .domains-list {
  margin-bottom: 0;
}
