:root {
  --bg: #100e0c;
  --bg-2: #181410;
  --ink: #f4efe6;
  --muted: #b7aa9a;
  --gold: #e0c094;
  --gold-deep: #b48955;
  --line: rgba(244, 239, 230, 0.14);
  --paper: #f4efe4;
  --paper-ink: #1c1612;
  --paper-muted: #6f6256;
  --danger: #8d2f2a;
  --serif: "Fraunces", "Noto Serif SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Palatino Linotype", "Songti SC", serif;
  --sans: "Outfit", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", "Noto Sans Thai", "Noto Sans Devanagari", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  --radius: 28px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(900px 480px at 0% -10%, rgba(224, 192, 148, 0.16), transparent 58%),
    radial-gradient(680px 520px at 100% 0%, rgba(110, 42, 38, 0.22), transparent 55%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

::selection { background: rgba(224, 192, 148, 0.35); color: #fff; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -48px;
  z-index: 20;
  background: var(--gold);
  color: #1a140e;
  padding: 8px 12px;
  border-radius: 999px;
}
.skip:focus { top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 14, 12, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: max-content;
}
.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 192, 148, 0.15);
  transform: translateY(-1px);
}
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.14em;
  font-weight: 560;
}
.brand-sub {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--ink); }

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang { position: relative; }

.lang-btn,
.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.lang-btn {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  padding: 8px 12px;
  font-size: 13px;
}
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn:hover,
.nav-cta:hover,
.btn:hover { transform: translateY(-1px); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  width: min(260px, 70vw);
  max-height: 360px;
  overflow: auto;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #1c1814;
  box-shadow: var(--shadow);
}
.lang-menu button {
  width: 100%;
  text-align: start;
  background: transparent;
  border: 0;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
}
.lang-menu button:hover,
.lang-menu button[aria-selected="true"] {
  background: rgba(224, 192, 148, 0.14);
  color: var(--gold);
}

.nav-cta {
  background: var(--ink);
  color: #1a140e;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 560;
}

main, .footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.82fr);
  gap: 48px;
  align-items: end;
  padding: 72px 0 36px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.kicker span:first-child {
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

h1, h2, .brand-name, .service-card strong, .step strong {
  font-family: var(--serif);
  font-weight: 560;
  font-optical-sizing: auto;
}

h1 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(46px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  border-inline-start: 1px solid rgba(224, 192, 148, 0.75);
  padding-inline-start: 22px;
}
h1 em {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.1vw, 46px);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--gold);
}

.lead, .section-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 42rem;
}
.hero .lead { margin-top: 22px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn { padding: 14px 22px; font-size: 15px; font-weight: 500; }
.btn-gold {
  background: linear-gradient(180deg, #f0d7ae, #c99655);
  color: #1a140e;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ink {
  background: #1c1612;
  color: #f4efe4;
  border: 0;
  padding: 14px 22px;
}
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.ledger {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}
.ledger-head p {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.ledger-index {
  font-family: var(--serif);
  letter-spacing: 0.16em;
  color: var(--muted);
  font-size: 13px;
}
.ledger li + li { border-top: 1px solid var(--line); }
.ledger button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  background: transparent;
  border: 0;
  text-align: start;
}
.ledger button strong { font-weight: 500; font-size: 18px; font-family: var(--serif); }
.ledger button span { color: var(--muted); font-size: 13px; }
.ledger button:hover strong { color: var(--gold); }
.ledger-foot {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

section { padding: 72px 0; scroll-margin-top: 96px; }

.section-head { max-width: 760px; margin-bottom: 28px; }
h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.market-strip, .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.market-strip span,
.chip,
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.market-strip span { padding: 8px 12px; font-size: 13px; }

.channel-list { border-top: 1px solid var(--line); }
.channel-row {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: start;
  color: inherit;
}
.channel-row:hover,
.channel-row.is-on { background: rgba(224, 192, 148, 0.06); }
.mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 15px;
}
.channel-row strong { display: block; font-size: 22px; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { padding: 2px 8px; font-size: 12px; }
.row-action {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.service-grid, .process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.service-card, .step {
  min-height: 210px;
  padding: 22px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.service-card:hover { border-color: rgba(224, 192, 148, 0.45); }
.idx {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
}
.service-card strong, .step strong {
  display: block;
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.service-card p, .step p { color: var(--muted); font-size: 14.5px; }

.process-list { position: relative; margin-top: 10px; }
.process-list::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 28px;
  height: 1px;
  background: var(--line);
}
.step { background: transparent; position: relative; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: start;
}
.points { margin-top: 22px; display: grid; gap: 12px; }
.points li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 14.5px;
}
.points b {
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
}

.paper {
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 32px;
  padding: 32px 32px 26px 40px;
  box-shadow: var(--shadow);
}
.paper::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(#f0d7ae, #a78455);
}
.paper ::selection { background: rgba(180, 137, 85, 0.28); color: #1c1612; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.span-2 { grid-column: 1 / -1; }
.field-block, .consent { display: grid; gap: 8px; }
.field-block span, .field-block legend, .consent span {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--paper-muted);
}
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
legend em {
  margin-inline-start: 8px;
  font-style: normal;
  color: var(--gold-deep);
}
.hint { color: var(--paper-muted); font-size: 13px; }

.field {
  width: 100%;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(28, 22, 18, 0.12);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--paper-ink);
  outline: none;
}
.field:focus {
  border-color: var(--gold-deep);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(180, 137, 85, 0.16);
}
textarea.field { resize: vertical; min-height: 120px; }
select.field {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6f6256 50%), linear-gradient(135deg, #6f6256 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-end: 36px;
}
[dir="rtl"] select.field {
  background-position: 18px 55%, 12px 55%;
}

.chip {
  background: transparent;
  color: var(--paper-ink);
  border-color: rgba(28, 22, 18, 0.16);
  padding: 8px 12px;
  font-size: 13px;
}
.chip.is-on {
  background: #1c1612;
  color: #f4efe4;
  border-color: #1c1612;
}
.paper .tag { color: var(--paper-muted); }

.consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--paper-ink);
  font-size: 14px;
}
.consent input { margin-top: 3px; accent-color: #1c1612; }

.err {
  min-height: 0;
  color: var(--danger);
  font-size: 12px;
}
.err:empty { display: none; }
.form-error { margin-top: 10px; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 8px;
}
.endpoint-note {
  flex: 1 1 100%;
  color: var(--paper-muted);
  font-size: 12px;
  line-height: 1.55;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.success { display: grid; gap: 12px; }
.success[hidden] { display: none; }
.success-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1c1612;
  position: relative;
}
.success-mark::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 2px solid #e0c094;
  border-bottom: 2px solid #e0c094;
  transform: rotate(-45deg);
}
.success h3 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.05;
  font-weight: 560;
}
.success p { color: var(--paper-muted); }
.success dl {
  display: grid;
  gap: 8px;
  margin: 8px 0 6px;
  padding: 14px 0;
  border-block: 1px solid rgba(28, 22, 18, 0.1);
}
.success div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; font-size: 14px; }
.success dt { color: var(--paper-muted); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-blurb, .footer-rights { max-width: 36rem; font-size: 14px; text-wrap: pretty; }
.footer .brand-name { margin-bottom: 8px; }

[dir="rtl"] .kicker { letter-spacing: 0.04em; }
[dir="rtl"] h1 { letter-spacing: 0; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero, .contact, .service-grid, .process-list { grid-template-columns: 1fr 1fr; }
  .hero { align-items: start; padding-top: 42px; }
  .process-list::before { display: none; }
}

@media (max-width: 720px) {
  .nav { width: min(100% - 16px, 1180px); border-radius: 22px; }
  .brand-sub { display: none; }
  .hero, .contact, .service-grid, .process-list, .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .channel-row { grid-template-columns: 42px minmax(0, 1fr); }
  .row-action { display: none; }
  h1 { font-size: 36px; }
  h1 em { font-size: 22px; }
  .footer { flex-direction: column; }
  .paper { padding: 24px 18px 20px 22px; }
  .success div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lang-btn, .nav-cta, .btn { transition: none; }
}
