:root {
  --bg: #0d0d0f;
  --bg-soft: #111114;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.02);
  --text: #f0f0f4;
  --muted: #8a8a9a;
  --line: rgba(255, 255, 255, 0.08);
  --red: #ff4444;
  --red-deep: #cc2222;
  --red-glow: rgba(255, 68, 68, 0.15);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;
  color: var(--text);
  background: var(--bg);
}

.grid-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.grid-overlay canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.site-header, .section, .metrics {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-top: 18px;
  background: rgba(13, 13, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  --mouse-x: 50%;
  --mouse-y: 50%;
  --mouse-opacity: 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 600ms ease;
}

.glass:hover { border-color: rgba(255, 68, 68, 0.25); }

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mouse-x) var(--mouse-y), rgba(255, 68, 68, 0.1), transparent 70%);
  opacity: var(--mouse-opacity);
  transition: opacity 600ms ease;
  z-index: 0;
}

.glass > * { position: relative; z-index: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.site-header nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }

.section { padding: 60px 0; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  min-height: 86vh;
  align-items: center;
}

.eyebrow, .card-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
  font-family: var(--font-mono);
}

h1,h2,h3,p,ul { margin-top: 0; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  margin: 0 0 20px;
  max-width: 11ch;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.lede, .section-intro, .service-card p, .coverage-card p, .quote-card p,
.tracking-panel p, .trust-box p, .contact-card p {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions, .contact-actions, .form-actions, .tracking-form {
  display: flex; gap: 14px; flex-wrap: wrap;
}

.hero-tags, .zone-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.hero-tags span, .zone-list span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.95rem;
}

.button {
  appearance: none; border: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 18px; border-radius: 999px; font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.button:hover { transform: translateY(-2px); }
.button.small { padding: 10px 14px; font-size: 14px; }
.button.primary { color: white; background: linear-gradient(135deg, var(--red), var(--red-deep)); box-shadow: 0 8px 24px rgba(255, 68, 68, 0.3); }
.button.secondary { color: var(--text); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }

.hero-panel, .dashboard-card, .metric, .service-card, .coverage-card,
.coverage-map, .booking-form, .quote-card, .tracking-panel, .trust-box, .contact-card {
  border-radius: var(--radius-lg);
}

.dashboard-card { padding: 24px; min-height: 560px; background: var(--panel); border: 1px solid var(--line); }

.dashboard-top, .route-stats, .quote-row { display: flex; justify-content: space-between; gap: 12px; }
.dashboard-top strong, .route-stats strong, .quote-row strong, .metric strong { display: block; color: var(--text); font-weight: 800; }

.status-pill {
  align-self: flex-start; padding: 8px 12px; border-radius: 999px;
  background: rgba(255, 68, 68, 0.12); color: var(--red);
  border: 1px solid rgba(255, 68, 68, 0.25); font-size: 13px; font-weight: 700;
}

.radar {
  margin: 26px 0; height: 320px; border-radius: 24px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.3);
  position: relative; overflow: hidden;
}

.radar-map { z-index: 0; }
.radar-map-overlay { display: none; }

.drone-marker {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: #ff4b4b; box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.6);
  z-index: 2; animation: drone-ping 1.8s infinite ease-out;
}

.drone-marker::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(255, 90, 90, 0.5); }

.drone-icon {
  position: absolute; left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%); color: #ff8a8a; font-size: 12px;
  text-shadow: 0 0 10px rgba(255, 75, 75, 0.7);
}

.marker-1 { left: 18%; top: 24%; animation-delay: 0s; }
.marker-2 { left: 34%; top: 62%; animation-delay: 0.3s; }
.marker-3 { left: 49%; top: 36%; animation-delay: 0.6s; }
.marker-4 { left: 63%; top: 55%; animation-delay: 0.9s; }
.marker-5 { left: 76%; top: 28%; animation-delay: 1.2s; }
.marker-6 { left: 58%; top: 74%; animation-delay: 1.5s; }

@keyframes drone-ping {
  0%   { box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.7); transform: scale(1); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 75, 75, 0); transform: scale(1.08); }
  100% { box-shadow: 0 0 0 0 rgba(255, 75, 75, 0); transform: scale(1); }
}

.radar::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 172%; height: 172%; transform: translate(-50%, -50%);
  transform-origin: center;
  background: conic-gradient(from 180deg, transparent 0deg, rgba(255, 68, 68, 0.12) 42deg, transparent 70deg);
  animation: radar-spin 5s linear infinite;
}

@keyframes radar-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.route-stats { gap: 14px; }
.route-stats > div, .metric { flex: 1; padding: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -12px; }
.metric span { color: var(--muted); font-size: 0.92rem; font-weight: 700; }
.section-heading { margin-bottom: 28px; }

.service-grid, .trust-grid-large { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.service-card, .trust-box, .coverage-card, .coverage-map,
.booking-form, .quote-card, .contact-card, .tracking-panel { padding: 26px; }

.service-card ul, .quote-card ul { padding-left: 18px; color: var(--muted); line-height: 1.8; margin-bottom: 0; }

.coverage-layout, .booking-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; }
.coverage-map { min-height: 360px; position: relative; background: #111114; }
.live-map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-overlay { display: none; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }

label { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.booking-form > label { margin-bottom: 18px; }

input, select, textarea {
  width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,0.05);
  color: var(--text); border-radius: 14px; padding: 14px; font: inherit;
}

input::placeholder, textarea::placeholder { color: #555566; }
select option { background: #1a1a1f; color: var(--text); }

.quote-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.quote-row.total { padding-top: 18px; border-bottom: none; }

.tracking-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tracking-form input { min-width: 260px; }

.trust-grid-large { grid-template-columns: repeat(2, 1fr); }
.contact-card { text-align: center; }
.contact-actions { justify-content: center; margin-top: 24px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 500ms ease, transform 500ms ease; will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 180ms; }
.stagger-3 { transition-delay: 260ms; }

@media (max-width: 1020px) {
  .hero, .service-grid, .coverage-layout, .booking-layout,
  .metrics, .trust-grid-large, .form-grid, .tracking-panel { grid-template-columns: 1fr; }
  .tracking-panel { display: grid; }
}

/* ── Problem section ── */

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.problem-card { padding: 28px; border-radius: var(--radius-lg); }

.problem-stat {
  display: inline-block; font-family: var(--font-display); font-weight: 800;
  font-size: 2.2rem; letter-spacing: -0.04em; color: var(--red); margin-bottom: 14px; line-height: 1;
}

.problem-card h3 { margin-bottom: 10px; }
.problem-card p { color: var(--muted); line-height: 1.7; margin: 0; }

.problem-solution { padding: 26px 28px; border-radius: var(--radius-lg); border-left: 3px solid var(--red); }
.problem-solution p:not(.eyebrow) { margin: 10px 0 0; color: var(--text); font-size: 1.1rem; line-height: 1.6; }

/* ── How it works ── */

.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.how-step { padding: 26px; border-radius: var(--radius-lg); position: relative; }

.how-num {
  display: block; font-family: var(--font-mono); font-weight: 700;
  font-size: 0.85rem; color: var(--red); margin-bottom: 18px; letter-spacing: 0.1em;
}

.how-step h3 { margin-bottom: 8px; }
.how-step p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.98rem; }

/* ── Partners ── */

.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.partner-logo {
  padding: 28px 20px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; min-height: 100px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.75;
  transition: opacity 300ms ease, transform 300ms ease;
}

/* Long Chau and Vinmec images have a lot of internal padding — scale up to match */
.partner-logo img[alt="Long Chau"],
.partner-logo img[alt="Vinmec"] {
  max-height: 90px;
}

.partner-logo:hover img { opacity: 1; transform: scale(1.05); }

/* ── Pricing note ── */

.pricing-note { margin: 20px 0 0; color: var(--muted); font-size: 0.88rem; font-style: italic; text-align: center; opacity: 0.8; }

/* ── FAQ ── */

.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius-md); padding: 0; overflow: hidden; }

.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon { font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; color: var(--red); transition: transform 300ms ease; flex-shrink: 0; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--muted); line-height: 1.75; font-size: 0.98rem; }

/* ── Order page ── */

.order-page { min-height: 100vh; }

.order-hero {
  width: min(calc(100% - 32px), var(--max));
  margin: 40px auto 22px; padding: 28px;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}

.order-id-box { min-width: 220px; padding: 18px 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.order-id-box strong { display: block; margin-top: 8px; font-size: 1.5rem; }

.order-layout { width: min(calc(100% - 32px), var(--max)); margin: 0 auto 60px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; }
.order-main, .order-sidebar { display: grid; gap: 18px; }
.order-map-card, .timeline-card, .order-summary { padding: 24px; border-radius: var(--radius-lg); }

.order-map-header { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }
.order-live-map { width: 100%; height: 400px; border: 0; border-radius: 18px; }
.timeline { display: grid; gap: 18px; }

.timeline-step { display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start; color: var(--muted); }

.timeline-step span {
  width: 14px; height: 14px; margin-top: 4px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.02);
}

.timeline-step.active span { background: var(--red); border-color: rgba(255, 68, 68, 0.5); box-shadow: 0 0 0 8px rgba(255, 68, 68, 0.1); }
.timeline-step strong { display: block; margin-bottom: 6px; color: var(--text); }
.timeline-step p { margin: 0; }

.summary-list { display: grid; gap: 14px; }
.summary-list > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.summary-list span { color: var(--muted); }
.summary-list strong { text-align: right; }
.order-notes { margin-top: 18px; color: var(--muted); line-height: 1.7; }

@media (max-width: 1020px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-hero { flex-direction: column; align-items: stretch; }
  .problem-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: stretch; }
  .site-header nav { justify-content: center; }
  .hero-actions, .contact-actions, .form-actions, .tracking-form { flex-direction: column; align-items: stretch; }
  .button, .tracking-form input { width: 100%; }
  h1 { font-size: 3.1rem; }
  .how-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-item summary { font-size: 0.98rem; padding: 18px 20px; }
  .faq-item p { padding: 0 20px 20px; }
}

/* ── Misc ── */

.live-ops-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.ops-pill {
  display: inline-block; padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  background: rgba(255,255,255,0.05); font-size: 0.78rem; font-weight: 600;
  white-space: nowrap; color: var(--text);
}

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-card { padding: 26px; border-radius: var(--radius-lg); text-align: center; }

.team-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 68, 68, 0.1); border: 1px solid rgba(255, 68, 68, 0.25);
  color: var(--red); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}

.founder-avatar {
  background: rgba(255, 68, 68, 0.15); border-color: rgba(255, 68, 68, 0.4);
  box-shadow: 0 0 24px rgba(255, 68, 68, 0.15); width: 72px; height: 72px; font-size: 1.2rem;
}

.team-role { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--red); margin-bottom: 10px; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pricing-card { padding: 26px; border-radius: var(--radius-lg); display: flex; flex-direction: column; }
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card h3 { margin-bottom: 8px; }

.service-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--red); margin-bottom: 12px; }
.pricing-card p { color: var(--muted); line-height: 1.6; flex-grow: 1; margin-bottom: 12px; }
.price { font-family: var(--font-mono); font-weight: 700; color: var(--red); font-size: 1.05rem; margin-top: auto; }

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

@media (max-width: 760px) {
  .team-grid, .pricing-grid { grid-template-columns: 1fr; }
}
