:root {
  --primary: #1f4e79;
  --secondary: #2e8b57;
  --accent: #ff8c42;

  --bg: #f5f7fb;
  --card: #ffffff;
  --border: #e5eaf2;

  --text: #1f2d3d;
  --muted: #6b7c93;
}

/* Reset */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Layout */

.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

/* Topbar */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: white;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
}

.topnav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

/* Hero */

.hero {
  display: flex;
  gap: 40px;
  padding: 60px 40px;
  align-items: center;
}

.hero-copy {
  flex: 1;
}

.hero-panel {
  flex: 1;
}

.eyebrow {
  font-size: 12px;
  color: var(--secondary);
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  font-size: 34px;
  margin: 12px 0;
}

.hero-text {
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

/* Buttons */

.btn {
  background: var(--primary);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary {
  background: #eef3f9;
  color: var(--primary);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 8px;
}

/* Cards */

.panel-card {
  background: var(--card);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--border);
}

.panel-title {
  font-weight: 700;
  margin-bottom: 12px;
}

/* KPI */

.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background: var(--card);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.stat-card strong {
  font-size: 18px;
}

/* Queue */

.queue-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.queue-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* Badges */

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge.high {
  background: #ffe5e5;
  color: #d93025;
}

.badge.medium {
  background: #fff4e5;
  color: #e37400;
}

.badge.low {
  background: #e6f4ea;
  color: #137333;
}

/* Sections */

.section {
  padding: 40px;
}

.section.alt {
  background: #f9fbff;
}

.section-head h2 {
  margin-top: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* Layout */

.two-col {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.two-col.reverse {
  flex-direction: row-reverse;
}

/* Mock cards */

.mock-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.mock-header {
  font-weight: 700;
  margin-bottom: 10px;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Steps */

.portal-step {
  background: #f5f7fb;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* CTA */

.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  color: white;
  padding: 30px;
  border-radius: 10px;
}

/* Footer */

.footer {
  padding: 20px 40px;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* Forms */

.form-label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.form-textarea {
  min-height: 120px;
}

/* AI Result */

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.result-card {
  background: #f9fbff;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.result-card span {
  font-size: 12px;
  color: var(--muted);
}

.result-card strong {
  display: block;
  margin-top: 6px;
}

/* Links */

.text-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 900px) {

  .hero {
    flex-direction: column;
  }

  .two-col {
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
  }

  .cta-card {
    flex-direction: column;
    gap: 12px;
  }
}