:root {
  --bg: #050a12;
  --bg-soft: #08111e;
  --panel: rgba(14, 26, 43, .78);
  --panel-solid: #0d1828;
  --line: rgba(151, 190, 222, .16);
  --line-strong: rgba(91, 222, 255, .36);
  --text: #eff8ff;
  --muted: #93a9bd;
  --cyan: #55e6ff;
  --blue: #7c89ff;
  --green: #53e5a2;
  --amber: #ffc96b;
  --danger: #ff8798;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  --radius: 24px;
  --content: 1240px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(37, 131, 191, .13), transparent 28rem),
    radial-gradient(circle at 90% 38%, rgba(90, 87, 220, .11), transparent 30rem),
    var(--bg);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(rgba(115, 166, 204, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 166, 204, .025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

a { color: inherit; }
img { max-width: 100%; }
p, h1, h2, h3 { margin-top: 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #031018;
  border-radius: 8px;
  background: var(--cyan);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 18, .82);
  backdrop-filter: blur(18px) saturate(130%);
}

.nav-shell {
  display: flex;
  align-items: center;
  width: min(calc(100% - 40px), var(--content));
  min-height: 80px;
  margin: 0 auto;
  gap: 32px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 183px; height: auto; }

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

.nav-shell nav a,
.nav-download {
  color: #a9bdcf;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}

.nav-shell nav a { padding: 8px 11px; }
.nav-shell nav a:hover { color: white; background: rgba(255, 255, 255, .05); }

.nav-download {
  padding: 8px 14px;
  color: #e9fbff;
  border: 1px solid rgba(85, 230, 255, .28);
  background: rgba(55, 159, 201, .09);
}

.nav-download:hover { border-color: rgba(85, 230, 255, .58); background: rgba(55, 159, 201, .16); }

.hero {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 32px), 1480px);
  min-height: min(790px, calc(100vh - 104px));
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-image,
.hero-scrim {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image { object-fit: cover; }

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 9, 16, .97) 0%, rgba(4, 9, 16, .9) 29%, rgba(4, 9, 16, .42) 58%, rgba(4, 9, 16, .06) 100%),
    linear-gradient(0deg, rgba(4, 9, 16, .62), transparent 36%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(660px, 66%);
  min-height: min(790px, calc(100vh - 104px));
  padding: clamp(46px, 7vw, 104px);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(83, 229, 162, .9);
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(105deg, #ffffff 4%, #83edff 51%, #8e9bff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 30px;
  color: #b8c9d8;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.3;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.button-primary {
  color: #031019;
  background: linear-gradient(135deg, #6becff, #91a0ff);
  box-shadow: 0 10px 34px rgba(56, 191, 231, .22);
}

.button-primary:hover { box-shadow: 0 14px 38px rgba(56, 191, 231, .32); }

.button-ghost {
  color: #e8f7ff;
  border-color: rgba(174, 211, 235, .26);
  background: rgba(11, 22, 35, .55);
  backdrop-filter: blur(10px);
}

.button-ghost:hover { border-color: rgba(85, 230, 255, .5); background: rgba(18, 38, 58, .66); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin: 34px 0 0;
  padding: 0;
  color: #8fa8bb;
  list-style: none;
  font-size: 13px;
  font-weight: 630;
}

.hero-facts li::before { margin-right: 8px; color: var(--green); content: "✓"; }

.hero-caption {
  position: absolute;
  right: 24px;
  bottom: 12px;
  margin: 0;
  color: rgba(220, 235, 246, .62);
  font-size: 11px;
  text-shadow: 0 1px 4px #000;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(calc(100% - 40px), var(--content));
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 20, 33, .62);
}

.proof-band p {
  margin: 0;
  padding: 20px 24px;
  color: #b7c8d7;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.proof-band p + p { border-left: 1px solid var(--line); }
.proof-band span { margin-right: 10px; color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.section {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 124px 0 0;
}

.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2,
.final-cta h2 {
  margin-bottom: 16px;
  font-size: clamp(35px, 4.4vw, 58px);
  font-weight: 740;
  letter-spacing: -.045em;
  line-height: 1.14;
}

.section-heading > p:last-child,
.section-heading-split > p {
  color: var(--muted);
  font-size: 17px;
}

.section-heading-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: end;
  max-width: none;
  gap: 50px;
}

.section-heading-split > p { margin-bottom: 6px; }

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

.feature-card {
  position: relative;
  min-height: 310px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(66, 164, 214, .12), transparent 13rem),
    linear-gradient(145deg, rgba(15, 29, 48, .88), rgba(8, 17, 29, .88));
}

.feature-card::after {
  position: absolute;
  right: -42px;
  bottom: -64px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(85, 230, 255, .08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 28px rgba(85, 230, 255, .018), 0 0 0 56px rgba(85, 230, 255, .012);
}

.feature-card-wide { grid-column: span 2; }
.feature-card h3 { margin: 46px 0 12px; font-size: 24px; letter-spacing: -.025em; }
.feature-card > p:last-child { max-width: 52ch; color: var(--muted); }

.feature-number {
  position: absolute;
  top: 24px;
  right: 26px;
  margin: 0;
  color: rgba(108, 222, 250, .26);
  font: 700 30px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.status {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 730;
  letter-spacing: .04em;
}

.status-done { color: #a6f5cf; border-color: rgba(83, 229, 162, .23); background: rgba(83, 229, 162, .07); }
.status-limited { color: #ffd797; border-color: rgba(255, 201, 107, .26); background: rgba(255, 201, 107, .07); }

.console-frame {
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(115, 172, 215, .22);
  border-radius: 25px;
  background: #091321;
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .04);
}

.console-toolbar {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  gap: 7px;
}

.console-toolbar span { width: 9px; height: 9px; border-radius: 50%; background: #33475d; }
.console-toolbar span:first-child { background: #ff7184; }
.console-toolbar span:nth-child(2) { background: #ffc96b; }
.console-toolbar span:nth-child(3) { background: #53e5a2; }
.console-toolbar p { flex: 1; margin: 0 45px 0 10px; color: #6f8498; font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }

.console-frame img {
  display: block;
  width: 100%;
  border: 1px solid rgba(154, 190, 220, .1);
  border-radius: 16px;
}

.console-frame figcaption {
  padding: 13px 9px 3px;
  color: #7f96aa;
  font-size: 12px;
}

code {
  color: #bceef7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}

.architecture {
  display: grid;
  grid-template-columns: 1fr minmax(115px, .42fr) 1.12fr minmax(115px, .42fr) 1fr;
  align-items: stretch;
  gap: 12px;
}

.arch-node {
  min-height: 220px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(10, 20, 34, .78);
}

.arch-node h3 { margin: 45px 0 8px; font-size: 23px; }
.arch-node p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.arch-hub { border-color: rgba(85, 230, 255, .34); background: linear-gradient(145deg, rgba(20, 58, 77, .82), rgba(17, 24, 52, .82)); box-shadow: 0 18px 50px rgba(32, 139, 181, .12); }

.arch-tag { color: var(--cyan); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #70889d;
  font-size: 10px;
  text-align: center;
}

.arch-flow i { color: var(--cyan); font-size: 28px; font-style: normal; line-height: 1; }

.architecture-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

.architecture-notes p { margin: 0; padding: 19px 22px; color: var(--muted); border-left: 2px solid rgba(85, 230, 255, .38); background: rgba(9, 18, 31, .55); }
.architecture-notes strong { color: var(--text); }

.performance-section {
  position: relative;
}

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

.metric-grid article {
  min-height: 200px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(11, 22, 37, .74);
}

.metric-grid strong {
  display: block;
  margin-bottom: 5px;
  color: transparent;
  background: linear-gradient(120deg, #f2fdff, #5be1ff 60%, #8b96ff);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(38px, 4vw, 55px);
  font-weight: 760;
  letter-spacing: -.05em;
  line-height: 1.1;
}

.metric-grid span { color: #d7e9f5; font-size: 15px; font-weight: 700; }
.metric-grid p { margin: 19px 0 0; color: #7f97aa; font-size: 13px; }

.evidence-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6, 14, 24, .65);
}

.evidence-box p { margin: 0; padding: 23px 25px; color: #99afc1; }
.evidence-box p + p { border-left: 1px solid var(--line); }
.evidence-box span { margin-right: 8px; color: var(--green); font-weight: 740; }
.evidence-box p + p span { color: var(--amber); }

.deploy-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.deploy-steps li {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  gap: 23px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(10, 20, 33, .67);
}

.deploy-steps li > span { color: rgba(85, 230, 255, .5); font: 720 28px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.deploy-steps h3 { margin-bottom: 5px; font-size: 21px; }
.deploy-steps p { margin: 0; color: var(--muted); }

.port-card {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 45px;
  margin-top: 18px;
  padding: clamp(27px, 4.5vw, 52px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(15, 55, 75, .7), rgba(12, 20, 46, .75));
}

.port-card h3 { margin-bottom: 10px; font-size: 27px; }
.port-card > div > p:last-child { color: var(--muted); }
.port-card dl { display: grid; gap: 8px; margin: 0; }
.port-card dl div { display: grid; grid-template-columns: 150px 1fr; align-items: center; padding: 14px 16px; border: 1px solid rgba(151, 190, 222, .12); border-radius: 12px; background: rgba(4, 12, 22, .38); }
.port-card dt { color: #a5f1ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 750; }
.port-card dd { margin: 0; color: #9bb0c3; }

.boundaries { padding-bottom: 0; }
.boundary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.boundary-grid article { padding: 26px; border: 1px solid rgba(255, 201, 107, .14); border-radius: 19px; background: rgba(28, 23, 19, .42); }
.boundary-grid span { color: var(--amber); font-size: 11px; font-weight: 740; letter-spacing: .12em; }
.boundary-grid h3 { margin: 23px 0 8px; font-size: 20px; }
.boundary-grid p { margin: 0; color: var(--muted); }

.download-section { padding-top: 134px; }

.download-alert {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 25px;
  margin-bottom: 18px;
  padding: 22px 25px;
  border: 1px solid rgba(255, 201, 107, .22);
  border-radius: 16px;
  background: rgba(52, 39, 20, .36);
}

.download-alert strong { color: #ffdfa7; }
.download-alert p { margin: 0; color: #a89d8b; font-size: 14px; }

.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(11, 23, 39, .8);
}

.platform-mark {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  color: #a9effd;
  border: 1px solid rgba(85, 230, 255, .24);
  border-radius: 13px;
  background: rgba(49, 140, 172, .1);
  font: 730 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.download-copy p { margin-bottom: 2px; color: #8096a9; font-size: 12px; }
.download-copy h3 { margin-bottom: 1px; font-size: 20px; }
.download-card .button { min-height: 43px; padding: 9px 14px; font-size: 13px; }
.download-card > code { grid-column: 2 / 4; color: #647c90; font-size: 10px; }
.download-platform { color: var(--cyan) !important; font-weight: 690; }

.download-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; margin-top: 17px; }
.download-meta a { color: #9edfed; font-size: 13px; text-underline-offset: 4px; }

.final-cta {
  width: min(calc(100% - 40px), var(--content));
  margin: 124px auto 0;
  padding: clamp(45px, 7vw, 84px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 20%, rgba(87, 110, 255, .28), transparent 25rem),
    radial-gradient(circle at 10% 100%, rgba(40, 193, 221, .2), transparent 25rem),
    #0b1727;
  text-align: center;
}

.final-cta h2 { max-width: 800px; margin-right: auto; margin-left: auto; }
.final-cta > p:not(.eyebrow) { max-width: 620px; margin: 0 auto 27px; color: #9eb2c3; }

footer {
  display: grid;
  grid-template-columns: auto 1fr;
  width: min(calc(100% - 40px), var(--content));
  margin: 54px auto 0;
  padding: 35px 0 55px;
  color: #8298aa;
  border-top: 1px solid var(--line);
  gap: 8px 32px;
  font-size: 13px;
}

.footer-brand { grid-row: 1 / 3; }
.footer-brand img { width: 154px; }
footer p { margin: 0; }
.footer-note { color: #617789; font-size: 11px; }

@media (max-width: 1040px) {
  .nav-shell { gap: 14px; }
  .nav-shell nav { gap: 0; }
  .nav-download { display: none; }
  .hero-content { width: 72%; padding: 60px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-wide { grid-column: span 1; }
  .architecture { grid-template-columns: 1fr; }
  .arch-flow { min-height: 70px; }
  .arch-flow i { transform: rotate(90deg); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card { grid-template-columns: auto 1fr; }
  .download-card .button { grid-column: 1 / 3; }
  .download-card > code { grid-column: 1 / 3; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 125px; }
  .site-header { position: sticky; }
  .nav-shell { flex-wrap: wrap; width: min(calc(100% - 28px), var(--content)); min-height: 0; padding: 12px 0 9px; }
  .brand img { width: 151px; }
  .nav-shell nav { order: 3; width: 100%; overflow-x: auto; }
  .nav-shell nav a { flex: 1 0 auto; padding: 7px 12px; text-align: center; }
  .hero { width: calc(100% - 20px); min-height: 720px; margin-top: 10px; border-radius: 22px; }
  .hero-image { object-position: 70% center; }
  .hero-scrim { background: linear-gradient(0deg, rgba(4, 9, 16, .98) 0%, rgba(4, 9, 16, .92) 48%, rgba(4, 9, 16, .24) 100%); }
  .hero-content { justify-content: flex-end; width: 100%; min-height: 720px; padding: 38px 24px 60px; }
  .hero h1 { font-size: clamp(41px, 12vw, 58px); }
  .hero-caption { right: 14px; bottom: 8px; }
  .proof-band { grid-template-columns: 1fr; width: calc(100% - 28px); }
  .proof-band p { padding: 15px 18px; text-align: left; }
  .proof-band p + p { border-top: 1px solid var(--line); border-left: 0; }
  .section { width: calc(100% - 28px); padding-top: 92px; }
  .section-heading-split { grid-template-columns: 1fr; gap: 10px; }
  .feature-grid, .metric-grid, .boundary-grid, .download-grid, .architecture-notes, .evidence-box { grid-template-columns: 1fr; }
  .feature-card { min-height: 275px; }
  .evidence-box p + p { border-top: 1px solid var(--line); border-left: 0; }
  .console-frame { padding: 6px; border-radius: 18px; }
  .console-frame img { width: 900px; max-width: none; border-radius: 12px; transform-origin: top left; }
  .console-frame { overflow-x: auto; }
  .console-frame figcaption { position: sticky; left: 0; max-width: calc(100vw - 44px); }
  .deploy-steps li { grid-template-columns: 46px 1fr; padding: 22px 18px; gap: 9px; }
  .port-card { grid-template-columns: 1fr; gap: 18px; padding: 25px 18px; }
  .port-card dl div { grid-template-columns: 1fr; gap: 3px; }
  .download-alert { grid-template-columns: 1fr; gap: 7px; padding: 20px; }
  .download-card { padding: 20px; }
  .final-cta { width: calc(100% - 28px); margin-top: 92px; padding: 48px 22px; }
  footer { grid-template-columns: 1fr; width: calc(100% - 28px); }
  .footer-brand { grid-row: auto; }
}

@media (max-width: 440px) {
  .hero-actions { display: grid; }
  .hero-facts { display: grid; gap: 5px; }
  .section-heading h2, .final-cta h2 { font-size: 36px; }
  .download-card { grid-template-columns: 45px 1fr; gap: 13px; }
  .platform-mark { width: 45px; height: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .hero-actions, .download-section, .final-cta { display: none; }
  body { color: #111; background: #fff; }
  .section { padding-top: 48px; }
  .feature-card, .metric-grid article, .arch-node, .deploy-steps li { color: #111; border-color: #bbb; background: #fff; }
}
