:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --accent-color: #ff9f43;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-blur: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  background-image: url("bromo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-color);
  font-family: "Outfit", sans-serif;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for functional mobile browsers */
  width: 100vw;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Darken Overlay for better text readability */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 10%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 0;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6; /* Subtle particles */
}

/* App Wrapper - Full Screen Responsive */
.app-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 24px 24px; /* More top padding to avoid browser address bar overlap */
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

/* Brand Pill Styling */
.brand-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px; /* Extra padding on right for balance */
  border-radius: 40px;
  background: rgba(20, 20, 20, 0.4); /* Darker base */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.25);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff9f43 0%, #ff6b00 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.brand-status {
  font-size: 0.75rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #4cd137; /* Lively green */
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(76, 209, 55, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

/* iPhone/iOS Premium Button Styles */
.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.icon-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  margin-bottom: 20px;
}

.hero-content {
  margin-bottom: 30px;
  animation: slideUp 1s ease-out;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.3);
}

.rating-pill .star {
  color: var(--accent-color);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 12px;
  background: linear-gradient(to right, #fff, #ddd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-location {
  font-size: 1rem;
  opacity: 0.8;
  margin-left: 4px;
}

/* Bottom Actions */
.bottom-bar {
  width: 100%;
}

.action-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.primary-btn {
  flex: 1;
  height: 64px;
  border-radius: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 0 32px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  background: rgba(20, 20, 20, 0.6); /* Darker glass for contrast */
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* Apple-style sheen effect */
.primary-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 32px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(30, 30, 30, 0.7);
}

.primary-btn:active {
  transform: scale(0.98);
}

.btn-arrow {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}

.btn-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.primary-btn:hover .btn-arrow {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover .btn-arrow svg {
  transform: translateX(2px);
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (min-width: 769px) {
  /* Desktop Layout */
  .app-wrapper {
    /* Full width but with more padding */
    padding: 60px 80px;
  }

  body::before {
    /* Enhanced vignette for desktop */
    background: radial-gradient(
        circle,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.6) 100%
      ),
      linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
  }

  .hero-title {
    font-size: 5rem;
  }

  .bottom-bar {
    /* Don't let buttons get too wide on large screens */
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .app-wrapper {
    padding: 16px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .primary-btn {
    height: 56px;
    padding-left: 24px;
    font-size: 1rem;
  }

  .btn-arrow,
  .icon-btn {
    width: 40px;
    height: 40px;
  }
}
