/* ============================================
   FleetLook — CSS
   ============================================ */

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

:root {
  --bg: #0a0b0f;
  --bg2: #0f1117;
  --bg3: #161921;
  --bg4: #1e2230;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #e8eaf0;
  --text2: #8b90a0;
  --text3: #5a5f70;
  --accent: #6c63ff;
  --accent2: #8b83ff;
  --accent-glow: rgba(108,99,255,0.25);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --blue: #3b82f6;
  --card-bg: rgba(22,25,33,0.8);
  --radius: 14px;
  --radius-sm: 8px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

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

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,11,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.logo-icon { font-size: 1.4rem; color: var(--accent); }
.logo-accent { color: var(--accent2); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-overlay {
  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: 60px 60px;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.5), transparent 70%);
  top: -150px; left: 50%;
  transform: translateX(-50%);
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 70%);
  bottom: 50px; right: -100px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  color: var(--accent2);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.title-accent {
  background: linear-gradient(135deg, var(--accent2), #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text2);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ---- SEARCH BOX ---- */
.search-box {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 20px 20px 16px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(108,99,255,0.08);
}

.search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.tab:hover {
  border-color: var(--accent);
  color: var(--text);
}
.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.search-input-row {
  display: flex;
  gap: 10px;
}
.input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 16px;
  font-size: 1rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 14px 16px 14px 44px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: var(--text3); }
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  white-space: nowrap;
}
.search-btn:hover {
  background: var(--accent2);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.search-btn:active { transform: scale(0.98); }

.search-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.note-live { color: var(--green); font-weight: 500; }
.sep { color: var(--border2); }

/* ---- STATS ROW ---- */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 20px;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- RESULTS SECTION ---- */
.results-section {
  min-height: 100vh;
  padding: 100px 24px 80px;
  background: var(--bg);
}
.results-container {
  max-width: 960px;
  margin: 0 auto;
}

/* Loading */
.loading-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text2);
}
.loader-ring {
  width: 48px; height: 48px;
  border: 3px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error */
.error-state {
  text-align: center;
  padding: 80px 20px;
}
.error-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--yellow);
}
.error-state h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.error-state p { color: var(--text2); margin-bottom: 24px; }

.btn-back {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-back:hover {
  border-color: var(--accent);
  color: var(--accent2);
}

/* Multi results */
.multi-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.multi-header h2 { font-family: var(--font-head); font-size: 1.5rem; }
.multi-header p { color: var(--text2); font-size: 0.9rem; flex: 1; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.result-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.result-card:hover {
  border-color: var(--accent);
  background: var(--bg4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108,99,255,0.15);
}
.result-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.result-card-meta { font-size: 0.8rem; color: var(--text2); line-height: 1.6; }

/* ---- CARRIER PROFILE ---- */
.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.profile-badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}
.badge-dot-num {
  background: rgba(108,99,255,0.15);
  color: var(--accent2);
  border: 1px solid rgba(108,99,255,0.25);
}
.badge-mc {
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,0.25);
}
.badge-active {
  background: rgba(34,197,94,0.15);
  color: #86efac;
  border: 1px solid rgba(34,197,94,0.25);
}
.badge-inactive {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
}

.profile-name {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 0.78rem;
  color: var(--text2);
  background: var(--bg4);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

/* Status grid */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.status-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.status-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.status-card.green::before { background: var(--green); }
.status-card.red::before { background: var(--red); }
.status-card.yellow::before { background: var(--yellow); }
.status-card.blue::before { background: var(--blue); }

.status-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 6px;
  font-weight: 600;
}
.status-value {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}
.status-card.green .status-value { color: var(--green); }
.status-card.red .status-value { color: var(--red); }
.status-card.yellow .status-value { color: var(--yellow); }
.status-card.blue .status-value { color: var(--blue); }
.status-sub {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 4px;
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.info-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.info-card-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  font-weight: 600;
  margin-bottom: 12px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.info-row:last-child { border-bottom: none; }
.info-row-key { font-size: 0.82rem; color: var(--text2); }
.info-row-val { font-size: 0.82rem; color: var(--text); font-weight: 500; text-align: right; }

/* Profile tabs */
.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ptab {
  background: transparent;
  border: none;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.ptab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.ptab.active { color: var(--text); }
.ptab.active::after { transform: scaleX(1); }
.ptab:hover { color: var(--text); }

/* Tab content */
.tab-content { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.data-section {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.data-section-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin-bottom: 18px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.metric {
  text-align: center;
  padding: 16px;
  background: var(--bg4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.metric-val {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}
.metric-val.red { color: var(--red); }
.metric-val.green { color: var(--green); }
.metric-val.yellow { color: var(--yellow); }
.metric-label { font-size: 0.72rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; }

.check-list { list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.check-list li:last-child { border-bottom: none; }
.check-icon { font-size: 1rem; margin-top: 1px; }
.check-text-key { color: var(--text); font-weight: 500; }
.check-text-val { color: var(--text2); font-size: 0.8rem; margin-top: 2px; }

/* ---- FEATURES ---- */
.features {
  padding: 100px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.features-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 48px;
  line-height: 1.15;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }

/* ---- HOW IT WORKS ---- */
.how-section {
  padding: 100px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.how-inner { max-width: 900px; margin: 0 auto; }

.steps-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 10px;
}
.step h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.84rem; color: var(--text2); line-height: 1.6; }
.step-arrow { font-size: 1.5rem; color: var(--text3); flex-shrink: 0; }

/* ---- FOOTER ---- */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; }
.footer-note { font-size: 0.78rem; color: var(--text3); }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .stats-row { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .stat-item { flex: 0 0 50%; }
  .search-input-row { flex-direction: column; }
  .search-btn { width: 100%; justify-content: center; }
  .steps-row { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .profile-header { flex-direction: column; }
  .nav-links { display: none; }
}
