.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden;
  background: #08101f; color: #fff; isolation: isolate;
}
.hero-sky { position: absolute; inset: 0; z-index: -5; background:
  radial-gradient(circle at 74% 38%, rgba(255,185,112,.95) 0 4%, rgba(255,107,128,.78) 8%, rgba(163,91,255,.48) 18%, transparent 36%),
  linear-gradient(180deg, #201b5f 0%, #562d79 26%, #e34f83 52%, #ff9b75 69%, #17324a 70%, #07101d 100%);
}
.hero-sun { position: absolute; width: min(44vw, 680px); aspect-ratio: 1; border-radius: 50%; right: 4vw; top: 13vh; z-index: -4;
  background: radial-gradient(circle at 38% 32%, #fff7d1 0 4%, #ffd08a 18%, #ff8174 52%, rgba(255,77,129,.2) 68%, transparent 69%);
  filter: blur(.2px); box-shadow: 0 0 120px rgba(255,113,118,.42); transform: translate3d(calc(var(--px,0) * 18px), calc(var(--py,0) * 12px), 0);
}
.hero-grid { position: absolute; inset: 67% -10% -30%; z-index: -2; transform: perspective(560px) rotateX(67deg) translateY(-18%); transform-origin: top center;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 72px 48px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.92), transparent 78%); animation: gridMove 12s linear infinite;
}
.hero-horizon { position: absolute; left: -4%; right: -4%; bottom: 18%; height: 26%; z-index: -3; background:
  radial-gradient(ellipse at 18% 100%, #081221 0 50%, transparent 51%),
  radial-gradient(ellipse at 48% 100%, #0b1829 0 56%, transparent 57%),
  radial-gradient(ellipse at 82% 100%, #07111e 0 49%, transparent 50%);
  filter: drop-shadow(0 -8px 28px rgba(11,24,43,.35));
}
.hero-horizon::before, .hero-horizon::after { content: ""; position: absolute; bottom: 32%; width: 3px; height: 84px; background: #07111e; box-shadow: 0 -28px 0 -1px #07111e; }
.hero-horizon::before { left: 12%; transform: rotate(-2deg); }
.hero-horizon::after { right: 16%; height: 110px; }
.hero-content { width: 100%; padding: 128px 0 52px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); align-items: end; gap: 36px; }
.hero-copy .eyebrow { color: rgba(255,255,255,.76); }
.hero-title span { display: block; }
.hero-title .line-2 { margin-left: 8.5vw; }
.hero-title .line-3 { margin-left: 2.4vw; background: linear-gradient(90deg, #fff, #ffd0ae 36%, #ff87b9 68%, #a88aff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.hero-sub p { max-width: 520px; margin: 0; color: rgba(255,255,255,.76); line-height: 1.7; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-aside { padding: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: rgba(6,12,24,.35); backdrop-filter: blur(16px); }
.hero-stat { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-stat:last-child { border-bottom: 0; }
.hero-stat strong { font-size: 28px; letter-spacing: -.05em; }
.hero-stat span { align-self: center; color: rgba(255,255,255,.65); font-size: 13px; text-align: right; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 34px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.7); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-cue::after { content:""; width: 1px; height: 70px; background: linear-gradient(to bottom, rgba(255,255,255,.8), transparent); animation: pulseLine 1.8s ease-in-out infinite; }

.manifesto { background: var(--paper); color: var(--text-dark); }
.manifesto-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: clamp(40px, 8vw, 130px); align-items: end; }
.manifesto .headline { max-width: 1120px; }
.manifesto-side { padding-bottom: 12px; }
.manifesto-side p { margin: 0 0 28px; color: #596273; line-height: 1.75; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 70px; }
.metric { padding: 24px; border-top: 1px solid var(--line-light); }
.metric strong { display: block; font-size: clamp(2.2rem, 4vw, 4.4rem); letter-spacing: -.06em; }
.metric span { color: #6c7483; }

.tool-showcase { background: #07101d; color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 54px; }
.section-head .lead { color: var(--muted-light); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(120px, auto); gap: 18px; }
.tool-card { position: relative; min-height: 300px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 28px; background: #0d1829; padding: 26px; isolation: isolate; transition: transform .35s var(--ease-spring), border-color .35s ease, box-shadow .35s ease; }
.tool-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,.26); box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.tool-card h3 { margin: 0; font-size: clamp(1.55rem, 2.7vw, 3rem); letter-spacing: -.04em; }
.tool-card p { max-width: 390px; color: #9eacc0; line-height: 1.65; }
.tool-card .card-index { position: absolute; top: 24px; right: 24px; color: rgba(255,255,255,.46); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.tool-card .card-link { position: absolute; right: 22px; bottom: 22px; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; transition: background .2s ease, transform .2s ease; }
.tool-card:hover .card-link { background: #fff; color: #0b1322; transform: rotate(-12deg); }
.card-json { grid-column: span 7; min-height: 440px; background: radial-gradient(circle at 82% 15%, rgba(139,103,255,.35), transparent 34%), #0d1829; }
.card-url { grid-column: span 5; min-height: 440px; background: radial-gradient(circle at 22% 85%, rgba(255,95,114,.34), transparent 34%), #101928; }
.card-text { grid-column: span 4; background: linear-gradient(145deg, #121b2b, #0d1727); }
.card-time { grid-column: span 4; background: radial-gradient(circle at 80% 18%, rgba(255,173,115,.28), transparent 34%), #101824; }
.card-hash { grid-column: span 4; background: radial-gradient(circle at 16% 15%, rgba(75,132,255,.28), transparent 36%), #0d1728; }
.code-preview { position: absolute; left: 28px; right: 28px; bottom: 24px; display: grid; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #cbd6e6; }
.code-line { display: flex; gap: 12px; opacity: .85; }
.code-line em { color: #ff8bb6; font-style: normal; }
.code-line b { color: #9f83ff; font-weight: 600; }
.url-parts { position: absolute; left: 24px; right: 24px; bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.url-part { padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,.08); font-family: ui-monospace, monospace; font-size: 12px; color: #dce5f2; transition: transform .25s ease, background .25s ease; }
.tool-card:hover .url-part { transform: translateY(-4px); }
.url-part:nth-child(2) { transition-delay: 30ms; }.url-part:nth-child(3){transition-delay:60ms}.url-part:nth-child(4){transition-delay:90ms}.url-part:nth-child(5){transition-delay:120ms}
.text-lines { position: absolute; left: 24px; right: 24px; bottom: 26px; display: grid; gap: 10px; }
.text-line { height: 9px; border-radius: 99px; background: linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,.08)); }
.text-line:nth-child(2){width:78%}.text-line:nth-child(3){width:62%}.text-line:nth-child(4){width:86%}
.time-orbit { position: absolute; width: 170px; height: 170px; right: 24px; bottom: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.time-orbit::before, .time-orbit::after { content:""; position:absolute; inset:20px; border:1px dashed rgba(255,255,255,.14); border-radius:50%; }
.time-orbit::after { inset: 58px; background: var(--sunset-peach); box-shadow: 0 0 40px rgba(255,173,115,.48); border:0; }
.hash-stream { position: absolute; left: 22px; right: 22px; bottom: 24px; overflow: hidden; white-space: nowrap; font-family: ui-monospace, monospace; font-size: 13px; color: #89a8e9; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.hash-stream span { display: inline-block; animation: stream 10s linear infinite; }

.demo { background: var(--paper); color: var(--text-dark); }
.demo-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(42px, 8vw, 120px); align-items: center; }
.demo-copy p { color: #5d6675; line-height: 1.75; }
.demo-panel { border: 1px solid rgba(12,20,34,.12); border-radius: 30px; background: #fff; box-shadow: 0 34px 90px rgba(19,25,38,.13); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid rgba(12,20,34,.1); background: #fbfaf7; }
.panel-title { font-weight: 800; }
.panel-body { padding: 24px; }
.demo-input { width: 100%; border: 1px solid rgba(12,20,34,.14); border-radius: 15px; background: #f8f6f1; color: #152033; padding: 15px 16px; outline: none; font-family: ui-monospace, monospace; }
.demo-input:focus { border-color: var(--signal-violet); box-shadow: 0 0 0 4px rgba(139,103,255,.12); }
.url-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.url-result { min-height: 82px; padding: 14px; border-radius: 14px; background: #f6f2ec; border: 1px solid rgba(12,20,34,.08); }
.url-result span { display: block; margin-bottom: 7px; color: #7a8290; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.url-result code { color: #1d2940; font-size: 13px; word-break: break-all; }

.local { background: #06101d; color: #fff; overflow: hidden; }
.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.local-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.local-ring { position: absolute; width: min(42vw, 450px); aspect-ratio:1; border: 1px solid rgba(255,255,255,.12); border-radius:50%; }
.local-ring.r2 { width: min(31vw, 330px); border-style: dashed; animation: spin 28s linear infinite; }
.local-core { position: relative; z-index: 2; width: 180px; aspect-ratio:1; display:grid; place-items:center; border-radius:50%; background: radial-gradient(circle at 34% 28%, #fff1cf, #ff8b77 35%, #a35cff 68%, #263b8d); box-shadow: 0 0 90px rgba(255,104,178,.28); text-align:center; font-weight:900; letter-spacing:-.04em; }
.local-node { position:absolute; width: 14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 0 22px rgba(255,255,255,.8); }
.local-node.n1{top:13%;left:48%}.local-node.n2{right:11%;top:48%}.local-node.n3{left:17%;bottom:16%}
.local-copy .headline { max-width: 760px; }
.local-copy p { max-width: 620px; color: #a8b4c7; line-height:1.8; }
.flow { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:34px; }
.flow span { padding:10px 14px; border:1px solid rgba(255,255,255,.14); border-radius:999px; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.flow i { width:26px; height:1px; background:linear-gradient(90deg,#ff8b77,#9f6cff); }

.guides { background: var(--paper); color: var(--text-dark); }
.guide-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.guide-card { min-height: 320px; padding:26px; border:1px solid var(--line-light); border-radius:24px; background:#fffdf9; display:flex; flex-direction:column; transition:transform .28s var(--ease-spring), box-shadow .28s ease; }
.guide-card:hover { transform:translateY(-7px); box-shadow:var(--shadow-soft); }
.guide-card .guide-no { font-size:12px; font-weight:850; letter-spacing:.14em; color:#858d99; }
.guide-card h3 { margin:48px 0 14px; font-size:clamp(1.65rem,2.4vw,2.45rem); letter-spacing:-.045em; }
.guide-card p { color:#687181; line-height:1.7; }
.guide-card footer { margin-top:auto; display:flex; justify-content:space-between; color:#7a8290; font-size:13px; }

.closing { position:relative; min-height:70vh; display:flex; align-items:center; overflow:hidden; color:#fff; background:linear-gradient(145deg,#281c64,#8f3c86 42%,#f16076 72%,#ffad73); }
.closing::before { content:""; position:absolute; width:48vw; aspect-ratio:1; border-radius:50%; right:-10vw; top:-18vw; background:radial-gradient(circle,#fff4c7 0 8%,#ff9b7c 30%,rgba(255,95,114,.08) 66%,transparent 67%); }
.closing-inner { position:relative; z-index:2; display:flex; align-items:end; justify-content:space-between; gap:40px; }
.closing .headline { max-width:1050px; }

@keyframes gridMove { to { background-position: 0 48px, 72px 0; } }
@keyframes pulseLine { 50% { opacity:.35; transform:scaleY(.72); } }
@keyframes stream { to { transform:translateX(-50%); } }
@keyframes spin { to { transform:rotate(360deg); } }

@media (max-width: 1100px) {
  .hero-layout, .manifesto-grid, .demo-grid, .local-grid { grid-template-columns:1fr; }
  .hero-aside { display:grid; grid-template-columns:repeat(3,1fr); }
  .hero-stat { display:block; border-bottom:0; border-right:1px solid rgba(255,255,255,.12); }
  .hero-stat:last-child { border-right:0; }
  .hero-stat span { display:block; margin-top:4px; text-align:left; }
  .card-json, .card-url { grid-column:span 6; }
  .card-text, .card-time, .card-hash { grid-column:span 4; }
  .guide-grid { grid-template-columns:1fr 1fr; }
  .closing-inner { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 760px) {
  .hero { min-height: 820px; }
  .hero-sun { width: 88vw; right:-18vw; top:16vh; }
  .hero-title .line-2, .hero-title .line-3 { margin-left:0; }
  .hero-sub { align-items:flex-start; flex-direction:column; }
  .hero-aside { grid-template-columns:1fr; }
  .hero-stat { display:flex; border-right:0; border-bottom:1px solid rgba(255,255,255,.12); }
  .hero-stat span { display:initial; text-align:right; }
  .scroll-cue { display:none; }
  .metrics { grid-template-columns:1fr; }
  .metric { padding-left:0; }
  .section-head { align-items:flex-start; flex-direction:column; }
  .bento { grid-template-columns:1fr; }
  .tool-card, .card-json, .card-url, .card-text, .card-time, .card-hash { grid-column:auto; min-height:340px; }
  .url-results { grid-template-columns:1fr; }
  .local-visual { min-height:320px; }
  .local-ring { width:280px; }.local-ring.r2{width:210px}.local-core{width:140px}
  .guide-grid { grid-template-columns:1fr; }
}
