/* =============================================================================
   Homepage — structure borrowed, identity kept
   -----------------------------------------------------------------------------
   Structure from two references: MiroMiro (announcement strip, a hero held in a
   rounded card with a notched foot and product cards fanned across the seam,
   alternating feature rows, closing CTA) and Paper (two-tone headings, a full
   product window with a terminal over it, statement + visual + paired details).
   Everything visual is Wrenik's own: the tokens, the faces, the mark, HexNet.
   ========================================================================== */

:root { --panel-hero: #0E1117; --fillet: 32px; }

/* ---- announcement strip (MiroMiro) --------------------------------------- */
.strip {
  position: relative; z-index: 101;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 44px; font-size: 13px; color: var(--muted);
  background: linear-gradient(90deg, transparent, rgba(255,163,26,.10), transparent), var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.strip b { font-family: var(--tech); font-weight: 400; font-size: 9.5px; letter-spacing: .2em; color: var(--amber);
  border: 1px solid var(--line-amber); border-radius: 999px; padding: 2px 8px; }
.strip a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-amber); text-underline-offset: 3px; }
.strip a:hover { text-decoration-color: var(--amber); }
.strip button { position: absolute; right: 14px; background: none; border: 0; color: var(--faint); font-size: 16px; cursor: pointer; }

/* Paper's restraint in the nav: lowercase, few links. */
.nav-links a { text-transform: lowercase; }

/* ---- hero: a rounded card with a notched foot (MiroMiro) ---------------- */
.hero-shell { position: relative; padding: 18px clamp(12px, 2vw, 24px) 0; }
.hero-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--fillet);
  padding: clamp(70px, 9vw, 110px) var(--gutter) clamp(150px, 15vw, 210px);
  text-align: center;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(255,163,26,.13), transparent 62%),
    radial-gradient(60% 50% at 85% 100%, rgba(143,163,191,.08), transparent 60%),
    linear-gradient(180deg, #0C0F14 0%, var(--panel-hero) 70%);
}
/* HexNet takes the place of MiroMiro's light streaks, and fades out before the foot
   so the card and its tab meet on a flat colour with no seam. */
.hero-field { position: absolute; inset: -6% -4% 22% -4%; z-index: -1; opacity: .42; pointer-events: none; }
/* Lit at the edges, quiet behind the words: the field is atmosphere, and it was
   winning against the subhead every time a cell flared under it. */
.hero-field .hx-svg {
  -webkit-mask-image: radial-gradient(38% 40% at 50% 46%, transparent 40%, #000 100%),
                      linear-gradient(#000 55%, transparent 92%);
  -webkit-mask-composite: source-in;
          mask-image: radial-gradient(38% 40% at 50% 46%, transparent 40%, #000 100%),
                      linear-gradient(#000 55%, transparent 92%);
          mask-composite: intersect;
}
/* The tab below the card — same colour, rounded foot, concave fillets where it joins. */
.hero-tab {
  position: relative; margin: -1px auto 0; width: min(980px, 72%); height: clamp(150px, 16vw, 210px);
  background: var(--panel-hero); border-radius: 0 0 var(--fillet) var(--fillet);
}
.hero-tab::before, .hero-tab::after {
  content: ""; position: absolute; top: 0; width: var(--fillet); height: var(--fillet);
}
.hero-tab::before { left: calc(-1 * var(--fillet)); background: radial-gradient(circle at 0 100%, transparent calc(var(--fillet) - .5px), var(--panel-hero) var(--fillet)); }
.hero-tab::after  { right: calc(-1 * var(--fillet)); background: radial-gradient(circle at 100% 100%, transparent calc(var(--fillet) - .5px), var(--panel-hero) var(--fillet)); }

.proof {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13.5px; color: var(--muted);
  background: rgba(255,255,255,.035); border: 1px solid var(--line-2);
}
.proof i { font-style: normal; font-family: var(--tech); font-size: 9.5px; letter-spacing: .18em; color: #1A1103;
  background: var(--amber); border-radius: 999px; padding: 5px 9px; }

/* Paper's two-tone heading: the claim in white, the continuation muted. */
.two-tone { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
.two-tone span { display: block; color: #7C8494; }
.hero-card h1 { font-size: clamp(40px, 6.2vw, 78px); margin: 26px auto 0; max-width: 16ch; }
/* MiroMiro's hero earns its fan by keeping the heading to two lines. The muted
   continuation is Paper's two-tone, set as a subhead so it does not push the cards
   below the fold. */
.hero-card h1 span { font-size: .44em; letter-spacing: -.02em; line-height: 1.25; margin-top: 14px; }
.hero-line { margin-top: 22px; font-family: var(--tech); font-size: 11px; letter-spacing: .26em; color: var(--amber); }
.hero-card .lead { margin: 18px auto 0; max-width: 58ch; color: var(--muted); font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.6; }
.hero-actions { justify-content: center; margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* The fan: three product cards breaking across the seam between card and tab. */
.fan {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(1060px, 92%); height: clamp(330px, 34vw, 420px); z-index: 5; pointer-events: none;
}
.fan-card {
  position: absolute; bottom: 0; width: clamp(240px, 30%, 330px); pointer-events: auto;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 14px; text-align: left; font-size: 12px;
  transition: transform .55s var(--ease);
}
.fan-l { left: 6%;  transform: rotate(-7deg) translateY(10px); transform-origin: bottom right; }
.fan-c { left: 50%; transform: translateX(-50%); z-index: 2; width: clamp(270px, 36%, 380px); bottom: 22px; }
.fan-r { right: 6%; transform: rotate(7deg) translateY(10px); transform-origin: bottom left; }
.fan:hover .fan-l { transform: rotate(-10deg) translate(-16px, 2px); }
.fan:hover .fan-r { transform: rotate(10deg) translate(16px, 2px); }
.fan:hover .fan-c { transform: translateX(-50%) translateY(-8px); }

/* ---- miniature Wrenik UI, used across the page --------------------------- */
.ui-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.ui-title { font-family: var(--tech); font-size: 9px; letter-spacing: .2em; color: var(--faint); }
.ui-count { font-family: var(--mono); font-size: 10px; color: var(--amber); border: 1px solid var(--line-amber); border-radius: 999px; padding: 1px 8px; }
.cap { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.cap + .cap { margin-top: 7px; }
.cap-shot { width: 42px; height: 32px; border-radius: 6px; flex: none; border: 1px solid var(--line-2); }
.cap-shot.a { background: linear-gradient(135deg, #2A3344, #151922 60%), #151922; }
.cap-shot.b { background: radial-gradient(circle at 30% 30%, rgba(255,163,26,.55), transparent 60%), #1A1F29; }
.cap-shot.c { background: repeating-linear-gradient(90deg, #232A36 0 5px, #1A1F29 5px 10px); }
.cap b { display: block; font-size: 11.5px; font-weight: 600; color: var(--text); }
.cap small { font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
.cap .tag { margin-left: auto; font-family: var(--mono); font-size: 9px; color: var(--amber); }

.chain { display: flex; flex-direction: column; gap: 0; }
.link { display: flex; gap: 10px; align-items: flex-start; position: relative; padding: 0 0 12px 0; }
.link:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 0; width: 1px; background: linear-gradient(var(--amber), var(--line-2)); }
.link i { width: 9px; height: 9px; border-radius: 50%; margin-top: 3px; flex: none; background: var(--amber); box-shadow: 0 0 0 3px rgba(255,163,26,.15); }
.link i.s { background: var(--steel); box-shadow: 0 0 0 3px rgba(143,163,191,.14); }
.link b { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; color: var(--amber); font-weight: 600; }
.link span { display: block; font-size: 11.5px; color: var(--text); line-height: 1.4; }
.link small { font-family: var(--mono); font-size: 9.5px; color: var(--faint); }

.matrix { width: 100%; border-collapse: collapse; font-size: 11px; }
.matrix th { font-family: var(--tech); font-weight: 400; font-size: 8px; letter-spacing: .14em; color: var(--faint); text-align: center; padding: 0 0 7px; }
.matrix th:first-child { text-align: left; }
.matrix td { padding: 5px 0; border-top: 1px solid var(--line); color: var(--muted); }
.matrix td.c { text-align: center; }
.bars { display: inline-flex; gap: 2px; }
.bars i { width: 4px; height: 11px; border-radius: 1px; background: var(--line-2); }
.bars i.on { background: var(--amber); }
.bars i.full { background: var(--green); }

.gapline { margin-top: 10px; padding: 10px; border-radius: 10px; background: rgba(255,163,26,.06); border: 1px solid var(--line-amber); }
.gapline b { display: block; font-family: var(--tech); font-weight: 400; font-size: 8px; letter-spacing: .2em; color: var(--amber); margin-bottom: 5px; }
.gapline p { font-size: 11.5px; color: var(--text); line-height: 1.45; }

/* ---- statement + product window + terminal (Paper) ---------------------- */
.statement { text-align: center; padding-top: clamp(80px, 10vw, 130px); }
.statement h2 { font-size: clamp(34px, 5vw, 62px); max-width: 18ch; margin: 22px auto 0; }
.statement .lead { margin: 20px auto 0; max-width: 54ch; color: var(--muted); font-size: 17px; }

.window-wrap { position: relative; margin-top: clamp(44px, 6vw, 70px); }
.window {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2);
  box-shadow: 0 60px 140px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.02);
}
.win-bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #0D1015; }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2B313C; }
.win-tabs { display: flex; gap: 4px; font-size: 12px; color: var(--faint); overflow: hidden; }
.win-tabs span { padding: 5px 12px; border-radius: 7px; white-space: nowrap; }
.win-tabs span.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.win-body { display: grid; grid-template-columns: 196px minmax(0, 1fr) 300px; min-height: 520px; }
.win-side { border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.win-side .brandmini { display: flex; align-items: center; gap: 8px; padding: 0 8px 14px; }
.win-side .brandmini img:first-child { height: 20px; width: auto; }
.win-side .brandmini img:last-child { height: 10px; width: auto; }
.win-side a { font-size: 12.5px; color: var(--muted); padding: 6px 10px; border-radius: 8px; display: flex; justify-content: space-between; }
.win-side a.on { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--amber); }
.win-side a em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--faint); }
.win-main { padding: 26px 28px; text-align: left; }
.win-crumbs { font-size: 11px; color: var(--faint); }
.win-main h3 { font-family: var(--display); font-size: 25px; letter-spacing: -.02em; margin: 8px 0 6px; }
.win-main > p { font-size: 13px; color: var(--muted); max-width: 52ch; }
.win-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel); }
.rail { display: flex; gap: 10px; overflow: hidden; }
.step { flex: 0 0 160px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; background: var(--surface); position: relative; }
.step + .step::before { content: ""; position: absolute; left: -11px; top: 50%; width: 10px; height: 1px; background: var(--amber); }
.step b { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; color: var(--amber); font-weight: 600; }
.step small { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--faint); margin: 3px 0 6px; }
.step span { font-size: 11.5px; line-height: 1.4; color: var(--text); }
.win-right { border-left: 1px solid var(--line); padding: 18px 16px; text-align: left; }
/* Sits to the right of the terminal that overlaps the window's corner, so both read. */
.win-reply { margin-left: min(44%, 300px); }
.reply { font-size: 13px; color: var(--text); line-height: 1.5; }
.reply-who { margin-top: 6px; font-family: var(--mono); font-size: 10px; color: var(--faint); }
.next { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.next b { display: block; font-family: var(--tech); font-weight: 400; font-size: 8px; letter-spacing: .2em; color: var(--amber); margin-bottom: 4px; }
.next span { font-size: 12px; color: var(--muted); line-height: 1.45; }
@media (max-width: 1080px) { .win-reply { margin-left: 0; } }
.win-right .gapline { margin-top: 14px; }

.term-float { position: absolute; left: clamp(-10px, -2vw, -30px); bottom: -48px; width: min(470px, 70%); z-index: 3;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.95); text-align: left; }
.term-float .term-body { font-size: 12.5px; line-height: 1.7; }

/* ---- alternating feature rows (MiroMiro) with paired details (Paper) ----- */
.rows { padding-top: clamp(130px, 14vw, 180px); display: flex; flex-direction: column; gap: clamp(90px, 11vw, 140px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 80px); align-items: center; text-align: left; }
.row.flip .row-copy { order: 2; }
.row h3 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.025em; margin: 16px 0 14px; }
.row h3 span { color: #7C8494; }
.row .lead { color: var(--muted); font-size: 16.5px; max-width: 46ch; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.pairs b { display: block; font-size: 14px; color: var(--text); margin-bottom: 5px; }
.pairs p { font-size: 13.5px; color: var(--faint); line-height: 1.55; }
.visual { position: relative; border-radius: 18px; padding: 22px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); overflow: hidden; }
.visual .sec-net { position: absolute; inset: auto -14% -38% auto; width: 62%; height: 72%; opacity: .2; pointer-events: none; }
.visual > *:not(.sec-net) { position: relative; }
.visual .term { box-shadow: none; }

.quote { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 12px; line-height: 1.3; }
.quote span { color: var(--amber); }

/* ---- 3-up mini grid (MiroMiro) ------------------------------------------- */
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(90px, 11vw, 140px); }
.mini > div { padding: 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-align: left; transition: border-color .2s var(--ease); }
.mini > div:hover { border-color: var(--line-amber); }
/* display:block is load-bearing: these are spans, and an inline element ignores its
   width and height — the field grew to fill each card instead of sitting as an icon. */
.mini .hexnet { display: block; width: 52px; height: 30px; margin-bottom: 18px; }
.mini h4 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.015em; margin-bottom: 8px; }
.mini p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---- the loop (Paper's full-circle section) ------------------------------ */
.loop { text-align: center; padding-top: clamp(110px, 13vw, 170px); position: relative; }
.loop h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 16ch; margin: 22px auto 0; }
.loop-track { position: relative; margin-top: 54px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 0; }
.loop-track .node { padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13.5px; color: var(--text); }
.loop-track .node.hot { border-color: var(--line-amber); color: var(--amber); }
.loop-track .arr { align-self: center; color: var(--faint); padding: 0 10px; font-family: var(--mono); }
.loop-back { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.loop-back b { color: var(--amber); font-weight: 400; }

/* ---- for agents ---------------------------------------------------------- */
.agents { padding-top: clamp(110px, 13vw, 170px); }
.code { font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
.code .k { color: var(--text); font-weight: 600; }
.code .a { color: var(--amber); }
.code .d { color: var(--faint); }
.code .s { color: var(--steel); }

/* ---- journal (Paper's 2-up cards) ---------------------------------------- */
.journal { padding-top: clamp(110px, 13vw, 170px); text-align: left; }
.journal-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.journal-head h2 { font-family: var(--display); font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.025em; }
.journal-head a { color: var(--amber); font-size: 14px; }
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.post { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.post:hover { border-color: var(--line-amber); transform: translateY(-2px); }
.post-art { height: 190px; position: relative; overflow: hidden; background: radial-gradient(80% 90% at 30% 20%, rgba(255,163,26,.14), transparent 60%), var(--bg-2); border-bottom: 1px solid var(--line); }
.post-art .hexnet { position: absolute; inset: 0; }
.post-copy { padding: 20px 22px 24px; }
.post-copy small { font-family: var(--tech); font-size: 9.5px; letter-spacing: .2em; color: var(--faint); }
.post-copy h3 { font-family: var(--display); font-size: 21px; letter-spacing: -.015em; margin: 10px 0 8px; line-height: 1.2; }
.post-copy p { font-size: 14px; color: var(--muted); }

/* ---- closing CTA ---------------------------------------------------------- */
.closing { text-align: center; padding: clamp(120px, 14vw, 180px) 0 clamp(90px, 10vw, 130px); }
.closing .cta-net { height: 220px; }
.closing h2 { font-size: clamp(38px, 6vw, 72px); max-width: 14ch; margin: 6px auto 0; }
.closing p { margin: 18px auto 0; color: var(--muted); max-width: 46ch; font-size: 17px; }
.closing .hero-actions { margin-top: 30px; }

/* ---- footer columns (MiroMiro) ------------------------------------------- */
.foot-cols a, .foot-cols span { display: block; }


/* ---- smaller screens ------------------------------------------------------ */
@media (max-width: 1080px) {
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .win-side, .win-right { display: none; }
  .term-float { position: relative; left: 0; bottom: 0; width: 100%; margin-top: 16px; }
}
@media (max-width: 860px) {
  .row, .row.flip { grid-template-columns: 1fr; }
  .row.flip .row-copy { order: 0; }
  .mini { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .fan-l, .fan-r { display: none; }
  .fan-c { width: min(340px, 92%); }
  .hero-tab { width: 86%; }
}
@media (max-width: 560px) {
  .nav-cta .btn { --pad: 9px 14px; font-size: 13.5px; }
  .brand-word { height: 15px; }
  .pairs { grid-template-columns: 1fr; }
  .strip { font-size: 12px; padding-right: 38px; }
  .strip b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fan-card, .post, .mini > div { transition: none; }
}

/* ---- the download block, now the page's close ---------------------------- */
.closing #dl .apple { width: 15px; height: 15px; }
.closing #dl-version:not(:empty)::before { content: " "; }
.closing .btn-sub { margin-top: 12px; }
.closing .dl-meta { margin-top: 26px; justify-content: center; }

/* ---- what you can have today, and what is next --------------------------------
   The page describes more than the current release contains. Every section says
   which side of that line it is on, in the same place, the same way — the hero says
   it first, the strip says it at the top, and nothing here is in the present tense
   unless the Download button delivers it. */
.avail {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 4px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .02em; text-transform: none;
  padding: 2px 9px; border-radius: 999px; vertical-align: middle; white-space: nowrap;
}
.avail::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.avail.soon { color: var(--steel); border: 1px solid rgba(143,163,191,.32); background: rgba(143,163,191,.06); }
.avail.now  { color: var(--green); border: 1px solid rgba(74,222,128,.3);  background: rgba(74,222,128,.06); }
.mini .avail { margin: 0 0 12px; }
