:root {
  color-scheme: dark;
  --page: light-dark(#fafafa, #111113);
  --ink: light-dark(#171719, #f7f7f8);
  --muted: light-dark(#555558, #a4a4a6);
  --panel: light-dark(#fff, #18181a);
  --surface: light-dark(#f2f2f3, #161618);
  --line: light-dark(#d9d9dc, #2c2c2e);
  --accent: light-dark(#9e432d, #e39a75);
  --accent-fill: #e39a75;
  --on-accent: #161416;
  --header: var(--page);
  --focus: light-dark(#a3442d, #e39a75);
  --tint: light-dark(#f7eae3, #252021);
  --positive: light-dark(#673826, #eed6cb);
  --positive-bg: light-dark(#f7ede7, #282122);
  --danger: light-dark(#832d21, #ffbbac);
  --danger-bg: light-dark(#fbede8, #402822);
  --forest: var(--header);
  --forest-deep: var(--page);
  --forest-raised: var(--panel);
  --lime: var(--accent-fill);
  --canvas: var(--page);
  --wrap: 79rem;
  font: 1rem/1.55 Inter, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  scroll-behavior: smooth;
}

:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .66; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { color: var(--on-accent); background: var(--accent-fill); }

.wrap {
  width: min(var(--wrap), calc(100% - clamp(2.075rem, 9.1vw, 9.5rem)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .65rem;
  left: .8rem;
  transform: translateY(-160%);
  border-radius: .35rem;
  padding: .6rem .85rem;
  color: var(--on-accent);
  background: var(--accent-fill);
}

.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 3; top: 0; background: var(--header); border-bottom: 1px solid var(--line); }
.public-home section[id] { scroll-margin-top: 5.3rem; }

.navbar {
  min-height: 4.6rem;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1rem, 3vw, 2.2rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  justify-self: start;
  width: fit-content;
  font-size: 1.37rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -.055em;
  text-decoration: none;
  white-space: nowrap;
}

.brandmark { display: inline-grid; place-items: center; width: 1.77rem; height: 1.77rem; flex: none; color: var(--accent); }
.brandmark svg { width: 100%; height: 100%; }
.main-nav { display: flex; align-items: center; gap: clamp(.75rem, 1.3vw, 1.25rem); }
.main-nav a, .site-footer nav a { color: var(--muted); font-size: .89rem; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .site-footer nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .26em; }
.main-nav a[aria-current='page'] { color: var(--accent); font-weight: 700; }
.header-controls { display: flex; align-items: center; justify-self: end; gap: .4rem; }
.header-account { display: inline-flex; align-items: center; min-height: 2.4rem; padding-inline: .35rem 0; color: var(--ink); font-size: .89rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-account:hover, .header-account[aria-current='page'] { color: var(--accent); }

.control-button {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: .25rem .5rem;
  border: 1px solid var(--line);
  border-radius: .36rem;
  color: var(--ink);
  background: var(--panel);
  font-size: .78rem;
  font-weight: 730;
  white-space: nowrap;
}

.control-button:hover { background: var(--surface); border-color: var(--muted); }
.control-button svg { width: 1.14rem; height: 1.14rem; }
.mobile-toggle { display: none; }

.hero, .provider-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3.4rem);
  min-height: 32rem;
  padding-block: clamp(3.55rem, 5.1vw, 5.1rem);
}

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

.eyebrow {
  width: fit-content;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 740;
  line-height: 1.4;
}

.hero h1, .provider-hero h1 { font-size: clamp(2.62rem, 4.6vw, 4.12rem); line-height: 1.14; font-weight: 810; letter-spacing: -.067em; }
.hero h1 em { color: var(--accent); font-style: normal; }
html[lang='en'] .hero h1, html[lang='en'] .provider-hero h1 { font-size: clamp(2.5rem, 4.45vw, 4.05rem); letter-spacing: -.071em; }
.lead { max-width: 35rem; margin-top: 1.35rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.78; text-wrap: pretty; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: 1.65rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: fit-content;
  min-height: 3.05rem;
  padding: .72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  font-size: .91rem;
  font-weight: 730;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s, border-color .16s, color .16s;
}

.btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.btn.primary:hover:not(:disabled) { background: #f1af8d; border-color: #f1af8d; }
.btn.ghost { background: var(--page); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover:not(:disabled) { background: var(--surface); border-color: var(--muted); }
.pilot-note { display: flex; align-items: baseline; gap: .47rem; width: fit-content; margin-top: 1.1rem; color: var(--muted); font-size: .87rem; }
.status-dot { display: inline-block; flex: none; width: .42rem; height: .42rem; border-radius: 50%; background: var(--accent); }

.hero-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #2c2c2e;
  border-radius: .76rem;
  background: #18181a;
}

.hardware { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) brightness(1.05); }

.figure-label {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .15rem .7rem;
  padding: .65rem .95rem;
  border-top: 1px solid #ffffff1f;
  color: #b5b5b7;
  background: #19191b;
  font-size: .8rem;
}

.figure-label strong { color: #f7f7f8; font-weight: 660; }

:root[data-theme='light'] .hero-visual {
  background: var(--page);
  border-color: transparent;
}
:root[data-theme='light'] .hardware { filter: none; mix-blend-mode: multiply; }
:root[data-theme='light'] .figure-label {
  justify-content: center;
  background: transparent;
  border-color: transparent;
}
:root[data-theme='light'] .figure-label strong { color: var(--muted); font-weight: 550; }

.join-section, .advantages-section, .provider-guide, .support-preview, .hosting-preview { padding-block: clamp(2.9rem, 5.3vw, 4.9rem); }
.advantages-section, .join-section { background: var(--surface); border-block: 1px solid var(--line); }
.hosting-preview { border-top: 1px solid var(--line); }
.section-title { margin-bottom: clamp(1.45rem, 2.8vw, 2.35rem); }
.section-title .eyebrow { margin-bottom: .54rem; }
.section-title h2 { font-size: clamp(1.87rem, 3.45vw, 3.1rem); line-height: 1.19; font-weight: 770; letter-spacing: -.047em; text-wrap: balance; }
.section-title > p:not(.eyebrow) { max-width: 44rem; margin-top: .8rem; color: var(--muted); line-height: 1.73; }
.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.provider-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 14rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .67rem;
  background: var(--panel);
}

.provider-icon { display: inline-grid; place-items: center; width: 2.65rem; height: 2.65rem; margin-bottom: 1rem; color: var(--accent); background: var(--tint); border-radius: .43rem; }
.provider-icon svg { width: 1.37rem; height: 1.37rem; }
.provider-card h3 { margin-bottom: .4rem; font-size: 1.37rem; line-height: 1.23; letter-spacing: -.024em; }
.provider-card p { color: var(--muted); line-height: 1.65; }
.card-bottom { margin-top: auto; padding-top: 1.22rem; }
.card-bottom .btn { min-height: 2.65rem; padding-block: .54rem; }

.advantage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2.2vw, 1.65rem); }
.advantage { padding-top: 1.08rem; border-top: 1px solid var(--line); }
.advantage h3 { font-size: 1.13rem; line-height: 1.34; }
.advantage p { color: var(--muted); line-height: 1.65; margin-top: .47rem; }

.plan-summary, .plan-summary-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: clamp(1rem, 2.6vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: .66rem;
  background: var(--panel);
}

.plan-summary-main, .plan-summary-price { min-width: 0; }
.plan-summary-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .7rem; margin-bottom: .55rem; }
.plan-summary-label { color: var(--accent); font-size: .86rem; font-weight: 700; }
.plan-summary-stock { display: inline-block; border: 1px solid var(--line); border-radius: .28rem; padding: .15rem .42rem; color: var(--muted); font-size: .82rem; }
.plan-summary h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.28; }
.plan-summary-specs { color: var(--muted); margin-top: .48rem; }
.plan-summary-specs span { margin-inline: .2rem; }
.plan-summary-price strong { color: var(--ink); font-size: clamp(1.35rem, 2.7vw, 2.15rem); line-height: 1.2; letter-spacing: -.04em; }
.plan-summary-price p > span, .plan-summary-gate, .plan-summary-empty p:nth-child(2) { color: var(--muted); font-size: .9rem; }
.plan-summary-price .actions, .plan-summary-empty .actions { margin-top: .5rem; }
.plan-summary-gate, .plan-summary-empty p:nth-child(2) { margin-top: .4rem; }
.plan-summary-status { font-size: 1.05rem; font-weight: 710; }

.support-preview, .support-preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.support-preview { justify-content: space-between; }
.support-preview h2 { font-size: clamp(1.35rem, 2.55vw, 2.25rem); line-height: 1.2; }
.support-preview p { color: var(--muted); margin-top: .45rem; }

.provider-guide-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; gap: clamp(1rem, 5vw, 4.1rem); }
.provider-guide-list { margin: 0; padding-left: 1.4rem; }
.provider-guide-list > li { padding: .6rem 0 .9rem .18rem; }
.provider-guide-list > li + li { border-top: 1px solid var(--line); }
.provider-guide-list > li::marker { color: var(--accent); font-weight: 740; }
.provider-guide-layout h3 { font-size: 1.12rem; line-height: 1.35; }
.provider-guide-layout p { color: var(--muted); margin-top: .36rem; line-height: 1.68; }
.supplier-scope { padding: clamp(1rem, 2.75vw, 1.8rem); border: 1px solid var(--line); border-radius: .66rem; background: var(--panel); }

.site-footer { padding-block: 1.4rem; border-top: 1px solid var(--line); background: var(--header); color: var(--muted); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .95rem 2rem; }
.site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; }
.dark-intro { color: var(--ink); background: var(--header); }

.apply-modal {
  width: min(36rem, calc(100vw - 1.75rem));
  max-width: none;
  max-height: calc(100dvh - 1.75rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .72rem;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 1.5rem 5rem #140c0870;
}

body:has(.apply-modal[open]) { overflow: hidden; }
.apply-modal::backdrop { background: #1a110ca8; backdrop-filter: blur(4px); }
.dialog-shell { padding: clamp(1rem, 4vw, 1.8rem); }
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.modal-header h2 { font-size: clamp(1.4rem, 4vw, 1.85rem); line-height: 1.25; letter-spacing: -.04em; }
.close-modal { display: inline-grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; padding: 0; border: 1px solid var(--line); border-radius: .38rem; background: var(--panel); color: var(--ink); }
.close-modal:hover:not(:disabled) { background: var(--surface); }
.close-modal svg { width: 1.15rem; height: 1.15rem; }
.role-switch { display: flex; flex-wrap: wrap; gap: .34rem; padding: .28rem; border: 1px solid var(--line); border-radius: .46rem; background: var(--surface); margin-bottom: 1rem; }
.role-switch button { flex: 1 0 6rem; padding: .44rem .58rem; border: 1px solid transparent; border-radius: .34rem; background: transparent; color: var(--muted); font-size: .88rem; font-weight: 690; }
.role-switch button[aria-pressed='true'], .role-switch button:hover:not(:disabled) { color: var(--ink); background: var(--panel); border-color: var(--line); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .83rem .72rem; }
.field { min-width: 0; display: grid; align-content: start; gap: .3rem; color: var(--ink); font-size: .89rem; font-weight: 670; }
.field.wide { grid-column: 1 / -1; }
.field input, .field select { display: block; min-width: 0; width: 100%; color: var(--ink); border: 1px solid var(--line); border-radius: .38rem; background: var(--page); padding: .57rem .62rem; font-size: 1rem; font-weight: 450; line-height: 1.32; }
.field select { appearance: none; padding-right: 1.75rem; background-image: linear-gradient(45deg, transparent 49%, var(--muted) 51%), linear-gradient(135deg, var(--muted) 49%, transparent 51%); background-repeat: no-repeat; background-size: 5px 5px; background-position: calc(100% - 15px) 53%, calc(100% - 10px) 53%; }
.form-note { margin-block: .83rem; color: var(--muted); font-size: .84rem; }
.apply-modal form > .btn { margin-top: .3rem; }
.apply-modal .error, .apply-modal .success { margin-block: .72rem .2rem; padding: .65rem .75rem; border-radius: .38rem; font-size: .9rem; }
.apply-modal .error { color: var(--danger); background: var(--danger-bg); }
.apply-modal .success { display: grid; justify-items: start; gap: .38rem; padding: 1rem; color: var(--positive); background: var(--positive-bg); }
.apply-modal .success .btn { margin-top: .4rem; }

@media (max-width: 72rem) {
  .navbar { display: flex; flex-wrap: wrap; min-height: 4.15rem; gap: .55rem 1rem; }
  .navbar .brand { margin-right: auto; }
  .header-controls { margin-left: auto; }
  .mobile-toggle { display: inline-grid; }
  .main-nav { display: none; order: 3; width: 100%; gap: .2rem 1.35rem; justify-content: flex-start; flex-wrap: wrap; padding-bottom: .65rem; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding-block: .46rem; }
  .public-home section[id] { scroll-margin-top: 4.7rem; }
}

@media (max-width: 58rem) {
  .hero, .provider-hero { grid-template-columns: 1fr; gap: 1.9rem; min-height: auto; padding-block: clamp(2.5rem, 6vw, 4rem); }
  .hero h1, .provider-hero h1, html[lang='en'] .hero h1, html[lang='en'] .provider-hero h1 { font-size: clamp(2.64rem, 7.25vw, 4.25rem); }
  .hero-visual { max-width: 39rem; }
  .hardware { aspect-ratio: 1.62 / 1; }
}

@media (max-width: 39rem) {
  .brand { font-size: 1.21rem; }
  .brandmark { width: 1.55rem; height: 1.55rem; }
  .hero h1, .provider-hero h1, html[lang='en'] .hero h1, html[lang='en'] .provider-hero h1 { font-size: clamp(1.87rem, 8.15vw, 3.3rem); }
  html[lang='en'] .hero h1, html[lang='en'] .provider-hero h1 { letter-spacing: -.06em; }
  .lead { margin-top: .85rem; }
  .actions { margin-top: 1.15rem; }
  .pilot-note { margin-top: .86rem; }
  .provider-grid, .advantage-grid, .provider-guide-layout { grid-template-columns: 1fr; }
  .plan-summary, .plan-summary-empty { flex-direction: column; align-items: flex-start; }
  .provider-card { min-height: auto; }
}

@media (max-width: 28rem) {
  .fields { grid-template-columns: 1fr; }
  .figure-label { padding: .55rem .7rem; }
  .header-controls { gap: .27rem; }
  .control-button { min-width: 2.2rem; height: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

@media (min-width: 72rem) and (max-width: 80rem) {
  html[lang='en'] .navbar { column-gap: .5rem; }
  html[lang='en'] .main-nav { column-gap: .45rem; }
}

@media (max-width: 26rem) {
  .navbar { width: calc(100% - 1rem); column-gap: .3rem; }
  .navbar .brand { gap: .25rem; font-size: 1.06rem; }
  .navbar .brandmark { width: 1.3rem; height: 1.3rem; }
  .header-controls { gap: .2rem; }
  .header-controls .control-button { min-width: 1.9rem; padding-inline: .28rem; }
  .header-account { font-size: .8rem; padding-left: 0; }
}
