:root{--dark:#2a2f33;--deep:#22262a;--teal:#00b4a0;--blue:#2a6df0;--muted:#666;--line:#e6e6e6;--grey:#f6f7f8;
--sans:"Avenir Next","Segoe UI Variable Display","Segoe UI",system-ui,"Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;background:#fff;color:#1c2024;font:300 1.0625rem/1.65 var(--sans)}
a{color:inherit}
:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
h1,h2,h3{margin:0;font-weight:300}
.c{width:min(1170px,calc(100% - 48px));margin:0 auto}
.narrow{max-width:760px}.center{text-align:center}

.top{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1.4rem;min-height:75px;padding:0 6.6vw;background:var(--dark)}
.brand{display:flex;align-items:center;gap:.8rem;color:#fff;text-decoration:none;font-weight:300;font-size:1.15rem}
.brand img{height:44px;width:auto;display:block}
.brand span{padding-left:.8rem;border-left:1px solid rgba(255,255,255,.3)}
.top nav{display:flex;justify-content:center;gap:2rem}
.top nav a{color:#fff;text-decoration:none;font-size:1rem;transition:color .15s}
.top nav a:hover{color:var(--teal)}
.repo{justify-self:end;display:inline-flex;align-items:center;gap:.45rem;color:#fff;text-decoration:none;font-size:.95rem;transition:color .15s}
.repo:hover{color:var(--teal)}

.btn{display:inline-block;padding:.8rem 1.6rem;border:1px solid var(--teal);border-radius:4px;background:var(--teal);color:#fff;font:400 1.0625rem var(--sans);text-decoration:none;cursor:pointer}
.btn:hover{background:#0ac7b2}
.btn.ghost{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.75)}
.btn.ghost:hover{background:rgba(255,255,255,.15)}

.hero{position:relative;background:linear-gradient(rgba(42,47,51,.82),rgba(42,47,51,.9)),var(--dark);color:#fff;text-align:center;padding:clamp(4rem,9vw,7rem) 0}
.hero::before{content:"";position:absolute;inset:0;background:url("assets/images/iotex-wallet-network-contours.svg") center bottom/cover no-repeat;opacity:.7;pointer-events:none}
.hero .c{position:relative}
.hero h1{font-size:clamp(1.9rem,4.2vw,2.75rem);line-height:1.2;max-width:22ch;margin:0 auto 1rem}
.hero p{font-size:clamp(1.05rem,2vw,1.35rem);max-width:38rem;margin:0 auto 2rem;color:#dfe4e8}
.actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}

section.white,section.grey,section.dark{padding:clamp(3.5rem,8vw,6.5rem) 0}
section.tight{padding-top:0}
.white{background:#fff}.grey{background:var(--grey);border-block:1px solid var(--line)}
.dark{background:var(--dark);color:#fff}
h2{font-size:clamp(1.55rem,3vw,2.1rem);line-height:1.25;margin-bottom:1rem}
h2.center{margin-bottom:3rem}
p{margin:0 0 1rem}
.split{display:grid;grid-template-columns:1fr 1.25fr;gap:clamp(2rem,6vw,5rem);align-items:center}
.split.rev{grid-template-columns:1fr 1fr}
.split p{color:var(--muted);max-width:30rem}
.dark p{color:#c9d0d5}
.link{color:var(--blue);text-decoration:none}.link:hover{text-decoration:underline}
.shotwrap{margin:0}
.shotwrap img{display:block;width:100%;height:auto;box-shadow:0 18px 50px rgba(0,0,0,.14)}
figcaption,.note{margin:1rem 0 0;font-size:.875rem;color:var(--muted)}
.dark .note{color:#aab2b8}
.dlg{width:100%;height:auto;box-shadow:0 18px 50px rgba(0,0,0,.45)}

.feats{display:grid;grid-template-columns:repeat(3,1fr);gap:56px 45px;text-align:center}
.ic{display:inline-grid;place-items:center;width:84px;height:84px;margin-bottom:20px;border-radius:50%;background:var(--line)}
.ic svg{width:38px;height:38px;fill:none;stroke:var(--blue);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.feats h3{font-size:1.25rem;font-weight:400;margin-bottom:.6rem}
.feats p{color:var(--muted);line-height:1.6;max-width:290px;margin:0 auto}
.feats+.note{text-align:center;margin-top:3rem}

.narrow p{color:var(--muted)}.dark .narrow p{color:#c9d0d5}
.trio{display:grid;grid-template-columns:repeat(3,1fr);gap:45px;text-align:center}
.trio h3{font-size:1.25rem;font-weight:400;margin-bottom:.6rem}
.trio p{color:var(--muted);max-width:300px;margin:0 auto}
.plats{list-style:none;margin:2rem auto 0;padding:0;max-width:26rem}
.plats li{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 0;border-top:1px solid rgba(255,255,255,.18);font-size:1.1rem}
.plats li span{display:inline-flex;align-items:center;gap:.7rem}
.plats img{flex:0 0 auto}
.repo-note{margin:1.4rem 0 0}
.repo-inline{display:inline-flex;align-items:center;gap:.5rem;color:#fff;text-decoration:none}
.repo-inline:hover{text-decoration:underline}
details{border-top:1px solid var(--line);padding:1.1rem 0}
details:last-of-type{border-bottom:1px solid var(--line)}
summary{cursor:pointer;font-weight:400;list-style:none;display:flex;justify-content:space-between}
summary::after{content:"+";color:var(--blue)}
details[open] summary::after{content:"–"}
details p{margin:.7rem 0 0;color:var(--muted)}
.flogo{display:inline-block;margin-bottom:.8rem}.flogo img{height:44px;width:auto;display:block}
footer{text-align:center;color:var(--muted);padding:40px 24px 70px;font-size:.95rem}
footer p{margin:0 0 .6rem}footer a{margin:0 .7rem;color:var(--muted)}
.foot-github{display:inline-flex;align-items:center;gap:.35rem}
.foot-github img{filter:invert(42%)}

@media(max-width:900px){.split,.split.rev{grid-template-columns:1fr;text-align:center}.split p{margin-inline:auto}.split.rev .dlg{order:2}.feats,.trio{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.top{grid-template-columns:1fr;justify-items:center;padding:12px 22px}.top nav{gap:1.1rem}.repo{justify-self:center}}
@media(max-width:600px){.feats,.trio{grid-template-columns:1fr}.top{gap:8px}.top nav{flex-wrap:wrap}.top nav a{font-size:.9rem}.plats li{align-items:flex-start;flex-direction:column}.plats .btn{width:100%;text-align:center}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
