* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a2e;
  background: #f8faff;
}

img, video, canvas, table { max-width: 100%; }

/* ===================== LAYOUT ===================== */

.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,82,170,0.1);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,82,170,0.08);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  color: #0052aa;
  letter-spacing: -0.02em;
}

.brand__icon {
  font-size: 1.6rem;
  line-height: 1;
}

.brand__name {
  color: #0052aa;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: #444;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.18s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav__link:hover {
  color: #0052aa;
  background: rgba(0,82,170,0.07);
}

.nav__link--muted {
  color: #888;
}

.nav__link--muted:hover {
  color: #333;
  background: #f0f0f0;
}

.nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00b347;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  min-width: 24px;
  font-size: 0.72rem;
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: calc(100vh - 200px);
}

/* ===================== TYPOGRAPHY ===================== */

h1, h2, h3, h4, h5, h6 {
  margin: 1rem 0 0.5rem 0;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0.5rem 0; }

a { color: #0052aa; text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: #666; font-size: 0.95rem; }

/* ===================== BUTTONS ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.18s ease;
  min-height: 44px;
  min-width: 44px;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn--primary {
  background: linear-gradient(135deg, #0066cc, #0052aa);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,82,170,0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #0052aa, #003d80);
  box-shadow: 0 4px 16px rgba(0,82,170,0.4);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.btn--primary:active { transform: scale(0.98); }

.btn--secondary {
  background: #fff;
  color: #333;
  border: 1.5px solid #dde3ed;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.btn--secondary:hover {
  background: #f4f7ff;
  border-color: #0052aa;
  color: #0052aa;
  text-decoration: none;
}

.btn--secondary:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: #0052aa;
  border: 2px solid #0052aa;
}

.btn--ghost:hover {
  background: #0052aa;
  color: #fff;
  text-decoration: none;
}

.btn--ghost-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn--ghost-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

.btn--danger {
  background: #dc3545;
  color: #fff;
}

.btn--danger:hover { background: #c82333; }

.btn--success {
  background: linear-gradient(135deg, #00b347, #009a3d);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,179,71,0.3);
}

.btn--success:hover { background: linear-gradient(135deg, #009a3d, #007d31); transform: translateY(-1px); color: #fff; text-decoration: none; }

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: 10px;
  min-height: 52px;
}

.btn--sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  min-height: 36px;
  border-radius: 6px;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===================== FORMS ===================== */

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form--inline {
  flex-direction: row;
  align-items: flex-end;
  gap: 0.75rem;
}

.form__label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #333;
}

.form__input,
.form__select,
textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid #dde3ed;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 44px;
  background: #fff;
  color: #1a1a2e;
}

.form__input:focus,
.form__select:focus,
textarea:focus {
  outline: none;
  border-color: #0052aa;
  box-shadow: 0 0 0 3px rgba(0,82,170,0.12);
}

.form__input--sm { padding: 0.4rem 0.7rem; font-size: 0.85rem; min-height: 36px; border-radius: 6px; }

textarea { resize: vertical; min-height: 120px; }

.form__msg {
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0;
}

.form__msg.success, .form__msg.form__msg--success {
  background: #d4f5e2;
  color: #0a5c2e;
  border: 1px solid #b2eacb;
}

.form__msg.error, .form__msg.form__msg--error {
  background: #fde8ea;
  color: #7a1a23;
  border: 1px solid #f8c4c8;
}

/* ===================== CARDS ===================== */

.card {
  background: #fff;
  border: 1px solid #eaeff8;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,40,100,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover { box-shadow: 0 6px 20px rgba(0,40,100,0.1); }

.card__header {
  margin: -1.5rem -1.5rem 1.25rem -1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eaeff8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #f8faff, #fff);
  border-radius: 12px 12px 0 0;
}

.card__title { margin: 0; font-size: 1.15rem; }

/* ===================== BADGES ===================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #eee;
  color: #333;
  white-space: nowrap;
}

.badge--request, .badge--review { background: #ddeeff; color: #0052aa; }
.badge--assignment, .badge--dispatch { background: #fff3cd; color: #7a5900; }
.badge--enroute, .badge--onsite, .badge--inprogress { background: #d0f0fb; color: #0a5c73; }
.badge--completed { background: #d4f5e2; color: #0a5c2e; }
.badge--closed { background: #e8e8e8; color: #555; }
.badge--good { background: #d4f5e2; color: #0a5c2e; }
.badge--fair { background: #fff3cd; color: #7a5900; }
.badge--poor { background: #fde8ea; color: #7a1a23; }
.badge--critical { background: #7a1a23; color: #fff; }
.badge--available { background: #d4f5e2; color: #0a5c2e; }
.badge--offline { background: #e8e8e8; color: #555; }
.badge--busy { background: #fff3cd; color: #7a5900; }
.badge--work_order, .badge--status, .badge--assignment { background: #ddeeff; color: #0052aa; }
.badge--info { background: #d0f0fb; color: #0a5c73; }

/* ===================== ALERTS ===================== */

.alert {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.alert--danger { background: #fde8ea; color: #7a1a23; border: 1px solid #f8c4c8; }
.alert--success { background: #d4f5e2; color: #0a5c2e; border: 1px solid #b2eacb; }
.alert--warning { background: #fff3cd; color: #7a5900; border: 1px solid #ffe69c; }
.alert--info { background: #d0f0fb; color: #0a5c73; border: 1px solid #a8dcf0; }

/* ===================== GRID ===================== */

.grid { display: grid; gap: 1.5rem; margin: 1.5rem 0; }

.grid--cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: 1fr 1fr; } }

.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ===================== AUTH ===================== */

.auth {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.auth__card {
  max-width: 500px;
  margin: 1.5rem auto;
}

/* ===================== PAGES ===================== */

.page__title {
  margin-top: 0;
  padding: 1.25rem 0 1rem;
  border-bottom: 2px solid #eaeff8;
  font-size: 1.75rem;
}

/* ===================== PORTAL ===================== */

.portal { padding: 1rem 0; }

.portal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.order { transition: transform 0.2s ease; }
.order:hover { transform: translateY(-2px); }
.order__meta { font-size: 0.88rem; color: #666; margin: 0.4rem 0 1rem; }

/* ===================== FIELD ===================== */

.field { padding: 1rem 0; }
.job { margin-bottom: 1.5rem; }

.job__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.job__actions .btn { flex: 1; min-width: 100px; }

@media (min-width: 640px) {
  .job__actions .btn { flex: 0 1 auto; }
}

/* ===================== TRACKING ===================== */

.track { max-width: 640px; margin: 2rem auto; }
.track__id { font-weight: 700; color: #0052aa; margin: 0; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }
.track__title { margin: 0.5rem 0 1rem; font-size: 1.6rem; }

.track__steps {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  margin: 2rem 0;
  position: relative;
}

.track__steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background: #eaeff8;
  z-index: 0;
}

.track__step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: #aaa;
}

.track__step.is-done { color: #00b347; }
.track__step.is-current { color: #0052aa; font-weight: 600; }

.track__dot {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eaeff8;
  border: 2px solid #fff;
  margin: 0 auto 0.4rem;
  box-shadow: 0 0 0 2px #eaeff8;
  transition: all 0.3s ease;
}

.track__step.is-done .track__dot { background: #00b347; box-shadow: 0 0 0 3px #d4f5e2; }
.track__step.is-current .track__dot { background: #0052aa; box-shadow: 0 0 0 3px #ddeeff; }

.eta-card { border: 2px solid #0052aa; margin-top: 1.5rem; }
.eta-card__eta { font-size: 1.15rem; font-weight: 700; color: #0052aa; margin: 1rem 0 0; }

/* ===================== ADMIN / TABLES ===================== */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th, .table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eaeff8;
  white-space: nowrap;
}

.table th {
  font-weight: 600;
  color: #555;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8faff;
}

.table tr:hover td { background: #f4f7ff; }

.map {
  width: 100%;
  height: 480px;
  border-radius: 10px;
  border: 1px solid #eaeff8;
  margin: 1rem 0;
  background: #e8f0fe;
}

@media (min-width: 768px) { .map { height: 580px; } }
.map--active { border-color: #0052aa; box-shadow: 0 0 0 3px rgba(0,82,170,0.1); }

.tech-list { list-style: none; padding: 0; margin: 1rem 0; }

.tech-list__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-bottom: 1px solid #eaeff8;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

/* Dashboard tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #eaeff8;
  margin: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tabs__link {
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.18s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.tabs__link:hover { color: #0052aa; background: #f4f7ff; text-decoration: none; }
.tabs__link.is-active { color: #0052aa; border-bottom-color: #0052aa; }

/* KPI cards on admin */
.grid--kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.kpi {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #0052aa;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,40,100,0.06);
  margin: 0;
}

.kpi__label { font-size: 0.82rem; color: #777; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.kpi__value { font-size: 2rem; font-weight: 800; color: #0052aa; margin: 0.4rem 0 0; letter-spacing: -0.03em; }

/* Queue */
.queue { margin: 0.5rem 0; }

.grid--queue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  align-items: start;
}

.queue__col {
  background: #f8faff;
  border-radius: 10px;
  padding: 0.75rem;
  min-height: 80px;
}

.queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.queue__count {
  background: #e4eaf5;
  color: #555;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.queue__empty { margin: 0.5rem; color: #bbb; font-size: 0.9rem; }

.order--mini { padding: 1rem; margin: 0 0 0.75rem; border-radius: 8px; }
.order--mini .card__title { font-size: 0.95rem; }
.order--mini .card__header { margin: -1rem -1rem 0.75rem; padding: 0.6rem 1rem; border-radius: 8px 8px 0 0; }

.order__row { margin-top: 0.5rem; }
.order__assign { font-size: 0.82rem; font-weight: 500; display: flex; flex-direction: column; gap: 0.25rem; color: #555; }

/* Notification list */
.notif-list { list-style: none; padding: 0; margin: 0; }

.notif-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eaeff8;
  flex-wrap: wrap;
}

.notif-list__msg { flex: 1; font-size: 0.95rem; min-width: 0; }
.notif-list__meta { font-size: 0.8rem; color: #999; white-space: nowrap; }

/* Grid form */
.grid--form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 0 1rem;
}

@media (min-width: 640px) { .grid--form { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   LANDING PAGE
   ===================================================================== */

/* Container override for landing — full-width sections */
body:has(.lp-hero) .container {
  max-width: 100%;
  padding: 0;
}

/* Hero */
.lp-hero {
  background: linear-gradient(135deg, #001a40 0%, #003580 50%, #0052aa 100%);
  color: #fff;
  padding: 4rem 1.25rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
  position: relative;
}

.lp-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,150,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.lp-hero__content {
  max-width: 640px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lp-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
}

.lp-hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.lp-hero__title--accent {
  background: linear-gradient(90deg, #5bc8ff, #a0d8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero__lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin: 0 0 2rem;
  line-height: 1.65;
}

.lp-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.lp-hero__track {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.lp-hero__track-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.lp-hero__track-form { align-items: stretch; }

.lp-hero__track-form .form__input {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 8px;
}

.lp-hero__track-form .form__input::placeholder { color: rgba(255,255,255,0.5); }
.lp-hero__track-form .form__input:focus {
  background: rgba(255,255,255,0.18);
  border-color: #5bc8ff;
  box-shadow: 0 0 0 3px rgba(91,200,255,0.2);
}

/* Hero visual / map mock */
.lp-hero__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.lp-hero__map-mock {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #001533, #002a60);
  border-radius: 16px;
  border: 1px solid rgba(91,200,255,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.lp-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91,200,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,200,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

.lp-map-pulse {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(91,200,255,0.1);
  animation: pulse 2.5s ease-out infinite;
}

.lp-map-pulse::after {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: rgba(91,200,255,0.2);
  animation: pulse 2.5s ease-out infinite 0.8s;
}

@keyframes pulse {
  0% { transform: translate(-50%,-50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}

.lp-map-pin {
  position: absolute;
  font-size: 1.6rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.lp-map-pin span { display: block; }

.lp-map-pin--1 { top: 20%; left: 25%; animation-delay: 0s; }
.lp-map-pin--2 { top: 55%; left: 60%; animation-delay: 1s; }
.lp-map-pin--3 { top: 30%; left: 70%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Stats bar */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #0052aa;
  color: #fff;
}

@media (min-width: 640px) { .lp-stats { grid-template-columns: repeat(4, 1fr); } }

.lp-stats__item {
  padding: 2rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.lp-stats__item:last-child { border-right: none; }

.lp-stats__number {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #5bc8ff;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.lp-stats__label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Section headings */
.lp-section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.lp-section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: #001a40;
  letter-spacing: -0.02em;
}

.lp-section-sub {
  font-size: 1.05rem;
  color: #666;
  margin: 0;
}

/* Features */
.lp-features {
  padding: 5rem 1.25rem;
  background: #f8faff;
  max-width: 100%;
}

.lp-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 540px) {
  .lp-features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .lp-features__grid { grid-template-columns: repeat(3, 1fr); }
}

.lp-feature-card {
  background: #fff;
  border: 1px solid #eaeff8;
  border-radius: 14px;
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,40,100,0.05);
}

.lp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,40,100,0.12);
}

.lp-feature-card__icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.lp-feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: #001a40;
}

.lp-feature-card__desc {
  font-size: 0.92rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* How it works */
.lp-steps {
  padding: 5rem 1.25rem;
  background: #fff;
  max-width: 100%;
}

.lp-steps__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 768px) {
  .lp-steps__list {
    flex-direction: row;
    align-items: flex-start;
  }
}

.lp-step {
  flex: 1;
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8faff;
  border-radius: 12px;
  border: 1px solid #eaeff8;
  width: 100%;
}

@media (min-width: 768px) {
  .lp-step { flex-direction: column; }
}

.lp-step__num {
  font-size: 2rem;
  font-weight: 800;
  color: #c8daf5;
  line-height: 1;
  min-width: 3rem;
  letter-spacing: -0.04em;
}

.lp-step__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #001a40;
}

.lp-step__desc {
  font-size: 0.88rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.lp-step__arrow {
  font-size: 1.5rem;
  color: #c8daf5;
  font-weight: 700;
  display: none;
  align-self: center;
}

@media (min-width: 768px) { .lp-step__arrow { display: block; } }

/* Testimonials */
.lp-testimonials {
  padding: 5rem 1.25rem;
  background: #f0f5ff;
  max-width: 100%;
}

.lp-testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 640px) { .lp-testimonials__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .lp-testimonials__grid { grid-template-columns: repeat(3, 1fr); } }

.lp-testimonial {
  background: #fff;
  border: 1px solid #eaeff8;
  border-radius: 14px;
  padding: 1.75rem;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0,40,100,0.05);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lp-testimonial__quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  margin: 0;
  flex: 1;
  font-style: italic;
}

.lp-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: #555;
}

.lp-testimonial__avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052aa, #003d80);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* CTA */
.lp-cta {
  background: linear-gradient(135deg, #001a40, #003580);
  padding: 5rem 1.25rem;
  text-align: center;
  color: #fff;
  max-width: 100%;
}

.lp-cta__inner {
  max-width: 680px;
  margin: 0 auto;
}

.lp-cta__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.lp-cta__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin: 0 0 2rem;
}

.lp-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.lp-cta__note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.lp-cta__note code {
  background: rgba(255,255,255,0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: rgba(255,255,255,0.8);
}

/* ===================== UTILITY ===================== */

.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ===================== RESPONSIVE ===================== */

@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .nav {
    gap: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .nav__link {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
  }

  .form--inline { flex-direction: column; }
  .form--inline .form__input,
  .form--inline .btn { width: 100%; }

  .portal__head { flex-direction: column; align-items: stretch; }
  .portal__head .btn { width: 100%; }

  .job__actions { gap: 0.4rem; }
  .job__actions .btn { flex: 1; font-size: 0.85rem; padding: 0.5rem 0.4rem; }

  .track__steps { flex-wrap: wrap; }
  .track__step { flex: 0 0 calc(50% - 0.15rem); }

  .lp-hero { padding: 3rem 1rem 3.5rem; }
  .lp-hero__actions { flex-direction: column; align-items: stretch; }
  .lp-hero__actions .btn { width: 100%; }
  .lp-hero__track-form { flex-direction: column; }
  .lp-hero__track-form .form__input,
  .lp-hero__track-form .btn { width: 100%; }

  .lp-steps__list { gap: 1rem; }
  .lp-step { flex-direction: row; }

  .lp-cta__actions { flex-direction: column; align-items: stretch; }
  .lp-cta__actions .btn { width: 100%; }

  .grid--queue { grid-template-columns: 1fr; }
  .grid--kpi { grid-template-columns: 1fr 1fr; }
  .tabs { overflow-x: auto; }
}

@media (min-width: 768px) {
  .lp-hero {
    flex-direction: row;
    padding: 6rem 5% 7rem;
    align-items: center;
    justify-content: center;
    gap: 4rem;
  }

  .lp-hero__content { text-align: left; }
  .lp-hero__actions { justify-content: flex-start; }
}

/* ===================== PRINT ===================== */

@media print {
  .site-header, .nav, .btn, .form { display: none; }
  body { background: #fff; }
  .card { break-inside: avoid; }
}