*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
:root {
  --bg: #f7f5ef;
  --panel: #ffffff;
  --panel-soft: #fbfaf6;
  --ink: #171d2b;
  --muted: #657086;
  --faint: #8d96a8;
  --line: rgba(23, 29, 43, 0.12);
  --violet: #6c55f6;
  --violet-dark: #4732cf;
  --violet-soft: #ede9ff;
  --green: #0a8f6f;
  --green-soft: #e4f6ef;
  --amber: #a55c00;
  --amber-soft: #fff0d2;
  --blue: #246bb8;
  --blue-soft: #e6f0fb;
  --shadow: 0 18px 56px rgba(31, 38, 54, 0.1);
}
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fffdfa 0%, var(--bg) 52%, #f0eee7 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 29, 43, 0.08);
  background: rgba(247, 245, 239, 0.9);
  backdrop-filter: blur(18px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #07070f;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(23, 29, 43, 0.16);
}
.brand-mark img { width: 34px; height: 34px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 17px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  font-size: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.btn:hover { border-color: rgba(23, 29, 43, 0.22); box-shadow: var(--shadow); }
.btn-primary { border-color: transparent; background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-dark); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; box-shadow: none; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--violet-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(10, 143, 111, 0.12);
}
.hero { padding: 68px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 40px;
  align-items: center;
}
h1 {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}
.lead {
  max-width: 650px;
  margin-top: 22px;
  color: #475165;
  font-size: 19px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card, .tool-panel, .result-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}
.hero-card { padding: 22px; }
.mini-label {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.preview-lines { display: grid; gap: 10px; margin-top: 18px; }
.preview-line {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}
.preview-line strong { display: block; color: var(--ink); margin-bottom: 4px; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 28px 0 72px;
}
.tool-card {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(31, 38, 54, 0.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tool-card h2 { font-size: 21px; line-height: 1.15; }
.tool-card p { color: var(--muted); font-size: 15px; }
.tool-card .btn { margin-top: auto; width: fit-content; }
.tool-main { padding: 48px 0 80px; }
.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.45fr);
  gap: 20px;
  align-items: start;
}
.tool-panel { padding: 22px; }
.tool-panel h2, .result-card h2 { font-size: 22px; margin-bottom: 10px; }
.tool-copy { color: var(--muted); margin-bottom: 18px; }
.field { display: grid; gap: 8px; margin-top: 14px; }
label { font-size: 13px; font-weight: 800; color: var(--ink); }
input[type="file"], input[type="text"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fffdfa;
  color: var(--ink);
}
textarea { min-height: 118px; resize: vertical; }
.drop {
  border: 1px dashed rgba(108, 85, 246, 0.45);
  border-radius: 16px;
  padding: 20px;
  background: rgba(237, 233, 255, 0.45);
}
.drop p { color: var(--muted); margin-top: 6px; }
.status {
  margin-top: 14px;
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
}
.status.good { color: var(--green); }
.status.warn { color: var(--amber); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.result-card { padding: 22px; min-height: 280px; }
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.result-header h2 { margin-bottom: 0; }
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.result-actions .btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}
.output {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #fffdfa 0%, #fbfaf6 100%);
  color: #2f3748;
  min-height: 210px;
  max-height: 520px;
  overflow: auto;
  font-size: 14px;
}
.output-section {
  border: 1px solid rgba(23, 29, 43, 0.09);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 38, 54, 0.05);
}
.output-section + .output-section { margin-top: 10px; }
.output-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.25;
}
.output-section h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(108, 85, 246, 0.12);
}
.output-section p,
.output-section li {
  color: #475165;
  line-height: 1.55;
}
.output-section p + p { margin-top: 8px; }
.output-section ul {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.fact {
  min-width: 0;
  border: 1px solid rgba(23, 29, 43, 0.08);
  border-radius: 12px;
  padding: 10px;
  background: #fbfaf6;
}
.fact span {
  display: block;
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fact strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(23, 29, 43, 0.08);
  border-radius: 12px;
  background: #fff;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.table-wrap th,
.table-wrap td {
  padding: 10px 11px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(23, 29, 43, 0.07);
}
.table-wrap th {
  color: var(--faint);
  background: #fbfaf6;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.table-wrap td {
  color: #3d4658;
  font-size: 13px;
}
.table-wrap tr:last-child td { border-bottom: 0; }
.output-empty {
  color: var(--muted);
}
.output-flight-info {
  background: linear-gradient(180deg, #f7fbff 0%, #fffdfa 100%);
}
.output-flight-info .output-section:first-child {
  border-color: rgba(36, 107, 184, 0.18);
  background: linear-gradient(135deg, #f1f7ff 0%, #fff 100%);
}
.output-flight-info .output-section h3::before { background: var(--blue); box-shadow: 0 0 0 4px rgba(36, 107, 184, 0.12); }
.output-flight-info .table-wrap th { background: var(--blue-soft); color: #285f9f; }
.output-invoice-receipt {
  background: linear-gradient(180deg, #f2fbf7 0%, #fffdfa 100%);
}
.output-invoice-receipt .output-section:first-child {
  border-color: rgba(10, 143, 111, 0.18);
  background: linear-gradient(135deg, #ecfaf4 0%, #fff 100%);
}
.output-invoice-receipt .output-section h3::before { background: var(--green); box-shadow: 0 0 0 4px rgba(10, 143, 111, 0.12); }
.output-invoice-receipt .table-wrap th { background: var(--green-soft); color: #08785f; }
.output-contract-obligations {
  background: linear-gradient(180deg, #fbf7ff 0%, #fffdfa 100%);
}
.output-contract-obligations .output-section:first-child {
  border-color: rgba(108, 85, 246, 0.22);
  background: linear-gradient(135deg, #f2edff 0%, #fff 100%);
}
.output-contract-obligations .table-wrap th { background: var(--violet-soft); color: var(--violet-dark); }
.output-meeting-actions {
  background: linear-gradient(180deg, #fff8ee 0%, #fffdfa 100%);
}
.output-meeting-actions .output-section:first-child {
  border-color: rgba(180, 106, 0, 0.18);
  background: linear-gradient(135deg, #fff2dc 0%, #fff 100%);
}
.output-meeting-actions .output-section h3::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(180, 106, 0, 0.12); }
.output-meeting-actions .table-wrap th { background: var(--amber-soft); color: #815000; }
.output-compliance-checklist {
  background: linear-gradient(180deg, #f5f3ff 0%, #fffdfa 100%);
}
.output-compliance-checklist .output-section:first-child {
  border-color: rgba(108, 85, 246, 0.2);
  background: linear-gradient(135deg, #f1edff 0%, #fff 100%);
}
.result-list { display: grid; gap: 10px; margin-top: 14px; }
.result-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fffdfa;
}
.result-item strong { display: block; margin-bottom: 4px; }
.checklist { display: grid; gap: 10px; margin-top: 14px; }
.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fffdfa;
  color: #2f3748;
  font-weight: 650;
}
.cta-strip {
  margin-top: 18px;
  border: 1px solid rgba(108, 85, 246, 0.2);
  border-radius: 14px;
  padding: 16px;
  background: var(--violet-soft);
}
.cta-strip p { color: #4d426f; margin: 6px 0 12px; }
.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { font-weight: 700; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .tool-layout { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .shell { width: min(100% - 28px, 1120px); }
}
