/* =========================================================
   OzDDNS — project homepage
   Static, dependency-free, dark/light, EN/ZH
   ========================================================= */

:root {
  --bg: #06080b;
  --bg-elev: #0a0e14;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-2: #0f141c;
  --panel-solid: #0c1118;
  --text: #eef3f9;
  --text-dim: #aab6c6;
  --muted: #7d8a9c;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #4fe3c1;
  --accent-soft: rgba(79, 227, 193, 0.13);
  --accent-line: rgba(79, 227, 193, 0.28);
  --accent-2: #8fa9ff;
  --grad: linear-gradient(100deg, #4fe3c1 0%, #a5f8e4 45%, #8fa9ff 100%);
  --code-bg: #070a0f;
  --code-text: #cdd7e3;
  --code-muted: #6c7c90;
  --header-bg: rgba(6, 8, 11, 0.74);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.3);
  --grid-line: rgba(255, 255, 255, 0.032);
  --btn-primary-bg: #4fe3c1;
  --btn-primary-fg: #04130f;
  --danger: #ffb86b;
  --radius: 16px;
  --radius-sm: 11px;
  --wrap: 1180px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f6f8fa;
  --bg-elev: #eef2f6;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --panel-solid: #ffffff;
  --text: #0a1424;
  --text-dim: #3f4d60;
  --muted: #5c6b7e;
  --line: rgba(10, 20, 36, 0.09);
  --line-strong: rgba(10, 20, 36, 0.16);
  --accent: #087a64;
  --accent-soft: rgba(8, 122, 100, 0.1);
  --accent-line: rgba(8, 122, 100, 0.28);
  --accent-2: #3f63d9;
  --grad: linear-gradient(100deg, #087a64 0%, #0f9c81 45%, #3f63d9 100%);
  --header-bg: rgba(246, 248, 250, 0.82);
  --shadow: 0 24px 60px rgba(20, 40, 70, 0.1);
  --shadow-soft: 0 12px 32px rgba(20, 40, 70, 0.08);
  --grid-line: rgba(10, 20, 36, 0.045);
  --btn-primary-bg: #087a64;
  --btn-primary-fg: #ffffff;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(79, 227, 193, 0.1), transparent 62%),
    radial-gradient(760px 420px at 4% 2%, rgba(143, 169, 255, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Noto Sans SC", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html[data-theme="light"] body {
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(11, 143, 118, 0.09), transparent 62%),
    radial-gradient(760px 420px at 4% 2%, rgba(63, 99, 217, 0.06), transparent 60%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 15%, transparent 78%);
}

::selection {
  background: var(--accent);
  color: #04130f;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
  color: inherit;
}

code,
pre,
kbd {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--btn-primary-fg);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}

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

.wrap {
  width: min(var(--wrap), 100% - 2 * clamp(20px, 4.5vw, 48px));
  margin-inline: auto;
}

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

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 27px;
  height: 27px;
  color: var(--accent);
}

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

.brand-ver {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}

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

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

.nav + .header-actions {
  margin-left: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--panel);
}

.lang-btn {
  width: auto;
  min-width: 44px;
  padding: 0 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.theme-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] .icon-moon,
html[data-theme="light"] .icon-sun {
  display: none;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.menu-btn span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

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

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: 0 8px 24px rgba(79, 227, 193, 0.18);
}

html[data-theme="light"] .btn-primary {
  box-shadow: 0 8px 22px rgba(11, 143, 118, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(79, 227, 193, 0.26);
}

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

.btn-ghost:hover {
  background: var(--panel-2);
  border-color: var(--accent-line);
}

.btn-sm {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 12.5px;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(58px, 8vw, 104px) clamp(52px, 7vw, 92px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 227, 193, 0.35);
  }
  60%,
  100% {
    box-shadow: 0 0 0 9px rgba(79, 227, 193, 0);
  }
}

.hero h1 {
  font-size: clamp(2.45rem, 5.4vw, 4.15rem);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

html[lang="zh-Hans"] .hero h1 {
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  max-width: 54ch;
  margin-top: 22px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.25vw, 16.5px);
  line-height: 1.68;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-meta li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.hero-visual {
  min-width: 0;
  position: relative;
}

/* Terminal */

.term {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  color-scheme: dark;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  min-height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.term-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.term-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.term-dots i:first-child {
  background: rgba(255, 95, 87, 0.72);
}

.term-dots i:nth-child(2) {
  background: rgba(254, 188, 46, 0.68);
}

.term-dots i:nth-child(3) {
  background: rgba(40, 200, 64, 0.6);
}

.term-title {
  flex: 1;
  min-width: 0;
  color: var(--code-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: transparent;
  color: var(--code-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.copy svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy:hover {
  color: #dfe9f5;
  border-color: rgba(255, 255, 255, 0.24);
}

.copy.is-done {
  color: #4fe3c1;
  border-color: rgba(79, 227, 193, 0.4);
}

.term pre {
  margin: 0;
  padding: 16px 18px 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.term pre code {
  display: block;
  color: var(--code-text);
  font-size: 12px;
  line-height: 1.82;
  white-space: pre;
  tab-size: 2;
}

.c,
.c * {
  color: var(--code-muted);
}

/* Preview card */

.preview {
  position: relative;
  z-index: 2;
  width: calc(100% - 30px);
  margin: -16px 0 0 auto;
  padding: 15px 17px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel-solid);
  box-shadow: var(--shadow-soft);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-label {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.preview-rows {
  margin-top: 12px;
}

.preview-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.preview-row dt {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.preview-row dd {
  color: var(--text-dim);
  text-align: right;
  overflow-wrap: anywhere;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
}

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

.accent {
  color: var(--accent) !important;
}

.preview-foot {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(52px, 7.5vw, 92px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  column-gap: clamp(28px, 5vw, 64px);
  row-gap: 14px;
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 44px);
}

.section-tag {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-tag span:first-child {
  color: var(--accent);
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  font-weight: 660;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

html[lang="zh-Hans"] .section-head h2 {
  line-height: 1.24;
  letter-spacing: -0.018em;
}

.section-sub {
  max-width: 54ch;
  margin-bottom: 3px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.68;
}

/* Cards */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), transparent);
}

html[data-theme="light"] .card {
  background: var(--panel);
}

/* Steps */

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

.step {
  position: relative;
  padding: 24px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), transparent);
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.5;
}

.step-num {
  display: block;
  margin-bottom: 30px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.step h3,
.flow-step h3 {
  font-size: 15.5px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.step p,
.flow-step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* Features */

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

.feature {
  padding: 22px 22px 24px;
  transition: transform 0.22s ease, border-color 0.22s ease,
    background 0.22s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), transparent 70%);
}

html[data-theme="light"] .feature:hover {
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 14.5px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

/* Providers */

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 9px;
}

.provider {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.provider:hover {
  border-color: var(--line-strong);
}

.provider-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 600;
}

.provider-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
}

.provider code {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.providers-note {
  max-width: 76ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

/* Flow */

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

.flow-step {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.flow-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.flow-step code {
  color: var(--text-dim);
  font-size: 11.5px;
  white-space: nowrap;
}

/* CLI strip */

.cli-strip {
  margin-top: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--code-bg);
  overflow: hidden;
  color-scheme: dark;
}

.cli-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  color: var(--code-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cli-strip pre {
  margin: 0;
  padding: 14px 16px 10px;
  overflow-x: auto;
}

.cli-strip code {
  color: var(--code-text);
  font-size: 12px;
  line-height: 1.85;
}

.cli-strip-foot {
  padding: 0 16px 15px;
  color: var(--code-muted);
  font-size: 11.5px;
}

.cli-strip-foot code {
  color: var(--code-text);
  font-size: 11px;
}

/* ---------------------------------------------------------
   Deploy
   --------------------------------------------------------- */

.deploy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 14px;
  align-items: start;
}

.deploy-main {
  padding: 14px;
}

.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
}

.tab {
  padding: 6px 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

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

.tab.is-active {
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .tab.is-active {
  box-shadow: 0 1px 3px rgba(10, 20, 36, 0.12);
}

.tab-panel[hidden] {
  display: none;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.code-name {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tab-panel pre {
  margin: 0;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--code-bg);
  overflow-x: auto;
  color-scheme: dark;
}

.tab-panel pre code {
  color: var(--code-text);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre;
}

.code-note {
  margin-top: 11px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.code-note code {
  color: var(--text-dim);
  font-size: 11.5px;
}

.deploy-notes {
  padding: 22px 24px;
}

.deploy-notes h3 {
  font-size: 14.5px;
  font-weight: 620;
}

.deploy-notes ul {
  display: grid;
  gap: 15px;
  margin-top: 16px;
}

.deploy-notes li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.deploy-notes li:first-child {
  padding-top: 0;
  border-top: 0;
}

.deploy-notes strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  font-weight: 600;
}

.deploy-notes span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.62;
}

.deploy-notes code {
  color: var(--text-dim);
  font-size: 11.5px;
}

/* ---------------------------------------------------------
   Security
   --------------------------------------------------------- */

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

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

.security-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-list h3 {
  font-size: 13.5px;
  font-weight: 620;
}

.security-list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.62;
}

.security-list code {
  color: var(--text-dim);
  font-size: 11.5px;
}

.posture {
  padding: 22px 24px;
  background: linear-gradient(160deg, var(--accent-soft), transparent 55%);
}

html[data-theme="light"] .posture {
  background: linear-gradient(160deg, var(--accent-soft), var(--panel) 60%);
}

.posture-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.posture-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.posture dl {
  margin-top: 16px;
}

.posture dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.posture dt {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.posture dd {
  color: var(--text-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  text-align: right;
}

.posture-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Docs
   --------------------------------------------------------- */

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

.doc {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease,
    background 0.2s ease;
}

.doc:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  background: var(--panel-2);
}

.doc-kind {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc h3 {
  margin-top: 7px;
  font-size: 15px;
  font-weight: 620;
}

.doc p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.doc-arrow {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.doc:hover .doc-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ---------------------------------------------------------
   Static-site band
   --------------------------------------------------------- */

.site-band {
  padding-block: clamp(20px, 3vw, 36px) clamp(44px, 6vw, 72px);
}

.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(120deg, var(--accent-soft), transparent 52%),
    var(--panel);
}

.band-inner .section-tag {
  margin-bottom: 10px;
}

.band-inner h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 640;
  letter-spacing: -0.02em;
}

.band-inner p {
  max-width: 62ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.band-inner .btn {
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand p {
  max-width: 46ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 22px;
  padding-top: 4px;
}

.footer-links a {
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.16s ease;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.footer-bottom .license {
  max-width: 100ch;
  line-height: 1.6;
  opacity: 0.85;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .hero-visual {
    max-width: 620px;
    width: 100%;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }

  .section-sub {
    margin-bottom: 0;
  }

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

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

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

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

  .security-list {
    gap: 18px;
  }
}

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

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

  .nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 8px clamp(20px, 4.5vw, 48px) 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel-solid);
    box-shadow: var(--shadow);
  }

  .nav.open a {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .nav.open a:last-child {
    border-bottom: 0;
  }

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

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

  .step-num {
    margin-bottom: 16px;
  }

  .band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .header-github {
    display: none;
  }

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

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

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

  .flow-step {
    padding-top: 16px;
  }
}

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

@media (max-width: 560px) {
  .brand-ver {
    display: none;
  }

  .header-inner {
    min-height: 62px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 9.4vw, 2.6rem);
  }

  .lede {
    margin-top: 18px;
    font-size: 14.5px;
  }

  .hero-cta {
    gap: 8px;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero-meta {
    margin-top: 24px;
    padding-top: 18px;
  }

  .term pre {
    padding: 14px 14px 16px;
  }

  .term pre code {
    font-size: 11px;
  }

  .preview {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
  }

  .preview-row {
    font-size: 12px;
  }

  .feature {
    padding: 20px;
  }

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

  .provider {
    gap: 8px;
    padding: 10px 11px;
  }

  .provider-name {
    font-size: 12px;
  }

  .provider code {
    display: none;
  }

  .deploy-main {
    padding: 10px;
  }

  .tab {
    padding: 6px 10px;
    font-size: 11.5px;
  }

  .tab-panel pre code {
    font-size: 11px;
  }

  .cli-strip code {
    font-size: 11px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .footer-links {
    gap: 8px 18px;
  }
}

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

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

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
