/* === BASE === */
:root {
  --bg-primary: #080B10;
  --bg-secondary: #0C1018;
  --bg-card: #111622;
  --bg-panel: #0E1420;
  --fg-primary: #EDE8DF;
  --fg-secondary: #8A8A9A;
  --fg-muted: #55556A;
  --accent-gold: #FFCC00;
  --accent-gold-dim: rgba(255, 204, 0, 0.12);
  --accent-blue: #4F8EF7;
  --border: rgba(255, 204, 0, 0.08);
  --border-strong: rgba(255, 204, 0, 0.18);
  --success: #34D399;
  --warning: #FBBF24;
  --text-on-dark: #EDE8DF;
}

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

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(12px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo { display: flex; align-items: center; }

.nav-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-primary);
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--fg-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 4rem 2.5rem 5rem;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: block;
  animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  margin-bottom: 1.75rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent-gold);
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat {}

.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-strong);
}

/* === OPS PANEL (Hero Right) === */
.ops-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(255, 204, 0, 0.04), 0 24px 48px rgba(0,0,0,0.4);
}

.ops-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ops-panel-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}

.ops-status-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--success);
  background: rgba(52, 211, 153, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  display: block;
  animation: pulse-green 1.5s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0); }
}

/* Map area */
.ops-map-area {
  height: 200px;
  position: relative;
  background: linear-gradient(135deg, #0C1525 0%, #0A1020 100%);
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 142, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 142, 247, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* route lines */
.ops-map-area::before {
  content: '';
  position: absolute;
  top: 28%;
  left: 35%;
  width: 27%;
  height: 24%;
  border: 1px dashed rgba(79, 142, 247, 0.2);
  border-radius: 4px;
  transform: rotate(-5deg);
}

/* map pins */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}

.pin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 8px currentColor;
}

.pin-active .pin-dot { background: var(--accent-gold); color: var(--accent-gold); }
.pin-pending .pin-dot { background: var(--accent-blue); color: var(--accent-blue); }
.pin-complete .pin-dot { background: var(--fg-muted); color: var(--fg-muted); }

.pin-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}

.map-pin:hover .pin-tooltip { opacity: 1; }

.pin-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-primary);
}

.pin-job {
  display: block;
  font-size: 0.65rem;
  color: var(--fg-secondary);
  margin-top: 0.15rem;
}

.pin-time {
  display: block;
  font-size: 0.6rem;
  color: var(--accent-gold);
  margin-top: 0.2rem;
}

/* job list */
.ops-job-list {
  border-top: 1px solid var(--border);
  padding: 0;
}

.job-row {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.job-row:last-child { border-bottom: none; }

.job-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}

.job-active .job-status-dot { background: var(--accent-gold); }
.job-pending .job-status-dot { background: var(--accent-blue); }

.job-name { font-size: 0.75rem; color: var(--fg-primary); }
.job-vendor { font-size: 0.7rem; color: var(--fg-secondary); }
.job-time { font-size: 0.65rem; color: var(--accent-gold); }

/* === OPS SECTION === */
.ops-section {
  background: var(--bg-secondary);
  padding: 6rem 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ops-inner { max-width: 1200px; margin: 0 auto; }

.ops-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.ops-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 600px;
}

.ops-desc {
  color: var(--fg-secondary);
  max-width: 560px;
  margin-bottom: 4rem;
  line-height: 1.7;
}

.portals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.portal-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.portal-card-center {
  border-color: var(--border-strong);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 204, 0, 0.03) 100%);
}

.portal-icon {
  margin-bottom: 1.25rem;
}

.portal-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.portal-desc {
  font-size: 0.85rem;
  color: var(--fg-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.portal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portal-features li {
  font-size: 0.8rem;
  color: var(--fg-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-features li::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-gold);
  flex-shrink: 0;
}

/* === FEATURES === */
.features-section {
  background: var(--bg-primary);
  padding: 6rem 2.5rem;
}

.features-inner { max-width: 1200px; margin: 0 auto; }

.features-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.features-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 4rem;
  max-width: 600px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--bg-primary);
  transition: background 0.2s;
}

.feature-item:hover { background: var(--bg-secondary); }

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--accent-gold-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--fg-primary);
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* === PROOF === */
.proof-section {
  background: var(--bg-secondary);
  padding: 6rem 2.5rem;
  border-top: 1px solid var(--border);
}

.proof-inner { max-width: 1200px; margin: 0 auto; text-align: center; }

.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--fg-secondary);
  margin-bottom: 2.5rem;
}

.proof-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 4rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.proof-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
}

.proof-stat {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.proof-stat-label {
  font-size: 0.8rem;
  color: var(--fg-secondary);
  line-height: 1.4;
  max-width: 160px;
  margin: 0 auto;
}

/* === CLOSING === */
.closing-section {
  background: var(--bg-primary);
  padding: 7rem 2.5rem;
}

.closing-inner { max-width: 720px; margin: 0 auto; text-align: center; }

.closing-rule {
  width: 48px;
  height: 2px;
  background: var(--accent-gold);
  margin: 0 auto 3rem;
}

.closing-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 2rem;
  font-style: italic;
}

.closing-body {
  font-size: 1rem;
  color: var(--fg-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.closing-body--secondary {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2.5rem;
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-meta {
  font-size: 0.75rem;
  color: var(--fg-muted);
  flex: 1;
}

.footer-legal {
  font-size: 0.7rem;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero { padding: 3rem 1.5rem 4rem; }
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { order: -1; }
  .portals-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero-stats { gap: 1.25rem; }
  .nav { padding: 1rem 1.5rem; }
  .ops-section, .features-section, .proof-section, .closing-section { padding: 4rem 1.5rem; }
}

@media (max-width: 600px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .hero-headline { font-size: 2.4rem; }
  .nav-tagline { display: none; }
}