/* 189DNS marketing r9 — dark + gold, tighter continuous rhythm
 *
 * Breakpoints (min-width, mobile-first):
 *   base     : phone — 1-col; stacked CTAs; nav fold; console under copy
 *   640px    : tablet portrait — features 2×2; plans 1-col then 2+1; CTAs row
 *   768px    : desktop nav; footer 2-col
 *   900px    : plans 3-col; steps 3-col + connectors
 *   1100px   : features 4-col; hero 2-col; CTA 2-col
 *
 * Content shell: 1160–1180px max-width across sections.
 */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --border: rgba(242, 201, 76, 0.10);
  --border-soft: rgba(242, 201, 76, 0.12);
  --border-strong: rgba(242, 201, 76, 0.42);
  --gold: #f2c94c;
  --gold-bright: #f6d56a;
  --text: #ffffff;
  --muted: #d0ccc0;
  --muted-dim: #9a968a;
  --ok: #7dcea0;
  --danger: #c45c5c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 32px rgba(242, 201, 76, 0.06);
  --header-h: 3.75rem;
  --tap: 2.75rem;
  --shell: 72.5rem; /* 1160px — unified across sections */
  --gutter: 1.25rem;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --fs-body: 1.0625rem;
  --lh-body: 1.7;
  /* Vertical rhythm — mobile-first; tighten on small screens */
  --section-pad-y: clamp(2rem, 7vw, 2.75rem); /* 32–44 */
  --section-head-gap: clamp(1rem, 3vw, 1.25rem); /* title→content 16–20 */
  --title-sub-gap: clamp(0.5rem, 1.5vw, 0.75rem); /* title↔subtitle 8–12 */
  --card-gap: clamp(0.75rem, 2.5vw, 1rem); /* 12–16 */
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
    ellipse 80% 45% at 50% -12%,
    rgba(242, 201, 76, 0.09),
    transparent 58%
  );
  overflow-x: clip;
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--gold-bright);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: calc(1rem + var(--safe-l));
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: #111;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: calc(0.75rem + var(--safe-t));
}

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(242, 201, 76, 0.12);
  padding-top: var(--safe-t);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: var(--tap);
  min-width: 0;
  flex-shrink: 1;
}

.logo:hover {
  color: var(--gold-bright);
}

.logo-img {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(242, 201, 76, 0.22);
  background: #000;
}

.logo-img-sm {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 6px;
}

.logo-text-stack {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
  line-height: 1.15;
  min-width: 0;
}

.logo-text {
  font-size: 1.05rem;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
  white-space: nowrap;
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
}

.nav-desktop a {
  color: var(--muted);
  font-size: 1.02rem;
  padding: 0.5rem 0;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

.nav-desktop a:hover {
  color: var(--gold-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.header-actions .btn-primary {
  display: none;
}

.header-actions .btn-ghost {
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
}

.nav-toggle {
  width: var(--tap);
  height: var(--tap);
  display: inline-grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

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

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

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

.mobile-nav {
  border-top: 1px solid rgba(242, 201, 76, 0.12);
  background: #0a0a0a;
}

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

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem var(--gutter) calc(1.25rem + var(--safe-b));
  width: min(100%, var(--shell));
  margin-inline: auto;
}

.mobile-nav a:not(.btn) {
  color: var(--text);
  padding: 0.95rem 0.35rem;
  font-size: 1.1rem;
  min-height: var(--tap);
  border-bottom: 1px solid rgba(242, 201, 76, 0.08);
}

.mobile-nav .btn {
  margin-top: 0.75rem;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--tap);
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.985);
}

.btn-sm {
  min-height: var(--tap);
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

.btn-lg {
  min-height: 3.2rem;
  padding: 0.9rem 1.55rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--gold);
  color: #14110a;
  box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.25);
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: #14110a;
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: rgba(242, 201, 76, 0.08);
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--gold-bright);
}

/* ========== Hero ========== */
.hero {
  padding-top: var(--section-pad-y);
  padding-bottom: clamp(1.15rem, 3vw, 1.75rem); /* cut bottom void → features */
  padding-inline: 0;
}

.hero-layout {
  display: grid;
  gap: 1.75rem;
}

.hero-copy {
  max-width: 38rem;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-accent {
  color: var(--gold);
  position: relative;
}

.hero-accent::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 2px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-lead {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 36rem;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 650;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 1.55rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-dim);
  font-size: 0.95rem;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
  flex-shrink: 0;
}

/* Console preview — always shown (under copy on mobile) */
.hero-aside {
  display: block;
  min-width: 0;
}

.console-preview {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: #0d0d0d;
  box-shadow: var(--shadow-glow), 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.console-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid rgba(242, 201, 76, 0.1);
  background: #101010;
}

.console-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(242, 201, 76, 0.35);
}

.console-dot:nth-child(1) {
  background: rgba(242, 201, 76, 0.55);
}

.console-title {
  margin-left: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
  text-transform: uppercase;
}

.console-body {
  padding: 0.95rem 0.95rem 1.05rem;
}

.console-domain-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.console-domain {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
}

.console-domain-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.console-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
}

.console-pill-ok {
  color: #0d1a12;
  background: var(--ok);
}

.console-pill-muted {
  color: var(--gold);
  background: rgba(242, 201, 76, 0.12);
  border: 1px solid rgba(242, 201, 76, 0.28);
}

.console-table-head {
  display: grid;
  grid-template-columns: 3.2rem 4.2rem 1fr 3.4rem;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.console-records {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.console-records li {
  display: grid;
  grid-template-columns: 3.2rem 4.2rem 1fr 3.4rem;
  gap: 0.4rem;
  align-items: center;
  padding: 0.55rem 0.55rem;
  border: 1px solid rgba(242, 201, 76, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.32);
  font-size: 0.88rem;
  min-width: 0;
}

.cr-host {
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cr-type {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.cr-val {
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-ttl {
  color: var(--muted-dim);
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 0.8rem;
}

/* ========== Sections ========== */
.section {
  padding-block: var(--section-pad-y);
  padding-inline: 0;
}

/* Hero → Features: no stacked 56–72 voids */
#features {
  padding-top: clamp(1.15rem, 3vw, 1.75rem);
}

/* How → CTA: tighten below tip / above CTA */
#howto {
  padding-bottom: clamp(1.15rem, 3vw, 1.85rem);
}

.cta-section {
  padding-top: clamp(1.15rem, 3vw, 1.85rem);
  padding-bottom: clamp(1.65rem, 3.5vw, 2.5rem); /* mild sep → footer */
}

.section-alt {
  background: linear-gradient(
    180deg,
    rgba(242, 201, 76, 0.03),
    transparent 40%,
    rgba(242, 201, 76, 0.03)
  );
  border-block: 1px solid rgba(242, 201, 76, 0.08);
}

.section-head {
  max-width: 38rem;
  margin-bottom: var(--section-head-gap);
}

.section-head h2 {
  margin: var(--title-sub-gap) 0 0;
  font-size: clamp(1.65rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.section-desc {
  margin: var(--title-sub-gap) 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Features */
.feature-grid {
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: 1fr;
  align-items: stretch;
}

.feature-card {
  padding: 1.55rem 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-color: var(--border);
  box-shadow: none;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 28px rgba(242, 201, 76, 0.12);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  flex: 1;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  color: var(--gold);
  border: 1px solid rgba(242, 201, 76, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(242, 201, 76, 0.08);
  flex-shrink: 0;
}

.icon-box svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Plans */
.plan-grid {
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: 1fr;
}

.plan-card {
  position: relative;
  padding: 1.55rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  border-color: var(--border);
  box-shadow: none;
}

.plan-featured {
  border-color: var(--border-strong);
  background: var(--bg-card);
  box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.08);
  order: -1;
}

.plan-featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.85;
}

.plan-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  margin: 0;
  padding: 0.22rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #14110a;
  background: var(--gold);
  border-radius: 999px;
}

.plan-tier {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 0.5rem 0 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.plan-sum {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.plan-list {
  margin: 1.2rem 0 1.35rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan-list li {
  position: relative;
  padding: 0.48rem 0 0.48rem 1.2rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  border-top: 1px solid rgba(242, 201, 76, 0.08);
}

.plan-list li:first-child {
  border-top: 0;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--gold);
  opacity: 0.9;
}

.plan-card .btn {
  margin-top: auto;
}

/* Steps + subtle connectors */
.steps {
  display: grid;
  gap: var(--card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
  position: relative;
}

.step-card {
  padding: 1.45rem 1.3rem;
  border-color: var(--border);
  position: relative;
}

.step-num {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.step-card h3 {
  margin: 0.55rem 0 0.4rem;
  font-size: 1.18rem;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.ns-note {
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 1.1rem 1.25rem;
  border-color: var(--border);
}

.ns-note-label {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}

.ns-note p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* CTA */
.cta-panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.55rem 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(242, 201, 76, 0.1),
    rgba(20, 20, 20, 0.96) 42%,
    #111
  );
  box-shadow: var(--shadow-glow);
}

.cta-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.cta-copy h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.45rem, 4.5vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.cta-copy > p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.cta-copy .hero-cta {
  margin-top: 1.05rem;
}

.cta-copy .eyebrow {
  margin-bottom: 0;
}

.cta-status {
  min-width: 0;
}

.status-card {
  padding: 1.35rem 1.3rem 1.45rem;
  border: 1px solid rgba(242, 201, 76, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  height: 100%;
  min-height: 11rem;
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(242, 201, 76, 0.1);
}

.status-domain {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.status-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.98rem;
}

.status-k {
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-v {
  color: var(--text);
  font-weight: 650;
  flex-shrink: 0;
}

.status-ok {
  color: var(--ok);
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid rgba(242, 201, 76, 0.14);
  padding: clamp(1.5rem, 3.5vw, 2.15rem) 0 calc(clamp(1.5rem, 3.5vw, 2.15rem) + var(--safe-b));
  background: #080808;
}

.footer-inner {
  display: grid;
  gap: 1.35rem;
}

.footer-brand .logo-text {
  font-size: 1.1rem;
}

.footer-brand > p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.footer-brand strong {
  color: var(--text);
}

.footer-company {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
  word-break: break-word;
}

.footer-brand .footer-meta {
  margin: 0.85rem 0 0;
}

.footer-cols {
  display: grid;
  gap: 1.15rem 1.5rem;
  grid-template-columns: 1fr;
  align-content: start;
}

.footer-col-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

.footer-col .footer-links,
.footer-col .footer-legal {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.05rem;
}

.footer-links a {
  color: var(--muted);
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  padding: 0.1rem 0;
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

.footer-legal a {
  color: var(--gold);
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.1rem 0;
}

.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
  color: var(--gold-bright);
}

.footer-meta {
  margin: 0;
  color: var(--muted-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== Legal pages ========== */
.legal-main {
  padding: 1.85rem 0 3.25rem;
}

.legal-wrap {
  max-width: 44rem;
}

.legal-title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.65rem, 6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.legal-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.25rem 0 1.15rem;
}

.legal-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.legal-tabs a:hover {
  border-color: var(--border-strong);
  color: var(--gold-bright);
}

.legal-tabs a[aria-current="page"] {
  background: rgba(242, 201, 76, 0.12);
  border-color: var(--border-strong);
  color: var(--gold);
}

.legal-body {
  padding: 1.35rem 1.2rem 1.5rem;
}

.legal-body h2 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-body p {
  margin: 0 0 0.65rem;
}

.legal-body ul {
  margin: 0.35rem 0 0.85rem;
  padding-left: 1.2rem;
}

.legal-body li {
  margin: 0.35rem 0;
}

.legal-warn {
  margin: 0 0 1rem !important;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(196, 92, 92, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(196, 92, 92, 0.1);
  color: #e8c4c4 !important;
}

.legal-note {
  margin: 1.25rem 0 0;
  color: var(--muted-dim);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ========== 640px — tablet portrait ========== */
@media (min-width: 640px) {
  :root {
    --gutter: 1.5rem;
    --section-pad-y: clamp(2.75rem, 5.5vw, 3.5rem); /* 44–56 */
    --section-head-gap: clamp(1.15rem, 2.5vw, 1.5rem); /* ~18–24 */
    --card-gap: clamp(1rem, 2vw, 1.125rem); /* 16–18 */
  }

  .logo-img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .logo-sub {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-cta .btn {
    width: auto;
    min-width: 10.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plan-featured {
    grid-column: 1 / -1;
    order: -1;
  }

  .cta-panel {
    padding: 1.7rem 1.55rem;
  }

  .console-table-head,
  .console-records li {
    grid-template-columns: 3.6rem 4.5rem 1fr 3.6rem;
  }
}

/* ========== 768px — nav + dual CTAs; footer split ========== */
@media (min-width: 768px) {
  :root {
    --header-h: 4.15rem;
    --gutter: 1.5rem;
    --shell: 72.5rem; /* 1160px */
    --section-pad-y: clamp(3.5rem, 5vw, 4.5rem); /* 56–72 */
    --section-head-gap: clamp(1.25rem, 2vw, 1.75rem); /* 20–28 */
    --card-gap: clamp(1rem, 1.5vw, 1.25rem); /* 16–20 */
  }

  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions {
    gap: 0.55rem;
  }

  .header-actions .btn-primary {
    display: inline-flex;
  }

  .header-actions .btn-ghost,
  .header-actions .btn-sm {
    min-height: 2.6rem;
  }

  .mobile-nav {
    display: none !important;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
    gap: 2rem 2.5rem;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    justify-self: stretch;
    width: 100%;
    gap: 1.25rem 1.75rem;
  }

  .legal-body {
    padding: 1.75rem 1.75rem 2rem;
  }

  .legal-main {
    padding: 2rem 0 3.5rem;
  }
}

/* ========== 900px — tablet landscape / small laptop ========== */
@media (min-width: 900px) {
  :root {
    --shell: 73.75rem; /* 1180px */
  }

  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .plan-featured {
    order: 0;
    grid-column: auto;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    column-gap: var(--card-gap);
  }

  /* subtle connectors between steps */
  .steps .step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.85rem;
    right: -0.75rem;
    width: 1.25rem;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(242, 201, 76, 0.55),
      rgba(242, 201, 76, 0.12)
    );
    border-radius: 1px;
    transform: none;
    pointer-events: none;
  }

  .hero-lead {
    font-size: 1.12rem;
  }

  .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.26em;
  }

  .cta-panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 1fr);
    align-items: center;
    gap: 1.75rem;
    padding: 1.85rem 1.85rem;
  }
}

/* ========== 1000px — large tablet / small desktop hero 2-col ========== */
@media (min-width: 1000px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    gap: 2rem;
    align-items: center;
  }

  .hero-copy {
    max-width: none;
  }
}

/* ========== 1100px — desktop ========== */
@media (min-width: 1100px) {
  :root {
    --shell: 73.75rem; /* 1180px — unified with tablet+/desktop */
    --gutter: 1.5rem;
    --fs-body: 1.075rem;
    --section-pad-y: clamp(3.5rem, 4.5vw, 4.5rem); /* 56–72 */
    --section-head-gap: clamp(1.25rem, 1.8vw, 1.75rem); /* 20–28 */
    --card-gap: clamp(1rem, 1.2vw, 1.25rem); /* 16–20 */
  }

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

  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    gap: 2.25rem;
    align-items: center;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-lead {
    font-size: 1.15rem;
  }

  .hero-title {
    font-size: clamp(2.75rem, 4vw, 3.85rem);
  }

  .cta-panel {
    padding: 2rem 2.1rem;
    gap: 1.85rem;
  }

  .feature-card {
    padding: 1.55rem 1.35rem 1.6rem;
  }

  .plan-card,
  .step-card {
    padding: 1.55rem 1.35rem 1.4rem;
  }

  .nav-desktop a {
    font-size: 1.05rem;
  }
}

/* Narrow console columns on very small phones */
@media (max-width: 400px) {
  .console-table-head,
  .console-records li {
    grid-template-columns: 2.6rem 3.4rem 1fr 2.8rem;
    font-size: 0.8rem;
  }

  .cr-val {
    font-size: 0.72rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .feature-card:hover {
    transform: none;
  }
}


.feature-card code {
  font-size: 0.85em;
  background: rgba(15, 23, 42, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
#httpdns .feature-grid {
  margin-top: 0.5rem;
}


/* Dedicated NS (BYO) marketing block — 5 cards, keep rhythm with feature-grid */
#custom-ns .feature-grid {
  margin-top: 0;
}

@media (min-width: 640px) {
  #custom-ns .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  #custom-ns .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* last two cards span evenly on wide screens without orphan lonely col */
  #custom-ns .feature-grid > .feature-card:nth-child(4),
  #custom-ns .feature-grid > .feature-card:nth-child(5) {
    grid-column: span 1;
  }
}


/* One-console selling points — full shell width, no banner */
.one-console {
  margin-top: var(--card-gap);
  padding: 1.05rem 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  width: 100%;
  min-width: 0;
}

.one-console-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 3.6vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.one-console-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem 1.25rem;
}

.one-console-list li {
  margin: 0;
  padding-left: 0.95rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: break-word;
}

.one-console-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--gold);
}

@media (min-width: 640px) {
  .one-console {
    padding: 1.15rem 1.25rem 1.2rem;
  }

  .one-console-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.5rem;
  }
}

@media (min-width: 1100px) {
  .one-console {
    padding: 1.25rem 1.45rem 1.35rem;
  }

  .one-console-title {
    margin-bottom: 0.95rem;
  }

  /* 3 + 2, both rows fill the shell — no leftover narrow column */
  .one-console-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.7rem 1.35rem;
  }

  .one-console-list li,
  .one-console-list li:nth-child(n + 4) {
    grid-column: span 3;
  }
}

/* Hot features: 5 cards. Phone 1 col; tablet 2+full last; desktop 5 equal. */
@media (min-width: 640px) {
  #features .feature-grid > .feature-card:last-child {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1100px) {
  #features .feature-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  #features .feature-grid > .feature-card:last-child {
    grid-column: auto;
  }
  #features .feature-card h3 {
    font-size: 1.08rem;
  }
  #features .feature-card p {
    font-size: 0.95rem;
  }
}

/* 同公司产品（页脚） */
.footer-col-sister {
  grid-column: 1 / -1;
}
.footer-col-sister .footer-links,
.footer-col .footer-col-sister .footer-links {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

.plan-pay-note {
  margin: 1.5rem 0 0;
  text-align: center;
}

/* i18n language switch */
.lang-switch{display:inline-flex;border:1px solid rgba(255,255,255,.18);border-radius:999px;overflow:hidden;margin-right:.5rem}
.lang-switch a{background:transparent;color:inherit;border:0;text-decoration:none;display:inline-block;padding:.3rem .6rem;font-size:.8rem;cursor:pointer;opacity:.65}
.lang-switch a[aria-current="true"]{background:rgba(255,255,255,.14);opacity:1;font-weight:600}
@media (max-width:480px){.logo-sub{display:none}.lang-switch a{padding:.25rem .45rem}}

