*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: #1a1a2e; background: #f8f9fc; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* Header */
header { background: #fff; border-bottom: 1px solid #e8ecf1; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, #0052cc, #0099ff); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-text { font-size: 20px; font-weight: 700; color: #1a1a2e; letter-spacing: -0.3px; }
.logo-text span { color: #0052cc; }
nav { display: flex; gap: 28px; }
nav a { text-decoration: none; color: #4a4a6a; font-size: 14px; font-weight: 500; transition: color .2s; }
nav a:hover, nav a.active { color: #0052cc; }

/* Hero */
.hero { text-align: center; padding: 80px 0 50px; background: linear-gradient(180deg, #fff 0%, #f8f9fc 100%); }
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 12px; }
.hero h1 span { background: linear-gradient(135deg, #0052cc, #0099ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 18px; color: #6b6b8a; margin-bottom: 32px; }

/* Track Form */
.track-form { max-width: 660px; margin: 0 auto 16px; }
.search-box { display: flex; align-items: center; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,82,204,0.1); border: 1px solid #e0e5ed; overflow: hidden; }
.search-icon { margin-left: 18px; flex-shrink: 0; }
.search-box input { flex: 1; border: none; padding: 18px 12px; font-size: 15px; outline: none; background: transparent; }
.search-box button { background: linear-gradient(135deg, #0052cc, #0099ff); border: none; color: #fff; padding: 18px 32px; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .2s; white-space: nowrap; }
.search-box button:hover { opacity: .9; }
.search-hint { font-size: 13px; color: #999; margin-top: 12px; }

/* Features */
.features { padding: 60px 0; background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature-card { padding: 32px 24px; text-align: center; border-radius: 12px; border: 1px solid #eef0f4; }
.feature-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.04); }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; }
.feature-icon.globe { background: #eef4ff; }
.feature-icon.bolt { background: #fff7e6; }
.feature-icon.lock { background: #e6f7ed; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #6b6b8a; }

/* How It Works */
.how-it-works { padding: 60px 0; text-align: center; }
.how-it-works h2 { font-size: 28px; font-weight: 700; margin-bottom: 40px; }
.steps { display: flex; align-items: center; justify-content: center; gap: 20px; max-width: 800px; margin: 0 auto; }
.step { flex: 1; }
.step-num { width: 40px; height: 40px; background: linear-gradient(135deg,#0052cc,#0099ff); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 12px; }
.step h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; color: #8b8ba7; }
.step-arrow { font-size: 24px; color: #ccc; flex-shrink: 0; }

/* Carriers */
.carriers { padding: 60px 0; background: #fff; text-align: center; }
.carriers h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.carriers > .container > p { color: #6b6b8a; margin-bottom: 28px; }
.carrier-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 700px; margin: 0 auto; }
.badge { background: #f0f4ff; color: #0052cc; padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 500; }

/* CTA */
.cta { padding: 60px 0; text-align: center; background: linear-gradient(135deg,#0052cc,#0099ff); color: #fff; }
.cta h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.cta p { opacity: .9; margin-bottom: 24px; font-size: 15px; }
.btn-secondary { display: inline-block; background: #fff; color: #0052cc; padding: 12px 32px; border-radius: 8px; font-weight: 600; font-size: 15px; transition: box-shadow .2s; }
.btn-secondary:hover { box-shadow: 0 4px 16px rgba(255,255,255,0.3); }

/* Footer */
footer { background: #1a1a2e; color: #fff; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: #fff; }
.footer-col a { display: block; color: #8b8ba7; font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: #0099ff; }
.footer-bottom { border-top: 1px solid #2a2a4e; padding: 20px 0; text-align: center; }
.footer-bottom p { color: #5a5a7a; font-size: 13px; }

/* Page Content */
.page { padding: 60px 0; background: #fff; min-height: 60vh; }
.page h1 { font-size: 32px; font-weight: 700; margin-bottom: 20px; }
.page h2 { font-size: 22px; font-weight: 600; margin: 32px 0 12px; }
.page p { color: #444; margin-bottom: 16px; font-size: 15px; line-height: 1.8; max-width: 750px; }
.page ul { padding-left: 20px; margin-bottom: 16px; }
.page ul li { color: #444; margin-bottom: 8px; font-size: 15px; }
.page .back-link { display: inline-block; margin-bottom: 24px; color: #0052cc; font-size: 14px; font-weight: 500; }
.page .back-link:hover { text-decoration: underline; }

/* Tracking Result */
#result { max-width: 660px; margin: 30px auto 0; display: none; text-align: left; }
.result-card { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #e0e5ed; }
.result-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #eef0f4; }
.result-number { font-size: 14px; color: #6b6b8a; font-family: 'SF Mono', 'Fira Code', monospace; }
.result-carrier { font-size: 13px; color: #999; margin-top: 4px; }
.result-status { font-size: 13px; font-weight: 600; color: #0052cc; background: #eef4ff; padding: 6px 14px; border-radius: 20px; }
.result-timeline { margin-top: 8px; }
.result-item { display: flex; gap: 14px; padding: 14px 0; position: relative; padding-left: 24px; }
.result-item::before { content: ''; width: 10px; height: 10px; background: #0052cc; border-radius: 50%; position: absolute; left: 0; top: 18px; z-index: 1; }
.result-item::after { content: ''; width: 2px; background: #dce3ed; position: absolute; left: 4px; top: 28px; bottom: 0; }
.result-item:last-child::after { display: none; }
.result-item.completed::before { background: #00a854; }
.result-item-time { font-size: 12px; color: #999; min-width: 85px; flex-shrink: 0; }
.result-item-location { font-size: 12px; color: #aaa; }
.result-item-text { font-size: 14px; color: #333; }
.result-error { color: #d32f2f; text-align: center; padding: 20px; }
.result-loading { text-align: center; padding: 30px; color: #999; }

@media (max-width: 700px) {
  .hero h1 { font-size: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 8px; }
  .step-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-box { flex-direction: column; border-radius: 8px; }
  .search-box button { width: 100%; padding: 14px; }
  .search-icon { display: none; }
  nav { gap: 16px; }
  nav a { font-size: 13px; }
}
