:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --bg-primary: #0a0a0c;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;

  --primary: #f59e0b; /* Amber */
  --primary-glow: rgba(245, 158, 11, 0.15);
  --secondary: #ef4444; /* Red */
  --secondary-glow: rgba(239, 68, 68, 0.15);
  --accent: #3b82f6; /* Blue */
  --accent-glow: rgba(59, 130, 246, 0.15);

  --glass-bg: rgba(18, 18, 24, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  position: relative;
}

/* Background Glow Effects */
.glow-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.glow-primary {
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-secondary {
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

/* Header */
header {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo svg {
  flex-shrink: 0;
}

/* Main Layout */
main {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  flex-grow: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 40%, #e2e8f0 70%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  font-weight: 400;
}

/* Server Status Bar */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #64748b; /* Default Gray */
}

.status-dot.pulsing {
  animation: pulse-gray 1.5s infinite;
}

.status-dot.active {
  background-color: #10b981; /* Green */
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.status-dot.offline {
  background-color: #ef4444; /* Red */
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

@keyframes pulse-gray {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* Cards Grid */
.cards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

/* Premium Glassmorphic Cards */
.card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255,255,255,0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.card-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  margin-bottom: 0.5rem;
}

#card-customer:hover {
  box-shadow: 0 20px 40px -15px var(--primary-glow);
}

#card-driver:hover {
  box-shadow: 0 20px 40px -15px var(--secondary-glow);
}

#card-store:hover {
  box-shadow: 0 20px 40px -15px var(--accent-glow);
}

.card h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Premium Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 2;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #d97706 100%);
  color: #000000;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  transform: scale(1.02);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #dc2626 100%);
  color: #ffffff;
}

.btn-secondary:hover {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  transform: scale(1.02);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  color: #ffffff;
}

.btn-accent:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  transform: scale(1.02);
}

/* iOS PWA Install Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.modal-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  width: 90%;
  max-width: 440px;
  padding: 2.25rem 2rem;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.visible .modal-content {
  transform: scale(1);
}

.close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.modal-title-icon {
  font-size: 1.75rem;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.install-steps {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}

.install-steps li {
  margin-bottom: 0.75rem;
}

.ios-share-icon, .ios-plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.85rem;
  margin-left: 2px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-footer {
  margin-top: 2rem;
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  width: 100%;
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: #4b5563;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  header {
    padding: 1.5rem 1rem;
  }
  main {
    padding: 1rem 1rem 3rem 1rem;
    gap: 2rem;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
