/* ===========================
   WAPHA — Global Styles
   =========================== */

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

:root {
  --bg: #09090f;
  --bg2: #0f0f1a;
  --surface: #14141f;
  --surface2: #1c1c2e;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.12);
  --text: #f0f0f8;
  --muted: #8585a0;
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --accent3: #38bdf8;
  --green: #34d399;
  --radius: 16px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(9,9,15,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}
.nav.scrolled { padding: 12px 48px; }

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.btn-nav:hover { background: #7c74ff !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.mobile-menu a:last-child { border-bottom: none; color: var(--accent); font-weight: 600; }

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(108,99,255,0.35);
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108,99,255,0.45); }
.btn-primary.large { padding: 16px 36px; font-size: 1rem; }

.btn-ghost {
  display: inline-block;
  color: var(--muted);
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

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

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.blob-1 {
  width: 500px; height: 500px;
  background: rgba(108,99,255,0.18);
  top: -100px; left: -100px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: rgba(56,189,248,0.12);
  bottom: 0; right: -80px;
}

.hero-content {
  flex: 1;
  max-width: 560px;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.8s ease both;
}

.badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--accent2);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  max-width: 440px;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.8s 0.2s ease both;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.app-card-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.app-card-dot.red { background: #ff5f57; }
.app-card-dot.yellow { background: #ffbd2e; }
.app-card-dot.green { background: #28c840; }
.app-card-title {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 6px;
}

.app-card-body { padding: 20px; }

.order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.order-icon { font-size: 1.4rem; }
.order-info { flex: 1; }
.order-name { font-size: 0.9rem; font-weight: 600; }
.order-addr { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.map-btn {
  background: var(--accent);
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.map-btn:hover { background: #7c74ff; }

.coord-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.coord-pill {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-family: monospace;
  color: var(--muted);
}
.coord-pill.google { background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.3); color: var(--accent3); }
.coord-pill.waze { background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.3); color: var(--green); }

.map-preview {
  background: var(--surface2);
  border-radius: 12px;
  height: 130px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 10px;
  opacity: 0.15;
}
.map-line {
  height: 1px;
  background: var(--muted);
  border-radius: 1px;
}
.map-line.short { width: 60%; }
.map-line.shorter { width: 40%; }

.map-pin-anim {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-pin {
  font-size: 2rem;
  animation: bounce 2s infinite ease-in-out;
}
.map-ring {
  position: absolute;
  width: 40px; height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: ring 2s infinite ease-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes ring {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   FEATURES
   =========================== */
.features {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}

.features h2, .how h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 60px;
  line-height: 1.1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-3px);
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===========================
   HOW IT WORKS
   =========================== */
.how {
  padding: 100px 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  display: flex;
  gap: 20px;
}

.step-connector {
  flex: 0 0 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 28px;
  opacity: 0.3;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  min-width: 56px;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===========================
   CTA
   =========================== */
.cta-section {
  padding: 80px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-blob {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 32px;
  position: relative;
}

.cta-box .btn-primary { position: relative; }

.cta-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
}
.cta-note a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.footer-inner {
  display: flex;
  gap: 60px;
  padding-bottom: 48px;
}

.footer-brand {
  flex: 1;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 10px;
  max-width: 200px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ===========================
   INNER PAGE HERO
   =========================== */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  position: relative;
}
.page-hero p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

/* ===========================
   FAQS PAGE
   =========================== */
.faqs-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.faq-group {
  margin-bottom: 48px;
}
.faq-group-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent2);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent2); }
.faq-q .faq-chevron {
  font-size: 1rem;
  transition: transform 0.3s;
  color: var(--muted);
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding-bottom: 20px;
}
.faq-a p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}
.faq-a a { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; }

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.contact-info p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-method {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-method-icon {
  font-size: 1.2rem;
  margin-top: 2px;
}
.contact-method-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-method-val {
  font-size: 0.9rem;
  color: var(--text);
}
.contact-method-val a { color: var(--accent2); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
}

#formSuccess {
  display: none;
  text-align: center;
  padding: 20px 0;
  color: var(--green);
  font-weight: 600;
}

/* ===========================
   PRIVACY PAGE
   =========================== */
.privacy-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.privacy-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.privacy-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 14px;
}
.privacy-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text);
}
.privacy-content p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.privacy-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}
.privacy-content ul li {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 6px;
}
.privacy-content a { color: var(--accent2); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero {
    flex-direction: column;
    padding: 120px 24px 60px;
    text-align: center;
    gap: 40px;
  }
  .hero-content { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { max-width: 400px; width: 100%; }

  .features-grid { grid-template-columns: 1fr 1fr; }

  .steps {
    flex-direction: column;
    gap: 32px;
  }
  .step-connector { display: none; }

  .footer-inner { flex-direction: column; gap: 40px; }

  .contact-content { grid-template-columns: 1fr; gap: 40px; }

  .cta-box { padding: 40px 24px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 32px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}
