@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #172033;
  --muted: #647087;
  --line: #dfe4ec;
  --paper: #ffffff;
  --soft: #f4f6f9;
  --navy: #172a4b;
  --blue: #3867ff;
  --cyan: #30c4d9;
  --lime: #ccf54a;
  --orange: #ff9f43;
  --shadow: 0 24px 60px rgba(25, 39, 69, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans KR", sans-serif;
  line-height: 1.55;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 6vw;
  color: #fff;
  background: rgba(23, 42, 75, 0.96);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; font: 700 18px "DM Sans", sans-serif; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 7px); align-items: end; gap: 3px; width: 27px; height: 28px; transform: skewY(-18deg); }
.brand-mark i { display: block; border-radius: 2px; background: var(--lime); }
.brand-mark i:nth-child(1) { height: 14px; }
.brand-mark i:nth-child(2) { height: 22px; }
.brand-mark i:nth-child(3) { height: 18px; }
.site-header nav { display: flex; gap: 32px; color: #d9e1ef; font-size: 14px; }
.site-header nav a:hover { color: var(--lime); }

.hero {
  min-height: 610px;
  padding: 92px 8vw 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 8vw;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(61, 112, 255, .48), transparent 34%),
    linear-gradient(125deg, #12203b 0%, #1c335e 58%, #183c6b 100%);
}
.eyebrow { margin: 0 0 12px; color: var(--blue); font: 700 12px "DM Sans", sans-serif; letter-spacing: .16em; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { margin: 0; font-size: clamp(42px, 5.7vw, 76px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-copy { max-width: 600px; margin: 28px 0 36px; color: #d7e0ef; font-size: 17px; }
.hero-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 10px; color: #14213b; background: var(--lime); font-weight: 800; box-shadow: 0 10px 30px rgba(204, 245, 74, .18); }
.hero-button:hover { transform: translateY(-2px); }

.hero-visual { position: relative; min-height: 390px; }
.printer-frame {
  position: absolute;
  inset: 15px 7% 15px 8%;
  border: 18px solid rgba(230, 239, 255, .98);
  border-bottom-width: 36px;
  border-radius: 24px 24px 12px 12px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  box-shadow: 0 35px 80px rgba(4, 13, 31, .35), inset 0 0 0 2px rgba(255,255,255,.15);
}
.printer-frame::before { content: ""; position: absolute; top: 8px; left: 8%; right: 8%; height: 10px; border-radius: 5px; background: #9eb0cb; box-shadow: 0 5px 0 #3d5173; }
.printer-head { position: absolute; top: 30px; left: 48%; width: 82px; height: 64px; border-radius: 10px; background: #304667; box-shadow: 0 12px 0 #203551; }
.printer-head::after { content: ""; position: absolute; left: 33px; bottom: -28px; width: 16px; height: 28px; clip-path: polygon(15% 0,85% 0,65% 100%,35% 100%); background: var(--orange); }
.printer-head span { position: absolute; top: 17px; left: 18px; width: 11px; height: 11px; border-radius: 50%; background: var(--lime); box-shadow: 22px 0 0 #8595ae; }
.printer-bed { position: absolute; left: 11%; right: 11%; bottom: 42px; height: 22px; border-radius: 5px; background: #a9b8cf; transform: perspective(200px) rotateX(8deg); box-shadow: 0 13px 0 #354a6b; }
.printed-part { position: absolute; z-index: 2; left: 39%; bottom: 65px; width: 108px; height: 100px; }
.printed-part i { position: absolute; left: 0; bottom: 0; width: 108px; height: 30px; border-radius: 4px; background: var(--cyan); }
.printed-part i:nth-child(2) { left: 16px; bottom: 29px; width: 76px; }
.printed-part i:nth-child(3) { left: 31px; bottom: 58px; width: 46px; height: 42px; border-radius: 4px 4px 0 0; }
.floating-card { position: absolute; z-index: 3; display: flex; flex-direction: column; padding: 14px 18px; min-width: 124px; border: 1px solid rgba(255,255,255,.42); border-radius: 14px; color: var(--ink); background: rgba(255,255,255,.92); box-shadow: 0 18px 35px rgba(3,13,32,.24); backdrop-filter: blur(8px); }
.floating-card b { font: 700 22px "DM Sans", sans-serif; }
.floating-card span { color: var(--muted); font-size: 12px; }
.card-hours { top: 1px; right: 0; }
.card-weight { bottom: 18px; left: 0; }

.calculator-shell { padding: 92px 6vw 110px; background: var(--soft); }
.section-intro { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-intro h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.section-intro > p:last-child { margin: 0; color: var(--muted); }
.calculator-grid { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 26px; align-items: start; }
.input-panel, .result-panel { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 16px 44px rgba(25, 39, 69, .07); }
.input-panel { overflow: hidden; }
.form-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 58px; padding: 0 28px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.form-toolbar button { border: 0; color: var(--blue); background: transparent; cursor: pointer; font-weight: 700; }
fieldset { margin: 0; padding: 28px; border: 0; border-bottom: 1px solid var(--line); }
legend { width: 100%; padding: 0; margin-bottom: 22px; font-size: 18px; font-weight: 800; }
legend span { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-right: 9px; border-radius: 9px; color: #fff; background: var(--navy); font: 700 12px "DM Sans", sans-serif; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label { display: flex; flex-direction: column; gap: 8px; color: #344057; font-size: 14px; font-weight: 700; }
label > span { display: flex; justify-content: space-between; }
label small { color: #8a94a8; font-weight: 500; }
input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #cfd6e2; border-radius: 10px; color: var(--ink); background: #fbfcfe; outline: none; font: 600 16px "DM Sans", "Noto Sans KR", sans-serif; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56,103,255,.12); background: #fff; }
.wide-field { grid-column: 1 / -1; }
.hint { margin-top: -2px; }
.error-box { margin: 20px 28px; padding: 12px 15px; border-radius: 10px; color: #a61e27; background: #fff0f1; font-size: 13px; }
.error-box p { margin: 3px 0; }
.mobile-result-button { display: none; }

.result-panel { position: sticky; top: 94px; padding: 28px; color: #fff; border: 0; background: var(--navy); box-shadow: var(--shadow); }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.result-heading > div { display: flex; flex-direction: column; }
.result-heading span { color: #cbd5e6; font-size: 14px; }
.result-heading small { margin-top: 3px; color: #889bb8; }
.live-badge { padding: 5px 8px; border: 1px solid rgba(204,245,74,.35); border-radius: 6px; color: var(--lime) !important; font: 700 10px "DM Sans", sans-serif; letter-spacing: .12em; }
.total-price { display: block; margin: 10px 0 2px; color: var(--lime); font: 700 clamp(42px, 5vw, 58px) "DM Sans", "Noto Sans KR", sans-serif; letter-spacing: -.04em; }
.result-subline { display: flex; justify-content: space-between; color: #aebbd0; font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 25px 0; }
.metric-grid div { padding: 13px 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: rgba(255,255,255,.045); }
.metric-grid span { display: block; margin-bottom: 4px; color: #9aaac2; font-size: 11px; }
.metric-grid b { font: 600 15px "DM Sans", "Noto Sans KR", sans-serif; }
.chart-wrap { margin-bottom: 20px; }
.chart-label { display: flex; justify-content: space-between; margin-bottom: 8px; color: #9aaac2; font-size: 11px; }
.cost-chart { display: flex; height: 10px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.1); }
.chart-segment { min-width: 2px; }
.breakdown-wrap { max-height: 275px; overflow: auto; padding-right: 4px; }
table { width: 100%; border-collapse: collapse; }
caption { padding-bottom: 8px; color: #cbd5e6; text-align: left; font-size: 12px; font-weight: 700; }
th, td { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; }
th { color: #aebbd0; text-align: left; font-weight: 500; }
td { text-align: right; font: 600 12px "DM Sans", "Noto Sans KR", sans-serif; }
.swatch { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 2px; background: var(--swatch); }
.monthly-card { margin-top: 18px; padding: 15px; border-radius: 12px; color: var(--ink); background: #eef4ff; }
.monthly-card > span { display: block; margin-bottom: 7px; color: #5c6980; font-size: 11px; font-weight: 700; }
.monthly-card div { display: flex; justify-content: space-between; margin-top: 5px; font-size: 12px; }
.monthly-card b { font-family: "DM Sans", "Noto Sans KR", sans-serif; }
.result-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.result-actions button { min-height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: #fff; background: transparent; cursor: pointer; font-weight: 700; }
.result-actions button:first-child { color: var(--navy); border-color: var(--lime); background: var(--lime); }
.copy-status { min-height: 18px; margin: 8px 0 0; color: var(--lime); text-align: center; font-size: 11px; }
.result-note { margin: 6px 0 0; color: #8293ae; font-size: 10px; text-align: center; }

.guide-section, .faq-section { padding: 100px 7vw; }
.guide-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide-grid article { padding: 28px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.guide-grid article > span { color: var(--blue); font: 700 12px "DM Sans", sans-serif; }
.guide-grid h3 { margin: 14px 0 10px; font-size: 18px; }
.guide-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.formula-card { max-width: 1180px; margin: 18px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 30px; border-radius: 16px; color: #fff; background: var(--navy); }
.formula-card div { display: flex; flex-direction: column; }
.formula-card span { color: var(--lime); font-size: 11px; font-weight: 700; }
.formula-card strong { margin-top: 7px; font-size: 19px; }
.formula-card p { margin: 0; color: #aebbd0; font-size: 13px; }
.faq-section { background: var(--soft); }
.faq-list { max-width: 850px; margin: 0 auto; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 21px 5px; cursor: pointer; font-weight: 700; }
details p { margin: -6px 0 22px; color: var(--muted); font-size: 14px; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 34px 7vw; color: #b3bfd2; background: #101b30; font-size: 12px; }
footer div { display: flex; flex-direction: column; gap: 5px; }
footer strong { color: #fff; font: 700 16px "DM Sans", sans-serif; }
footer a { color: var(--lime); }

.privacy-page { min-height: 100vh; padding: 70px 6vw; background: var(--soft); }
.privacy-card { max-width: 820px; margin: 0 auto; padding: 40px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.privacy-card h1 { margin-top: 8px; }
.privacy-card h2 { margin-top: 30px; font-size: 18px; }
.privacy-card p, .privacy-card li { color: var(--muted); font-size: 14px; }
.back-link { color: var(--blue); font-weight: 700; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .hero-visual { min-height: 330px; max-width: 570px; width: 100%; margin: 0 auto; }
  .calculator-grid { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { min-height: 62px; padding: 0 20px; }
  .site-header nav { display: none; }
  .hero { min-height: auto; padding: 62px 22px 66px; }
  .hero h1 { font-size: 42px; }
  .hero-copy { font-size: 15px; }
  .hero-visual { min-height: 285px; }
  .printer-frame { border-width: 13px; border-bottom-width: 29px; }
  .calculator-shell { padding: 68px 14px 76px; }
  .section-intro { margin-bottom: 28px; }
  .section-intro h2 { font-size: 31px; }
  .form-toolbar { padding: 0 18px; }
  fieldset { padding: 24px 18px; }
  .field-grid { grid-template-columns: 1fr; gap: 15px; }
  .wide-field { grid-column: auto; }
  .mobile-result-button { display: block; width: calc(100% - 36px); min-height: 48px; margin: 20px 18px; border: 0; border-radius: 10px; color: var(--navy); background: var(--lime); font-weight: 800; }
  .result-panel { padding: 24px 19px; border-radius: 16px; }
  .total-price { font-size: 48px; }
  .guide-section, .faq-section { padding: 74px 20px; }
  .guide-grid { grid-template-columns: 1fr; }
  .formula-card { grid-template-columns: 1fr; padding: 24px; }
  footer { flex-direction: column; padding: 30px 22px; }
  .privacy-card { padding: 26px 20px; }
}

@media print {
  .site-header, .hero, .section-intro, .input-panel, .guide-section, .faq-section, footer, .result-actions, .copy-status { display: none !important; }
  body, .calculator-shell { background: #fff; }
  .calculator-shell { padding: 0; }
  .calculator-grid { display: block; }
  .result-panel { position: static; max-width: 700px; margin: 0 auto; color: #111; background: #fff; box-shadow: none; border: 1px solid #ccc; }
  .result-panel * { color: #111 !important; }
  .metric-grid div, .monthly-card { border: 1px solid #ddd; background: #fff; }
  th, td { border-bottom-color: #ddd; }
}
