:root {
  color-scheme: dark;
  --paper: #0b101a;
  --ink: #f0f1fb;
  --muted: #b0bbcf;
  --accent: #bfa9ff;
  --line: #2b364c;
  font: 16px/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
body { background: radial-gradient(ellipse at 22% 4%, #1c1735, transparent 40rem); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #8956d1; outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.skip { position: fixed; top: 1rem; left: 1rem; transform: translateY(-200%); z-index: 2; background: #252943; padding: .6rem 1rem; }
.skip:focus { transform: none; }
.top, .bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top { min-height: 5rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-size: 1.4rem; font-weight: 800; letter-spacing: -.045em; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #65548a; border-radius: .6rem; background: #29203d; color: #f5d293; font: italic bold 1.45rem Georgia, serif; }
nav { display: flex; flex-wrap: wrap; gap: .7rem 1.65rem; }
nav a, .top-link { font-weight: 650; font-size: .875rem; text-decoration: none; }
.top-link { border: 1px solid var(--line); border-radius: 2rem; padding: .55rem .95rem; }
.top-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; }
#language { max-width: 100%; min-height: 2.5rem; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: .55rem; background: #151c2b; color: var(--ink); font: inherit; font-size: .85rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.eyebrow, .packet-path, .packet, figcaption, .signal-note {
  font: 650 .72rem/1.35 ui-monospace, Consolas, monospace;
  letter-spacing: .12em;
}
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ''; width: 1.4rem; height: 2px; background: currentColor; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(2.75rem, 5.6vw, 5.8rem); line-height: 1.06; }
:lang(ja) h1, :lang(ko) h1, :lang(zh) h1 { font-family: system-ui, sans-serif; font-size: clamp(2.5rem, 4.8vw, 5rem); letter-spacing: -.035em; }
h1 em { display: block; color: var(--accent); }
h2 { font-size: clamp(2.25rem, 4vw, 3.8rem); line-height: 1.05; }
.lede { margin-top: 1.25rem; max-width: 42ch; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem 1.4rem; align-items: center; margin-top: 1.8rem; }
.button { font: inherit; font-weight: 700; text-decoration: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .68rem 1.12rem; border: 1px solid transparent; border-radius: .55rem; cursor: pointer; }
.primary { background: #bfa9ff; color: #1b122d; }
.primary:hover { background: #deceff; color: #1b122d; }
.secondary { background: #171b2b; color: var(--ink); border-color: #625178; }
.secondary:hover { background: #2e2544; }
.browser-help { display: inline-block; margin-top: .8rem; color: var(--muted); font-size: .85rem; }
.signal { min-height: clamp(22rem, 36vw, 29rem); position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; border: 1px solid #514369; border-radius: 1.4rem; padding: 4rem 1rem 3.7rem; background: radial-gradient(ellipse at 55% 53%, #30234d, #111827 78%); color: var(--ink); box-shadow: 0 20px 70px #080b14a6, inset 0 1px #ccbaff30; }
.signal::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(0deg, transparent 0 29px, #e5c9ff0e 29px 30px), repeating-linear-gradient(90deg, transparent 0 29px, #e5c9ff0e 29px 30px); }
.signal::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), #9f8aff42, transparent 12rem); transition: opacity .25s ease; }
figcaption { position: absolute; inset: 1.25rem 1.4rem auto; display: flex; justify-content: space-between; gap: .5rem; text-transform: uppercase; color: #e3d4f7; }
.orbit { position: absolute; z-index: -1; inset: 50% auto auto 50%; width: 58%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid #e0c2ff45; border-radius: 50%; }
.orbit-two { width: 78%; }
.orbit-three { width: 99%; }
.demo { display: grid; gap: 1rem; width: min(100%, 23rem); }
.message-editor { display: grid; gap: .35rem; }
.message-editor label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.message-editor input { width: 100%; padding: .65rem .8rem; border: 1px solid #51436d; border-radius: .6rem; color: var(--ink); background: #101424; font: inherit; }
.message-editor input[readonly] { color: var(--muted); }
.packet-path { display: flex; align-items: center; color: var(--accent); }
.packet-path span { display: grid; place-items: center; flex: 0 0 2.5rem; aspect-ratio: 1; border: 1px solid #695789; border-radius: 50%; background: #1e1931; }
.packet-path .lock { flex-basis: 3rem; position: relative; background: #2d2247; }
.lock::before { content: ''; width: .66rem; height: .55rem; border: 2px solid currentColor; border-bottom: 0; border-radius: .4rem .4rem 0 0; position: absolute; top: .75rem; }
.lock::after { content: ''; width: 1rem; height: .73rem; border: 2px solid currentColor; border-radius: .2rem; position: absolute; top: 1.25rem; }
.packet-path i { position: relative; flex: 1; height: 2px; background: #594a79; }
.packet-path i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 25%; opacity: 0; border-radius: 100%; background: #e1d4ff; box-shadow: 0 0 10px #c2a8ff; }
.packet { min-height: 6.2rem; padding: .85rem 1rem; border: 1px solid #44385e; border-radius: .7rem; background: #101424; box-shadow: 0 16px 38px #080a126b; letter-spacing: .03em; }
.packet span { color: var(--accent); }
.packet p { margin-top: .5rem; overflow-wrap: anywhere; color: var(--ink); font-size: .9rem; }
.encrypted .packet p, .encrypted .lock { color: #8fe7ca; }
.demo-button { justify-self: stretch; border-color: #a08ad0; background: #bfa9ff; color: #1b122d; font-size: .9rem; }
.demo-button:hover { background: #deceff; }
.demo-button:disabled { opacity: .65; cursor: default; }
.signal-note { position: absolute; inset: auto 1.4rem 1rem; color: #c7bed7; letter-spacing: .02em; }
.band { background: #111726; border-block: 1px solid var(--line); padding-block: clamp(2.6rem, 5vw, 4.5rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; margin-top: 1.55rem; }
.feature-grid article { border-top: 1px solid #63537e; padding-top: 1rem; }
.feature-icon { color: var(--accent); font: bold 1.4rem Georgia, serif; }
.feature-grid h3 { margin: .25rem 0 .15rem; font-size: 1.1rem; }
.feature-grid p, .start p { color: var(--muted); }
.fee-strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem; margin-top: 1.6rem; padding: 1.2rem 1.35rem; border: 1px solid #423653; border-radius: .9rem; background: #211b31; color: #fff9f0; }
.fee-strip h3, .fee-strip strong { display: block; color: #f5d293; font-size: 1.05rem; }
.fee-strip a, .fee-strip span { color: #eadff1; font-size: .85rem; }
.economics { padding-block: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.economics-intro { max-width: 65ch; margin-top: .85rem; color: var(--muted); }
.economics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1.6rem 1rem; }
.economics-card { padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid var(--line); border-radius: .9rem; background: #151c2b; }
.economics-card h3 { font-size: 1.05rem; }
.money-list { margin: .6rem 0 0; }
.money-list div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem .8rem; padding-block: .45rem; border-bottom: 1px solid var(--line); }
.money-list div:last-child { border-bottom: 0; }
.money-list dt { color: var(--muted); }
.money-list dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.allocation-bar { display: grid; grid-template-columns: 3fr 2fr 2fr 3fr; gap: 3px; height: .5rem; overflow: hidden; border-radius: 1rem; margin-top: .9rem; }
.allocation-bar span:nth-child(1) { background: #bfa9ff; }
.allocation-bar span:nth-child(2) { background: #9ebeff; }
.allocation-bar span:nth-child(3) { background: #f5d293; }
.allocation-bar span:nth-child(4) { background: #8fe7ca; }
.allocation-list dd { color: #bfa9ff; }
.allocation-list div:nth-child(2) dd { color: #9ebeff; }
.allocation-list div:nth-child(3) dd { color: #f5d293; }
.allocation-list div:nth-child(4) dd { color: #8fe7ca; }
.economics-reserve, .economics-foot { color: var(--muted); }
.economics-foot { margin-top: .55rem; font-size: .9rem; }
.economics-foot a { color: var(--accent); }
.start { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 3rem; align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
.start h2 { margin-bottom: .7rem; }
.copy-panel { border: 1px solid var(--line); border-radius: .9rem; padding: 1.1rem; background: #151c2b; }
.copy-panel label { display: block; margin-bottom: .4rem; font-weight: 700; font-size: .86rem; }
.copy-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.copy-row input { flex: 1 1 13rem; width: 100%; min-width: 0; border: 1px solid #48516b; border-radius: .55rem; background: #0b101a; color: var(--ink); padding: .65rem .55rem; font: .9rem ui-monospace, Consolas, monospace; }
#copy-status:not(:empty) { margin-top: .55rem; font-size: .83rem; }
.bottom { padding-block: 1.3rem 2rem; border-top: 1px solid var(--line); }

:root[lang="vi"] {
  --vietnamese-font: Arial, "Segoe UI", Roboto, system-ui, sans-serif;
  font-family: var(--vietnamese-font);
}

:lang(vi) :is(h1, h2, .eyebrow, figcaption, .packet, .signal-note) {
  font-family: var(--vietnamese-font);
}

:lang(vi) :is(h1, h2) {
  letter-spacing: -.025em;
  line-height: 1.18;
}

:lang(vi) .packet p { line-height: 1.55; }
:lang(vi) .encrypted .packet p { font-family: ui-monospace, Consolas, monospace; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .signal:hover::after { opacity: 1; }
  .signal:hover .packet-path i::after { animation: packet-travel 1.7s ease-in-out 2; }
  .signal:hover .packet-path i:nth-of-type(2)::after { animation-delay: .35s; }
}

@media (prefers-reduced-motion: no-preference) {
  .signal.encrypted .packet { animation: packet-glow .6s ease-out; }
}

@keyframes packet-travel {
  0% { left: 0; opacity: 0; }
  20%, 75% { opacity: 1; }
  100% { left: 75%; opacity: 0; }
}

@keyframes packet-glow {
  50% { border-color: #8fe7ca; box-shadow: 0 0 1.25rem #8fe7ca48; }
}

@media (max-width: 48rem) {
  .hero, .start, .economics-grid { grid-template-columns: 1fr; }
  .hero { gap: 2rem; }
  .signal { min-height: 21rem; }
}

@media (max-width: 34rem) {
  .shell { width: calc(100% - 2rem); }
  .top { flex-wrap: wrap; padding-block: .8rem; }
  .top nav { order: 1; width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .fee-strip { grid-template-columns: 1fr 1fr; }
  .fee-strip div:first-child { grid-column: 1 / -1; }
  .bottom { align-items: flex-start; flex-direction: column; }
}
