/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* CarKhana theme colors */
  --background: oklch(0.08 0 0);
  --foreground: oklch(0.98 0 0);
  --primary: oklch(0.72 0.15 45);
  --primary-foreground: oklch(0.08 0 0);
  --secondary: oklch(0.16 0 0);
  --secondary-foreground: oklch(0.98 0 0);
  --muted-foreground: oklch(0.65 0 0);
  --border: oklch(0.2 0 0);
  --input: oklch(0.16 0 0);
  --ring: oklch(0.72 0.15 45);
  --radius: 0.625rem;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.nav-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.car-icon {
  height: 2rem;
  width: 2rem;
  color: var(--primary);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

/* Hero Section */
.hero {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.grid-background {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.badge {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-wrap: balance;
}

.highlight {
  color: var(--primary);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-wrap: pretty;
}

/* Email Form */
.email-form {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.input-group {
  display: flex;
  width: 100%;
  max-width: 28rem;
  gap: 0;
}

.email-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--foreground);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
}

.email-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.2);
}

.email-input::placeholder {
  color: var(--muted-foreground);
}

.notify-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.notify-btn:hover {
  background-color: oklch(0.68 0.15 45);
  transform: translateY(-1px);
}

.notify-btn:active {
  transform: translateY(0);
}

.bell-icon {
  height: 1rem;
  width: 1rem;
}

.signup-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 1rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo .car-icon {
  height: 1.25rem;
  width: 1.25rem;
}

.footer-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Responsive Design */
@media (max-width: 640px) {
  .nav-content,
  .footer-content {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 1rem;
  }

  .input-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .email-input {
    border-radius: var(--radius);
  }

  .notify-btn {
    border-radius: var(--radius);
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .nav-content,
  .footer-content {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-content,
  .footer-content {
    padding: 0 2rem;
  }
}

/* Success message styles */
.success-message {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: rgb(34, 197, 94);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.875rem;
}

.error-message {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: rgb(239, 68, 68);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.875rem;
}
