/* ============================================
   FreightKings — Gunmetal Trading Terminal
   Palogix International Product Landing Page
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Gunmetal palette */
  --bg-black: #0c0e12;
  --bg-gunmetal: #14171e;
  --bg-steel: #1c2029;
  --bg-elevated: #242830;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

  /* Primary accent: orange */
  --orange: #f57c00;
  --orange-hover: #e06800;
  --orange-glow: rgba(245, 124, 0, 0.15);
  --orange-bright: #ff9800;

  /* Secondary accent: cyan */
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.12);

  /* Success/live */
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.12);

  /* Danger */
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.12);

  /* Text */
  --text-primary: #e8ebf0;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-xl: 0 16px 50px rgba(0,0,0,0.6);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-black);
  position: relative;
}

/* Dot grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content stacks above dot grid */
body > * {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange-bright);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  gap: 8px;
  white-space: nowrap;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border: 1px solid var(--orange);
}

.btn-primary:hover {
  background: var(--orange-bright);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(245, 124, 0, 0.4), 0 0 60px rgba(245, 124, 0, 0.15);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  background: var(--bg-steel);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline-light:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 0 20px rgba(245, 124, 0, 0.3);
}

.btn-full {
  width: 100%;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12, 14, 18, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.12);
}

.nav-product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-gunmetal);
}

.nav-mobile-menu.active {
  display: flex;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(12, 14, 18, 0.92) 0%,
    rgba(12, 14, 18, 0.85) 40%,
    rgba(12, 14, 18, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-glow);
  border: 1px solid rgba(245, 124, 0, 0.3);
  padding: 8px 20px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { border-color: rgba(245, 124, 0, 0.3); box-shadow: 0 0 0 rgba(245, 124, 0, 0); }
  50% { border-color: rgba(245, 124, 0, 0.6); box-shadow: 0 0 20px rgba(245, 124, 0, 0.1); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  min-height: 4.8em;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Live Ticker (injected by JS) --- */
.fk-ticker {
  background: var(--bg-gunmetal);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  position: relative;
}

.fk-ticker::before,
.fk-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.fk-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-gunmetal), transparent);
}

.fk-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-gunmetal), transparent);
}

.fk-ticker-track {
  display: inline-flex;
  animation: ticker-scroll 40s linear infinite;
}

.fk-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.fk-ticker-item .ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--bg-gunmetal);
}

.section-gray {
  background: var(--bg-steel);
}

.section-dark {
  background: var(--bg-black);
}

/* Section dividers */
.section + .section {
  border-top: 1px solid transparent;
  background-image: linear-gradient(var(--bg-gunmetal), var(--bg-gunmetal)),
    linear-gradient(90deg, transparent, var(--border), transparent);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
}

/* Override the above — use a simpler approach */
.section + .section {
  background-image: none;
  background-clip: unset;
  background-origin: unset;
  border-top: none;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-label-light {
  color: var(--orange);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-title-light {
  color: var(--white);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.section-subtitle-light {
  color: var(--text-muted);
}

/* --- How It Works: Steps --- */
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  position: relative;
}

.step-card {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 32px 16px;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 72px;
  flex-shrink: 0;
}

.step-connector svg path {
  stroke: var(--orange);
  filter: drop-shadow(0 0 4px rgba(245, 124, 0, 0.4));
}

.step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange-glow);
  border: 2px solid rgba(245, 124, 0, 0.3);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.step-card:hover .step-icon {
  background: rgba(245, 124, 0, 0.25);
  border-color: var(--orange);
  box-shadow: 0 0 20px rgba(245, 124, 0, 0.2);
}

.step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Two Modes --- */
.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.mode-card {
  background: var(--bg-steel);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.mode-card-planning::before {
  background: linear-gradient(90deg, var(--orange), var(--orange-bright));
}

.mode-card-immediate::before {
  background: linear-gradient(90deg, var(--cyan), #0ea5e9);
}

.mode-card:hover {
  border-color: rgba(245, 124, 0, 0.2);
  box-shadow: 0 0 30px rgba(245, 124, 0, 0.05);
  transform: translateY(-2px);
}

.mode-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 16px;
}

.mode-card-immediate .mode-badge {
  color: var(--cyan);
}

.mode-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.mode-lead {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.mode-features {
  list-style: none;
  margin-bottom: 24px;
}

.mode-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.mode-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 6px rgba(245, 124, 0, 0.4);
}

.mode-card-immediate .mode-features li::before {
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.4);
}

.mode-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Comparison Table --- */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-steel);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table thead {
  background: var(--bg-elevated);
}

.comparison-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 24px;
  text-align: left;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.comparison-table th.col-fk {
  color: var(--orange);
  border-top: 3px solid var(--orange);
  box-shadow: inset 0 3px 12px rgba(245, 124, 0, 0.08);
}

.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
}

.comparison-table tbody tr {
  background: var(--bg-steel);
  transition: background 0.2s ease;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(28, 32, 41, 0.7);
}

.comparison-table tbody tr:hover {
  background: var(--bg-elevated);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.feature-name {
  font-weight: 600;
  color: var(--text-primary);
}

.col-loadboard {
  background: transparent;
}

.col-fk {
  border-left: 2px solid rgba(245, 124, 0, 0.2);
}

.badge-bad {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: var(--red-glow);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-good {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: var(--orange-glow);
  color: var(--orange-bright);
  border: 1px solid rgba(245, 124, 0, 0.2);
}

/* --- Live Board (Airport / eTrade) --- */
/* Board tabs */
.board-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: #0c0e12;
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.board-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.board-tab:hover {
  color: #d1d5db;
}
.board-tab--active {
  background: #1c2029;
  color: #f57c00;
}

.board-tab__count {
  font-size: 0.625rem;
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 999px;
  color: #9ca3af;
}
.board-tab--active .board-tab__count {
  background: rgba(245, 124, 0, 0.15);
  color: #f57c00;
}

.board-panel {
  /* visible by default for loads */
}

/* Truck-specific styles */
.board-table .truck-id {
  color: #06b6d4;
  font-weight: 700;
}

.board-table .avail-now {
  color: #22c55e;
  font-weight: 700;
}
.board-table .avail-soon {
  color: #eab308;
  font-weight: 700;
}
.board-table .avail-tomorrow {
  color: #f57c00;
}

.board-table .will-go {
  color: #d1d5db;
}
.board-table .will-go-radius {
  font-size: 0.625rem;
  color: #6b7280;
  display: block;
}

.board-table .posted-time {
  color: #6b7280;
  font-size: 0.75rem;
}
.board-table .posted-fresh {
  color: #22c55e;
}

.board-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.board-filter {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.board-filter:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.board-filter--active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.board-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-gunmetal);
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  min-width: 700px;
}

.board-table thead {
  background: var(--bg-black);
}

.board-table th {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.board-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #d1d5db;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.board-table tbody tr {
  background: #14171e;
}
.board-table tbody tr:nth-child(even) {
  background: #181c24;
}
.board-table tbody tr:hover {
  background: #1e2330;
}

/* eTrade-style row coloring */
.board-table tbody tr[data-status="arriving"],
.board-table tbody tr[data-status="delivered"] {
  border-left: 3px solid #22c55e;
}
.board-table tbody tr[data-status="delayed"] {
  border-left: 3px solid #ef4444;
}
.board-table tbody tr[data-status="transit"] {
  border-left: 3px solid #06b6d4;
}
.board-table tbody tr[data-status="departing"] {
  border-left: 3px solid #f57c00;
}

.board-table .load-id {
  color: var(--text-primary);
  font-weight: 700;
}

.board-table .city {
  color: var(--text-primary);
}

.board-table .eta-time {
  font-weight: 700;
  color: #e8ebf0;
}

.board-table .eta-ontime {
  color: #22c55e;
  font-weight: 700;
}

.board-table .eta-late {
  color: #ef4444;
  font-weight: 700;
}

.board-table .eta-mins {
  font-size: 0.6875rem;
  margin-left: 6px;
}
.board-table .eta-mins--green {
  color: #22c55e;
}
.board-table .eta-mins--red {
  color: #ef4444;
}
.board-table .eta-mins--neutral {
  color: #6b7280;
}

/* Status badges */
.board-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
}

.board-status--transit {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
}
.board-status--arriving {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}
.board-status--departing {
  background: rgba(245, 124, 0, 0.12);
  color: #f57c00;
}
.board-status--delivered {
  background: rgba(34, 197, 94, 0.08);
  color: rgba(34, 197, 94, 0.6);
}
.board-status--delayed {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* Traffic indicators */
.board-traffic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
}

.board-traffic--clear {
  color: #22c55e;
}
.board-traffic--moderate {
  color: #eab308;
}
.board-traffic--heavy {
  color: #ef4444;
}

.board-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.board-dot--green {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.board-rate {
  color: var(--orange);
  font-weight: 700;
}

.board-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.board-footer__live {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Row flash animation for updates */
@keyframes row-flash {
  0% { background: rgba(245, 124, 0, 0.08); }
  100% { background: transparent; }
}
.board-row-flash {
  animation: row-flash 1.5s ease;
}

/* --- Spot Rate Estimator (Trading Terminal) --- */
.estimator-card {
  background: var(--bg-gunmetal);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,0.03);
}

.estimator-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 20px;
  align-items: end;
}

.estimator-form .form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.estimator-form .form-group input,
.estimator-form .form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-black);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 15px;
  transition: all 0.25s ease;
}

.estimator-form .form-group input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.estimator-form .form-group input:focus,
.estimator-form .form-group select:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(12, 14, 18, 0.9);
  box-shadow: 0 0 0 3px var(--orange-glow), 0 0 20px rgba(245, 124, 0, 0.1);
}

.estimator-form .form-group select option {
  background: var(--bg-black);
  color: var(--white);
}

.form-group-btn {
  padding-bottom: 1px;
}

.estimator-result {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.result-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.result-item {
  text-align: center;
  padding: 16px;
  background: var(--bg-black);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.result-item-main {
  text-align: left;
  border-color: rgba(245, 124, 0, 0.2);
  background: linear-gradient(135deg, rgba(245, 124, 0, 0.05), var(--bg-black));
}

.result-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.result-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.result-item-main .result-value {
  font-size: 32px;
  color: var(--orange-bright);
  text-shadow: 0 0 30px rgba(245, 124, 0, 0.3);
}

/* Cyan accent for non-primary data readouts */
.result-item:not(.result-item-main) .result-label {
  color: var(--cyan);
}

.result-disclaimer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-steel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(245, 124, 0, 0.2);
  box-shadow: 0 0 30px rgba(245, 124, 0, 0.05);
  transform: translateY(-2px);
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e8ebf0 0%, #9ca3af 50%, #e8ebf0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Built on Palogix --- */
.built-on-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.built-on-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.built-on-text p strong {
  color: var(--text-primary);
}

.built-on-text .btn {
  margin-top: 16px;
}

.built-on-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.built-on-stat {
  background: var(--bg-gunmetal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.built-on-stat:hover {
  border-color: rgba(245, 124, 0, 0.2);
  box-shadow: 0 0 20px rgba(245, 124, 0, 0.05);
}

.built-on-stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 4px;
  text-shadow: 0 0 20px rgba(245, 124, 0, 0.2);
}

.built-on-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Waitlist Form --- */
.waitlist-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-gunmetal);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.waitlist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.waitlist-form .form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.waitlist-form .form-group input,
.waitlist-form .form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-black);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: all 0.25s ease;
}

.waitlist-form .form-group input::placeholder {
  color: var(--text-muted);
}

.waitlist-form .form-group input:focus,
.waitlist-form .form-group select:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(12, 14, 18, 0.9);
  box-shadow: 0 0 0 3px var(--orange-glow), 0 0 20px rgba(245, 124, 0, 0.1);
}

.waitlist-form .form-group select option {
  background: var(--bg-black);
  color: var(--white);
}

.checkbox-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}

/* Limited spots badge pulse */
.section-subtitle-light {
  color: var(--text-muted);
}

.waitlist-success {
  text-align: center;
  padding: 32px 0;
}

.success-icon {
  margin-bottom: 20px;
}

.waitlist-success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 12px;
}

.waitlist-success p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.waitlist-success a {
  color: var(--orange);
}

/* --- Footer --- */
.footer {
  background: var(--bg-black);
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nav-right {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero {
    min-height: 80vh;
    padding: 100px 20px 60px;
  }

  .hero-headline {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
    min-height: auto;
  }

  .section {
    padding: 64px 0;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    padding-top: 0;
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .step-card {
    max-width: 100%;
  }

  .modes-grid {
    grid-template-columns: 1fr;
  }

  .estimator-inputs {
    grid-template-columns: 1fr;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .result-item-main {
    grid-column: 1 / -1;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .built-on-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .waitlist-grid {
    grid-template-columns: 1fr;
  }

  .waitlist-card,
  .estimator-card {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 16px;
    font-size: 13px;
  }

  .fk-ticker-item {
    padding: 0 20px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
    padding: 90px 16px 48px;
  }

  .hero-headline {
    font-size: 28px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .container {
    padding: 0 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-item-main {
    text-align: center;
  }

  .mode-card {
    padding: 32px 24px;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 12px;
  }

  .built-on-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .built-on-stat {
    padding: 24px 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
