
:root {
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  
  --bg-dark: #090d16;
  --bg-card: rgba(20, 27, 45, 0.7);
  --border-card: rgba(255, 255, 255, 0.08);
  
  --primary: #4f46e5; 
  --primary-hover: #4338ca;
  --accent: #d946ef; 
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --success: #10b981;
  --error: #f43f5e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  scroll-behavior: smooth;
}


.bg-gradient-glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}
.bg-gradient-glow.top-left {
  top: -10vw;
  left: -10vw;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}
.bg-gradient-glow.bottom-right {
  bottom: -15vw;
  right: -15vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}


.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  font-size: 28px;
}
.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--text-main);
}


.btn {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-main);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}
.btn-block {
  width: 100%;
  padding: 12px;
}


.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}


.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 0;
}
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0;
  }
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-badge {
  background: rgba(79, 70, 229, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(79, 70, 229, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  align-self: flex-start;
}
@media (max-width: 900px) {
  .hero-badge {
    align-self: center;
  }
}
.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
}
.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}
.hero-actions-row {
  display: flex;
  gap: 16px;
}
@media (max-width: 900px) {
  .hero-actions-row {
    justify-content: center;
  }
}


.hero-showcase {
  display: flex;
  justify-content: center;
}
.showcase-card {
  width: 100%;
  max-width: 420px;
  border-color: rgba(79, 70, 229, 0.2);
}
.card-header-showcase {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 600;
}
.status-indicator-green {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--success);
}
.stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.stat-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 12px;
}
.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.stat-val {
  font-size: 16px;
  font-weight: 700;
}
.mock-route {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-stop {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.stop-badge {
  background-color: var(--primary);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.route-line-dashed {
  border-left: 2px dashed rgba(255, 255, 255, 0.1);
  margin-left: 22px;
  padding-left: 14px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}


.features-section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  transition: transform 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
}
.feature-icon {
  font-size: 40px;
  margin-bottom: 10px;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}


.app-footer {
  text-align: center;
  padding: 40px 0;
  margin-top: auto;
  border-top: 1px solid var(--border-card);
  font-size: 13px;
  color: var(--text-muted);
}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.modal-overlay.hidden {
  display: none !important;
  opacity: 0;
}
.modal-card {
  width: 100%;
  max-width: 440px;
  position: relative;
  padding: 40px;
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalScaleUp {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--text-main);
}


.auth-view h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}
.auth-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 12px 14px;
  color: white;
  font-family: var(--font-family);
  font-size: 14px;
  transition: all 0.2s;
}
.form-group input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}
.error-msg {
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  min-height: 18px;
}
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}
.auth-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.auth-switch a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.footer-links a {
  cursor: pointer;
  transition: color 0.2s, text-decoration 0.2s;
}
.footer-links a:hover {
  color: var(--text-main) !important;
  text-decoration: underline !important;
}


.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(20, 27, 45, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.cookie-text {
  flex: 1;
  min-width: 280px;
  text-align: left;
}
.cookie-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}
.cookie-text p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.btn-cookie {
  padding: 8px 16px;
  font-size: 13px;
  height: 38px;
  flex-shrink: 0;
}
