/* ==============================================================================
   POSTPILOT - Cyber-Premium Design System
   ============================================================================== */

:root {
  --bg-primary: #0b0e14;
  --bg-secondary: #121824;
  --bg-card: rgba(25, 34, 51, 0.7);
  --bg-card-hover: rgba(30, 42, 64, 0.85);
  
  --cyan: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.35);
  --violet: #9d4edd;
  --violet-glow: rgba(157, 78, 221, 0.35);
  --green: #00e676;
  --yellow: #ffd600;
  --red: #ff1744;

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(0, 229, 255, 0.4);
}

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

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(157, 78, 221, 0.07) 0%, transparent 40%);
  background-attachment: fixed;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--cyan);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================================================================
   Navbar
   ============================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 14, 20, 0.85);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--cyan-glow);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
}

.nav-cta {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--cyan-glow);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--cyan-glow);
}

/* ==============================================================================
   Hero Section
   ============================================================================== */
.hero {
  padding: 90px 0 60px;
  text-align: center;
  position: relative;
}

.badge-update {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border-neon);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 24px;
  animation: pulse-border 2.5s infinite;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}

.hero h1 {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), #d4bbff, var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff;
  padding: 16px 36px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 24px var(--cyan-glow);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--cyan-glow);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-glass);
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==============================================================================
   Cards & Glassmorphism
   ============================================================================== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* ==============================================================================
   Features Grid
   ============================================================================== */
.features-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--cyan);
}

/* ==============================================================================
   Interactive Spintax Tester
   ============================================================================== */
.tester-box {
  background: #0f141f;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-glass);
  margin-top: 20px;
}

.spintax-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-neon);
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  min-height: 90px;
}

.samples-display {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sample-chip {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #e2e8f0;
}

/* ==============================================================================
   Pricing Table
   ============================================================================== */
.pricing-section {
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--cyan);
  box-shadow: 0 0 30px var(--cyan-glow);
}

.featured-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px var(--cyan-glow);
}

.price {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  margin: 16px 0;
}

.price span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  flex-grow: 1; /* Empuja el botón al fondo para alineación perfecta */
  max-height: 250px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.4) rgba(255, 255, 255, 0.05);
}

.pricing-features::-webkit-scrollbar {
  width: 5px;
}

.pricing-features::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.pricing-features::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.35);
  border-radius: 4px;
}

.pricing-features::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-features li.active {
  color: #fff;
}

.pricing-features li.active::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}

.pricing-features li.inactive::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: var(--text-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") no-repeat center / contain;
}

.pricing-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
}

/* ==============================================================================
   Documentation & Installation Guide
   ============================================================================== */
.docs-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-glass);
}

.step-card {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.step-number {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

/* ==============================================================================
   Footer
   ============================================================================== */
footer {
  border-top: 1px solid var(--border-glass);
  padding: 48px 0 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(0, 229, 255, 0.4); }
  50% { border-color: rgba(157, 78, 221, 0.8); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .nav-links { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
}
