:root {
  --history-shell: 1120px;
  --history-bg: #000000;
  --history-surface: #0b0f16;
  --history-surface-raised: #15171c;
  --history-ink: #f5f5f7;
  --history-muted: #a1a1a6;
  --history-line: rgba(255, 255, 255, 0.12);
  --history-primary: #0071e3;
  --history-primary-hover: #0077ed;
  --history-focus: rgba(41, 151, 255, 0.55);
}

body.history-launch-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--history-bg);
  color: var(--history-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", "Noto Sans KR", sans-serif;
}

body.history-launch-page .site-header {
  background: rgba(0, 0, 0, 0.82);
  border-bottom-color: var(--history-line);
  backdrop-filter: blur(20px) saturate(160%);
}

body.history-launch-page .brand,
body.history-launch-page .navlinks {
  color: rgba(245, 245, 247, 0.88);
}

.history-shell {
  width: min(var(--history-shell), calc(100% - 48px));
  margin-inline: auto;
}

.history-product-nav {
  position: sticky;
  top: 72px;
  z-index: 15;
  background: rgba(11, 15, 22, 0.88);
  border-bottom: 1px solid var(--history-line);
  backdrop-filter: blur(18px) saturate(150%);
}

.history-product-nav .history-shell {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.history-product-name {
  color: var(--history-ink);
  font-size: 16px;
  font-weight: 750;
}

.history-product-install {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 68px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 16px;
  border-radius: 999px;
  background: var(--history-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease-out, transform 100ms ease-out;
}

.history-product-install:hover { background: var(--history-primary-hover); }
.history-product-install:active { transform: scale(0.97); }

.history-hero {
  height: max(760px, calc(100svh - 124px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  overflow: hidden;
  padding: 56px 24px 0;
  text-align: center;
}

.history-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
}

.history-icon {
  width: 80px;
  height: 80px;
  display: block;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.44);
}

.history-release {
  margin-bottom: 12px;
  color: var(--history-muted);
  font-size: 13px;
  font-weight: 600;
}

.history-hero h1 {
  margin: 0;
  color: var(--history-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: clamp(58px, 6.2vw, 82px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.history-hero p {
  margin: 18px 0 0;
  color: var(--history-muted);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 450;
}

.history-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: background 180ms ease-out, transform 100ms ease-out;
}

.history-action.primary {
  margin-top: 28px;
  background: var(--history-primary);
  color: #ffffff;
}

.history-action.primary:hover { background: var(--history-primary-hover); }
.history-action:active { transform: scale(0.97); }
.history-action:focus-visible,
.history-product-install:focus-visible,
.history-product-name:focus-visible {
  outline: 4px solid var(--history-focus);
  outline-offset: 3px;
}

.history-device {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 42px 42px 0 0;
  background: var(--history-surface-raised);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  padding: 9px 9px 0;
}

.history-device img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 33px 33px 0 0;
}

.history-hero-device {
  width: min(420px, 78vw);
  align-self: start;
  margin-top: 48px;
}

.history-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
  gap: 28px;
  padding-block: 112px 128px;
}

.history-showcase-card {
  min-height: 700px;
  display: grid;
  align-content: start;
  justify-items: center;
  overflow: hidden;
  padding: 48px 48px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background: var(--history-surface);
}

.history-showcase-card h2 {
  width: 100%;
  margin: 0 0 42px;
  color: var(--history-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: clamp(38px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.history-showcase-card .history-device {
  width: min(340px, 100%);
}

.history-showcase-answer {
  min-height: 620px;
  margin-top: 80px;
}

.history-showcase-answer .history-device {
  width: min(300px, 100%);
}

.history-install {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 64px 72px;
  border-top: 1px solid var(--history-line);
}

.history-install-product {
  display: flex;
  align-items: center;
  gap: 22px;
}

.history-install-product > img {
  width: 76px;
  height: 76px;
  display: block;
  border-radius: 17px;
}

.history-install-product > div {
  display: grid;
  justify-items: start;
}

.history-install strong {
  color: var(--history-ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 650;
}

.history-install-product .history-action { margin-top: 14px; }

.history-install > img {
  width: 132px;
  height: 132px;
  display: block;
  padding: 8px;
  border-radius: 16px;
  background: #ffffff;
}

.history-launch-page .exam-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--history-line);
  color: rgba(245, 245, 247, 0.46);
  font-size: 12px;
}

.history-launch-page .exam-footer a {
  color: var(--history-muted);
  font-size: 14px;
  font-weight: 650;
}

@media (max-width: 860px) {
  .history-product-nav { top: 102px; }
  .history-product-nav .history-shell { width: min(var(--history-shell), calc(100% - 32px)); }
}

@media (max-width: 640px) {
  .history-shell { width: min(var(--history-shell), calc(100% - 32px)); }
  .history-product-name { font-size: 15px; }
  .history-product-install { min-height: 28px; padding-inline: 14px; }
  .history-hero {
    height: max(690px, calc(100svh - 154px));
    padding: 44px 16px 0;
  }
  .history-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 14px;
  }
  .history-release { margin-bottom: 10px; font-size: 12px; }
  .history-hero h1 { font-size: 42px; }
  .history-hero p { margin-top: 14px; font-size: 16px; }
  .history-action { min-height: 48px; font-size: 15px; }
  .history-action.primary { margin-top: 24px; }
  .history-hero-device {
    width: min(280px, 82vw);
    margin-top: 36px;
  }
  .history-device { border-radius: 30px 30px 0 0; padding: 7px 7px 0; }
  .history-device img { border-radius: 23px 23px 0 0; }
  .history-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 64px 80px;
  }
  .history-showcase-card,
  .history-showcase-answer {
    min-height: 520px;
    margin-top: 0;
    padding: 30px 24px 0;
    border-radius: 24px;
  }
  .history-showcase-card h2 {
    margin-bottom: 28px;
    font-size: 32px;
  }
  .history-showcase-card .history-device,
  .history-showcase-answer .history-device { width: min(250px, 100%); }
  .history-install {
    min-height: 230px;
    padding-block: 48px 56px;
  }
  .history-install-product {
    width: 100%;
    align-items: flex-start;
    gap: 16px;
  }
  .history-install-product > img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }
  .history-install-product > div { flex: 1; }
  .history-install strong { font-size: 25px; }
  .history-install-product .history-action { width: 100%; }
  .history-install > img { display: none; }
  .history-launch-page .exam-footer {
    min-height: 112px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-action,
  .history-product-install { transition: none; }
}
