/* Net5development — Contractor Operations Tool */

:root {
  --bg: #f5f4f0;
  --bg-2: #ffffff;
  --bg-dark: #1c1c1e;
  --fg: #1c1c1e;
  --fg-muted: #5a5a5a;
  --accent: #e85d04;
  --accent-dark: #b84a03;
  --accent-light: rgba(232, 93, 4, 0.08);
  --blue: #1a56db;
  --blue-dark: #1644a0;
  --blue-light: rgba(26, 86, 219, 0.08);
  --ok: #047857;
  --border: #e0ddd6;
  --shadow: rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  height: 64px;
}
.nav-logo { font-size: 17px; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--fg-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 9px 20px; border-radius: 8px;
  font-weight: 600 !important; transition: background 0.15s; text-decoration: none;
}
.nav-cta:hover { background: var(--accent-dark) !important; color: #fff !important; }

/* Hero */
.hero { background: var(--bg-2); padding: 72px 24px 80px; }
.hero-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-content { display: flex; flex-direction: column; }
.hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-light); padding: 5px 12px; border-radius: 20px;
  width: fit-content; margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.1;
  color: var(--fg); letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero-headline em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 18px; color: var(--fg-muted); line-height: 1.65;
  max-width: 480px; margin-bottom: 36px;
}
.hero-actions {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 36px;
}
.btn-primary {
  background: var(--accent); color: #fff; padding: 14px 28px; border-radius: 10px;
  font-size: 16px; font-weight: 600; text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px; transition: background 0.15s, transform 0.1s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--fg); padding: 14px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 500; text-decoration: none; border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; gap: 8px; transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: var(--fg); background: rgba(0,0,0,0.04); }
.hero-trust { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--fg-muted); }
.trust-avatars { display: flex; }
.trust-avatars span {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg-2);
  margin-left: -8px; background: var(--bg); display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 600; color: var(--fg-muted);
}
.trust-avatars span:first-child { margin-left: 0; }

.hero-visual {
  border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px var(--shadow);
}
.hero-visual img { width: 100%; height: 360px; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55)); padding: 40px 24px 20px; color: #fff;
}
.hero-stat { font-size: 12px; opacity: 0.9; font-weight: 500; }

/* Pain Strip */
.pain-strip { background: var(--bg-dark); padding: 40px 24px; }
.pain-strip-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pain-item { display: flex; flex-direction: column; gap: 4px; }
.pain-icon { font-size: 20px; margin-bottom: 4px; }
.pain-title { font-size: 13px; font-weight: 600; color: #fff; }
.pain-desc { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* Features */
.features { padding: 96px 24px; max-width: 1140px; margin: 0 auto; }
.features-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em;
  color: var(--fg); margin-bottom: 14px;
}
.section-sub { font-size: 17px; color: var(--fg-muted); max-width: 560px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--bg-2); border: 1.5px solid var(--border); border-radius: 16px;
  padding: 32px 28px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.feature-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; background: var(--accent-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 22px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--fg); margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }
.feature-badge {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; margin-top: 14px;
}

/* Social Proof */
.social-proof {
  background: var(--bg-2); padding: 80px 24px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.proof-inner { max-width: 1140px; margin: 0 auto; }
.proof-header { text-align: center; margin-bottom: 56px; }
.proof-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; margin-bottom: 56px;
}
.proof-stat { background: var(--bg-2); padding: 40px 32px; text-align: center; }
.proof-stat .num {
  font-size: 44px; font-weight: 800; color: var(--accent); letter-spacing: -0.04em;
  display: block; line-height: 1; margin-bottom: 6px;
}
.proof-stat .label { font-size: 14px; color: var(--fg-muted); font-weight: 500; }
.proof-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.testimonial-quote { font-size: 15px; color: var(--fg); line-height: 1.65; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--accent);
}
.testimonial-meta .name { font-size: 14px; font-weight: 600; color: var(--fg); }
.testimonial-meta .trade { font-size: 12px; color: var(--fg-muted); }

/* CTA Banner */
.cta-banner { background: var(--bg-dark); padding: 80px 24px; }
.cta-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.cta-inner .section-title { color: #fff; }
.cta-inner .section-sub { color: rgba(255,255,255,0.6); }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.cta-note { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.4); }

/* Footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 40px 24px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-size: 15px; font-weight: 700; color: var(--fg); }
.footer-brand span { color: var(--accent); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--fg-muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg); }
.footer-copy { font-size: 12px; color: var(--fg-muted); }

/* ========================
   Dashboard
   ======================== */

.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.dashboard-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 28px;
  font-weight: 600;
}

.dashboard-controls { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid var(--muted);
  background: var(--bg-2);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  letter-spacing: 0.05em;
}
.btn:hover { border-color: var(--accent); background: var(--accent-dim); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-primary:hover { background: var(--accent); color: var(--bg); }

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

/* Summary stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 24px 20px;
}
.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
}
.stat-sub { font-size: 12px; color: var(--fg-muted); margin-top: 4px; }

.status-ok       { color: var(--ok); }
.status-warn     { color: var(--warn); }
.status-critical { color: #ff4d6a; }
.status-neutral  { color: var(--fg-muted); }

/* Endpoints table */
.panel { margin-bottom: 40px; }
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.panel-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--muted);
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(58, 58, 74, 0.4);
  vertical-align: middle;
}
tr:hover td { background: rgba(255,255,255,0.02); }

.endpoint-name {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 12px;
}
.endpoint-ip { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }

.endpoint-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  padding: 2px 8px;
  background: var(--bg-2);
  border: 1px solid var(--muted);
  border-radius: 3px;
  color: var(--fg-muted);
}

.endpoint-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-bar {
  width: 80px;
  height: 4px;
  background: var(--bg-2);
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.metric-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}
.metric-bar-fill.ok       { background: var(--ok); }
.metric-bar-fill.warn     { background: var(--warn); }
.metric-bar-fill.critical { background: #ff4d6a; }
.metric-value { font-family: 'IBM Plex Mono', monospace; font-size: 12px; }

/* Agent log */
.log-list { list-style: none; }
.log-entry {
  display: grid;
  grid-template-columns: 160px 120px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(58, 58, 74, 0.3);
  font-size: 12px;
  align-items: start;
}
.log-time { font-family: 'IBM Plex Mono', monospace; color: var(--fg-muted); font-size: 11px; }
.log-action { font-family: 'IBM Plex Mono', monospace; font-weight: 500; }
.log-action.resolved { color: var(--ok); }
.log-action.ticket_created { color: var(--warn); }
.log-action.escalate { color: #ff4d6a; }
.log-details { color: var(--fg-muted); }

/* Two-column layout */
.dashboard-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .dashboard-cols { grid-template-columns: 1fr; }
  .dashboard { padding: 24px; }
}

/* Live indicator */
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--ok);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
  margin-right: 6px;
}
.agent-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

/* Last run banner */
.last-run {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 24px;
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--muted);
  border-radius: 4px;
  display: inline-block;
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-2);
  border: 1px solid var(--muted);
  border-radius: 6px;
  padding: 14px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  z-index: 100;
  max-width: 360px;
  animation: slide-in 0.2s ease-out;
}
.toast.ok    { border-color: var(--ok); }
.toast.warn  { border-color: var(--warn); }
.toast.error { border-color: #ff4d6a; }
@keyframes slide-in {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Mobile */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual img { height: 260px; }
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pain-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .proof-stats { grid-template-columns: repeat(2, 1fr); }
  .proof-testimonials { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 30px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}