:root {
  --navy: #102a43;
  --ink: #172b3a;
  --muted: #5d7180;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #059669;
  --green-soft: #ecfdf5;
  --paper: #fff;
  --bg: #f6f8fb;
  --line: #dfe7ed;
  --shadow: 0 18px 50px rgba(16, 42, 67, 0.09);
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.6 "Segoe UI",
    system-ui,
    sans-serif;
}
a {
  color: inherit;
}
button,
.button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  background: var(--blue);
  color: #fff;
  font: 700 15px/1.4 inherit;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}
button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}
.nav {
  height: 72px;
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: white;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a,
.text-link {
  color: #385368;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover,
.text-link:hover,
.byline a:hover,
footer a:hover {
  color: var(--blue);
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 32px 28px 80px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 72px;
  align-items: center;
  padding: 76px 0 68px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  max-width: 760px;
  margin: 16px 0 22px;
  color: var(--navy);
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
h1 em {
  color: var(--blue);
  font-style: normal;
}
.hero-copy {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.18rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 30px 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #496271;
  font-size: 0.86rem;
  font-weight: 650;
}
.trust-row span {
  white-space: nowrap;
}
.hero-preview {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: var(--navy);
  box-shadow: 0 24px 70px rgba(16, 42, 67, 0.2);
  color: white;
  transform: rotate(1deg);
}
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #bfd0dc;
}
.status-pill,
.privacy-badge {
  border-radius: 999px;
  padding: 6px 10px;
  background: #d1fae5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 800;
}
.field-card {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid #38546a;
  border-radius: 14px;
  background: #173a54;
}
.field-card small {
  color: #9db5c5;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.field-card strong {
  font-size: 1.1rem;
}
.field-card code {
  color: #6ee7b7;
}
.connector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  color: #c9d7e0;
  font-size: 0.72rem;
}
.connector span {
  height: 1px;
  flex: 1;
  background: #44657d;
}
.hero-preview > p {
  margin: 18px 0 0;
  color: #6ee7b7;
  font-size: 0.82rem;
  font-weight: 700;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 35px rgba(16, 42, 67, 0.05);
}
.steps article {
  display: flex;
  gap: 16px;
  padding: 24px;
}
.steps article + article {
  border-left: 1px solid var(--line);
}
.steps span {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 11px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
}
.steps b {
  color: var(--navy);
}
.steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.workspace,
.results,
.walkthrough,
.local-card {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}
.workspace,
.results {
  padding: 34px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}
.section-heading h2,
.walkthrough h2,
.local-card h2 {
  margin: 6px 0 5px;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.section-heading p,
.walkthrough-copy > p,
.local-card p {
  margin: 0;
  color: var(--muted);
}
.upload-grid,
.split,
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.drop {
  display: grid;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
}
.drop > b {
  color: var(--navy);
  font-size: 1.05rem;
}
.drop label {
  display: grid;
  gap: 6px;
  color: #425d70;
  font-size: 0.8rem;
  font-weight: 700;
}
.drop input,
.drop select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd8e1;
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.drop input[type="file"] {
  padding: 12px;
  border-style: dashed;
  background: #f8fbfd;
}
.drop small {
  color: var(--muted);
}
.file-fields,
.api-fields {
  display: grid;
  gap: 8px;
}
.workspace-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}
.secondary {
  background: #edf2f6;
  color: var(--navy);
  box-shadow: none;
}
.secondary:hover {
  background: #e1e9ef;
  box-shadow: none;
}
.drop > .secondary {
  justify-self: start;
  margin: 0;
}
.workspace-actions button {
  margin: 0;
}
#status {
  min-height: 24px;
  margin: 14px 0 0;
  color: #496271;
  font-weight: 650;
}
.progress {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.progress[hidden] {
  display: none;
}
.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf3;
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.3s ease;
}
.progress-track span.loading {
  width: 34%;
  animation: progress-loading 1.2s ease-in-out infinite;
}
.progress small {
  color: var(--muted);
}
@keyframes progress-loading {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(300%);
  }
}
.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}
.metric {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfd;
}
.metric b {
  display: block;
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1.2;
}
.metric small {
  color: var(--muted);
  text-transform: capitalize;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 14px;
}
.bar h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
}
.bar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.export-actions {
  display: flex;
  gap: 8px;
}
.export-actions button {
  margin: 0;
}
.table-wrap {
  max-width: 100%;
  max-height: min(68vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  font-size: 0.82rem;
}
th,
td {
  padding: 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  position: sticky;
  top: 0;
  background: var(--navy);
  color: white;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
tbody tr:hover {
  background: #f7faff;
}
.split {
  margin-top: 18px;
}
.split article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.split article h2 {
  font-size: 1rem;
}
.split article div {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.split article p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.walkthrough {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 64px;
  align-items: center;
  padding: 46px 54px;
  overflow: hidden;
}
.walkthrough-copy ul {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.walkthrough-copy li {
  position: relative;
  margin: 11px 0;
  padding-left: 28px;
  color: #385368;
}
.walkthrough-copy li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}
.walkthrough img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(16, 42, 67, 0.12);
}
.walkthrough-static {
  display: none !important;
}
.byline {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.byline a {
  display: inline-block;
  margin: 10px 18px 0 0;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.local-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 34px;
  background: linear-gradient(135deg, #102a43, #173f5f);
  color: white;
}
.local-card h2 {
  color: white;
}
.local-card p {
  max-width: 720px;
  color: #c3d2dc;
}
.local-card .eyebrow {
  color: #6ee7b7;
}
.local-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.local-actions .text-link {
  color: white;
  white-space: nowrap;
}
footer {
  max-width: 1180px;
  margin: auto;
  padding: 26px 28px 42px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.85rem;
}
footer > span {
  color: var(--navy);
  font-weight: 800;
}
footer p {
  margin: 0;
}
footer div {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
footer a {
  text-decoration: none;
}
.table-wrap,
.split article div {
  scrollbar-width: thin;
  scrollbar-color: #9fb0bd #edf2f6;
}
.table-wrap::-webkit-scrollbar,
.split article div::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.table-wrap::-webkit-scrollbar-thumb,
.split article div::-webkit-scrollbar-thumb {
  border: 2px solid #edf2f6;
  border-radius: 999px;
  background: #9fb0bd;
}
.table-wrap::-webkit-scrollbar-track,
.split article div::-webkit-scrollbar-track {
  background: #edf2f6;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 48px;
  }
  .hero-preview {
    max-width: 560px;
    transform: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .walkthrough {
    gap: 34px;
    padding: 36px;
  }
  .local-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }
  .nav {
    height: 62px;
    padding: 0 18px;
  }
  .nav-links a:not(:last-child) {
    display: none;
  }
  .nav-links {
    gap: 14px;
  }
  main {
    padding: 14px 16px 56px;
  }
  .hero {
    padding: 40px 0;
  }
  .hero-actions,
  .workspace-actions,
  .bar,
  .local-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-actions .button,
  .workspace-actions button,
  .local-actions .button {
    text-align: center;
    width: 100%;
  }
  .trust-row {
    display: grid;
    gap: 8px;
  }
  .workspace,
  .results {
    padding: 22px 16px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .privacy-badge {
    align-self: flex-start;
  }
  .upload-grid,
  .split,
  .metrics,
  .walkthrough {
    grid-template-columns: 1fr;
  }
  .walkthrough {
    padding: 28px 20px;
  }
  .walkthrough img {
    max-width: 380px;
    margin: auto;
  }
  .export-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .export-actions button {
    padding-inline: 10px;
  }
  .local-card {
    padding: 28px 20px;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-inline: 18px;
  }
  footer div {
    margin-left: 0;
  }
  h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
  .walkthrough-motion {
    display: none;
  }
  .walkthrough-static {
    display: block !important;
  }
  .progress-track span.loading {
    width: 20%;
    animation: none;
  }
}
