:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: #0d1422;
  --panel-2: #121a2a;
  --line: rgba(255, 255, 255, 0.13);
  --text: #f6f9ff;
  --muted: #aab6c8;
  --blue: #246bfe;
  --blue-2: #0ea5ff;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 0 40px;
  background: rgba(5, 7, 13, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

nav a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  display: flex;
  min-height: 88vh;
  overflow: hidden;
  padding: 150px 40px 80px;
  align-items: center;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.98) 0%, rgba(5, 7, 13, 0.88) 33%, rgba(5, 7, 13, 0.28) 74%),
    linear-gradient(0deg, rgba(5, 7, 13, 1) 0%, rgba(5, 7, 13, 0) 22%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 34px;
  color: #d4dceb;
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.button span {
  margin-right: 8px;
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button.wide {
  width: 100%;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-stats div {
  padding: 28px 40px;
  background: #080b13;
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.quick-stats span,
.section-heading p,
article p,
.process-list span,
.machine-table span,
.quote-form label,
.quote-result p {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: 96px 40px;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 36px;
}

.intro,
.process,
.contact,
.info-section {
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

article,
.quote-form,
.quote-result,
.machine-table,
.process-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

article {
  padding: 28px;
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  place-items: center;
  background: rgba(36, 107, 254, 0.16);
  border: 1px solid rgba(36, 107, 254, 0.35);
  border-radius: 8px;
  color: #8ec6ff;
  font-weight: 800;
}

.quote-section {
  background: #080c15;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-heading,
.quote-layout,
.machines {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.quote-form,
.quote-result {
  padding: 28px;
}

.quote-form {
  display: grid;
  gap: 18px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.field-row,
.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.file-drop {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 16px !important;
  align-items: center;
  min-height: 132px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(36, 107, 254, 0.16), rgba(14, 165, 255, 0.05));
  border: 1px dashed rgba(142, 198, 255, 0.5);
  border-radius: 8px;
  cursor: pointer;
}

.file-drop:hover,
.file-drop.is-dragover {
  border-color: var(--blue-2);
  background: linear-gradient(135deg, rgba(36, 107, 254, 0.24), rgba(14, 165, 255, 0.09));
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #8ec6ff;
  font-size: 22px;
}

.file-title {
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
}

.file-copy {
  grid-column: 2 / 3;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.file-button {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  align-self: center;
  padding: 11px 16px;
  background: var(--blue);
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
}

.file-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #050914;
  border: 1px solid rgba(14, 165, 255, 0.32);
  border-radius: 8px;
}

.file-status[hidden] {
  display: none;
}

.file-status strong,
.file-status span {
  display: block;
}

.file-status strong {
  margin-bottom: 4px;
  color: var(--white);
}

.file-status span {
  color: var(--muted);
  font-size: 14px;
}

.file-status button {
  min-height: 38px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.model-preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.13);
  border-radius: 8px;
  color: #111827;
}

.model-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.model-preview-head strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
}

.model-preview .result-label {
  color: var(--blue);
}

.model-preview-actions {
  display: inline-flex;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 999px;
}

.model-preview-actions button {
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.model-preview-actions button.is-active {
  background: var(--blue);
  color: #fff;
}

.simulation-hint {
  justify-self: end;
  margin: -4px 0 0;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.simulation-hint.is-ready {
  color: var(--blue);
}

.simulation-hint.is-error {
  color: #6b7280;
}

.model-stage {
  position: relative;
  height: min(58vh, 620px);
  min-height: 420px;
  overflow: hidden;
  background: #f7f7f7;
  border: 3px solid var(--blue);
  border-radius: 8px;
  touch-action: none;
}

.model-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  touch-action: none;
  transition: opacity 0.2s;
}

.model-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  color: #6b7280;
  text-align: center;
}

.model-placeholder span {
  color: var(--blue);
  font-size: 40px;
}

.model-placeholder strong {
  color: #0f172a;
  font-size: 20px;
}

.model-placeholder p,
.model-preview-note {
  margin: 0;
  color: #6b7280;
  line-height: 1.55;
}

.simulation-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  padding: 18px 14px 4px;
  color: #111827;
}

.simulation-details div {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 14px;
  align-items: baseline;
}

.simulation-details span {
  color: #111827;
  font-weight: 800;
}

.simulation-details strong {
  color: #666;
  font-weight: 500;
}

.simulation-details #detailPrice {
  color: var(--blue);
  font-size: 22px;
  font-weight: 800;
}

.model-preview-note {
  font-size: 14px;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  background: #050914;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(14, 165, 255, 0.38);
  border-color: var(--blue-2);
}

.unit-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: #050914;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.unit-field input {
  border: 0;
  background: transparent;
}

.unit-field span {
  padding-right: 14px;
  color: var(--muted);
}

.check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  background: #050914;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin-right: 10px;
  accent-color: var(--blue);
}

.quote-result {
  position: sticky;
  top: 92px;
}

.result-label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-2);
  font-weight: 800;
}

#estimate {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
}

.file-check {
  margin-top: 18px;
  padding: 14px;
  background: rgba(36, 107, 254, 0.12);
  border: 1px solid rgba(36, 107, 254, 0.25);
  border-radius: 8px;
  color: #dbeafe;
  line-height: 1.55;
}

.result-breakdown {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.result-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.result-breakdown strong {
  color: var(--white);
  white-space: nowrap;
}

.machine-table {
  overflow: hidden;
}

.machine-table div {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 18px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.machine-table div:last-child {
  border-bottom: 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 170px;
  padding: 24px;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 14px;
  font-size: 20px;
}

.contact {
  padding-bottom: 120px;
}

.order-page {
  background: #080c15;
}

.order-hero {
  padding-top: 150px;
  padding-bottom: 48px;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.96), rgba(5, 7, 13, 0.72)),
    url("assets/hero-3d-print.png") center / cover;
  border-bottom: 1px solid var(--line);
}

.order-hero .section-heading,
.order-layout {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.order-section {
  padding-top: 48px;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.order-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 4px;
}

.order-step > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--blue);
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
}

.order-step h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.always-visible {
  display: flex;
}

.simulation-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 110px;
  padding: 18px;
  background: #050914;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.simulation-panel strong,
.simulation-panel span {
  display: block;
}

.simulation-panel strong {
  margin-bottom: 6px;
}

.simulation-panel span {
  color: var(--muted);
}

.simulation-panel.is-ready {
  border-color: rgba(14, 165, 255, 0.45);
  background: rgba(36, 107, 254, 0.12);
}

.simulation-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 48px;
}

.simulation-bars span {
  width: 9px;
  background: #8ec6ff;
  border-radius: 8px;
}

.simulation-bars span:nth-child(1) {
  height: 35%;
}

.simulation-bars span:nth-child(2) {
  height: 72%;
}

.simulation-bars span:nth-child(3) {
  height: 50%;
}

.simulation-bars span:nth-child(4) {
  height: 88%;
}

.pickup-card {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.qr-box {
  display: grid;
  width: 212px;
  min-height: 212px;
  margin: 16px 0;
  place-items: center;
  background: var(--white);
  border-radius: 8px;
  color: #172033;
  text-align: center;
}

.qr-box img,
.qr-box canvas {
  width: 180px;
  height: 180px;
}

#pickupCode {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.payment-notice {
  margin: -2px 0 0;
  padding: 12px 14px;
  color: #b9c7df;
  background: rgba(36, 107, 254, 0.12);
  border: 1px solid rgba(14, 165, 255, 0.28);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.payment-result-card {
  min-height: 360px;
}

.policy-hero h1 {
  max-width: 900px;
}

.policy-section {
  padding-top: 48px;
}

.policy-layout {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.policy-layout article {
  display: grid;
  gap: 12px;
}

.policy-layout h2 {
  margin-bottom: 4px;
  font-size: clamp(26px, 3vw, 38px);
}

.compact-table {
  box-shadow: none;
}

.compact-table div {
  grid-template-columns: minmax(140px, 0.55fr) minmax(0, 1.45fr);
}

.policy-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.contact-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #050914;
  border: 1px solid rgba(14, 165, 255, 0.28);
  border-radius: 8px;
}

.contact-box strong {
  color: var(--white);
}

.contact-box span {
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer strong,
footer span {
  display: block;
}

footer strong {
  margin-bottom: 6px;
  color: var(--white);
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  max-width: 720px;
  text-align: right;
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 20px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding: 128px 22px 60px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 7, 13, 0.96), rgba(5, 7, 13, 0.6)),
      linear-gradient(0deg, rgba(5, 7, 13, 1) 0%, rgba(5, 7, 13, 0) 35%);
  }

  .hero-copy {
    font-size: 17px;
  }

  .section,
  .quick-stats div {
    padding-right: 22px;
    padding-left: 22px;
  }

  .quick-stats,
  .feature-grid,
  .info-grid,
  .quote-layout,
  .order-layout,
  .process-list {
    grid-template-columns: 1fr;
  }

  .quote-result,
  .order-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 42px;
  }

  .field-row,
  .toggle-grid,
  .machine-table div,
  .file-drop {
    grid-template-columns: 1fr;
  }

  .file-copy,
  .file-button {
    grid-column: auto;
    grid-row: auto;
  }

  .file-button {
    width: 100%;
    text-align: center;
  }

  .file-status {
    align-items: stretch;
    flex-direction: column;
  }

  .model-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .simulation-hint {
    justify-self: stretch;
  }

  .simulation-details {
    grid-template-columns: 1fr;
  }

  .order-step,
  .simulation-panel {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  footer {
    flex-direction: column;
    padding-right: 22px;
    padding-left: 22px;
  }

  .footer-info {
    justify-content: flex-start;
    text-align: left;
  }
}
