:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #5b6675;
  --line: #dbe3ee;
  --primary: #0b57d0;
  --primary-dark: #0845a3;
  --secondary: #e8eef9;
  --success: #dff4e8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(18, 38, 63, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  background: #0f1722;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: #d9e2f1;
}

.nav-links a.active,
.nav-links a:hover {
  color: #fff;
}

.hero {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, #0f1722 0%, #172536 100%);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ab4ff;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 44px;
  line-height: 1.1;
}

.hero-text {
  font-size: 18px;
  color: #d2dceb;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-card,
.card,
.action-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
  color: var(--text);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.status-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.status-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.features,
.quick-actions,
.page-section {
  padding: 44px 0 64px;
}

.section-title {
  text-align: center;
  margin-bottom: 28px;
}

.section-title.left {
  text-align: left;
}

.section-title h1,
.section-title h2 {
  margin: 0 0 10px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.card-grid,
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 24px;
  border: 1px solid #edf2f8;
}

.card h3,
.card h2 {
  margin-top: 0;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 700;
}

.action-box {
  display: block;
  padding: 22px;
  border: 1px solid #edf2f8;
}

.action-box h3 {
  margin-top: 0;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-stack,
.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid {
  grid-template-columns: 1fr 1fr;
}

.full-width {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(11, 87, 208, 0.15);
  border-color: var(--primary);
}

.form-message {
  margin: 0;
  color: var(--muted);
  min-height: 20px;
}

.table-card {
  margin-top: 18px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 14px 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--secondary);
  font-size: 13px;
  font-weight: 700;
}

.chat-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  min-height: 240px;
  background: #fbfdff;
  margin-bottom: 18px;
}

.chat-message {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  line-height: 1.45;
}

.chat-message.user {
  margin-left: auto;
  background: #dfeafe;
}

.chat-message.bot {
  background: #eef3f8;
}

.chat-form {
  display: grid;
  gap: 12px;
}

.chat-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.site-footer {
  background: #0f1722;
  color: #d3dbe8;
  padding: 20px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .card-grid,
  .action-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
  }

  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}