:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #fbfcfe;
  --panel-muted: #f2f6fb;
  --border: #dce5ef;
  --text: #162235;
  --muted: #65758a;
  --primary: #0d67d8;
  --primary-dark: #0b4e9f;
  --primary-soft: #eaf2ff;
  --success-soft: #e7f8f1;
  --success-text: #1f6b55;
  --danger: #c13f45;
  --danger-bg: #fff3f4;
  --shadow-lg: 0 18px 48px rgba(22, 34, 53, 0.08);
  --shadow-md: 0 10px 24px rgba(22, 34, 53, 0.06);
  --shadow-sm: 0 4px 12px rgba(22, 34, 53, 0.05);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(13, 103, 216, 0.05), transparent 24%),
    radial-gradient(circle at top left, rgba(11, 138, 115, 0.04), transparent 18%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

body.modal-open {
  overflow: hidden;
}

.page-shell {
  padding: 32px 16px 56px;
}

.app-container {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.hero-card,
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
  gap: 28px;
  align-items: center;
  padding: 36px;
}

.hero-home {
  min-height: 320px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy-wide {
  grid-column: 1 / -1;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-card h1 {
  margin: 16px 0 12px;
  max-width: 720px;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-card p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-topline {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-inline-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-inline-points span {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--panel-muted);
  color: #31445d;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-preview {
  min-width: 0;
}

.preview-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel-soft);
  box-shadow: var(--shadow-sm);
}

.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.preview-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success-text);
  font-size: 0.8rem;
  font-weight: 700;
}

.preview-card h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.preview-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.workflow-panel,
.card {
  padding: 28px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading-tight {
  margin-bottom: 18px;
}

.section-heading h2,
.section-heading h3 {
  margin: 10px 0 0;
  letter-spacing: -0.03em;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.choice-card {
  display: block;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c9d8ea;
}

.choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.choice-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.choice-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.choice-meta {
  margin-bottom: 14px;
  color: #3c5876;
  font-size: 0.9rem;
  font-weight: 600;
}

.choice-link {
  color: var(--primary);
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--panel-muted);
  color: #26405d;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  background: #eef3f8;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field span {
  font-weight: 600;
  font-size: 0.95rem;
  color: #29425f;
}

.field small {
  color: var(--muted);
  line-height: 1.6;
}

.field-full {
  grid-column: 1 / -1;
}

.file-field input[type="file"] {
  padding: 16px;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid #d4dde8;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 15px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 240px;
  resize: vertical;
  line-height: 1.65;
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: #8bb5eb;
  box-shadow: 0 0 0 4px rgba(13, 103, 216, 0.12);
}

.actions {
  display: flex;
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2f82e2 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(13, 103, 216, 0.18);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #175fbf 100%);
}

.button-secondary {
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px #d5dfea;
}

.button-secondary:hover {
  box-shadow: var(--shadow-sm);
}

.status-message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-weight: 500;
}

.error-message {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #f1c9cc;
}

.loading-state {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: #35557a;
  font-weight: 600;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(13, 103, 216, 0.16);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.empty-state {
  text-align: center;
  padding: 50px 30px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.empty-illustration {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-soft), #ffffff);
  box-shadow: inset 0 0 0 1px rgba(13, 103, 216, 0.08), 0 10px 22px rgba(22, 34, 53, 0.08);
  position: relative;
}

.empty-illustration::before,
.empty-illustration::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(13, 103, 216, 0.18);
}

.empty-illustration::before {
  top: 22px;
  width: 42px;
  height: 8px;
}

.empty-illustration::after {
  top: 40px;
  width: 28px;
  height: 8px;
}

.empty-state h2 {
  margin: 0 0 10px;
}

.empty-state p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.overview-panel {
  padding: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.overview-panel p,
.body-copy {
  margin: 0;
  line-height: 1.75;
}

.overview-panel p {
  font-weight: 700;
  color: #18385c;
}

.content-stack {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.content-section {
  padding: 22px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.content-section h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.pill-list,
.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list li {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.65;
}

.detail-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.muted-item {
  color: var(--muted);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.table-wrap {
  overflow-x: auto;
}

.action-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
}

.action-table th,
.action-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #e4ebf3;
}

.action-table th {
  color: #5a6f88;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f3f7fb;
}

.action-table tbody tr:last-child td {
  border-bottom: 0;
}

.hidden {
  display: none !important;
}

.feedback-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, #2f82e2 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(13, 103, 216, 0.24);
}

.feedback-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(22, 34, 53, 0.4);
  backdrop-filter: blur(6px);
}

.feedback-card {
  width: min(100%, 460px);
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(22, 34, 53, 0.18);
}

.feedback-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.feedback-header h2 {
  margin: 10px 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.feedback-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.feedback-form textarea {
  min-height: 120px;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
}

.feedback-success {
  background: var(--success-soft);
  color: var(--success-text);
  border: 1px solid #c9ecdf;
}

.feedback-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #f1c9cc;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-card h1 {
    font-size: clamp(2.35rem, 8vw, 3.5rem);
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 20px 12px 36px;
  }

  .hero-card,
  .card,
  .workflow-panel {
    padding: 22px;
    border-radius: 20px;
  }

  .hero-card h1 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .hero-topline,
  .section-heading,
  .split-grid,
  .form-grid,
  .choice-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 14px;
  }

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

  .button {
    width: 100%;
  }

  .feedback-fab {
    right: 14px;
    bottom: 14px;
  }

  .feedback-card {
    padding: 20px;
  }

  .feedback-header,
  .feedback-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
