/* ==========================================================================
   Routify — Premium Design System & Landing Page Styles
   Aesthetics: Cyber Luxe Dark, Glassmorphism, Micro-animations, Taxi Gold Glow
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #070a13;
  --bg-secondary: #0d1222;
  --bg-card: rgba(18, 24, 43, 0.75);
  --bg-card-hover: rgba(26, 35, 62, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-600: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.35);

  --emerald-500: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --rose-500: #f43f5e;
  --rose-glow: rgba(244, 63, 94, 0.35);
  --blue-500: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(245, 158, 11, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --shadow-luxe: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 10px 30px -5px rgba(245, 158, 11, 0.25);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Guarded kernel container */
.routify-guarded {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.routify-guarded.routify-active {
  opacity: 1;
  visibility: visible;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(7, 10, 19, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--gold-glow);
  font-size: 1.4rem;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--gold-500);
  color: #070a13;
  padding: 2px 6px;
  border-radius: 4px;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--gold-400);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #070a13;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.company-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.company-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 8px var(--emerald-glow);
}

/* Hero Section */
.hero-section {
  padding: 160px 32px 100px;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-pill);
  color: var(--gold-400);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

.eyebrow span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

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

.stat-item h4 {
  font-size: 1.8rem;
  color: var(--text-main);
  font-weight: 800;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Radar & Live Mock Dispatch Widget */
.hero-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-luxe);
}

.hero-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.widget-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.widget-radar {
  height: 220px;
  background: #090e1a;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.radar-circle:nth-child(1) { width: 80px; height: 80px; }
.radar-circle:nth-child(2) { width: 140px; height: 140px; }
.radar-circle:nth-child(3) { width: 200px; height: 200px; }

.radar-sweep {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(245, 158, 11, 0.3) 0deg, transparent 60deg);
  animation: radarRotate 3s linear infinite;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--gold-400);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-500);
}

.radar-pin.p1 { top: 35%; left: 45%; }
.radar-pin.p2 { top: 60%; left: 65%; }
.radar-pin.p3 { top: 25%; left: 70%; }

.widget-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.widget-item strong {
  color: var(--gold-400);
}

/* Portales Section */
.portales-section {
  padding: 100px 32px;
  max-width: 1300px;
  margin: 0 auto;
}

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

.section-head h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

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

.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.portal-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.portal-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition-smooth);
}

.portal-card:hover::after {
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
}

.portal-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.portal-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.portal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.portal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.portal-features li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-features li::before {
  content: '—';
  color: var(--gold-400);
  font-weight: 700;
}

.portal-btn {
  width: 100%;
}

/* Comparison Section */
.comparison-section {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(15px);
}

.compare-table th, .compare-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.compare-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-winner {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
}

.badge-legacy {
  background: rgba(244, 63, 94, 0.1);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.8rem;
}

/* Tenant Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #0d1222;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

.modal-box h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.input-group {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.input-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.input-control:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #050811;
  padding: 60px 32px 30px;
  margin-top: 100px;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }
  .portales-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .portales-grid {
    grid-template-columns: 1fr;
  }
  .navbar {
    padding: 12px 16px;
  }
  .nav-links {
    display: none;
  }
}

/* ==========================================================================
   Interactive Showcases: Address Simplifier & ZuraLineWrap Route Engine
   ========================================================================== */
.showcases-section {
  padding: 80px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-card {
  background: rgba(13, 18, 34, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold-400);
  border: 1px solid rgba(245, 158, 11, 0.25);
  margin-bottom: 16px;
}

.showcase-title {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}

.showcase-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Address Cleaner Interactive Box */
.addr-demo-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(7, 10, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 18px;
}

.addr-demo-input-row {
  display: flex;
  gap: 8px;
}

.addr-demo-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.addr-demo-input:focus {
  border-color: var(--gold-500);
}

.addr-sample-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.addr-sample-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.addr-sample-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #fff;
  border-color: var(--gold-500);
}

.addr-comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

@media (max-width: 540px) {
  .addr-comparison-box {
    grid-template-columns: 1fr;
  }
}

.addr-side-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.addr-side-card.raw {
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.addr-side-card.raw .side-label {
  color: #fb7185;
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.addr-side-card.clean {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.addr-side-card.clean .side-label {
  color: #34d399;
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.addr-text-display {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
  word-break: break-word;
}

.addr-pill-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

/* ZuraLineWrap Route Interactive Visualizer */
.route-visualizer-box {
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-svg-canvas {
  width: 100%;
  height: 100%;
}

.route-stage-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(13, 18, 34, 0.9);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.03em;
}

.stage-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 8px var(--gold-400);
  animation: pulse-dot 1.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

