:root {
  --bg: #F6F7F9;
  --panel: #FFFFFF;
  --panel-2: #EEF1F4;
  --border: #DCE1E7;
  --accent: #0A9396;
  --accent-dark: #046570;
  --text: #13161C;
  --muted: #5B6472;
  --success: #1E9E5A;
  --warn: #D98A0B;
  --error: #D2382E;
  --on-dark: #FFFFFF;
  --accent-04: rgba(10, 147, 150, .04);
  --accent-05: rgba(10, 147, 150, .05);
  --accent-06: rgba(10, 147, 150, .06);
  --accent-08: rgba(10, 147, 150, .08);
  --accent-10: rgba(10, 147, 150, .10);
  --accent-12: rgba(10, 147, 150, .12);
  --accent-14: rgba(10, 147, 150, .14);
  --accent-18: rgba(10, 147, 150, .18);
  --ink-04: rgba(19, 22, 28, .04);
  --ink-06: rgba(19, 22, 28, .06);
  --ink-10: rgba(19, 22, 28, .10);
  --ink-18: rgba(19, 22, 28, .18);
  --ink-64: rgba(19, 22, 28, .64);
  --ink-88: rgba(19, 22, 28, .88);
  --white-60: rgba(255, 255, 255, .60);
  --white-90: rgba(255, 255, 255, .90);
  --veil: rgba(19, 22, 28, .30);
  --dot-1: #D6DBE2;
  --dot-2: #C6CCD5;
  --dot-3: #B5BCC7;
  --flag-red: #C8102E;
  --flag-blue: #1F3A8A;
  --flag-navy: #3C3B6E;
  --flag-sun: #BC002D;
  --flag-white: #FFFFFF;
  --font-display: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --header-height: 72px;
  --gutter: 32px;
  --section-space: 88px;
  --content-width: 1280px;
  --reading-width: 760px;
  --focus-size: 2px;
  --shadow-panel: 0 1px 2px var(--ink-04), 0 28px 56px -20px var(--accent-14);
  --shadow-hover: 0 2px 4px var(--ink-06), 0 36px 64px -20px var(--accent-18);
  --shadow-window: inset 0 0 0 1px var(--white-90), 0 0 0 1px var(--border), 0 2px 6px var(--ink-06), 0 34px 68px -26px var(--accent-14);
  --noise-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%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

html,
body {
  margin: 0;
  min-width: 320px;
  padding: 0;
}

html.nav-open {
  overflow: hidden;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 6% -4%, var(--accent-06), transparent 62%),
    linear-gradient(135deg, var(--accent-05), transparent 58%),
    var(--bg);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image: var(--noise-image);
  content: "";
  opacity: .03;
  pointer-events: none;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

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

img {
  height: auto;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

p,
ul,
ol,
blockquote,
pre,
table {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.3em;
}

nav ul,
.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
}

code {
  overflow-wrap: anywhere;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--text);
  color: var(--on-dark);
  line-height: 1.65;
  -webkit-overflow-scrolling: touch;
}

hr {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: var(--border);
}

::selection {
  background: var(--accent-18);
  color: var(--text);
}

:where(a, button, summary, [role="tab"], input, select, textarea):focus-visible {
  outline: var(--focus-size) solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.reading-wrap {
  width: 100%;
  max-width: calc(var(--reading-width) + var(--gutter) + var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.section-tight {
  padding-top: 56px;
  padding-bottom: 56px;
}

.panel,
.card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: var(--shadow-panel), inset 0 0 0 1px var(--white-90);
}

.card {
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover), inset 0 0 0 1px var(--white-90);
}

.kicker,
.eyebrow {
  display: inline-flex;
  min-height: 28px;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.kicker-dot,
.eyebrow-dot,
.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-14);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.accent-text,
.hero-title .kw {
  color: var(--accent);
}

.no-break {
  white-space: nowrap;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(52px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.14;
}

h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.25;
}

h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.prose {
  min-width: 0;
  color: var(--text);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose h2 {
  margin-top: 64px;
}

.prose h3 {
  margin-top: 36px;
}

.prose a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent-18);
  text-underline-offset: 3px;
}

.btn {
  display: inline-flex;
  min-width: 24px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

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

.btn-primary {
  background: var(--text);
  color: var(--on-dark);
}

.btn-primary:hover {
  background: var(--ink-88);
}

.btn-secondary,
.btn-ghost {
  border-color: var(--border);
  background: var(--panel);
  color: var(--text);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: var(--muted);
}

.btn-accent {
  background: var(--accent);
  color: var(--on-dark);
}

.btn-danger {
  border-color: var(--error);
  background: var(--panel);
  color: var(--error);
}

.btn[aria-disabled="true"],
.btn:disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
}

.button-row,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.badge,
.tag,
.chip {
  display: inline-flex;
  min-height: 24px;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.badge-accent {
  background: var(--accent-10);
  color: var(--accent-dark);
}

.badge-success {
  background: var(--accent-08);
  color: var(--success);
}

.reveal {
  transition: opacity .58s ease, transform .58s ease;
}

.reveal.pending {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.shown {
  opacity: 1;
  transform: translateY(0);
}

#server-status {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 24px;
  overflow: hidden;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  border-bottom: 1px solid var(--ink-04);
  background: var(--white-90);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: 100%;
  max-width: var(--content-width);
  height: var(--header-height);
  align-items: center;
  gap: 24px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-brand {
  display: inline-flex;
  min-width: max-content;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.brand-subname {
  color: var(--muted);
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
}

.desktop-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 7px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}

.desktop-nav a:hover {
  background: var(--white-60);
  color: var(--text);
}

.desktop-nav a[aria-current="page"] {
  background: var(--panel-2);
  color: var(--text);
  font-weight: 650;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-login {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 7px 17px;
  background: var(--text);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 650;
}

.language-box {
  position: relative;
}

.language-toggle,
.menu-toggle {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.language-toggle svg,
.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.language-menu {
  position: absolute;
  z-index: 65;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: 172px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  background: var(--panel);
  box-shadow: var(--shadow-panel);
}

.language-box.open .language-menu {
  display: block;
}

.language-menu a {
  display: flex;
  min-height: 40px;
  align-items: center;
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  background: var(--panel-2);
  color: var(--text);
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  position: fixed;
  z-index: 61;
  top: var(--header-height);
  right: 0;
  left: 0;
  display: none;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px var(--gutter) 20px;
  background: var(--panel);
  box-shadow: var(--shadow-panel);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 600;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: var(--panel-2);
  color: var(--text);
}

.mobile-language-list {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.nav-veil {
  position: fixed;
  z-index: 49;
  inset: var(--header-height) 0 0;
  display: none;
  background: var(--veil);
}

.nav-veil.open {
  display: block;
}

.site-footer {
  overflow-x: clip;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) repeat(3, minmax(150px, 1fr));
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.footer-brand {
  min-width: 0;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
}

.footer-brand p {
  max-width: 330px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-column h2 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .04em;
}

.footer-links {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.footer-legal,
.footer-languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-tools {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-space: 72px;
  }

  h1 {
    font-size: clamp(34px, 9vw, 40px);
    line-height: 1.12;
  }

  h2 {
    font-size: clamp(28px, 7vw, 36px);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .language-box {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --header-height: 64px;
    --section-space: 64px;
  }

  .no-break {
    white-space: normal;
  }

  .wrap,
  .reading-wrap {
    padding-inline: var(--gutter);
  }

  .header-inner {
    height: var(--header-height);
    gap: 8px;
    padding-inline: var(--gutter);
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .site-brand {
    font-size: 17px;
  }

  .header-login {
    min-height: 36px;
    padding-inline: 13px;
  }

  .header-tools {
    gap: 4px;
    margin-left: auto;
  }

  .mobile-nav {
    padding-inline: var(--gutter);
  }

  .button-row,
  .cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .btn,
  .cta-row .btn {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .tilt,
  [class*="tilt-"] {
    transform: none;
  }

  [class*="halo"],
  [class*="glow"],
  [class*="watermark"] {
    max-width: 100%;
  }

  .card {
    padding: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
  }

  .reveal,
  .reveal.pending,
  .reveal.shown {
    opacity: 1;
    transform: none;
  }
}