:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef5f4;
  --text: #142033;
  --muted: #637083;
  --line: #d9e3ea;
  --brand: #006eb6;
  --brand-dark: #00498d;
  --green: #13a05f;
  --yellow: #ffc400;
  --shadow: 0 18px 44px rgba(20, 32, 51, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

strong {
  font-weight: 800;
}

code {
  font-family: Consolas, "Liberation Mono", monospace;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand-dark);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(217, 227, 234, 0.84);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--green));
  box-shadow: 0 10px 24px rgba(0, 110, 182, 0.22);
}

.brand-text {
  color: var(--brand-dark);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
  background: #eaf4fc;
  outline: none;
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 900;
}

.header-action {
  min-width: 124px;
  padding: 0 16px;
  color: #fff;
  background: var(--brand);
}

.header-action:hover,
.header-action:focus-visible,
.button.primary:hover,
.button.primary:focus-visible {
  background: var(--brand-dark);
  outline: 3px solid rgba(0, 110, 182, 0.2);
  outline-offset: 2px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.72fr);
  gap: 58px;
  align-items: center;
  min-height: 680px;
  padding: 86px max(22px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 196, 0, 0.3), transparent 28%),
    linear-gradient(135deg, #eef8ff 0%, #f8fbff 52%, #eaf7f0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(0, 110, 182, 0.08);
}

.hero-inner,
.phone-shell {
  position: relative;
  z-index: 1;
}

.hero-inner {
  width: min(100%, 660px);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 18px;
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.hero-copy,
.section-copy {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 28px;
  font-size: 20px;
}

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

.button {
  min-width: 176px;
  max-width: 100%;
  padding: 0 22px;
  border: 1px solid transparent;
}

.button.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(0, 110, 182, 0.24);
}

.button.secondary {
  color: var(--brand);
  background: #fff;
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: #9bc7e8;
  background: #f4faff;
  outline: 3px solid rgba(0, 110, 182, 0.16);
  outline-offset: 2px;
}

.phone-shell {
  width: min(100%, 370px);
  justify-self: center;
  padding: 14px;
  border-radius: 34px;
  background: #172033;
  box-shadow: 0 32px 70px rgba(20, 32, 51, 0.28);
}

.phone-screen {
  min-height: 610px;
  overflow: hidden;
  border-radius: 24px;
  background: #f7fbff;
  padding: 20px;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: var(--brand-dark);
  font-weight: 900;
}

.phone-top strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.limit-card {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 22px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.limit-card span,
.limit-card small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.limit-card strong {
  max-width: 230px;
  font-size: 24px;
  line-height: 1.25;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.quick-grid span {
  min-height: 72px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.08);
}

.app-list {
  display: grid;
  gap: 10px;
}

.app-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.app-list div {
  display: grid;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

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

.section,
.download-panel {
  padding: 76px max(22px, calc((100vw - 1180px) / 2));
}

.download-panel {
  background: #fff;
}

.section.muted {
  background: var(--surface-soft);
}

.section-inner {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0 auto;
  min-width: 0;
}

.download-grid,
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 34px;
  align-items: start;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.file-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.file-table div {
  min-width: 0;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.file-table div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.file-table div:last-child,
.file-table div:nth-last-child(2) {
  border-bottom: 0;
}

.file-table dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.file-table dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.file-table .hash {
  font-size: 13px;
  font-weight: 700;
}

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

.steps li {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.steps p,
.resource-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.resource-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 192px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.resource-card.featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
}

.resource-card > div:last-child {
  padding: 24px;
}

.resource-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.product-visual {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.product-visual.car {
  background: linear-gradient(135deg, var(--brand), #003c75);
}

.product-visual.loan {
  background: linear-gradient(135deg, var(--green), #0a7041);
}

.product-visual.stock {
  background: linear-gradient(135deg, #27364f, var(--brand));
}

.product-visual.home {
  background: linear-gradient(135deg, #19a58f, var(--brand-dark));
}

.download-feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.download-feature-list li {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 32, 51, 0.08);
}

.download-feature-list strong {
  color: var(--text);
}

.download-feature-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px max(22px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--text);
}

.site-footer a {
  color: var(--brand);
  font-weight: 900;
}

.top-button {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 30;
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(0, 110, 182, 0.26);
  cursor: pointer;
  font-weight: 900;
}

.top-button.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .download-grid,
  .support-grid,
  .steps,
  .resource-grid,
  .resource-card,
  .resource-card.featured {
    grid-template-columns: 1fr;
  }

  .phone-shell {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr;
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand-text {
    font-size: 15px;
  }

  .header-action {
    display: none;
  }

  .hero,
  .section,
  .download-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: 0;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

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

  .button {
    width: 100%;
  }

  .hero-inner,
  .section-inner {
    width: 100%;
    max-width: 358px;
    margin-left: 0;
    margin-right: auto;
  }

  .phone-shell {
    width: 100%;
  }

  .phone-screen {
    min-height: 560px;
  }

  .file-table {
    grid-template-columns: 1fr;
  }

  .file-table div,
  .file-table div:nth-child(odd) {
    border-right: 0;
  }

  .file-table div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    display: block;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 14px;
  }
}

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