/* ==========================================================================
   Perseus.ai Landing Page Styles
   Theme: High-Tech Emergency Dark (#0F172A, #1E293B, #3B82F6, #EF4444)
   ========================================================================== */

:root {
  --bg-main: #0B1120;
  --bg-card: #1E293B;
  --bg-card-inner: #0F172A;
  --bg-card-hover: #26354D;
  --border: #334155;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(59, 130, 246, 0.4);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --primary: #3B82F6;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --primary-light: #60A5FA;
  --sky: #38BDF8;

  --danger: #EF4444;
  --danger-glow: rgba(239, 68, 68, 0.3);
  --warning: #F59E0B;
  --success: #22C55E;
  --success-glow: rgba(34, 197, 94, 0.3);

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-w: 1200px;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(239, 68, 68, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(56, 189, 248, 0.06) 0%, transparent 40%);
}

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(11, 17, 32, 0.85);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 15px var(--primary-glow);
}

.nav-logo-text {
  height: 28px;
  object-fit: contain;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-cta-btn {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

/* ==================== HERO SECTION ==================== */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 8px #22C55E;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 30%, #60A5FA 70%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-danger {
  background: linear-gradient(135deg, #EF4444 30%, #F87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px var(--primary-glow);
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.hero-stat-item h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.hero-stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Phone Mockup */
.mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mockup-phone {
  width: 320px;
  background: #0F172A;
  border: 3px solid #334155;
  border-radius: 40px;
  padding: 18px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.airplane-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.7rem;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mockup-logo {
  height: 22px;
}

.mockup-user {
  text-align: right;
  font-size: 0.75rem;
}

.mockup-role {
  background: #1E293B;
  color: var(--sky);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
}

.mockup-alert-card {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: white;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px var(--danger-glow);
}

.mockup-alert-card h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.mockup-alert-card p {
  font-size: 0.75rem;
  opacity: 0.9;
}

.mockup-report-card {
  background: #1E293B;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.report-priority-badge {
  background: #DC2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}

.report-summary-text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 8px;
}

.report-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-chip {
  background: #0F172A;
  border: 1px solid var(--border);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--sky);
}

.mockup-mesh-status {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86EFAC;
  padding: 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================== PROBLEM SECTION ==================== */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.problem-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: inline-block;
}

.problem-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==================== HOW IT WORKS ==================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 28px;
  position: relative;
}

.step-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
}

.step-badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--sky);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.step-detail-box {
  background: var(--bg-card-inner);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.8rem;
  color: var(--sky);
}

/* ==================== TECH STACK ==================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
}

.tech-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.tech-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.tech-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.tech-badge-sub {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--sky);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.tech-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==================== COMPARISON TABLE ==================== */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th, .comp-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  background: #131C2E;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.comp-table th.highlight {
  color: var(--sky);
  background: rgba(59, 130, 246, 0.15);
}

.comp-table td.highlight {
  background: rgba(59, 130, 246, 0.05);
  font-weight: 600;
  color: #fff;
}

.check-yes {
  color: #22C55E;
  font-weight: 700;
}

.check-no {
  color: #EF4444;
  font-weight: 700;
}

/* ==================== CTA SECTION ==================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(239, 68, 68, 0.15) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.cta-banner h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

/* ==================== VIDEO PITCH SECTION ==================== */
.video-section {
  padding: 60px 0 80px;
  position: relative;
}

.video-wrapper {
  max-width: 920px;
  margin: 0 auto;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 35px var(--primary-glow);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-card:hover {
  border-color: var(--primary);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 50px rgba(59, 130, 246, 0.4);
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #0F172A;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 8px 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.video-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-duration-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-topic-tag {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .problem-grid, .steps-grid, .tech-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
  .hero-title {
    font-size: 2.4rem;
  }
}
