:root {
  --bg: #0a0a12;
  --bg-card: #13131d;
  --bg-elev: #1a1a28;
  --red: #e60012;
  --red-glow: #ff2d42;
  --blue: #00b4d8;
  --blue-glow: #00e5ff;
  --green: #00d97e;
  --text: #f0f0f4;
  --text-dim: #7a7a8e;
  --border: #22222e;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.2rem; }

/* ========== TOPBAR ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 40px; width: auto; }
.topnav { display: flex; gap: 0.4rem; }
.topnav a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  transition: all 0.2s;
}
.topnav a:hover, .topnav a.active {
  color: var(--blue-glow);
  background: rgba(0, 229, 255, 0.08);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(230, 0, 18, 0.2), transparent 45%),
    radial-gradient(circle at 70% 50%, rgba(0, 180, 216, 0.2), transparent 45%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-logo {
  max-width: 320px;
  width: 70%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(0, 180, 216, 0.4)) drop-shadow(0 0 40px rgba(230, 0, 18, 0.3));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-tagline {
  margin-top: 1.5rem;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 800;
  color: var(--text);
}
.hero-sub {
  margin-top: 0.6rem;
  color: var(--text-dim);
  font-size: 1rem;
}
.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.4rem;
  background: linear-gradient(135deg, var(--blue), #0090b0);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 6px 28px rgba(0, 180, 216, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0, 229, 255, 0.5);
}
.cta-large { font-size: 1.1rem; padding: 1.1rem 2.8rem; }

/* ========== STEPS ========== */
.steps-section {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 2.5rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin: 0.7rem auto 0;
  background: linear-gradient(90deg, var(--red), var(--blue));
  border-radius: 2px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.step-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.step-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}
.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.4);
}
.step-icon {
  color: var(--blue-glow);
  margin-bottom: 1rem;
}
.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.step-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== INSTALL ========== */
.install-section {
  padding: 4rem 0;
}
.install-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
}
.install-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(230, 0, 18, 0.12), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 180, 216, 0.12), transparent 50%);
  pointer-events: none;
}
.install-content { position: relative; z-index: 1; }
.install-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 0.8rem;
}
.install-content > p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}
.install-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.install-feature {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ========== CONTACT ========== */
.contact-section {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.contact-subtitle {
  text-align: center;
  color: var(--text-dim);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.2rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.contact-whatsapp:hover { border-color: #25d366; }
.contact-instagram:hover { border-color: #e4405f; }
.contact-telegram:hover { border-color: #229ed9; }
.contact-icon { margin-bottom: 0.8rem; }
.contact-whatsapp .contact-icon { color: #25d366; }
.contact-instagram .contact-icon { color: #e4405f; }
.contact-telegram .contact-icon { color: #229ed9; }
.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.contact-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.footer-logo { height: 32px; width: auto; opacity: 0.7; }
.site-footer p {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ========== MODAL CONSOLE ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}
.modal-console {
  position: relative;
  z-index: 1;
  width: min(580px, 95vw);
  max-height: 90vh;
  background: #0d0d17;
  border: 1px solid #2a2a3a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 180, 216, 0.1);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.console-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: #11111b;
  border-bottom: 1px solid #2a2a3a;
}
.console-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.console-title {
  flex: 1;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
}
.console-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
}
.console-close:hover { color: var(--text); }
.console-body {
  padding: 1.2rem;
  max-height: calc(90vh - 50px);
  overflow-y: auto;
}
.console-section {
  margin-bottom: 1rem;
}
.console-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.input-group {
  display: flex;
  gap: 0.5rem;
}
.console-input {
  flex: 1;
  background: #11111b;
  border: 1px solid #2a2a3a;
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}
.console-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}
.console-input::placeholder {
  color: #444;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
}
.btn-paste, .btn-copy {
  background: #1a1a28;
  border: 1px solid #2a2a3a;
  color: var(--text-dim);
  padding: 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-paste:hover, .btn-copy:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.console-actions {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.btn-check, .btn-generate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}
.btn-check {
  background: linear-gradient(135deg, var(--blue), #0090b0);
  color: #fff;
}
.btn-topchecker {
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  color: #fff;
}
.btn-generate {
  background: linear-gradient(135deg, var(--red), #b3000e);
  color: #fff;
}
.btn-check:hover:not(:disabled), .btn-generate:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-check:disabled, .btn-generate:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.console-loading {
  margin-bottom: 1rem;
  text-align: center;
}
.loading-bar {
  height: 3px;
  background: #1a1a28;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.loading-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--blue), var(--red));
  border-radius: 2px;
  animation: loadingSlide 1.2s ease-in-out infinite;
}
@keyframes loadingSlide {
  0% { width: 0; margin-left: 0; }
  50% { width: 60%; }
  100% { width: 0; margin-left: 100%; }
}
.loading-text {
  color: var(--text-dim);
  font-size: 0.78rem;
}
.console-result {
  background: #11111b;
  border: 1px solid #2a2a3a;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.result-header {
  margin-bottom: 0.8rem;
}
.badge-ok {
  display: inline-block;
  background: rgba(0, 217, 126, 0.15);
  color: var(--green);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(0, 217, 126, 0.3);
}
.badge-error {
  display: inline-block;
  background: rgba(230, 0, 18, 0.15);
  color: var(--red);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(230, 0, 18, 0.3);
}
.badge-teal {
  display: inline-block;
  background: rgba(0, 180, 216, 0.15);
  color: #2dd4bf;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(0, 180, 216, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-deliverable {
  display: inline-block;
  background: rgba(0, 217, 126, 0.2);
  color: #34d399;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(0, 217, 126, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-unlinkable {
  display: inline-block;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(251, 191, 36, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-linkable {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(239, 68, 68, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tc-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.tc-description {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.tc-details {
  background: #0d0d17;
  border: 1px solid #1a1a28;
  border-radius: 8px;
  padding: 0.8rem;
  margin-top: 0.6rem;
}
.tc-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.82rem;
}
.tc-detail-label {
  color: var(--text-dim);
}
.tc-detail-value {
  color: var(--text);
  font-weight: 600;
}
.tc-classification {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #1a1a28;
}
.result-field {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid #1a1a28;
}
.result-field:last-child { border-bottom: none; }
.result-label {
  color: var(--text-dim);
  font-size: 0.82rem;
}
.result-value {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.console-link {
  margin-bottom: 1rem;
}
.link-output {
  font-size: 0.75rem !important;
  color: var(--blue) !important;
}
.console-log {
  background: #0a0a12;
  border: 1px solid #1a1a28;
  border-radius: 8px;
  padding: 0.8rem;
  max-height: 150px;
  overflow-y: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.6;
}
.log-line {
  padding: 0.1rem 0;
}
.log-info { color: #666; }
.log-success { color: var(--green); }
.log-error { color: var(--red); }

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
  .topnav { display: none; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-logo { max-width: 220px; }
  .steps-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .modal-console { width: 98vw; }
  .console-actions { flex-direction: column; }
}
