/* ParkSlots Tracker — Promo Website Styles */

:root {
  --color-bg: #050508;
  --color-primary: #FECD2F;
  --color-primary-light: #FFE181;
  --color-secondary: #2FC462;
  --color-error: #FF0000;
  --color-surface: #3D3D3D;
  --color-card: rgba(255, 255, 255, 0.12);
  --color-card-border: rgba(255, 255, 255, 0.08);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #B1B1B1;
  --color-text-muted: #909090;
  --color-text-on-primary: #120F0A;
  --font-family: 'Geologica', sans-serif;
  --radius-card: 25px;
  --radius-button: 40px;
  --radius-input: 16px;
  --gradient-yellow: linear-gradient(135deg, #FFE181, #FECD2F);
  --glow-yellow: 0 0 80px rgba(254, 205, 47, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background-color: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-card-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-yellow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--color-text-on-primary);
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-cta {
  background: var(--gradient-yellow);
  color: var(--color-text-on-primary) !important;
  padding: 10px 24px;
  border-radius: var(--radius-button);
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(254, 205, 47, 0.3);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  margin: 6px 0;
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.35s ease;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero_bg.webp') center bottom / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,8,0.6) 0%, rgba(5,5,8,0.4) 40%, rgba(5,5,8,0.85) 100%);
}

/* Fallback if image fails */
.hero-bg-fallback {
  background: linear-gradient(135deg, #050508 0%, #0a0a12 50%, #050508 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 560px;
}

.hero-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: var(--gradient-yellow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-mockup img {
  max-width: 380px;
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 60% 68% at 50% 48%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(ellipse 60% 68% at 50% 48%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .hero-content { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-buttons { justify-content: center; gap: 12px; }
  .hero-mockup { order: -1; }
  .hero-mockup img { max-width: 260px; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-button);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  line-height: 1.2;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-yellow);
  color: var(--color-text-on-primary);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(254, 205, 47, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
  background: rgba(47, 196, 98, 0.1);
  box-shadow: 0 4px 20px rgba(47, 196, 98, 0.2);
}

.btn-green {
  background: var(--color-secondary);
  color: #FFFFFF;
}

.btn-green:hover {
  box-shadow: 0 8px 30px rgba(47, 196, 98, 0.35);
}

/* ============ SECTIONS ============ */
.section {
  padding: 100px 24px;
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* Divider */
.section-divider {
  width: 200px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(254, 205, 47, 0.3), transparent);
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(254, 205, 47, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ============ APP SHOWCASE (alternating) ============ */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 64px;
}

.showcase-row.reverse .showcase-image {
  order: 2;
}

.showcase-row.reverse .showcase-text {
  order: 1;
}

.showcase-image {
  display: flex;
  justify-content: center;
}

.showcase-image img {
  max-width: 340px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.4));
  mix-blend-mode: lighten;
}

.showcase-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.showcase-text p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
  }
  .showcase-row.reverse .showcase-image,
  .showcase-row.reverse .showcase-text {
    order: unset;
  }
  .showcase-row + .showcase-row {
    margin-top: 64px;
  }
  .showcase-image img { max-width: 260px; }
  .showcase-text p { margin-bottom: 16px; }
}

/* ============ SCREENSHOTS CAROUSEL ============ */
.screenshots-section {
  overflow: hidden;
}

.screenshots-carousel {
  max-height: 420px;
  padding: 20px 0;
}

.screenshots-carousel .swiper-slide {
  width: auto;
  display: flex;
  justify-content: center;
}

.screenshot-frame {
  position: relative;
  max-width: 200px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 380px;
  object-fit: cover;
}

.swiper-pagination-bullet {
  background: var(--color-text-muted) !important;
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  background: var(--color-primary) !important;
  opacity: 1 !important;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 8, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
}

/* ============ CTA SECTION ============ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: url('images/cta_bg.webp') center / cover no-repeat;
  z-index: 0;
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,8,0.7), rgba(5,5,8,0.85));
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--color-card-border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .footer {
    padding: 32px 24px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer-links {
    gap: 32px;
  }
  .footer-links a {
    font-size: 0.9rem;
    padding: 4px 0;
  }
}

/* ============ LEGAL PAGES (Privacy, Terms) ============ */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.15;
}

.legal-page .updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p {
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
  text-align: left;
}

.legal-page ul {
  color: var(--color-text-secondary);
  margin: 8px 0 16px 24px;
  line-height: 1.7;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page a:hover {
  color: var(--color-primary-light);
}

/* ============ CONTACT PAGE ============ */
.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  max-width: 560px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card .contact-intro {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-input);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input[type="file"] {
  padding: 10px 14px;
  font-size: 0.85rem;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.contact-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 24px;
  line-height: 1.6;
}

.contact-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .contact-card {
    padding: 32px 20px;
    margin: 0 8px;
  }
}

/* ============ PRIVACY ACCEPTANCE BUTTON ============ */
.privacy-accept-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  padding: 16px 24px 24px;
  background: linear-gradient(to top, var(--color-bg) 60%, transparent);
  display: flex;
  justify-content: center;
}

.privacy-accept-btn.hidden {
  display: none;
}

.accept-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  background: var(--gradient-yellow);
  color: var(--color-text-on-primary);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(254, 205, 47, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(254, 205, 47, 0.4);
}
