@font-face {
  font-family: "Pretendard Variable";
  src: url("/fonts/pretendard-1.3.9/PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #181a34;
  --muted: #555b73;
  --primary: #4c50bc;
  --primary-hover: #3c3fa6;
  --line: #e1e3ef;
  --paper: #fff;
  --tint: #f6f6ff;
  --shell: 1190px;
  --font-fallback: "Segoe UI Variable", "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  font-family: "Pretendard Variable", var(--font-fallback);
  font-size: 100%;
}

html:lang(ja) { --font-fallback: "Yu Gothic UI", "Hiragino Sans", "Noto Sans CJK JP", sans-serif; }
html:lang(zh) { --font-fallback: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid #5659cf; outline-offset: 4px; }

.shell { width: min(var(--shell), calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 80px; }
.section-heading { margin-bottom: 29px; }
.section-heading h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.section-heading > p:not(.eyebrow) { color: var(--muted); margin-top: 12px; }
.eyebrow { font-size: .82rem; font-weight: 750; color: var(--primary); letter-spacing: .09em; margin-bottom: 10px; }
.accent { color: var(--primary); }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 8; top: 10px; left: 12px; padding: 10px 16px; border-radius: 8px; background: var(--paper); }

.site-header { position: sticky; z-index: 4; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; color: var(--ink); font-size: 1.23rem; font-weight: 800; letter-spacing: -.045em; }
.brand img { flex: none; }
.navigation { justify-self: center; display: flex; align-items: center; gap: clamp(10px, 1.8vw, 24px); }
.navigation a { padding: 12px 2px; color: var(--muted); font-size: .91rem; font-weight: 600; white-space: nowrap; }
.navigation a:hover, .navigation a[aria-current] { color: var(--primary); }
.navigation a[aria-current] { box-shadow: inset 0 -2px var(--primary); }
.language { position: relative; display: flex; align-items: center; }
.language::after { content: ""; position: absolute; right: 12px; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); pointer-events: none; }
.language select { appearance: none; max-width: 177px; padding: 8px 25px 8px 34px; border: 1px solid var(--line); border-radius: 8px; background: #fafaff; font-size: .85rem; }
.globe { position: absolute; left: 11px; width: 15px; height: 15px; border: 1.4px solid var(--primary); border-radius: 50%; pointer-events: none; }
.globe::before { position: absolute; content: ""; inset: -1px 3px; border-inline: 1px solid var(--primary); border-radius: 50%; }
.globe::after { position: absolute; content: ""; inset: 5.5px 0 auto; border-top: 1px solid var(--primary); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 90% 25%, #e7e7ff 0, transparent 65%), #f8f8ff; border-bottom: 1px solid #ececfa; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 43%; background-image: radial-gradient(#b4b6e3 1px, transparent 1px); background-size: 19px 19px; opacity: .5; mask-image: linear-gradient(to right, transparent, black 48%); }
.hero-layout { display: grid; grid-template-columns: minmax(325px, .84fr) minmax(0, 1.34fr); gap: clamp(27px, 4vw, 56px); align-items: center; padding-block: clamp(58px, 7.2vw, 99px); }
.hero-platform { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.windows-icon { width: 13px; height: 13px; background: linear-gradient(to right, transparent 45%, #f8f8ff 45%, #f8f8ff 55%, transparent 55%), linear-gradient(to bottom, currentColor 45%, transparent 45%, transparent 55%, currentColor 55%); }
.hero h1 { font-size: clamp(2.6rem, 4.2vw, 4.35rem); font-weight: 800; line-height: 1.07; letter-spacing: -.06em; overflow-wrap: anywhere; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--primary); }
.hero-description { max-width: 37ch; margin-top: 20px; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.17rem); }
:lang(ko) .hero-copy, :lang(ko) .feature p, :lang(ko) .support-card p, :lang(ko) .section-heading p { word-break: keep-all; overflow-wrap: anywhere; }
.hero-integration { display: block; margin-top: 12px; font-size: .93rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 15px; min-height: 45px; border: 1px solid transparent; border-radius: 9px; text-align: center; font-size: .93rem; font-weight: 700; line-height: 1.25; transition: background .16s, border-color .16s; }
.primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.outline { color: #3e439f; background: var(--paper); border-color: #d8daf0; }
.outline:hover { background: #f4f4ff; border-color: #a9abd9; }
.download-icon { flex: none; width: 15px; height: 14px; border: solid currentColor; border-width: 0 1.5px 1.5px; border-radius: 0 0 2px 2px; clip-path: polygon(0 50%, 23% 50%, 23% 0, 77% 0, 77% 50%, 100% 50%, 100% 100%, 0 100%); position: relative; }
.download-icon::before { position: absolute; content: ""; width: 1.5px; height: 8px; left: 5px; top: 0; background: currentColor; }
.download-icon::after { position: absolute; content: ""; width: 6px; height: 6px; left: 2.75px; top: 3px; transform: rotate(45deg); border: solid currentColor; border-width: 0 1.5px 1.5px 0; }
.version-line { margin-top: 15px; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.version-line span { margin-inline: 3px; }
.window-frame { background: #fff; border: 1px solid #cfd2ed; border-radius: 13px; overflow: hidden; box-shadow: 0 24px 48px #32368b25, 0 2px 7px #31346e10; }
.window-title { padding: 7px 12px; display: flex; gap: 6px; align-items: center; border-bottom: 1px solid #e8e9f1; color: #404663; font-size: .76rem; font-weight: 650; }
.window-controls { margin-left: auto; color: #626884; }
.hero-image { width: 100%; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { border: 1px solid var(--line); border-radius: 15px; padding: 24px; }
.feature h3, .download-row h3, .support-card h3, .release-title h3 { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.015em; }
.feature p, .download-row p, .support-card > p:first-of-type { margin-top: 7px; color: var(--muted); }
.feature-icon { position: relative; display: block; width: 42px; height: 42px; margin-bottom: 15px; border-radius: 10px; background: #eeefff; color: var(--primary); }
.feature-icon::before, .feature-icon::after { content: ""; position: absolute; }
.calendar-icon::before { inset: 12px 10px 10px; border: 2px solid currentColor; border-radius: 3px; }
.calendar-icon::after { inset: 18px 12px 0; border-top: 2px solid currentColor; }
.projects-icon::before { inset: 15px 10px 11px; border: 2px solid currentColor; border-radius: 2px; }
.projects-icon::after { height: 6px; width: 9px; left: 10px; top: 11px; border: 2px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.code-icon::before, .code-icon::after { top: 16px; width: 9px; height: 9px; transform: rotate(45deg); border: solid currentColor; }
.code-icon::before { left: 11px; border-width: 0 0 2px 2px; }
.code-icon::after { right: 11px; border-width: 2px 2px 0 0; }
.integration-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 12px 25px; margin-top: 16px; padding: 20px 24px; border: 1px solid #e0e1f3; border-radius: 15px; background: var(--tint); }
.integration-detail h3 { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.015em; }
.integration-detail p { margin-top: 6px; color: var(--muted); }
.integration-providers { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-end; gap: 7px; padding: 0; margin: 0; list-style: none; }
.integration-providers li { display: flex; flex-direction: column; justify-content: center; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.integration-providers strong { font-size: .89rem; }
.integration-providers span { color: var(--muted); font-size: .81rem; }

.download-section, .gallery-section { background: var(--tint); border-block: 1px solid #efeffa; }
.download-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.download-options { grid-column: 1; grid-row: 1; display: grid; gap: 9px; }
.download-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 15px 19px; }
.download-row p { font-size: .91rem; }
.download-row .button { flex: none; }
.support-card { grid-column: 2; grid-row: 1; background: #e9e9fd; border: 1px solid #dcdcf6; border-radius: 13px; padding: 20px 22px 12px; }
.support-icon { display: inline-grid; place-items: center; margin-bottom: 10px; width: 34px; height: 34px; border: 1px solid #d4d6f4; background: #fafafe; color: var(--primary); border-radius: 8px; font-size: 1.48rem; font-weight: 700; line-height: 1; }
.account-label { font-size: .9rem; margin-top: 16px; color: #42476d; }
.account-row { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 3px; }
#account-number { font-size: clamp(1.06rem, 2.1vw, 1.45rem); font-weight: 780; user-select: all; font-variant-numeric: tabular-nums; }
.small-button { background: var(--paper); border: 1px solid #cfd2eb; border-radius: 7px; padding: 6px 11px; color: var(--primary); font-weight: 700; font-size: .86rem; }
.small-button:hover { background: #f8f8ff; }
.copy-status { min-height: 1.25rem; font-size: .86rem; color: #383d88; margin-top: 4px; }
.text-link { color: #4247aa; text-underline-offset: 3px; text-decoration: underline; font-weight: 680; width: fit-content; }
.text-link:hover { color: #2b2d83; }
.checksum { margin: 5px 0 0 1px; font-size: .92rem; }

.release-card { border: 1px solid var(--line); border-left: 4px solid #6b6dd0; border-radius: 14px; padding: 20px 24px; }
.release-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.release-title time { font-size: .95rem; color: var(--muted); }
.release-card ul { padding-left: 20px; margin: 11px 0 15px; color: var(--muted); }
.release-card li + li { margin-top: 2px; }
.gallery { display: grid; gap: 15px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot { position: relative; display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.shot:hover { border-color: #9fa2d5; }
.shot img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--line); }
.shot > span { display: inline-block; padding: 12px 28px 12px 14px; font-weight: 700; }
.shot > .expand-icon { position: absolute; right: 0; bottom: 0; padding: 12px; color: var(--primary); }

.contact-layout { display: grid; grid-template-columns: minmax(260px, .82fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); }
.contact-layout .section-heading { margin-bottom: 0; }
.contact-layout .text-link { display: block; margin-top: 15px; }
.telegram-link { display: inline-block; margin-top: 13px; color: var(--primary); font-weight: 700; }
.telegram-link:hover { text-decoration: underline; }
.telegram-link span { color: var(--muted); font-weight: 500; }
.contact-form { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fafaff; }
.contact-form label { font-size: .91rem; font-weight: 700; margin-bottom: 5px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #d6d9e9; border-radius: 8px; background: var(--paper); min-height: 42px; padding: 8px 11px; margin-bottom: 13px; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline-offset: 1px; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.form-footer button:disabled { opacity: .65; cursor: wait; }
.form-note, #contact-status { color: var(--muted); font-size: .9rem; }
.form-note { margin-top: 8px; }
#contact-status[data-error] { color: #a13037; }

.site-footer { border-top: 1px solid var(--line); background: #f7f7fc; }
.footer-inner { display: flex; align-items: center; min-height: 85px; gap: 14px 20px; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); font-size: .92rem; }
.footer-inner > a:last-child { margin-left: auto; color: #3d4298; font-size: .92rem; font-weight: 650; }
.footer-inner > a:last-child:hover { text-decoration: underline; }
.image-dialog { width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); overflow: auto; padding: 0; border-radius: 13px; color: var(--ink); background: var(--paper); }
.image-dialog::backdrop { background: #171a36d9; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 1.1rem; }
.dialog-close { border: 0; border-radius: 8px; min-width: 42px; min-height: 42px; font-size: 1.55rem; background: #f2f2ff; }
.image-dialog img { max-height: calc(100dvh - 106px); margin: auto; object-fit: contain; }

@media (max-width: 1040px) {
  html { scroll-padding-top: 122px; }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 14px; min-height: 0; padding-top: 8px; }
  .brand, .language { margin-block: 4px; }
  .navigation { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: center; gap: clamp(11px, 3vw, 26px); }
  .language { grid-column: 2; grid-row: 1; }
}

@media (max-width: 800px) {
  .shell { width: min(var(--shell), calc(100% - 38px)); }
  .section { padding-block: 48px; }
  .hero-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 44px; }
  .hero h1 { font-size: clamp(2.4rem, 7.6vw, 4rem); }
  .hero-description { margin-top: 14px; }
  .hero-actions { margin-top: 19px; }
  .hero-figure { max-width: 650px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feature { padding: 17px; }
  .integration-detail { grid-template-columns: minmax(0, 1fr); padding: 17px; }
  .integration-providers { justify-content: flex-start; }
  .download-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .support-card, .download-options { grid-area: auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 530px) {
  html { scroll-padding-top: 145px; }
  .header-inner { padding-top: 4px; }
  .navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px 8px; text-align: center; padding-bottom: 4px; }
  .navigation a { padding: 5px 1px; font-size: .83rem; white-space: normal; overflow-wrap: anywhere; }
  .brand { font-size: 1.13rem; }
  .language select { max-width: 155px; }
  .section { padding-block: 42px; }
  .section-heading { margin-bottom: 19px; }
  .features, .gallery { grid-template-columns: minmax(0, 1fr); }
  .download-row { gap: 10px; padding: 13px; }
  .download-row .button { padding-inline: 9px; font-size: .82rem; }
  .download-row .button .download-icon { display: none; }
  .support-card, .contact-form { padding-inline: 15px; }
  .footer-inner { padding-block: 12px; }
  .footer-inner p { flex: 1; }
  .footer-inner > a:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
