/* ============================================================
   VPNLS · base.css
   Warm-paper ledger design system: tokens, reset, typography,
   header, footer, primitives, reveal system.
   ============================================================ */

:root {
  /* ---- paper layers ---- */
  --bg: #FBF3E3;
  --bg-panel: #FFFCF6;
  --bg-panel-2: #F4E7D2;
  --border: #E3D4BC;
  --border-strong: #D8C5A7;

  /* ---- accent (ink teal) ---- */
  --accent: #16544E;
  --accent-dark: #0C3A36;
  --accent-04: rgba(22, 84, 78, 0.04);
  --accent-06: rgba(22, 84, 78, 0.06);
  --accent-08: rgba(22, 84, 78, 0.08);
  --accent-10: rgba(22, 84, 78, 0.10);
  --accent-14: rgba(22, 84, 78, 0.14);
  --accent-18: rgba(22, 84, 78, 0.18);
  --accent-24: rgba(22, 84, 78, 0.24);

  /* ---- amber ---- */
  --amber: #E3A45B;
  --amber-dark: #C98235;
  --amber-soft: #F6E3C8;
  --amber-10: rgba(227, 164, 91, 0.10);
  --amber-18: rgba(227, 164, 91, 0.18);
  --amber-24: rgba(227, 164, 91, 0.24);

  /* ---- text ---- */
  --text: #2A211A;
  --text-muted: #6F6152;
  --text-soft: #8C7B68;
  --white: #FFFFFF;
  --highlight: rgba(255, 255, 255, 0.86);
  --veil: rgba(42, 33, 26, 0.44);

  /* ---- semantic ---- */
  --success: #2F7D4F;
  --warn: #B4761F;
  --error: #B23B32;

  /* ---- fonts ---- */
  --font-display: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* ---- radii ---- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* ---- layout ---- */
  --wrap-content: 1240px;
  --gutter: 32px;
  --header-h: 72px;

  /* ---- shadows ---- */
  --shadow-card: 0 8px 20px -14px var(--accent-18), inset 0 1px 0 var(--highlight);
  --shadow-panel: 0 18px 40px -26px var(--accent-18), inset 0 1px 0 var(--highlight);
  --shadow-float: 0 18px 36px -20px var(--accent-24), 0 0 0 1px var(--border), inset 0 1px 0 var(--highlight);
  --shadow-window: inset 0 1px 0 var(--highlight), 0 4px 0 var(--bg-panel-2), 0 5px 0 var(--border), 0 30px 70px -26px var(--accent-14), 0 8px 18px -12px var(--accent-10);
  --shadow-cta: 0 12px 24px -12px var(--accent-24), inset 0 1px 0 var(--highlight);
  --shadow-lift: 0 26px 50px -30px var(--accent-24), 0 0 0 1px var(--border);
  --shadow-inset: inset 0 1px 0 var(--highlight);
  --ring: 0 0 0 3px var(--accent-14);

  /* ---- gradients ---- */
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  --gradient-amber: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  --gradient-panel: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-2) 100%);
  --gradient-paper: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg) 42%, var(--bg-panel-2) 100%);
  --gradient-rule: linear-gradient(90deg, var(--accent) 0%, var(--amber) 100%);

  /* ---- transitions ---- */
  --transition-base: 180ms ease;
  --transition-slow: 320ms cubic-bezier(0.22, 0.61, 0.36, 1);

  /* ---- hero surface ---- */
  --grain: rgba(42, 33, 26, 0.035);
  --hero-glow: rgba(255, 252, 246, 0.72);
  --stripe-1: #F7E9D4;
  --stripe-2: #FAF0DF;
  --stripe-3: #F2E0C6;
  --stripe-4: #F8ECD9;
  --stripe-5: #F3E4CC;
  --stripe-6: #F9EEDB;
  --stripe-7: #E8F0EA;
  --track: #EFE2CC;
  --mask-solid: #000000;

  /* ---- flag palette (inline SVG only) ---- */
  --flag-red: #C84036;
  --flag-blue: #233E6B;
  --flag-white: #FFFFFF;
  --flag-green: #2F7D4F;
  --flag-yellow: #E9C46A;
  --flag-black: #2A211A;
  --flag-cream: #FBF3E3;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  background-color: var(--bg);
  background-image:
    radial-gradient(var(--grain) 0.55px, transparent 0.65px),
    var(--gradient-paper);
  background-size: 4px 4px, 100% 100%;
  background-repeat: repeat, no-repeat;
  background-position: 0 0, 0 0;
  -webkit-font-smoothing: antialiased;
}

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

img,
svg,
video {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

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

:where(a, button, summary, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 16px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ------------------------------------------------------------
   layout primitives
   ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap-content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec {
  padding-top: 64px;
  padding-bottom: 64px;
}

.sec--tight {
  padding-top: 40px;
  padding-bottom: 40px;
}

.clip-x {
  overflow-x: clip;
  max-width: 100%;
}

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

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

.grid-2 > *,
.grid-3 > * {
  min-width: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ------------------------------------------------------------
   typography
   ------------------------------------------------------------ */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

h3 {
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  max-width: 72ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
}

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

.soft {
  color: var(--text-soft);
}

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

strong {
  color: var(--text);
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--bg-panel-2);
  overflow-wrap: anywhere;
  word-break: break-word;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel-2);
  font-size: 12.5px;
  line-height: 1.6;
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
  overflow-wrap: normal;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  background: var(--gradient-rule);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-card);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-08);
}

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

.section-head {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.section-head p {
  margin-top: 10px;
}

/* ------------------------------------------------------------
   buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.btn-primary {
  border: 1px solid var(--accent-dark);
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}

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

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

.btn-secondary {
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  border: 1px solid var(--accent-18);
  background: var(--accent-06);
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-10);
}

/* ------------------------------------------------------------
   badges / tags / fact band
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge--accent {
  border-color: var(--accent-18);
  background: var(--accent-08);
  color: var(--accent);
  font-weight: 600;
}

.badge--amber {
  border-color: var(--amber-24);
  background: var(--amber-10);
  color: var(--amber-dark);
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--bg-panel-2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag--iepl {
  border-color: var(--accent-18);
  background: var(--accent-08);
  color: var(--accent);
}

.tag--relay {
  border-color: var(--amber-24);
  background: var(--amber-10);
  color: var(--amber-dark);
}

.tag--direct {
  border-color: var(--border);
  background: var(--bg-panel-2);
  color: var(--text-muted);
}

.fact-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.fact-band b {
  color: var(--text);
  font-weight: 600;
}

/* ------------------------------------------------------------
   cards / panels
   ------------------------------------------------------------ */
.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
}

.panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--gradient-panel);
  box-shadow: var(--shadow-panel);
}

.tilt-sm {
  transform: rotate(-0.45deg);
}

.tilt-xs {
  transform: rotate(0.3deg);
}

/* ------------------------------------------------------------
   header
   ------------------------------------------------------------ */
.site-header {
  position: relative;
  z-index: 6;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  width: 100%;
  max-width: calc(var(--wrap-content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.brand-cn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-list > li {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-base);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.is-active {
  color: var(--text);
  font-weight: 600;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: var(--r-pill) var(--r-pill) 0 0;
  background: var(--accent);
}

.header-tools,
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.lang-wrap {
  position: relative;
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  transition: background-color var(--transition-base), color var(--transition-base);
}

.login-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.lang-switch-wrap {
  position: relative;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.lang-switch:hover {
  border-color: var(--border);
  color: var(--text);
}

.lang-switch svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 158px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  box-shadow: var(--shadow-float);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-muted);
}

.lang-menu a:hover {
  background: var(--accent-06);
  color: var(--text);
}

.lang-menu a[aria-current="true"] {
  color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  z-index: 50;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-float);
}

.nav-drawer.is-open,
.site-header.is-open .nav-drawer {
  display: block;
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-title {
  margin: 10px 0 4px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.drawer-langs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-drawer a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text);
}

.nav-drawer a:hover {
  background: var(--accent-06);
}

.nav-drawer a.is-active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-06);
}

.drawer-sub {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.drawer-label {
  margin: 0 0 4px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.drawer-lang-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--veil);
}

.nav-veil[hidden] {
  display: none;
}

html.nav-open {
  overflow: hidden;
}

/* ------------------------------------------------------------
   footer
   ------------------------------------------------------------ */
.site-footer {
  margin-top: 48px;
  padding-top: 44px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.9fr;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.footer-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-about {
  max-width: 36ch;
  margin: 10px 0 12px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.footer-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

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

.footer-keywords ul,
ul.footer-keywords {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

ul.footer-keywords a {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding-top: 16px;
  padding-bottom: 22px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

/* ------------------------------------------------------------
   reveal system (visible by default; pending is the hidden state)
   ------------------------------------------------------------ */
.reveal {
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* ------------------------------------------------------------
   scroll-line component guard
   ------------------------------------------------------------ */
#server-status {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px;
  overflow: hidden;
}

#server-status > * {
  max-width: 100%;
}

/* ------------------------------------------------------------
   responsive
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }

  .nav-toggle,
  .hamburger {
    display: inline-flex;
  }

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

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

@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

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

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
    --header-h: 64px;
  }

  body {
    font-size: 14.5px;
  }

  .sec {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .sec--tight {
    padding-top: 28px;
    padding-bottom: 28px;
  }

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

  .tilt-sm,
  .tilt-xs {
    transform: none;
  }

  .btn {
    min-height: 44px;
    padding: 0 18px;
    font-size: 13.5px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .lang-switch-wrap,
  .lang-wrap {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

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

  .brand-name {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .login-btn {
    padding: 0 12px;
    font-size: 12.5px;
  }
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* lh:local-harden:start */
:is(h1,h2,h3,h4){text-wrap:balance}
:is(p,li,dd,dt,figcaption,blockquote,td,th){text-wrap:pretty}
html[lang|="ko"] body{word-break:keep-all;overflow-wrap:break-word}
html[lang|="ja"] :is(h1,h2,h3,h4){word-break:auto-phrase}
.lh-tscroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
@media (max-width:640px){.lh-tscroll :is(th,td){min-width:5.5em}}
@supports (animation-timeline:scroll()){
  .float-cta{animation:lh-fab-in linear both;animation-timeline:scroll(root);animation-range:0 70vh}
}
@keyframes lh-fab-in{0%,45%{opacity:0;visibility:hidden}100%{opacity:1;visibility:visible}}
/* lh:local-harden:end */
