/* ===========================
   GLOBAL RESET & BASE STYLES
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #0a0a0f;
  color: #fff;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

body {
  position: relative;
  line-height: 1.5;
}

/* ===========================
   BACKGROUND ELEMENTS
   =========================== */

.bg-orbit {
  position: fixed;
  top: 0;
  left: 0;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at center, #6a00ff 0%, #2b0055 40%, #0a0a0f 80%);
  opacity: 0.75;
  filter: blur(80px);
  z-index: -3;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(#ffffff05 1px, transparent 1px),
                    linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

/* ===========================
   NAVIGATION BAR
   =========================== */

header {
  width: 100%;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 15, 0.6);
  border-bottom: 1px solid #ffffff10;
}

.nav {
  width: 90%;
  max-width: 1400px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7a00ff, #4b00b5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-logo-inner {
  font-weight: 700;
  font-size: 18px;
}

.nav-title-main {
  font-size: 20px;
  font-weight: 700;
}

.nav-title-sub {
  font-size: 12px;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-shortcut {
  font-size: 12px;
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 6px;
}

kbd {
  background: #ffffff15;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  border: 1px solid #ffffff20;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  width: 90%;
  max-width: 1400px;
  margin: 80px auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.hero-copy {
  flex: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff10;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.pill-dot {
  width: 10px;
  height: 10px;
  background: #7a00ff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pill-dot-inner {
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title span {
  color: #a56bff;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 30px;
}

.hero-subtitle-strong {
  color: #caa3ff;
  font-weight: 600;
}

.hero-metrics {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.metric-number {
  font-size: 28px;
  font-weight: 700;
}

.metric-label {
  font-size: 12px;
  opacity: 0.6;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, #7a00ff, #4b00b5);
  padding: 14px 26px;
  border-radius: 10px;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.btn-ghost {
  background: transparent;
  border: 1px solid #ffffff30;
  padding: 14px 26px;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost-dot {
  width: 8px;
  height: 8px;
  background: #7a00ff;
  border-radius: 50%;
}

.hero-kbd-hint {
  font-size: 12px;
  opacity: 0.6;
}

/* ===========================
   HERO VISUAL PANEL
   =========================== */

.hero-visual {
  flex: 1;
  position: relative;
}

.hero-visual-orb {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #7a00ff, #4b00b5);
  filter: blur(60px);
  opacity: 0.5;
  z-index: -1;
}

.panel {
  background: #0f0f17;
  border: 1px solid #ffffff15;
  border-radius: 12px;
  overflow: hidden;
  height: 420px;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1a25;
  padding: 10px 14px;
  border-bottom: 1px solid #ffffff10;
}

.panel-dots {
  display: flex;
  gap: 6px;
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.panel-dot.red { background: #ff5f56; }
.panel-dot.yellow { background: #ffbd2e; }
.panel-dot.green { background: #27c93f; }

.panel-title {
  font-size: 14px;
  opacity: 0.8;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.line {
  display: flex;
  gap: 14px;
  margin-bottom: 6px;
}

.line-number {
  opacity: 0.4;
  width: 24px;
}

.line-content span.keyword {
  color: #c792ea;
}

.line-content span.string {
  color: #a5e844;
}

.line-content span.comment {
  color: #6c6c6c;
}

.scan-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: #7a00ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.scan-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}
/* ===========================
   FEATURES SECTION
   =========================== */

.section {
  width: 90%;
  max-width: 1400px;
  margin: 120px auto;
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 16px;
  opacity: 0.7;
  max-width: 700px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: #11111a;
  border: 1px solid #ffffff10;
  padding: 24px;
  border-radius: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #7a00ff;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 16px;
}

.feature-tag {
  display: inline-block;
  background: #7a00ff30;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #caa3ff;
}

/* ===========================
   CHECKOUT SECTION
   =========================== */

.checkout {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.checkout-copy {
  flex: 1;
  font-size: 15px;
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-tag {
  font-size: 32px;
  font-weight: 800;
  margin-top: 10px;
}

.price-tag small {
  font-size: 12px;
  opacity: 0.6;
  display: block;
}

.guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
}

.guarantee-dot {
  width: 10px;
  height: 10px;
  background: #7a00ff;
  border-radius: 50%;
}

.secure-row {
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ===========================
   CHECKOUT CARD
   =========================== */

.card {
  flex: 1;
  background: #11111a;
  border: 1px solid #ffffff15;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 20px;
  background: #1a1a25;
  border-bottom: 1px solid #ffffff10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-product-name {
  font-size: 18px;
  font-weight: 700;
}

.card-product-tagline {
  font-size: 12px;
  opacity: 0.6;
}

.card-badge {
  background: #7a00ff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.card-footer {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.helper-text {
  font-size: 12px;
  opacity: 0.6;
}

/* ===========================
   INPUT FIELD
   =========================== */

.input-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 13px;
  opacity: 0.7;
}

.input-wrapper {
  background: #1a1a25;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  padding: 10px;
}

.input-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
}

/* ===========================
   BUTTONS
   =========================== */

.btn-pay {
  background: linear-gradient(135deg, #7a00ff, #4b00b5);
  padding: 14px 26px;
  border-radius: 10px;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease;
}

.btn-pay:hover {
  transform: scale(1.05);
}

.status-message {
  font-size: 13px;
  opacity: 0.8;
}

.status-message.success {
  color: #7aff9e;
}

.status-message.error {
  color: #ff6b6b;
}

/* ===========================
   KEYBOARD OVERLAY
   =========================== */

.keyboard-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #11111a;
  border: 1px solid #ffffff15;
  padding: 16px;
  border-radius: 12px;
  font-size: 12px;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.keyboard-overlay-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.keyboard-overlay-highlight {
  margin-top: 6px;
  opacity: 1;
  color: #caa3ff;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  width: 100%;
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
  opacity: 0.6;
  font-size: 14px;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
}
/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1200px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .checkout {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 32px;
  }

  .btn-primary,
  .btn-ghost,
  .btn-pay {
    width: 100%;
    text-align: center;
  }

  .keyboard-overlay {
    display: none;
  }
}

/* ===========================
   SCROLLBAR STYLING
   =========================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: #4b00b5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7a00ff;
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.hero-visual-orb {
  animation: float 6s ease-in-out infinite;
}

.feature-card:hover {
  animation: float 3s ease-in-out infinite;
}

/* ===========================
   TRANSITIONS & EFFECTS
   =========================== */

a, button, .feature-card, .panel, .card {
  transition: all 0.2s ease;
}

input:focus {
  border-color: #7a00ff;
  outline: none;
}

.btn-primary:active,
.btn-pay:active {
  transform: scale(0.97);
}

/* ===========================
   EXTRA POLISH
   =========================== */

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #7a00ff, #4b00b5);
  margin-top: 8px;
  border-radius: 4px;
}

.card-badge {
  box-shadow: 0 0 10px #7a00ff80;
}

.scan-badge {
  box-shadow: 0 0 12px #7a00ff80;
}

.btn-pay {
  box-shadow: 0 0 12px #7a00ff40;
}

.btn-pay:hover {
  box-shadow: 0 0 18px #7a00ff80;
}

.panel {
  box-shadow: 0 0 20px #00000060;
}

.feature-card {
  box-shadow: 0 0 14px #00000040;
}

footer {
  border-top: 1px solid #ffffff10;
}
/* ===========================
   FINAL POLISH & MICRODETAILS
   =========================== */

/* Sutil brillo en hover para inputs */
.input-wrapper:hover {
  border-color: #7a00ff80;
}

/* Efecto de foco más visible */
.input-field:focus {
  color: #fff;
  text-shadow: 0 0 4px #7a00ff80;
}

/* Botones con efecto de presión */
.btn-primary:active,
.btn-ghost:active,
.btn-pay:active {
  transform: scale(0.96);
  filter: brightness(0.9);
}

/* Tarjetas con sombra suave */
.card,
.feature-card,
.panel {
  transition: box-shadow 0.25s ease;
}

.card:hover {
  box-shadow: 0 0 22px #7a00ff40;
}

.panel:hover {
  box-shadow: 0 0 26px #7a00ff30;
}

/* Animación suave al hacer scroll */
html {
  scroll-behavior: smooth;
}

/* Ajustes de accesibilidad */
:focus-visible {
  outline: 2px solid #7a00ff;
  outline-offset: 4px;
}

/* Animación de pulso para el badge */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

.scan-badge:hover {
  animation: pulse 1.2s infinite;
}

/* Efecto de brillo en el borde de la tarjeta */
.card {
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, #7a00ff40, #4b00b540);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Efecto de brillo en hover */
.card:hover::before {
  background: linear-gradient(135deg, #7a00ff80, #4b00b580);
}

/* Ajustes finales de tipografía */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Evitar selección accidental en elementos interactivos */
button, a {
  user-select: none;
}

/* Animación sutil para el fondo */
@keyframes bgFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, 10px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

.bg-orbit {
  animation: bgFloat 18s ease-in-out infinite;
}

/* Ajuste final para el grid */
.bg-grid {
  opacity: 0.25;
}

/* Ajuste final para el ruido */
.bg-noise {
  opacity: 0.12;
}
