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

:root {
  --purple: #3B0FA0;
  --purple-light: #5a24c7;
  --gold: #C97D00;
  --gold-light: #C97D00;
  --white: #ffffff;
  --bg-alt: #f8f7ff;
  --text: #1a1a2e;
  --text-muted: #6b6b8a;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(59,15,160,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59,15,160,0.08);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { height: 36px; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: #1a1a2e;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover { color: #3B0FA0; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #3B0FA0;
}
.nav-mobile {
  display: none;
  list-style: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  gap: 12px;
  border-top: 1px solid rgba(59,15,160,0.08);
}
.nav-mobile a {
  text-decoration: none;
  color: #1a1a2e;
  font-weight: 500;
  font-size: 16px;
}
.nav-mobile.open { display: flex; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #3B0FA0 0%, #1a0560 100%);
  color: white;
  padding: 100px 24px;
  text-align: center;
}
.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}
.hero-title {
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 800;
  color: white;
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 18px;
  opacity: 0.88;
  margin-bottom: 40px;
}
.hero-sub strong { color: #C97D00; }

/* TRACK BOX */
.track-box {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}
.track-box input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 1px;
}
.track-box input:focus { border-color: #C97D00; }
.track-box button {
  padding: 14px 28px;
  background: #C97D00;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
}
.track-box button:hover { background: #C97D00; }

#heroResult { margin-top: 20px; }

/* SECTIONS */
.section { padding: 80px 24px; }
.section-alt { background: #f8f7ff; }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.section-tag {
  display: inline-block;
  background: rgba(59,15,160,0.08);
  color: #3B0FA0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-inner h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
}
.section-text {
  color: #6b6b8a;
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* STATS */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #3B0FA0;
}
.stat-label {
  font-size: 14px;
  color: #6b6b8a;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  text-align: left;
}
.card {
  background: white;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(59,15,160,0.08);
  border: 1px solid rgba(59,15,160,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(59,15,160,0.14);
}
.card-icon { font-size: 32px; margin-bottom: 14px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: #1a1a2e; }
.card p { font-size: 14px; color: #6b6b8a; line-height: 1.6; }

/* CITIES */
.cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.city {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid rgba(59,15,160,0.12);
  border-radius: 40px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 16px;
  color: #3B0FA0;
  box-shadow: 0 4px 24px rgba(59,15,160,0.08);
}

/* TRACK RESULT */
.track-result {
  margin-top: 28px;
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.result-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(59,15,160,0.08);
  border: 1px solid rgba(59,15,160,0.1);
}
.result-card .tracking-code {
  font-size: 13px;
  color: #6b6b8a;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.result-card .recipient {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.result-card .city-line {
  font-size: 14px;
  color: #6b6b8a;
  margin-bottom: 16px;
}
.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.status-collected { background: #f0f0f0; color: #555; }
.status-in_transit { background: #e0eaff; color: #1a56db; }
.status-arrived_at_branch { background: #e0f7f4; color: #0d7a6b; }
.status-ready_for_pickup { background: #e0f7f4; color: #0d7a6b; }
.status-delivered { background: #e6f9ee; color: #1a7a40; }
.result-error {
  background: #fff0f0;
  border: 1px solid #ffc0c0;
  border-radius: 12px;
  padding: 16px 20px;
  color: #c00;
  font-weight: 500;
}

/* TIMELINE */
.timeline {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
  opacity: 0.4;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item.done { opacity: 1; }
.tl-item::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: #e0e0f0;
}
.tl-item.done::before { background: #3B0FA0; }
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e0e0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  color: #999;
  font-weight: 700;
  border: 2px solid #e0e0f0;
}
.tl-item.done .tl-dot {
  background: #f0ecff;
  border-color: #3B0FA0;
  color: #3B0FA0;
}
.tl-item.current .tl-dot {
  background: #3B0FA0;
  border-color: #3B0FA0;
  color: white;
  font-size: 18px;
}
.tl-content { padding-top: 5px; }
.tl-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}
.tl-item:not(.done) .tl-label { color: #aaa; }
.tl-date {
  font-size: 12px;
  color: #6b6b8a;
  margin-top: 2px;
  display: block;
}

/* RESULT HEADER */
.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(59,15,160,0.08);
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 16px;
  text-align: left;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f8f7ff;
  border-radius: 12px;
  padding: 20px;
}
.contact-icon { font-size: 28px; }
.contact-item strong { display: block; font-weight: 700; margin-bottom: 4px; }
.contact-item p { font-size: 15px; color: #6b6b8a; }
.contact-item a { color: #3B0FA0; text-decoration: none; font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

/* FOOTER */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 40px 24px;
}
.footer-logo {
  height: 36px;
  margin-bottom: 16px;
}
.footer p { font-size: 14px; margin-bottom: 4px; }
.footer a { color: #C97D00; text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 72px 20px; }
  .track-box { flex-direction: column; }
  .track-box button { width: 100%; }
  .stats { gap: 28px; }
}
