:root {
  --bg: oklch(97.9% 0 89.9);
  --surface: oklch(100% 0 89.9);
  --fg: oklch(35.9% 0.042 299.6);
  --muted: oklch(49.3% 0.03 294.9);
  --border: oklch(91.2% 0.011 243.7);
  --accent: oklch(51.6% 0.186 28);
  --accent-strong: oklch(44% 0.19 28);
  --accent-soft: oklch(96% 0.025 28);
  --blue: oklch(53.4% 0.259 262.9);
  --blue-soft: oklch(96% 0.025 262.9);
  --green: oklch(58% 0.14 155);
  --green-soft: oklch(95% 0.035 155);
  --amber: oklch(72% 0.14 78);
  --danger: oklch(55% 0.18 27);
  --topbar: oklch(91.2% 0.011 243.7);
  --shadow: 0 18px 50px color-mix(in oklch, var(--fg), transparent 88%);
  --font-display: 'Montserrat', 'Manrope', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'Manrope', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: auto -12vw -20vw auto;
  width: 44vw;
  height: 44vw;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in oklch, var(--blue), transparent 88%), transparent 64%);
  z-index: -1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  margin-bottom: 18px;
  color: var(--fg);
  font-size: clamp(38px, 7vw, 84px);
  font-weight: 950;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 930;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 900;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  text-wrap: pretty;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.service-strip {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 8px max(18px, calc((100vw - 1480px) / 2 + 28px));
  background: var(--topbar);
  border-bottom: 1px solid color-mix(in oklch, var(--border), var(--fg) 8%);
}

.strip-clocks,
.strip-phone {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.strip-clocks span,
.strip-phone {
  color: var(--fg);
  font-weight: 800;
}

.strip-clocks i {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
}

.strip-phone {
  justify-content: flex-end;
  text-align: right;
}

.strip-phone > span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 45%, #fff 46% 54%, transparent 55%),
    var(--accent);
}

.strip-phone small {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 16px max(18px, calc((100vw - 1480px) / 2 + 28px));
  background: color-mix(in oklch, var(--surface), transparent 5%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  width: 56px;
  height: 56px;
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background:
    linear-gradient(128deg, transparent 45%, #111 46% 55%, transparent 56%),
    radial-gradient(circle at 48% 23%, #fff 0 19%, transparent 20%),
    var(--accent);
}

.brand-emblem::before,
.brand-emblem::after {
  content: "";
  position: absolute;
  background: #111;
}

.brand-emblem::before {
  width: 52px;
  height: 20px;
  left: 11px;
  bottom: 9px;
  clip-path: polygon(0 100%, 54% 0, 100% 100%);
}

.brand-emblem::after {
  width: 64px;
  height: 12px;
  right: -18px;
  bottom: 18px;
  border-radius: 999px;
  background: repeating-linear-gradient(0deg, #fff 0 2px, transparent 2px 5px);
}

.brand-lockup strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.brand-lockup b {
  color: var(--accent);
  font-weight: 950;
}

.brand-lockup small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.primary-nav {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--fg);
  background: var(--accent-soft);
}

.header-cta,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--fg);
  background: var(--surface);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transition:
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    background 160ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-quiet {
  border-color: var(--border);
}

.btn-blue {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.hub-shell,
.form-page,
.calc-page {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.hub-hero {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 36px;
  align-items: center;
}

.hub-copy {
  max-width: 820px;
}

.command-panel,
.gateway-card,
.order-card,
.timeline-card,
.doc-section,
.form-card,
.account-preview,
.calculator-card,
.estimate-card,
.calc-followup {
  background: color-mix(in oklch, var(--surface), var(--bg) 6%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.command-panel {
  padding: clamp(20px, 3vw, 34px);
}

.panel-top,
.preview-top,
.order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.status-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.status-chip.is-live {
  background: var(--green-soft);
  color: color-mix(in oklch, var(--green), var(--fg) 24%);
}

.vehicle-line {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.vehicle-line h2 {
  margin: 0 0 5px;
  font-size: clamp(24px, 3vw, 36px);
}

.vehicle-line p,
.order-top span,
.section-head p,
.hero-note,
.fine-print {
  color: var(--muted);
}

.vehicle-photo {
  width: 94px;
  height: 72px;
  display: block;
  border-radius: 16px;
  background:
    linear-gradient(180deg, transparent 0 42%, color-mix(in oklch, var(--blue), transparent 72%) 43% 100%),
    linear-gradient(90deg, color-mix(in oklch, var(--accent), #fff 72%), color-mix(in oklch, var(--blue), #fff 78%));
  position: relative;
}

.vehicle-photo::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 20px;
  height: 24px;
  border-radius: 18px 22px 7px 7px;
  background: #fff;
  box-shadow: 0 10px 0 -7px #111;
}

.vehicle-photo::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 15px;
  height: 9px;
  background: radial-gradient(circle at left, #111 0 5px, transparent 6px), radial-gradient(circle at right, #111 0 5px, transparent 6px);
}

.vehicle-photo.large {
  width: 170px;
  height: 126px;
}

.delivery-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 26px 0;
}

.delivery-rail span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.delivery-rail .done {
  background: var(--green-soft);
  color: color-mix(in oklch, var(--green), var(--fg) 20%);
}

.delivery-rail .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.doc-stack,
.file-list,
.breakdown {
  display: grid;
  gap: 10px;
}

.doc-stack div,
.file-list div,
.breakdown div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.doc-stack span,
.file-list span,
.doc-actions span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.doc-stack strong,
.file-list strong {
  display: block;
  line-height: 1.18;
}

.doc-stack strong,
.doc-stack small,
.file-list strong,
.file-list small {
  grid-column: 2;
}

.doc-stack small,
.file-list small,
.gateway-card p,
.gateway-copy,
.step span,
.doc-actions small,
.check-card small {
  color: var(--muted);
}

.screen-gateway,
.section {
  margin-top: 56px;
}

.section-head {
  max-width: 860px;
  margin-bottom: 22px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head.wide {
  max-width: 1060px;
}

.gateway-grid,
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gateway-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.gateway-card:hover {
  border-color: color-mix(in oklch, var(--accent), var(--border) 35%);
  transform: translateY(-2px);
}

.gateway-num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
}

.gateway-card strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 930;
}

.portal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 122px);
}

.side-menu {
  padding: 30px 20px 60px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.side-menu nav {
  display: grid;
  gap: 2px;
}

.side-kicker {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
}

.side-menu a {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
}

.side-menu a:hover,
.side-menu a.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

.content-area {
  min-width: 0;
  padding: 30px max(18px, calc((100vw - 1480px) / 2 + 32px)) 70px 32px;
}

.landing-hero {
  display: grid;
  gap: 26px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 36vw, 470px);
  border-radius: 0 0 18px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100% - 44px));
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in oklch, var(--surface), transparent 6%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-badge span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: end;
}

.hero-grid h1 {
  max-width: 1000px;
  font-size: clamp(42px, 5.8vw, 76px);
}

.hero-note p {
  margin-bottom: 18px;
  font-size: 19px;
}

.market-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-card {
  min-height: 210px;
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--fg);
  text-align: left;
}

.market-card.active,
.market-card:hover {
  border-color: color-mix(in oklch, var(--accent), var(--border) 20%);
  background: linear-gradient(180deg, var(--surface), var(--accent-soft));
}

.market-icon {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 950;
}

.market-icon.kr {
  background: var(--blue);
}

.market-icon.cn,
.market-icon.mc {
  background: var(--green);
}

.market-card strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 920;
}

.cabinet-grid,
.registration-layout,
.calculator-shell,
.calc-followup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.66fr);
  gap: 18px;
  align-items: start;
}

.order-card,
.timeline-card,
.doc-section,
.form-card,
.account-preview,
.calculator-card,
.estimate-card,
.calc-followup {
  padding: clamp(20px, 3vw, 32px);
}

.order-photo-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 18px 0;
}

.order-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}

.order-stats span {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  text-align: center;
}

.order-stats strong {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.order-stats small {
  color: var(--muted);
}

.step-list {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
}

.step i {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--border);
  box-shadow: 0 0 0 5px color-mix(in oklch, var(--border), transparent 65%);
}

.step.done i {
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}

.step.current i {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.step strong {
  display: block;
  margin-bottom: 2px;
}

.doc-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 24px;
  align-items: center;
}

.doc-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: stretch;
}

.doc-actions div {
  min-height: 118px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.support-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.support-bubble span {
  width: 26px;
  height: 22px;
  border-radius: 8px;
  background: #fff;
  position: relative;
}

.support-bubble span::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.support-popover {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 31;
  width: min(360px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.support-popover.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
