/* Home page. Sizes are capped in rem, so the page keeps its proportions on a
   wide laptop window; the first screen holds the headline, the text and the
   main button at 1366 x 650 and up. Colours are tokens: the light scheme is
   the default, [data-theme="dark"] on <html> switches to the wallet's dark
   blue. */

@font-face { font-family: "Sora"; src: url("../fonts/sora-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --hero: linear-gradient(180deg, hsl(203 90% 95%) 0%, #ffffff 78%);
  --ink: hsl(222 47% 10%);
  --muted: hsl(218 14% 36%);
  --faint: hsl(218 12% 44%);
  --line: hsl(216 24% 89%);
  --accent: hsl(199 89% 38%);
  --btn: hsl(199 89% 38%);
  --btn-hover: hsl(200 92% 32%);
  --btn-ink: #ffffff;
  --btn-glow: hsl(199 89% 40% / 0.55);
  --pill: hsl(222 47% 10%);
  --pill-hover: hsl(222 40% 20%);
  --pill-ink: #ffffff;
  --bar: #ffffff;
  --bar-shadow: 0 1px 0 hsl(216 24% 89%), 0 12px 30px -18px hsl(222 50% 20% / 0.25);
  --t1: hsl(203 88% 94%);
  --t2: hsl(220 30% 94%);
  --t3: hsl(238 78% 96%);
  --t4: hsl(172 52% 93%);
  --band: hsl(203 88% 95%);
  --close: linear-gradient(180deg, #ffffff 0%, hsl(203 90% 95%) 100%);
  --card-line: transparent;
  --shot: 0 30px 60px -28px hsl(222 60% 12% / 0.5);
  --focus: hsl(199 89% 38%);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: hsl(222 45% 6%);
  --hero: radial-gradient(70% 90% at 50% 0%, hsl(205 70% 14%) 0%, hsl(222 45% 6%) 72%);
  --ink: hsl(210 30% 96%);
  --muted: hsl(215 16% 72%);
  --faint: hsl(215 14% 60%);
  --line: hsl(220 30% 17%);
  --accent: hsl(199 82% 60%);
  --btn: hsl(199 78% 55%);
  --btn-hover: hsl(199 82% 62%);
  --btn-ink: hsl(205 80% 8%);
  --btn-glow: hsl(199 80% 50% / 0.35);
  --pill: hsl(210 30% 96%);
  --pill-hover: #ffffff;
  --pill-ink: hsl(222 45% 8%);
  --bar: hsl(222 40% 9%);
  --bar-shadow: 0 0 0 1px hsl(220 30% 18%);
  --t1: hsl(206 52% 13%);
  --t2: hsl(222 32% 12%);
  --t3: hsl(236 34% 14%);
  --t4: hsl(176 36% 11%);
  --band: hsl(206 52% 12%);
  --close: linear-gradient(180deg, hsl(222 45% 6%) 0%, hsl(206 60% 11%) 100%);
  --card-line: hsl(220 30% 20%);
  --shot: 0 30px 60px -28px rgb(0 0 0 / 0.8);
  --focus: hsl(199 82% 62%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; font: 17px/1.55 "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--pill); color: var(--pill-ink); padding: 10px 14px; border-radius: 8px; }
.wrap { width: min(1180px, 100% - 64px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- header and first screen ---------- */
.hero { background: var(--hero); padding: 18px 0 clamp(36px, 6vh, 60px); text-align: center; }
.bar { position: relative; min-height: 66px; border-radius: 33px; background: var(--bar); box-shadow: var(--bar-shadow); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 12px 0 24px; text-align: left; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 19px "Sora", sans-serif; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; }
.nav { display: flex; gap: 30px; font-size: 15.5px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.bar-end { display: flex; align-items: center; gap: 8px; }
.bar-cta { white-space: nowrap; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); transition: background 0.15s; }
.bar-cta:hover { background: var(--btn-hover); }
.menu { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.menu svg { width: 22px; height: 22px; }

.proof { margin-top: clamp(34px, 6.5vh, 62px); margin-bottom: 18px; display: inline-flex; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.proof span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin: 0 14px; vertical-align: 3px; }
h1 { font: 600 clamp(2.3rem, 3.3vw, 3.5rem)/1.1 "Sora", sans-serif; letter-spacing: -0.032em; margin-inline: auto; max-width: 17em; text-wrap: balance; }
.lede { margin: 20px auto 0; max-width: 37rem; font-size: clamp(1.04rem, 1.15vw, 1.2rem); color: var(--muted); text-wrap: pretty; }
.go { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.big { display: inline-block; font-weight: 600; font-size: 18px; padding: 17px 34px; border-radius: 16px; background: var(--btn); color: var(--btn-ink); box-shadow: 0 14px 28px -14px var(--btn-glow); transition: background 0.15s, transform 0.15s; }
.big:hover { background: var(--btn-hover); transform: translateY(-1px); }
.or { font-size: 15.5px; color: var(--muted); }
.or a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.net { margin-top: 22px; font: 11.5px "JetBrains Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

/* ---------- sections ---------- */
section { scroll-margin-top: 24px; }
.sec { padding: clamp(48px, 8vh, 84px) 0; }
.sec-head { text-align: center; margin-bottom: 30px; }
h2 { font: 600 clamp(1.55rem, 2.2vw, 2.15rem)/1.18 "Sora", sans-serif; letter-spacing: -0.028em; text-wrap: balance; }
.sec-head p { margin: 12px auto 0; max-width: 36rem; color: var(--muted); }

/* products: four cards with real screenshots */
.products { padding: clamp(26px, 4vh, 44px) 0 clamp(40px, 7vh, 72px); }
.products .sec-head { margin-bottom: 26px; }
.products h2 { font-size: clamp(1.3rem, 1.7vw, 1.65rem); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { border-radius: 28px; padding: 34px 0 0 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 18px; min-height: 372px; overflow: hidden; border: 1px solid var(--card-line); }
.c1 { background: var(--t1); } .c2 { background: var(--t2); } .c3 { background: var(--t3); } .c4 { background: var(--t4); }
.card h3 { font: 600 27px/1.15 "Sora", sans-serif; letter-spacing: -0.025em; margin-bottom: 6px; }
.card .sub { margin-bottom: 16px; color: var(--muted); font-size: 15.5px; }
.card ul { list-style: none; padding: 0; margin-bottom: 22px; font-size: 15.5px; }
.card li { padding-left: 26px; position: relative; margin: 7px 0; }
.card li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 34px; }
.pill { font-weight: 600; font-size: 15px; padding: 11px 18px; border-radius: 12px; background: var(--pill); color: var(--pill-ink); transition: background 0.15s; }
.pill:hover { background: var(--pill-hover); }
.src { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.src:hover { color: var(--ink); }
.pic { align-self: end; justify-self: end; width: 100%; }
.frame { border-radius: 12px 0 0 0; overflow: hidden; box-shadow: var(--shot); background: hsl(222 40% 9%); width: 165%; }
.chrome { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: hsl(222 34% 13%); border-bottom: 1px solid hsl(220 30% 18%); font: 11px "JetBrains Mono", monospace; color: hsl(215 16% 66%); }
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: hsl(220 20% 30%); }
.chrome .url { margin-left: 10px; padding: 3px 12px; border-radius: 6px; background: hsl(222 40% 8%); }
.chrome .title { margin: 0 auto; font: 11.5px "Instrument Sans", sans-serif; }
.chrome .ctl { letter-spacing: 0.5em; font-size: 12px; }
.frame img { width: 100%; }
.pic.device img { width: min(230px, 78%); margin: 0 34px 0 auto; border-radius: 26px 26px 0 0; border: 6px solid hsl(222 40% 5%); border-bottom: 0; box-shadow: var(--shot); }
.pic.panel img { width: min(250px, 82%); margin: 0 34px 0 auto; border-radius: 18px 18px 0 0; box-shadow: var(--shot); }
.shot-note { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--faint); }

/* why: three plain facts */
.why { border-block: 1px solid var(--line); }
.why .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.why div { padding: 30px 30px 32px 0; }
.why div + div { padding-left: 30px; border-left: 1px solid var(--line); }
.why h3 { font: 600 17px "Sora", sans-serif; letter-spacing: -0.01em; margin-bottom: 6px; }
.why p { font-size: 15px; color: var(--muted); }
.why a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ecosystem: heading left, plain rows right */
.eco .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.eco .intro p { margin-top: 14px; color: var(--muted); max-width: 26rem; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--line); transition: background 0.15s; }
.row:hover { background: color-mix(in srgb, var(--t1) 55%, transparent); }
.row b { font: 600 17px "Sora", sans-serif; letter-spacing: -0.01em; }
.row span { color: var(--muted); font-size: 15.5px; }
.row i { font-style: normal; color: var(--accent); font-weight: 600; }

/* test network band */
.band { border-radius: 28px; background: var(--band); border: 1px solid var(--card-line); padding: clamp(26px, 3vw, 38px) clamp(24px, 3.4vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.band h2 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
.band p { margin-top: 8px; color: var(--muted); max-width: 44rem; font-size: 16px; }
.band .pill { white-space: nowrap; }

/* questions */
.faq .wrap { width: min(820px, 100% - 64px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 4px; position: relative; font: 600 17.5px "Sora", sans-serif; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 10px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 30px; }
.faq details p { padding: 0 40px 22px 4px; color: var(--muted); }
.faq details a, .foot a.u { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* closing */
.close { text-align: center; background: var(--close); }
.close .wrap { padding-block: 8px; }
.close p { margin: 12px auto 0; color: var(--muted); max-width: 30rem; }
.close .go { margin-top: 26px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot .about p { margin-top: 12px; color: var(--muted); max-width: 17rem; }
.foot h3 { font: 500 11.5px "JetBrains Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; }
.foot li { margin: 7px 0; }
.foot li a { color: var(--muted); }
.foot li a:hover { color: var(--ink); }
.foot .legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--faint); font-size: 14px; }
.foot .legal a { margin-left: 18px; }
.foot .legal a:first-child { margin-left: 0; }

/* ---------- smaller windows ---------- */
@media (max-width: 1020px) {
  .card { grid-template-columns: 1fr; padding: 30px 30px 0; }
  .pic { justify-self: center; }
  .frame { width: 100%; border-radius: 12px 12px 0 0; }
  .pic.device img, .pic.panel img { margin-inline: auto; }
}
@media (max-width: 860px) {
  .wrap, .faq .wrap { width: calc(100% - 36px); }
  .menu { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 0; padding: 8px; border-radius: 20px; background: var(--bar); box-shadow: var(--bar-shadow), 0 24px 40px -20px hsl(222 50% 10% / 0.4); z-index: 5; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 16px; border-radius: 12px; color: var(--ink); }
  .bar { padding-left: 18px; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 26px 22px 0; min-height: 0; }
  .pills { padding-bottom: 24px; }
  .why .wrap { grid-template-columns: 1fr; }
  .why div, .why div + div { padding: 18px 0; border-left: 0; }
  .why div + div { border-top: 1px solid var(--line); }
  .eco .wrap { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr auto; }
  .row span { grid-column: 1 / -1; grid-row: 2; }
  .band { flex-direction: column; align-items: flex-start; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
  .proof { flex-direction: column; gap: 2px; }
  .proof span + span::before { display: none; }
}
@media (max-width: 420px) {
  .bar-cta { padding: 10px 14px; }
  .brand { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
