:root {
  --dxf-blue: #1769e0;
  --dxf-blue-dark: #0f55bd;
  --dxf-ink: #182433;
  --dxf-text: #405168;
  --dxf-muted: #66758a;
  --dxf-bg: #f5f7fb;
  --dxf-border: #dbe4ef;
  --dxf-soft-blue: #eaf3ff;
  --dxf-shadow: 0 18px 48px rgba(28, 67, 113, .08);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  color: var(--dxf-ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.dxf-page {
  min-height: 100vh;
  background: #fff;
}

.container-xl {
  width: 100%;
  max-width: 1180px;
}

.dxf-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  padding: 0;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--dxf-border);
  backdrop-filter: blur(12px);
}

.dxf-navbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.dxf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--dxf-ink);
  font-size: 18px;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

.dxf-brand:hover {
  color: var(--dxf-ink);
}

.dxf-brand strong,
.dxf-brand-mark {
  color: var(--dxf-blue);
}

.dxf-brand-mark {
  display: inline-flex;
}

.dxf-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.dxf-nav-links a {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.dxf-nav-links a:hover {
  color: var(--dxf-blue);
}

.dxf-hero {
  padding: 68px 0 82px;
  background: linear-gradient(180deg, #f6faff 0%, #fff 100%);
  border-bottom: 1px solid #edf2f7;
}

.dxf-hero-copy {
  max-width: 900px;
  margin: 0 auto 42px;
  text-align: center;
}

.dxf-hero h1,
.dxf-viewer-heading h1 {
  margin: 0 0 18px;
  color: var(--dxf-ink);
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.dxf-hero h1 span,
.dxf-viewer-heading h1 span {
  color: var(--dxf-blue);
}

.dxf-hero-lead,
.dxf-viewer-heading p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--dxf-muted);
  font-size: 19px;
  line-height: 1.65;
}

.dxf-upload-card {
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d6e2f0;
  border-radius: 18px;
  box-shadow: var(--dxf-shadow);
}

.dxf-upload-card .card-body {
  padding: 24px;
}

.dxf-dropzone {
  position: relative;
  display: flex;
  min-height: 260px;
  padding: 38px 24px 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed #a9c6ea;
  border-radius: 14px;
  background: #f8fbff;
  cursor: default;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.dxf-dropzone:hover,
.dxf-dropzone:focus-within {
  border-color: var(--dxf-blue);
  background: #f1f7ff;
}

.dxf-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dxf-upload-icon,
.dxf-dropzone-title,
.dxf-dropzone-subtitle {
  pointer-events: none;
}

.dxf-upload-icon {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--dxf-blue);
}

.dxf-dropzone-title {
  margin-bottom: 5px;
  color: var(--dxf-ink);
  font-size: 20px;
  font-weight: 700;
}

.dxf-dropzone-subtitle {
  color: var(--dxf-muted);
  font-size: 15px;
}

.dxf-file-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 10px 25px;
  font-weight: 650;
  cursor: pointer;
}

.dxf-file-button.disabled {
  pointer-events: none;
}

.dxf-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  margin: 22px auto 0;
}

.dxf-benefits span {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  color: #43536a;
  background: #fff;
  border: 1px solid var(--dxf-border);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}

.dxf-section {
  padding: 82px 0;
}

.dxf-section-muted {
  background: var(--dxf-bg);
  border-top: 1px solid #e8edf4;
  border-bottom: 1px solid #e8edf4;
}

.dxf-section-heading {
  margin-bottom: 36px;
}

.dxf-section-heading-centered {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.dxf-section-heading h2,
.dxf-section h2 {
  margin: 0 0 12px;
  color: var(--dxf-ink);
  font-size: clamp(32px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.025em;
}

.dxf-section-heading p,
.dxf-section-copy {
  max-width: 760px;
  margin: 0 auto;
  color: var(--dxf-muted);
  font-size: 17px;
  line-height: 1.65;
}

.dxf-eyebrow {
  margin-bottom: 9px;
  color: var(--dxf-muted);
  font-size: 14px;
  font-weight: 700;
}

.dxf-tool-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--dxf-border);
  border-radius: 15px;
  box-shadow: 0 8px 28px rgba(28, 67, 113, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dxf-tool-card.is-active {
  border-color: #aecaef;
  box-shadow: 0 14px 38px rgba(23, 105, 224, .10);
}

.dxf-tool-card.is-planned {
  border-color: #dfe6ef;
}

.dxf-tool-card:hover {
  transform: translateY(-3px);
  border-color: #bfd0e4;
  box-shadow: 0 16px 34px rgba(28, 67, 113, .08);
}

.dxf-tool-card .card-body {
  display: flex;
  min-height: 320px;
  padding: 28px;
  flex-direction: column;
  align-items: flex-start;
}

.dxf-tool-status {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #237447;
  background: #e9f8ef;
  border: 1px solid #c9ead6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.dxf-tool-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--dxf-blue);
  background: var(--dxf-soft-blue);
  border-radius: 12px;
}

.dxf-tool-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dxf-tool-card h2 {
  margin: 22px 0 10px;
  color: var(--dxf-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.dxf-tool-card p {
  margin: 0 0 22px;
  color: var(--dxf-muted);
  font-size: 15px;
  line-height: 1.65;
}

.dxf-tool-button {
  min-height: 44px;
  margin-top: auto;
  padding: 10px 18px;
  font-weight: 650;
}

.dxf-about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 26px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--dxf-border);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(28, 67, 113, .055);
}

.dxf-seo-copy {
  color: var(--dxf-text);
  font-size: 16px;
  line-height: 1.78;
}

.dxf-seo-copy p {
  margin: 0 0 18px;
}

.dxf-seo-copy p:last-child {
  margin-bottom: 0;
}

.dxf-use-cases {
  display: grid;
  gap: 12px;
}

.dxf-use-cases > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #dce8f6;
  border-radius: 13px;
}

.dxf-use-cases span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--dxf-blue);
  background: var(--dxf-soft-blue);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.dxf-use-cases p {
  margin: 0;
  color: var(--dxf-muted);
  font-size: 14px;
  line-height: 1.55;
}

.dxf-use-cases strong {
  color: var(--dxf-ink);
  font-size: 15px;
}

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

.dxf-info-item {
  min-height: 176px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--dxf-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(28, 67, 113, .04);
}

.dxf-info-item span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #596779;
  background: #eef2f6;
  border: 1px solid #dde4eb;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.dxf-info-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--dxf-ink);
  font-size: 18px;
  line-height: 1.35;
}

.dxf-info-item p {
  margin: 0;
  color: var(--dxf-muted);
  font-size: 15px;
  line-height: 1.55;
}

.dxf-faq-list {
  max-width: 980px;
  display: grid;
  gap: 12px;
  margin: 0 auto;
}

.dxf-faq-list details {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--dxf-border);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(28, 67, 113, .035);
}

.dxf-faq-list summary {
  position: relative;
  display: block;
  min-height: 62px;
  padding: 18px 58px 18px 22px;
  color: var(--dxf-ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  list-style: none;
}

.dxf-faq-list summary::-webkit-details-marker {
  display: none;
}

.dxf-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: var(--dxf-blue);
  background: var(--dxf-soft-blue);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.dxf-faq-list details[open] summary::after {
  content: "−";
}

.dxf-faq-list details[open] summary {
  border-bottom: 1px solid var(--dxf-border);
}

.dxf-faq-list details > div {
  padding: 18px 22px 21px;
}

.dxf-faq-list p {
  max-width: 860px;
  margin: 0;
  color: var(--dxf-muted);
  font-size: 15px;
  line-height: 1.75;
}

.dxf-viewer-hero {
  padding: 34px 0 62px;
  background: linear-gradient(180deg, #f6faff 0%, #fff 100%);
  border-bottom: 1px solid #edf2f7;
}

.dxf-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 38px;
  color: #8391a4;
  font-size: 13px;
}

.dxf-breadcrumbs a {
  color: var(--dxf-blue);
  text-decoration: none;
}

.dxf-viewer-heading {
  max-width: 880px;
  margin: 0 auto 32px;
  text-align: center;
}

.dxf-viewer-upload {
  max-width: 920px;
}

.dxf-viewer-upload .dxf-dropzone {
  min-height: 240px;
}

.dxf-viewer-workspace-section {
  padding-top: 58px;
}

.dxf-processing-alert {
  max-width: 100%;
  margin-bottom: 22px;
  border-radius: 12px;
}

.dxf-processing-alert strong {
  display: block;
  margin-bottom: 3px;
}

.dxf-viewer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: stretch;
}

.dxf-canvas-card,
.dxf-file-summary .card {
  overflow: hidden;
  border: 1px solid var(--dxf-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(28, 67, 113, .055);
}

.dxf-canvas-card {
  height: 100%;
}

.dxf-canvas-card .card-header,
.dxf-file-summary .card-header {
  min-height: auto;
  padding: 17px 20px;
  background: #fff;
}

.dxf-canvas-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dxf-canvas-card .card-body {
  padding: 18px;
}

.dxf-canvas-placeholder {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8ca0b8;
  text-align: center;
  background-color: #f8fafc;
  background-image: linear-gradient(#edf2f7 1px, transparent 1px), linear-gradient(90deg, #edf2f7 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid #e5ebf3;
  border-radius: 11px;
}

.dxf-canvas-placeholder svg {
  margin-bottom: 8px;
  color: #9db0c7;
}

.dxf-canvas-placeholder strong {
  color: #52647a;
  font-size: 17px;
}

.dxf-canvas-placeholder span {
  font-size: 13px;
}

.dxf-canvas-result {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5ebf3;
  border-radius: 11px;
}

.dxf-canvas-result img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
}

.dxf-file-summary {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  height: 100%;
}

.dxf-file-summary .card {
  height: 100%;
}

.dxf-summary-list {
  margin: 0;
}

.dxf-summary-list > div,
.dxf-entity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f6;
}

.dxf-summary-list > div:first-child,
.dxf-entity-row:first-child {
  padding-top: 0;
}

.dxf-summary-list > div:last-child,
.dxf-entity-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dxf-summary-list dt,
.dxf-entity-row span {
  color: var(--dxf-muted);
  font-weight: 500;
}

.dxf-summary-list dd,
.dxf-entity-row strong {
  margin: 0;
  color: var(--dxf-ink);
  font-weight: 700;
}

.dxf-summary-list dd {
  max-width: 58%;
  text-align: right;
  overflow-wrap: anywhere;
}

.dxf-viewer-note {
  height: 100%;
  padding: 24px;
  background: #fff;
  border: 1px solid #cfe0f7;
  border-radius: 14px;
}

.dxf-viewer-note > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--dxf-ink);
  font-size: 18px;
}

.dxf-viewer-note ul {
  margin: 0;
  padding-left: 20px;
  color: var(--dxf-muted);
  line-height: 1.75;
}

.dxf-footer {
  padding: 42px 0 22px;
  color: #d9e2ef;
  background: #111b2b;
}

.dxf-footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.dxf-footer-about {
  max-width: 560px;
}

.dxf-footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.dxf-footer-brand:hover {
  color: #fff;
}

.dxf-footer p {
  margin: 0;
  color: #99aabd;
  font-size: 14px;
  line-height: 1.6;
}

.dxf-footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.dxf-footer-nav a {
  color: #b2bfd0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.dxf-footer-nav a:hover {
  color: #fff;
}

.dxf-footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  color: #8393a8;
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: 13px;
}

@media (max-width: 991.98px) {
  .dxf-navbar {
    position: static;
  }

  .dxf-navbar-inner {
    min-height: 68px;
  }

  .dxf-nav-links {
    gap: 22px;
  }

  .dxf-hero {
    padding: 54px 0 64px;
  }

  .dxf-about-panel {
    grid-template-columns: 1fr;
  }

  .dxf-use-cases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dxf-use-cases > div {
    grid-template-columns: 1fr;
  }

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

  .dxf-viewer-layout {
    grid-template-columns: 1fr;
  }

  .dxf-file-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    height: auto;
  }

  .dxf-footer-grid {
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .container-xl {
    padding-right: 16px;
    padding-left: 16px;
  }

  .dxf-brand {
    font-size: 16px;
  }

  .dxf-brand-mark svg {
    width: 27px;
    height: 27px;
  }

  .dxf-nav-links {
    display: none;
  }

  .dxf-hero {
    padding: 40px 0 50px;
  }

  .dxf-hero-copy {
    margin-bottom: 30px;
  }

  .dxf-hero h1,
  .dxf-viewer-heading h1 {
    margin-bottom: 14px;
    font-size: 36px;
    line-height: 1.1;
  }

  .dxf-hero-lead,
  .dxf-viewer-heading p {
    font-size: 16px;
    line-height: 1.58;
  }

  .dxf-upload-card {
    border-radius: 14px;
  }

  .dxf-upload-card .card-body {
    padding: 14px;
  }

  .dxf-dropzone {
    min-height: 236px;
    padding: 28px 14px 24px;
  }

  .dxf-dropzone-title {
    font-size: 18px;
  }

  .dxf-dropzone-subtitle {
    max-width: 240px;
    font-size: 14px;
  }

  .dxf-file-button {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    margin-top: 18px;
  }

  .dxf-benefits {
    gap: 8px;
    margin-top: 18px;
  }

  .dxf-benefits span {
    padding: 7px 10px;
    font-size: 12px;
  }

  .dxf-section {
    padding: 58px 0;
  }

  .dxf-section-heading {
    margin-bottom: 28px;
  }

  .dxf-section-heading h2,
  .dxf-section h2 {
    font-size: 30px;
  }

  .dxf-section-heading p,
  .dxf-section-copy {
    font-size: 16px;
  }

  .dxf-tool-card .card-body {
    min-height: 0;
    padding: 23px;
  }

  .dxf-tool-status {
    top: 20px;
    right: 20px;
  }

  .dxf-tool-button {
    margin-top: 4px;
  }

  .dxf-about-panel {
    gap: 24px;
    padding: 22px;
    border-radius: 14px;
  }

  .dxf-use-cases {
    grid-template-columns: 1fr;
  }

  .dxf-use-cases > div {
    grid-template-columns: 40px 1fr;
    padding: 16px;
  }

  .dxf-use-cases span {
    width: 40px;
    height: 40px;
  }

  .dxf-info-grid,
  .dxf-file-summary {
    grid-template-columns: 1fr;
  }

  .dxf-info-item {
    min-height: 0;
    padding: 21px;
  }

  .dxf-info-item span {
    width: 42px;
    height: 42px;
    margin-bottom: 15px;
    font-size: 13px;
  }

  .dxf-faq-list summary {
    min-height: 60px;
    padding: 16px 50px 16px 16px;
    font-size: 15px;
  }

  .dxf-faq-list summary::after {
    right: 14px;
  }

  .dxf-faq-list details > div {
    padding: 16px 17px 18px;
  }

  .dxf-viewer-hero {
    padding: 22px 0 42px;
  }

  .dxf-breadcrumbs {
    margin-bottom: 26px;
  }

  .dxf-viewer-heading {
    margin-bottom: 24px;
  }

  .dxf-viewer-upload .dxf-dropzone {
    min-height: 226px;
  }

  .dxf-viewer-workspace-section {
    padding-top: 42px;
  }

  .dxf-canvas-placeholder {
    min-height: 330px;
    background-size: 20px 20px;
  }

  .dxf-canvas-result {
    min-height: 330px;
  }

  .dxf-canvas-result img {
    max-height: 520px;
  }

  .dxf-footer {
    padding-top: 36px;
  }

  .dxf-footer-grid {
    display: grid;
    gap: 24px;
  }

  .dxf-footer-nav {
    justify-content: flex-start;
    gap: 10px 20px;
  }
}

@media (max-width: 399.98px) {
  .dxf-hero h1,
  .dxf-viewer-heading h1 {
    font-size: 33px;
  }

  .dxf-benefits span {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dxf-tool-card,
  .dxf-dropzone {
    transition: none;
  }
}
