:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1E1E1E;
  --fg: #F5F5F0;
  --muted: #8A8A82;
  --accent: #B4FF00;
  --accent-dim: rgba(180, 255, 0, 0.12);
  --border: rgba(245, 245, 240, 0.08);
  --font-mono: 'IBM Plex Mono', monospace;
  --font-sans: 'IBM Plex Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── HEADER ─── */
.site-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  background: var(--accent);
  color: #000;
  padding: 0.2rem 0.45rem;
  letter-spacing: -0.02em;
}
.logo-name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
}

/* ─── HERO ─── */
.hero {
  padding: 6rem 2rem 5rem;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 860px;
}
.hero-label {
  margin-bottom: 1.5rem;
}
.label-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(180, 255, 0, 0.25);
}
.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
}
.stat {
  padding: 1rem 1.75rem;
}
.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}
.stat-divider {
  width: 1px;
  height: 3rem;
  background: var(--border);
}

/* ─── SECTION EYEBROW ─── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.section-eyebrow.light {
  color: rgba(180, 255, 0, 0.7);
}

/* ─── FLEETOPS ─── */
.fleetops {
  padding: 5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.fleetops-inner {
  max-width: 1100px;
}
.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: 2rem;
}
.ops-card {
  background: var(--bg);
  padding: 2rem;
}
.ops-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.ops-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.ops-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── AI ENGINE ─── */
.aiengine {
  padding: 5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.aiengine-inner {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.engine-left h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.25rem;
}
.engine-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.capability-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.capability {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--fg);
}
.cap-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45rem;
}
.terminal-card {
  background: #0D0D0D;
  border: 1px solid rgba(180, 255, 0, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.terminal-header {
  background: var(--surface-2);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FEBC2E; }
.terminal-dot.green { background: #28C840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: 0.5rem;
}
.terminal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.t-line {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.5;
}
.t-sys { color: var(--muted); }
.t-ok { color: #28C840; }
.t-warn { color: #FEBC2E; }
.t-action { color: var(--accent); }
.t-info { color: #60A5FA; }
.t-resolved { color: #A78BFA; }

/* ─── NUMBERS ─── */
.numbers {
  padding: 5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.numbers-inner { max-width: 1100px; }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.num-item {
  background: var(--bg);
  padding: 2.5rem 2rem;
  text-align: left;
}
.num-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.num-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── MANIFESTO ─── */
.manifesto {
  padding: 5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.manifesto-inner { max-width: 800px; }
.manifesto-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.manifesto blockquote {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}
.manifesto-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ─── CLOSING ─── */
.closing {
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}
.closing-inner { max-width: 700px; }
.closing h2 {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.closing p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}
.closing p + p { margin-top: 1rem; }
.closing-tagline {
  font-family: var(--font-mono);
  font-size: 1.1rem !important;
  font-weight: 600;
  color: var(--accent) !important;
  margin-top: 2rem !important;
}

/* ─── FOOTER ─── */
.site-footer { padding: 3rem 2rem; }
.footer-inner { max-width: 1100px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.footer-note {
  font-size: 0.8rem;
  color: rgba(138, 138, 130, 0.5);
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .ops-grid { grid-template-columns: 1fr; }
  .aiengine-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; width: 100%; }
  .stat-divider { width: 100%; height: 1px; }
  .stat { padding: 1rem 1.25rem; width: 100%; }
  .fleetops, .aiengine, .numbers, .manifesto, .closing { padding: 3.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.2rem; }
}

/* ─── APPLY PAGE ─── */
.apply-page, .result-page, .contract-page, .signed-page, .dash-page, .error-page {
  padding: 3.5rem 2rem 5rem;
  max-width: 640px;
  margin: 0 auto;
}
.apply-page h1, .result-page h1, .contract-page h1, .dash-page h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.apply-page .subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ─── FORM ─── */
.field {
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field input, .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}
.field input:focus, .field select:focus {
  border-color: var(--accent);
}
.field input::placeholder { color: var(--muted); }
.field select option { background: var(--surface-2); }
.hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.error-msg {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: #ff8080;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.15s;
  width: 100%;
  text-align: center;
}
.btn-primary:hover { opacity: 0.85; }
button[type="submit"].btn-primary { width: 100%; }

/* ─── RESULT PAGE ─── */
.result-icon {
  display: block;
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.result-title {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.result-reason {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.result-card h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.result-row:last-child { border-bottom: none; }
.result-row .label { color: var(--muted); }
.result-row .value { font-weight: 500; text-align: right; }

/* ─── CONTRACT PAGE ─── */
.contract-page {
  max-width: 720px;
}
.contract-header { margin-bottom: 2rem; }
.contract-header h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.contract-header p { font-size: 0.9rem; color: var(--muted); }
.contract-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.contract-section { margin-bottom: 1.5rem; }
.contract-section:last-child { margin-bottom: 0; }
.contract-section h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.contract-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.contract-row:last-child { border-bottom: none; }
.contract-row .lbl { color: var(--muted); }
.contract-row .val { font-weight: 500; text-align: right; }
.sign-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.sign-section h3 {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.sign-section input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.15s;
}
.sign-section input:focus { border-color: var(--accent); }
.sign-section input::placeholder { color: var(--muted); }
.signature-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ─── SIGNED PAGE ─── */
.signed-page { text-align: center; max-width: 600px; }
.signed-page > div:first-child { font-size: 4rem; color: var(--accent); margin-bottom: 1rem; }
.signed-title {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.signed-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── DASHBOARD ─── */
.dash-page { max-width: 900px; }
.dash-page h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 2rem;
}
.dash-stats {
  display: flex;
  gap: 1px;
  background: var(--border);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.stat-card {
  flex: 1;
  background: var(--surface);
  padding: 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.stat-lbl {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
}
.dash-table thead tr {
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.dash-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
}
.dash-table td {
  padding: 0.75rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.dash-table tbody tr:hover { background: var(--surface); }
.status-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.status-approved { background: rgba(40,200,64,0.15); color: #28C840; }
.status-denied { background: rgba(255,80,80,0.12); color: #ff8080; }
.status-review_required { background: rgba(254,188,46,0.15); color: #FEBC2E; }
.status-pending { background: var(--surface-2); color: var(--muted); }

/* ─── ERROR PAGE ─── */
.error-page { text-align: center; max-width: 500px; }
.err-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.error-page h1 {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.error-page p { font-size: 0.95rem; color: var(--muted); }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .ops-grid { grid-template-columns: 1fr; }
  .aiengine-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; width: 100%; }
  .stat-divider { width: 100%; height: 1px; }
  .stat { padding: 1rem 1.25rem; width: 100%; }
  .fleetops, .aiengine, .numbers, .manifesto, .closing { padding: 3.5rem 1.25rem; }
  .apply-page, .result-page, .contract-page, .signed-page, .dash-page, .error-page { padding: 2.5rem 1.25rem; }
  .dash-stats { flex-direction: column; }
}

@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.2rem; }
}