/* ============================================
   Plaxx Landing Page - styles.css
   Brand colours from the app:
     Primary:    #E8B84B (gold)
     Dark BG:    #0B0F1A
     Card BG:    #13192B
     Text:       #F2F4F8
     Muted:      #A8B0C4
     Border:     #28304A
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #F2F4F8;
  background: #0B0F1A;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; text-align: center; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.1rem; text-align: center; color: #A8B0C4; max-width: 640px; margin: 0 auto 56px; line-height: 1.55; }
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Navigation */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 184, 75, 0.12);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 800; letter-spacing: 1px; color: #E8B84B;
}
.logo-icon { width: 36px; height: 36px; border-radius: 8px; display: block; object-fit: cover; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: #A8B0C4; font-weight: 500; font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: #E8B84B; }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-selector { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: transparent; color: #F2F4F8;
  border: 1px solid #28304A; border-radius: 8px;
  padding: 7px 12px; font-size: 0.9rem; cursor: pointer;
  font-family: inherit; transition: border-color 0.2s;
}
.lang-btn:hover { border-color: #E8B84B; }
.lang-btn svg { width: 16px; height: 16px; }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #13192B; border: 1px solid #28304A; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  max-height: 360px; overflow-y: auto;
  min-width: 200px; padding: 6px;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1100;
}
.lang-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-option {
  display: block; padding: 9px 12px; border-radius: 6px;
  color: #F2F4F8; cursor: pointer; font-size: 0.9rem;
  transition: background 0.15s;
}
.lang-option:hover { background: rgba(232,184,75,0.1); }
.lang-option.active { background: rgba(232,184,75,0.18); color: #E8B84B; }

.nav-cta {
  background: #E8B84B; color: #0B0F1A;
  padding: 10px 20px; border-radius: 10px; font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 0.92rem;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(232,184,75,0.35); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; padding: 6px; }
.nav-hamburger span { width: 24px; height: 2px; background: #F2F4F8; border-radius: 1px; transition: all 0.3s; }

/* Hero */
.hero {
  position: relative; padding: 140px 0 80px;
  background: radial-gradient(circle at 20% 0%, rgba(232,184,75,0.15), transparent 50%),
              radial-gradient(circle at 80% 100%, rgba(232,184,75,0.08), transparent 50%);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-block; background: rgba(232,184,75,0.12);
  color: #E8B84B; padding: 6px 14px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid rgba(232,184,75,0.3);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, #E8B84B 0%, #FFD27A 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.15rem; color: #A8B0C4; max-width: 540px;
  line-height: 1.6; margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { display: flex; gap: 32px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-size: 1.8rem; color: #E8B84B; font-weight: 800; line-height: 1; }
.trust-item span { font-size: 0.85rem; color: #A8B0C4; margin-top: 4px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 600; transition: transform 0.2s, box-shadow 0.2s;
}
.store-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn-text small { font-size: 0.65rem; opacity: 0.85; letter-spacing: 0.5px; text-transform: uppercase; }
.store-btn-text strong { font-size: 1.05rem; font-weight: 700; }
.store-btn-primary {
  background: #E8B84B; color: #0B0F1A;
}
.store-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(232,184,75,0.4); }
.store-btn-secondary {
  background: transparent; color: #F2F4F8; border: 1px solid #28304A;
}
.store-btn-secondary:hover { transform: translateY(-2px); border-color: #E8B84B; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-mockup { position: relative; max-width: 320px; }
.phone-frame {
  background: #0B0F1A; border: 8px solid #1F263A;
  border-radius: 36px; padding: 24px 14px; height: 580px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 2px rgba(232,184,75,0.1);
}
.phone-screen {
  background: #13192B; border-radius: 24px; height: 100%;
  display: flex; flex-direction: column; padding: 28px 20px;
  gap: 24px;
}
.phone-plate-card {
  background: linear-gradient(135deg, #FFFFFF, #F5F0E0);
  border: 3px solid #E8B84B; border-radius: 12px;
  padding: 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.phone-plate-flag { font-size: 2rem; }
.phone-plate-number {
  font-size: 1.6rem; font-weight: 900; letter-spacing: 4px; color: #0B0F1A;
}
.phone-result {
  background: rgba(232,184,75,0.08); border: 1px solid rgba(232,184,75,0.2);
  border-radius: 12px; padding: 18px; margin-top: 8px;
}
.phone-result-make { font-size: 0.75rem; color: #E8B84B; letter-spacing: 2px; font-weight: 700; }
.phone-result-model { font-size: 1.4rem; font-weight: 800; margin: 8px 0 6px; }
.phone-result-meta { font-size: 0.9rem; color: #A8B0C4; }

/* Features */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #13192B; border: 1px solid #28304A; border-radius: 16px;
  padding: 30px 24px; transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(232,184,75,0.4); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: #A8B0C4; line-height: 1.6; font-size: 0.95rem; }

/* How It Works */
.how-it-works { background: #0F1424; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #E8B84B, #FFD27A); color: #0B0F1A;
  font-size: 1.8rem; font-weight: 900; margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(232,184,75,0.3);
}
.step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.step p { color: #A8B0C4; max-width: 320px; margin: 0 auto; line-height: 1.6; }

/* Countries */
.countries { background: #0B0F1A; }
.countries-grid {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto;
}
.country-chip {
  background: #13192B; border: 1px solid #28304A; border-radius: 100px;
  padding: 9px 16px; font-size: 0.9rem; color: #F2F4F8;
  transition: background 0.2s, border-color 0.2s;
}
.country-chip:hover { background: rgba(232,184,75,0.1); border-color: rgba(232,184,75,0.4); }

/* FAQ */
.faq { background: #0F1424; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #13192B; border: 1px solid #28304A; border-radius: 12px;
  overflow: hidden; transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(232,184,75,0.4); }
.faq-question {
  width: 100%; background: transparent; border: 0;
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between;
  color: #F2F4F8; font-size: 1rem; font-weight: 600; cursor: pointer;
  font-family: inherit; text-align: left; gap: 16px;
}
.faq-chevron { width: 18px; height: 18px; color: #A8B0C4; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: #E8B84B; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease-out; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-content { padding: 0 22px 20px; color: #A8B0C4; line-height: 1.7; }

/* Support */
.support-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 800px; margin: 0 auto;
}
.support-card {
  background: #13192B; border: 1px solid #28304A; border-radius: 16px;
  padding: 32px; text-align: center;
}
.support-icon { font-size: 2.5rem; margin-bottom: 16px; }
.support-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.support-card p { color: #A8B0C4; line-height: 1.6; margin-bottom: 22px; font-size: 0.95rem; }
.support-btn {
  display: inline-block; padding: 11px 24px; border-radius: 10px;
  background: #E8B84B; color: #0B0F1A; font-weight: 700; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.support-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232,184,75,0.4); }
.support-btn-outline {
  background: transparent; color: #E8B84B; border: 1px solid #E8B84B;
}
.support-btn-outline:hover { background: #E8B84B; color: #0B0F1A; }

/* CTA banner */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, #1A2237 0%, #0B0F1A 100%);
  text-align: center;
  position: relative;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(232,184,75,0.18), transparent 60%);
  pointer-events: none;
}
.cta-banner .container { position: relative; }
.cta-banner h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.cta-banner p { color: #A8B0C4; font-size: 1.1rem; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: #060912; padding: 60px 0 30px; border-top: 1px solid #28304A; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { color: #A8B0C4; line-height: 1.6; max-width: 320px; font-size: 0.92rem; }
.footer-col h4 { font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; color: #E8B84B; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; color: #A8B0C4; padding: 6px 0; font-size: 0.93rem; transition: color 0.2s; }
.footer-col a:hover { color: #E8B84B; }
.footer-bottom {
  border-top: 1px solid #1A2237; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { color: #6B7390; font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom-links a { color: #6B7390; font-size: 0.85rem; transition: color 0.2s; }
.footer-bottom-links a:hover { color: #E8B84B; }

/* Privacy / Terms pages (markdown-like) */
.legal-page {
  padding: 140px 0 60px;
}
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.legal-page .legal-meta { color: #A8B0C4; font-size: 0.9rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.4rem; font-weight: 700; color: #E8B84B; margin: 32px 0 12px; }
.legal-page h3 { font-size: 1.1rem; font-weight: 700; margin: 22px 0 10px; }
.legal-page p { color: #C8D0E0; margin-bottom: 14px; line-height: 1.7; }
.legal-page ul { color: #C8D0E0; margin: 14px 0 14px 24px; list-style: disc; }
.legal-page ul li { margin-bottom: 8px; line-height: 1.6; }
.legal-page a { color: #E8B84B; text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 110px 0 60px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .phone-mockup { max-width: 260px; }
  .phone-frame { height: 480px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #0B0F1A; flex-direction: column; padding: 20px 24px; gap: 0;
    border-bottom: 1px solid #28304A; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid #28304A; }
  .nav-cta-desktop { display: none; }
  .nav-hamburger { display: flex; }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 70px 0; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .hero { padding: 100px 0 40px; }
  .hero-buttons { flex-direction: column; }
  .store-btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
