:root {
  --ink: #0b1018;
  --navy: #101722;
  --navy-2: #162131;
  --ivory: #eee8dc;
  --muted: rgba(238, 232, 220, .68);
  --soft: rgba(238, 232, 220, .1);
  --line: rgba(238, 232, 220, .15);
  --gold: #b68b53;
  --gold-2: #dec48f;
  --green: #8fae86;
  --violet: #a394c8;
  --blue: #89a9c8;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(182, 139, 83, .16), transparent 34rem),
    linear-gradient(180deg, #0b1018 0%, #101722 42%, #0b1018 100%);
  color: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.serif,
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

p { margin: 0; color: var(--muted); }

.wrap {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: 0 28px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 16, 24, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav .wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  color: var(--gold-2);
  white-space: nowrap;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: rgba(238, 232, 220, .78);
}

.nav-links a:hover { color: var(--gold-2); }

.nav-cta {
  border: 1px solid rgba(182, 139, 83, .5);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--gold-2);
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  padding: 72px 0 58px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(45px, 7vw, 86px);
  line-height: .95;
  margin: 0;
}

h1 em,
h2 em {
  color: var(--gold-2);
  font-style: italic;
}

.sub {
  max-width: 720px;
  margin-top: 24px;
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(238, 232, 220, .78);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: #101722;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(238, 232, 220, .035);
  color: var(--ivory);
}

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

.router {
  display: grid;
  gap: 16px;
}

.route-card,
.card,
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(238, 232, 220, .055), rgba(238, 232, 220, .018));
  border-radius: 8px;
}

.route-card {
  padding: 26px;
  transition: border-color .2s, transform .2s, background .2s;
}

.route-card:hover {
  border-color: rgba(182, 139, 83, .6);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(182, 139, 83, .12), rgba(238, 232, 220, .025));
}

.route-card .tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 16px;
  background: rgba(182, 139, 83, .12);
  color: var(--gold-2);
  border: 1px solid rgba(182, 139, 83, .28);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.route-card h2 {
  font-size: 30px;
  line-height: 1.05;
  margin: 0 0 10px;
}

.route-card ul,
.card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.route-card li,
.card li {
  color: rgba(238, 232, 220, .76);
  margin: 8px 0;
  padding-left: 18px;
  position: relative;
  font-size: 14px;
}

.route-card li::before,
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}

section {
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  font-size: clamp(31px, 4.8vw, 54px);
  line-height: 1;
  margin: 0 0 16px;
}

h3 {
  font-size: 24px;
  line-height: 1.12;
  margin: 0 0 10px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.card {
  padding: 24px;
}

.card .kicker {
  color: var(--gold-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  margin-bottom: 9px;
}

.metric {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold-2);
  font-size: 38px;
  line-height: 1;
  margin-bottom: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(238, 232, 220, .75);
  font-size: 13px;
  background: rgba(238, 232, 220, .03);
}

.panel {
  padding: 34px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(182, 139, 83, .12);
  border: 1px solid rgba(182, 139, 83, .35);
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.table {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--gold-2);
  background: rgba(238, 232, 220, .04);
}

td { color: rgba(238, 232, 220, .72); }

tr:last-child td { border-bottom: 0; }

.footer {
  padding: 44px 0;
  color: rgba(238, 232, 220, .62);
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer a { color: var(--gold-2); }

.tool-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.tool-tabs {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 10px;
}

.tool-tab {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 232, 220, .03);
  color: rgba(238, 232, 220, .78);
  padding: 13px 14px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.tool-tab.active {
  border-color: rgba(182, 139, 83, .65);
  color: var(--gold-2);
  background: rgba(182, 139, 83, .12);
}

.tool-panel { display: none; }
.tool-panel.active { display: block; }

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

.field {
  display: grid;
  gap: 7px;
}

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

.field label {
  color: rgba(238, 232, 220, .78);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 16, 24, .72);
  color: var(--ivory);
  padding: 12px 13px;
  font: inherit;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.tool-result {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(182, 139, 83, .42);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(182, 139, 83, .12), rgba(238, 232, 220, .025));
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.result-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 232, 220, .03);
}

.result-stat b {
  display: block;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 7px;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(238, 232, 220, .1);
  overflow: hidden;
  margin-top: 12px;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.lead-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.lead-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(238, 232, 220, .03);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid,
  .split,
  .tool-shell,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .tool-tabs { position: static; }

  .nav .wrap {
    align-items: flex-start;
    padding-top: 18px;
    padding-bottom: 18px;
    flex-direction: column;
  }

  .nav-links {
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 58px 0 42px; }
  section { padding: 58px 0; }
  .panel,
  .card,
  .route-card { padding: 22px; }
  .form-grid,
  .result-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

/* ============================================================
   Professional polish layer (appended) — motion, refined
   components, focus states. Pure CSS, no markup/JS changes.
   ============================================================ */
:root { --ease: cubic-bezier(.22,.61,.36,1); }
::selection { background: rgba(222,196,143,.28); }
*:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: rgba(238,232,220,.2) transparent; }
::-webkit-scrollbar { height: 9px; width: 9px; }
::-webkit-scrollbar-thumb { background: rgba(238,232,220,.16); border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: rgba(238,232,220,.28); }

/* softer, more modern radii */
.route-card, .card, .panel, .table, table, .tool-tab, .lead-item,
.result-stat, .tool-result, .field input, .field select, .field textarea { border-radius: 13px; }
.btn { border-radius: 999px; }

/* buttons: gradient, press + disabled feedback */
.btn { transition: transform .16s var(--ease), filter .2s, background .2s, box-shadow .2s; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #101722; }
.btn-gold:hover { box-shadow: 0 10px 26px rgba(182,139,83,.26); }
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }

/* cards lift on hover */
.card, .panel, .lead-item { transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s; }
.card:hover { border-color: rgba(182,139,83,.42); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.28); }
.lead-item:hover { border-color: rgba(182,139,83,.34); }

/* inputs: focus ring */
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(182,139,83,.14);
}
.field input, .field select, .field textarea { transition: border-color .2s, box-shadow .2s; }

/* tables: row hover, zebra, tighter heads, tabular numerals */
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(238,232,220,.045); }
tbody tr:nth-child(even) { background: rgba(238,232,220,.014); }
td { font-variant-numeric: tabular-nums; }
.metric, .result-stat b { font-variant-numeric: tabular-nums; }

/* status pills (generic + state colors) */
.pill, .status { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 600; }
.pill.ok, .pill.done, .pill.active, .pill.won, .pill.sent, .status.ok { background: rgba(143,174,134,.16); color: var(--green); }
.pill.warn, .pill.pending, .pill.queued, .pill.held { background: rgba(222,196,143,.16); color: var(--gold-2); }
.pill.bad, .pill.failed, .pill.no_show { background: rgba(190,110,95,.18); color: #d99; }

/* chips interactive */
.chip { transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: rgba(182,139,83,.45); color: var(--gold-2); }

/* nav links: animated underline */
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1.5px; background: var(--gold-2); transition: right .25s var(--ease); }
.nav-links a:hover::after { right: 0; }

/* entrance motion: blocks fade-up, injected table rows fade-in */
.panel, .card, .route-card { animation: fadeUp .5s var(--ease) both; }
.lead-item { animation: fadeUp .4s var(--ease) both; }
tbody tr { animation: rowIn .35s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; } to { opacity: 1; } }

/* nav "More" dropdown (native <details>, no external JS needed) */
.navmore { position: relative; }
.navmore > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: rgba(238,232,220,.78); font-size: 14px; transition: color .2s; user-select: none;
}
.navmore > summary::-webkit-details-marker { display: none; }
.navmore > summary::after {
  content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-1px);
  transition: transform .25s var(--ease);
}
.navmore[open] > summary, .navmore > summary:hover { color: var(--gold-2); }
.navmore[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.navmore-menu {
  position: absolute; right: 0; top: calc(100% + 14px); min-width: 196px;
  background: #121a26; border: 1px solid var(--line); border-radius: 13px; padding: 6px;
  box-shadow: 0 20px 54px rgba(0,0,0,.5); display: grid; gap: 2px; z-index: 40;
  animation: fadeUp .2s var(--ease);
}
.navmore-menu a {
  padding: 9px 12px; border-radius: 9px; font-size: 13.5px;
  color: rgba(238,232,220,.82); transition: background .15s, color .15s;
}
.navmore-menu a:hover { background: rgba(238,232,220,.06); color: var(--gold-2); }
.navmore-menu a::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
