/* CSS Variables */
:root {
  --primary-dark: hsl(0, 0%, 10.2%);
  --surface-elevated: hsl(0, 0%, 16.5%);
  --accent-mint: hsl(165, 100%, 61.4%);
  --text-primary: hsl(0, 0%, 100%);
  --text-secondary: hsl(0, 0%, 69%);
  --inactive-elements: hsl(0, 0%, 25.1%);
  --divider-subtle: hsl(0, 0%, 20%);
  --success: hsl(122, 39%, 49%);
  --warning: hsl(36, 100%, 50%);
  --error: hsl(4, 90%, 58%);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.min-h-screen {
  min-height: 100vh;
}

.bg-primary-dark {
  background-color: var(--primary-dark);
}

.text-text-primary {
  color: var(--text-primary);
}

.text-text-secondary {
  color: var(--text-secondary);
}

.text-accent-mint {
  color: var(--accent-mint);
}

.bg-surface-elevated {
  background-color: var(--surface-elevated);
}

.border-divider-subtle {
  border-color: var(--divider-subtle);
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.space-x-3>*+* {
  margin-left: 0.75rem;
}

.space-x-6>*+* {
  margin-left: 1.5rem;
}

.space-y-6>*+* {
  margin-top: 1.5rem;
}

/* Layout */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.inset-y-0 {
  top: 0;
  bottom: 0;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Sizing */
.w-full {
  width: 100%;
}

.w-5 {
  width: 1.25rem;
}

.w-12 {
  width: 3rem;
}

.w-16 {
  width: 4rem;
}

.h-5 {
  height: 1.25rem;
}

.h-12 {
  height: 3rem;
}

.h-16 {
  height: 4rem;
}

.h-96 {
  height: 24rem;
}

.h-full {
  height: 100%;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-h-screen {
  max-height: 100vh;
}

/* Spacing */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.pr-6 {
  padding-right: 1.5rem;
}

.pt-8 {
  padding-top: 2rem;
}

/* Border and Radius */
.border {
  border-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Typography */
.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-extrabold {
  font-weight: 800;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

.text-center {
  text-align: center;
}

/* Specific Component Styles */
.hero-glow {
  background: radial-gradient(circle at 50% 50%, var(--accent-mint) 0%, transparent 50%);
  opacity: 0.1;
}

.glass-morphism {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background-color: var(--accent-mint);
  color: var(--primary-dark);
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px -10px rgba(60, 255, 207, 0.25);
}

.input-field {
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: var(--surface-elevated);
  border: 2px solid var(--inactive-elements);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-mint);
  box-shadow: 0 0 0 3px rgba(60, 255, 207, 0.1);
}

.input-field::placeholder {
  color: var(--text-secondary);
}

/* Grid */
.grid {
  display: grid;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

/* Transitions */
.transition-colors {
  transition: color 0.3s ease;
}

.transition-all {
  transition: all 0.3s ease;
}

.duration-300 {
  transition-duration: 300ms;
}

/* Hover States */
.hover\:text-text-primary:hover {
  color: var(--text-primary);
}

.hover\:text-accent-mint:hover {
  color: var(--accent-mint);
}

.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:transform:hover {
  transform: scale(1.05);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-slide-up {
  animation: slideUp 1s ease-out 0.3s both;
}

/* Background Gradients */
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--primary-dark), rgba(42, 42, 42, 0.2));
}

/* Shadows */
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Responsive Design */
@media (min-width: 768px) {
  .md\:text-2xl {
    font-size: 1.5rem;
  }

  .md\:text-4xl {
    font-size: 2.25rem;
  }

  .md\:text-6xl {
    font-size: 3.75rem;
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:mb-0 {
    margin-bottom: 0;
  }

  .md\:p-12 {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .lg\:text-7xl {
    font-size: 4.5rem;
  }
}

@media (max-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

/* Hidden class */
.hidden {
  display: none;
}

/* Focus styles */
.focus\:outline-none:focus {
  outline: none;
}

/* App mockup scaling */
.app-mockup-small {
  transform: scale(0.03);
  transform-origin: center;
}

/* Special background for success message */
.bg-green-500\/20 {
  background-color: rgba(34, 197, 94, 0.2);
}

.border-green-500\/30 {
  border-color: rgba(34, 197, 94, 0.3);
}

.text-green-400 {
  color: rgb(74, 222, 128);
}

/* Modal styles */
.bg-black\/80 {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Accent colors with opacity */
.bg-accent-mint\/20 {
  background-color: rgba(60, 255, 207, 0.2);
}

/* Surface elevated with opacity */
.bg-surface-elevated\/20 {
  background-color: rgba(42, 42, 42, 0.2);
}

.bg-surface-elevated\/30 {
  background-color: rgba(42, 42, 42, 0.3);
}

/* Additional responsive utilities */
.xs\:text-xs {
  font-size: 0.75rem;
}

/* Ensure no outline on buttons */
button {
  outline: none;
  border: none;
  background: none;
  cursor: pointer;
}

/* Footer Styles */
.footer {
  background-color: var(--surface-elevated);
  border-top: 1px solid var(--divider-subtle);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-mint);
}

.social-links {
  display: flex;
  gap: var(--space-5);
  margin-bottom: var(--space-4);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--primary-dark);
  border-radius: 50%;
  color: var(--accent-mint);
  font-size: var(--font-size-lg);
  transition: all var(--transition-fast);
  border: 1px solid var(--divider-subtle);
}

.social-link:hover {
  background-color: var(--accent-mint);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contact-email i {
  color: var(--accent-mint);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--divider-subtle);
  text-align: center;
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.logo-svg {
  width: 40px;
  height: 40px;
}

/* App Mockup Styles */
.app-mockup {
  position: relative;
  margin: 0 auto 4rem;
  width: 12rem;
  height: 22rem;
  animation: slideUp 0.8s ease-out;
}

.phone-frame {
  position: absolute;
  inset: 0;
  background-color: #1a1a1a;
  border-radius: 1.5rem;
  padding: 0.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 2px solid #333;
}

.status-bar {
  background-color: #000;
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
  height: 1.5rem;
}

.status-icons {
  display: flex;
  gap: 0.25rem;
  font-size: 0.5rem;
}

.phone-screen {
  background-color: var(--primary-dark);
  border-bottom-left-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
  height: calc(100% - 1.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-header {
  background-color: var(--surface-elevated);
  padding: 0.75rem;
  border-bottom: 1px solid var(--divider-subtle);
}

.app-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.logo-circle {
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--accent-mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--primary-dark);
}

.app-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.app-main-content {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.parking-card {
  background-color: var(--surface-elevated);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  width: 100%;
  border: 1px solid rgba(60, 255, 207, 0.2);
}

.parking-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.parking-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-mint);
  margin-bottom: 0.25rem;
}

.parking-subtext {
  font-size: 0.625rem;
  color: var(--text-secondary);
}

.feature-buttons {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.feature-btn {
  flex: 1;
  background-color: rgba(60, 255, 207, 0.1);
  border: 1px solid rgba(60, 255, 207, 0.3);
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-size: 0.625rem;
  text-align: center;
  color: var(--text-primary);
}

.app-bottom-nav {
  background-color: var(--surface-elevated);
  padding: 0.5rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--divider-subtle);
  height: 2.5rem;
}

.nav-item {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.nav-item.active {
  background-color: rgba(60, 255, 207, 0.2);
  color: var(--accent-mint);
}

.nav-item:not(.active) {
  color: var(--text-secondary);
}