/* jibital.ir landing: "night caravan", dusk to dawn. Self-hosted fonts only (no outside requests). */

@font-face {
  font-family: "Vazirmatn";
  src: url(fonts/vazirmatn-arabic.woff2) format("woff2-variations"), url(fonts/vazirmatn-arabic.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Vazirmatn";
  src: url(fonts/vazirmatn-latin.woff2) format("woff2-variations"), url(fonts/vazirmatn-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Lalezar has one weight; declaring 400–900 stops the browser faking bold when display text asks for 800.
   Its Persian digits (hollow zeros) and separators are left out of the range on purpose, so numbers in
   display text fall through to Vazirmatn at that same 800 weight. */
@font-face {
  font-family: "Lalezar";
  src: url(fonts/lalezar-arabic.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0600-066A, U+066D-06EF, U+06FA-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Lalezar";
  src: url(fonts/lalezar-latin.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --night-0: #050919;
  --night-1: #0a1029;
  --night-2: #10183a;
  --night-3: #18224d;
  --night-4: #24316a;
  --sand: #f3e7cb;
  --sand-2: #cfc09f;
  --sand-3: #9d927a;
  --brass: #d4aa5e;
  --brass-2: #9c7b3e;
  --brass-line: rgba(212, 170, 94, 0.28);
  --saffron: #f2a93b;
  --saffron-hi: #ffc766;
  --turq: #4bc9b7;
  --pom: #e5664b;
  --paper: #f4ead2;
  --paper-2: #e9dab6;
  --ink: #2a2016;
  --ink-2: #6a5842;
  --earth: #140e09;
  --font-body: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --font-display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --star: polygon(50% 0, 64.64% 14.64%, 85.36% 14.64%, 85.36% 35.36%, 100% 50%, 85.36% 64.64%, 85.36% 85.36%, 64.64% 85.36%, 50% 100%, 35.36% 85.36%, 14.64% 85.36%, 14.64% 64.64%, 0 50%, 14.64% 35.36%, 14.64% 14.64%, 35.36% 14.64%);
  --cartouche: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--night-1);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.95;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--saffron); }
code { font-family: var(--font-mono); font-size: 0.86em; color: var(--turq); background: rgba(75, 201, 183, 0.08); padding: 1px 6px; border-radius: 4px; unicode-bidi: isolate; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(242, 169, 59, 0.35); color: #fff; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--saffron); color: #1e1408; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- sky (fixed star field behind everything) ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 15% -10%, #1b2660 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 5%, #131f4b 0%, transparent 55%),
    linear-gradient(180deg, var(--night-0), var(--night-1) 45%, var(--night-1));
}
.sky canvas { width: 100%; height: 100%; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 0.35s, border-color 0.35s; }
.top.scrolled { background: rgba(7, 11, 30, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--brass-line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--sand); text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 27px; line-height: 1.1; }
.brand small { display: block; font-size: 12px; color: var(--sand-3); line-height: 1.3; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { color: var(--sand-2); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; transition: color 0.2s, background-color 0.2s; }
.nav a:hover { color: var(--sand); background: rgba(212, 170, 94, 0.09); }
.menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--brass-line); background: transparent; color: var(--sand); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }

/* ---------- buttons: cartouche (کتیبه) shape ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 17px 34px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  clip-path: var(--cartouche);
  transition: transform 0.2s, background-color 0.2s, color 0.2s, filter 0.2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--saffron); color: #1e1408; }
.btn-primary:hover { background: var(--saffron-hi); transform: translateY(-1px); }
.btn-ghost { background: var(--brass); color: var(--sand); }
.btn-ghost::before { content: ""; position: absolute; inset: 1.5px; z-index: -1; background: var(--night-1); clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 15px 100%, 0 50%); transition: background-color 0.2s; }
.btn-ghost:hover::before { background: var(--night-3); }
.btn-sm { padding: 12px 26px; font-size: 14px; }
.btn[disabled] { filter: grayscale(0.6) brightness(0.7); cursor: not-allowed; transform: none; }
.top .btn { padding: 13px 28px; font-size: 15px; }

/* ---------- shared section scaffolding ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--brass); font-size: 14.5px; font-weight: 700; }
.kicker svg { width: 15px; height: 15px; flex: none; }
.sec { position: relative; padding-block: clamp(84px, 11vw, 150px); }
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head h2, .display { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 58px); line-height: 1.35; margin: 12px 0 16px; color: var(--sand); text-wrap: balance; }
.sec-head p { color: var(--sand-2); font-size: clamp(16.5px, 1.5vw, 18.5px); margin: 0; }
.band { height: 30px; opacity: 0.55; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='none' stroke='%23D4AA5E' stroke-width='1'%3E%3Cpath d='M15 3l12 12-12 12L3 15z'/%3E%3Cpath d='M6.5 6.5h17v17h-17z'/%3E%3Cpath d='M0 15h3M27 15h3'/%3E%3Ccircle cx='15' cy='15' r='2.2'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / auto 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 24px; line-height: 1.85; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.68em; width: 10px; height: 10px; background: var(--brass); clip-path: var(--star); }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
/* The hero fills the first screen with the dunes and caravan in view; the astrolabe sets behind the dunes. */
.hero { position: relative; min-height: calc(100svh - 74px); display: flex; flex-direction: column; justify-content: center; padding-top: clamp(24px, 3.5vw, 48px); padding-bottom: clamp(170px, 19vw, 280px); overflow: clip; }
.hero-grid { width: 100%; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(46px, 6.2vw, 86px); line-height: 1.22; margin: 14px 0 20px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--saffron); position: relative; display: inline-block; }
.hero h1 em svg { position: absolute; inset-inline: -6%; bottom: -0.06em; width: 112%; height: 0.32em; overflow: visible; }
.hero .lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--sand-2); max-width: 640px; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* milestones stand on the ground strip under the dunes, like road markers */
.ground { background: linear-gradient(180deg, #060a1e 0, #060a1e 62%, rgba(6, 10, 30, 0)); padding: 4px 0 64px; margin-top: -1px; }
.milestones { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--brass-line); }
.milestones div { padding: 22px 0 0; padding-inline-end: 18px; position: relative; }
.milestones div::before { content: ""; position: absolute; top: -6px; inset-inline-start: 0; width: 11px; height: 11px; background: var(--brass); clip-path: var(--star); }
.milestones b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.3; color: var(--sand); }
.milestones span { display: block; font-size: 14px; color: var(--sand-3); line-height: 1.75; }

.astro { position: relative; width: min(100%, 480px); margin-inline: auto; margin-bottom: calc(-1 * clamp(60px, 8vw, 140px)); aspect-ratio: 520 / 600; transform: perspective(1000px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.astro::before { content: ""; position: absolute; inset: 14% 2% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 169, 59, 0.16), rgba(75, 201, 183, 0.05) 60%, transparent); filter: blur(10px); }
.astro svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.astro .metal { fill: none; stroke: var(--brass); }
.astro .face { fill: url(#materFill); stroke: var(--brass); stroke-width: 2; }
.astro .thin { stroke-width: 0.8; opacity: 0.55; }
.astro .tick { stroke: var(--brass); stroke-width: 1; opacity: 0.8; }
.astro .abjad { fill: var(--brass); font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.astro .plate path, .astro .plate circle { fill: none; stroke: rgba(212, 170, 94, 0.33); stroke-width: 0.8; }
.astro .rete, .astro .alidade { transform-origin: 0 0; }
.astro .rete { animation: spin 220s linear infinite; }
.astro .alidade { animation: spin 140s linear infinite reverse; }
.astro .rete .ring { fill: none; stroke: var(--brass); stroke-width: 2.4; }
.astro .rete .ring.thin { stroke-width: 1.2; opacity: 0.9; }
.astro .rete .strut { fill: none; stroke: var(--brass); stroke-width: 1.6; }
.astro .rete .flame { fill: var(--brass); }
.astro .rete .flame.hot { fill: var(--saffron); }
.astro .rete text { fill: var(--sand); font-size: 12.5px; font-weight: 700; font-family: var(--font-body); }
.astro .alidade path { fill: rgba(212, 170, 94, 0.9); }
@keyframes spin { to { transform: rotate(360deg); } }

.dunes { position: absolute; inset-inline: 0; bottom: 0; height: clamp(190px, 25vw, 360px); pointer-events: none; }
.dunes svg { width: 100%; height: 100%; }
/* Legs live inside <symbol>s; per-instance state comes in through inherited custom properties. */
.leg-a, .leg-b { transform-box: fill-box; transform-origin: 50% 0; animation: stride 1.5s ease-in-out infinite alternate; animation-play-state: var(--walk, running); animation-delay: var(--d, 0s); }
.leg-b { animation-delay: calc(var(--d, 0s) - 0.75s); }
@keyframes stride { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.bob { animation: bob 0.75s ease-in-out infinite alternate; animation-play-state: var(--walk, running); }
@keyframes bob { to { transform: translateY(-1.2px); } }
.glow-door { animation: flicker 4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 0.95; } 45% { opacity: 0.78; } 60% { opacity: 1; } }

/* ---------- pockets (khorjin) ---------- */
.pockets-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pockets-copy .ticks li { color: var(--sand); font-size: 16px; }
.pockets-copy .ticks { margin-top: 28px; }
.khorjin {
  position: relative;
  background: linear-gradient(180deg, #131c44, #0f1738);
  border: 1px solid rgba(212, 170, 94, 0.45);
  border-radius: 22px;
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: inset 0 0 0 6px #10183a, inset 0 0 0 7px rgba(212, 170, 94, 0.2), 0 50px 90px -45px rgba(0, 0, 0, 0.85);
}
.khorjin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.khorjin-head h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 25px; line-height: 1.4; }
.khorjin-head span { font-size: 13px; color: var(--sand-3); }
.pocket-list { display: grid; gap: 12px; }
.pocket {
  --c: var(--saffron);
  position: relative;
  background: linear-gradient(180deg, #19244f, #141d45);
  border: 1px solid rgba(243, 231, 203, 0.09);
  border-radius: 14px;
  padding: 24px 18px 16px;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}
.pocket::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 10px;
  background: var(--c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10' viewBox='0 0 24 10'%3E%3Cpath d='M0 0h24v2H0zM12 2l5 4-5 4-5-4zM0 5l3-3v6zM24 5l-3-3v6z'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 10px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10' viewBox='0 0 24 10'%3E%3Cpath d='M0 0h24v2H0zM12 2l5 4-5 4-5-4zM0 5l3-3v6zM24 5l-3-3v6z'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 10px;
  opacity: 0.85;
}
.pocket[data-c="pom"] { --c: var(--pom); }
.pocket[data-c="turq"] { --c: var(--turq); }
.pocket.paying { border-color: var(--c); }
.pocket.empty { opacity: 0.55; }
.p-head { display: flex; align-items: center; gap: 12px; }
.p-order { flex: none; display: grid; place-items: center; width: 30px; height: 30px; background: var(--c); color: #1a1208; font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1; clip-path: var(--star); padding-top: 3px; }
.p-name { flex: 1; min-width: 0; }
.p-name h4 { margin: 0; font-size: 16.5px; font-weight: 800; line-height: 1.5; }
.p-name .num { display: block; font-family: var(--font-mono); direction: ltr; text-align: right; font-size: 12px; color: var(--sand-3); letter-spacing: 0.06em; line-height: 1.5; }
.p-bal { text-align: end; }
.p-bal b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 25px; line-height: 1.3; transition: color 0.3s; }
.p-bal small { font-size: 12px; color: var(--sand-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.chip { font-size: 12px; line-height: 1; padding: 6px 9px; border-radius: 6px; background: rgba(243, 231, 203, 0.06); color: var(--sand-2); border: 1px solid rgba(243, 231, 203, 0.08); white-space: nowrap; }
.chip.tag { font-family: var(--font-mono); direction: ltr; color: var(--turq); }
.chip.hot { color: var(--saffron); border-color: rgba(242, 169, 59, 0.35); }
.bar { position: relative; height: 10px; border-radius: 6px; background: rgba(243, 231, 203, 0.07); overflow: hidden; }
.bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--c); border-radius: 6px; transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar s { position: absolute; inset-block: 0; background: repeating-linear-gradient(-45deg, rgba(10, 16, 41, 0.75) 0 3px, transparent 3px 6px); transition: inset-inline-start 0.5s, width 0.5s; }
.p-share { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--sand-3); min-height: 1.9em; }
.p-share b { color: var(--saffron); font-weight: 700; }

.pay { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--brass-line); display: grid; gap: 16px; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pay label { font-weight: 700; font-size: 15px; }
.amount-out { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.2; color: var(--saffron); }
.amount-out small { font-family: var(--font-body); font-size: 14px; color: var(--sand-3); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; direction: rtl; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to left, var(--saffron) var(--fill, 35%), rgba(243, 231, 203, 0.14) var(--fill, 35%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(243, 231, 203, 0.14); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--saffron); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; background: var(--saffron); clip-path: var(--star); border: 0; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; background: var(--saffron); clip-path: var(--star); border: 0; border-radius: 0; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-size: 15px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { position: relative; width: 46px; height: 26px; border-radius: 13px; background: rgba(243, 231, 203, 0.16); transition: background-color 0.25s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--sand); transition: transform 0.25s; }
.switch input:checked + .knob { background: var(--turq); }
.switch input:checked + .knob::after { transform: translateX(-20px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--saffron); outline-offset: 3px; }
.order-note { font-size: 13px; color: var(--sand-3); }
.order-note b { color: var(--sand-2); font-weight: 700; }

.receipt { position: relative; margin-top: 4px; background: var(--paper); color: var(--ink); border-radius: 6px 6px 0 0; padding: 18px 20px 14px; font-size: 14.5px; line-height: 1.9; }
.receipt::after { content: ""; position: absolute; inset-inline: 0; bottom: -9px; height: 9px; background: radial-gradient(circle at 9px 0, var(--paper) 8px, transparent 8.5px) 0 0 / 18px 9px repeat-x; }
.receipt h5 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 19px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.receipt h5 span { font-family: var(--font-body); font-size: 12px; color: var(--ink-2); font-weight: 600; }
.receipt ol { list-style: none; margin: 0; padding: 0; }
.receipt li { display: flex; align-items: baseline; gap: 8px; }
.receipt li .lbl { white-space: nowrap; }
.receipt li .dots { flex: 1; border-bottom: 1.5px dotted rgba(106, 88, 66, 0.5); transform: translateY(-4px); }
.receipt li b { font-weight: 800; }
.receipt .total { border-top: 1.5px solid rgba(106, 88, 66, 0.35); margin-top: 6px; padding-top: 6px; }
.receipt .verdict { margin-top: 10px; font-size: 13.5px; font-weight: 700; display: flex; gap: 8px; align-items: flex-start; }
.receipt .verdict svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.receipt .verdict.ok { color: #1d6b5e; }
.receipt .verdict.no { color: #a53a26; }
.receipt .idle { color: var(--ink-2); font-size: 13.5px; margin: 0; }
.khorjin.shake { animation: shake 0.5s; }
@keyframes shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.coin { position: fixed; z-index: 90; width: 20px; height: 20px; margin: -10px 0 0 -10px; left: 0; top: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #fff0c4, #f2a93b 52%, #8d5f19); box-shadow: 0 0 12px rgba(242, 169, 59, 0.75); }

/* ---------- route ---------- */
.track { position: relative; }
.track > svg.path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.path .base { fill: none; stroke: rgba(212, 170, 94, 0.42); stroke-width: 2; stroke-dasharray: 1 11; stroke-linecap: round; }
.path .lit { fill: none; stroke: var(--saffron); stroke-width: 2.6; stroke-linecap: round; }
.lantern { position: absolute; top: 0; left: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; pointer-events: none; z-index: 3; will-change: transform; }
.lantern::before { content: ""; position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 169, 59, 0.35), rgba(242, 169, 59, 0.08) 55%, transparent); }
.lantern svg { position: relative; width: 100%; height: 100%; }
.stations { list-style: none; margin: 0; padding: 0; position: relative; }
.station { display: grid; grid-template-columns: 1fr 150px 1fr; align-items: start; }
.station + .station { margin-top: -110px; }
.station .card { grid-column: 1; grid-row: 1; }
.station:nth-child(even) .card { grid-column: 3; }
.marker { grid-column: 2; grid-row: 1; justify-self: center; margin-top: 40px; position: relative; z-index: 2; width: 54px; height: 54px; translate: 26px 0; }
.station:nth-child(even) .marker { translate: -26px 0; }
.marker::before, .marker::after { content: ""; position: absolute; clip-path: var(--star); transition: background-color 0.5s, box-shadow 0.5s; }
.marker::before { inset: 0; background: var(--brass); }
.marker::after { inset: 2px; background: var(--night-2); }
.marker span { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--brass); padding-top: 4px; transition: color 0.5s; }
.station.lit .marker::after { background: var(--saffron); }
.station.lit .marker span { color: #1a1208; }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(25, 35, 80, 0.94), rgba(16, 24, 58, 0.94));
  border: 1px solid rgba(212, 170, 94, 0.4);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 34px) clamp(22px, 2.8vw, 34px) clamp(22px, 2.6vw, 30px);
  box-shadow: inset 0 0 0 6px rgba(10, 16, 41, 0.92), inset 0 0 0 7px rgba(212, 170, 94, 0.24), 0 34px 70px -34px rgba(0, 0, 0, 0.75);
  transition: border-color 0.6s, box-shadow 0.6s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  opacity: 0.85;
  background:
    linear-gradient(var(--brass), var(--brass)) 0 0 / 16px 1.5px no-repeat,
    linear-gradient(var(--brass), var(--brass)) 0 0 / 1.5px 16px no-repeat,
    linear-gradient(var(--brass), var(--brass)) 100% 0 / 16px 1.5px no-repeat,
    linear-gradient(var(--brass), var(--brass)) 100% 0 / 1.5px 16px no-repeat,
    linear-gradient(var(--brass), var(--brass)) 0 100% / 16px 1.5px no-repeat,
    linear-gradient(var(--brass), var(--brass)) 0 100% / 1.5px 16px no-repeat,
    linear-gradient(var(--brass), var(--brass)) 100% 100% / 16px 1.5px no-repeat,
    linear-gradient(var(--brass), var(--brass)) 100% 100% / 1.5px 16px no-repeat;
}
.station.lit .card { border-color: var(--brass); box-shadow: inset 0 0 0 6px rgba(10, 16, 41, 0.92), inset 0 0 0 7px rgba(242, 169, 59, 0.42), 0 34px 80px -30px rgba(242, 169, 59, 0.16); }
.card-top { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.card .st-num { font-size: 13.5px; font-weight: 700; color: var(--brass); }
.card h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3vw, 38px); line-height: 1.3; margin: 2px 0 0; }
.card .sub { color: var(--saffron); font-weight: 700; font-size: 15.5px; margin: 2px 0 14px; }
.card .icon { width: 54px; height: 54px; color: var(--brass); flex: none; }
.card p { color: var(--sand-2); margin: 0 0 16px; font-size: 15.5px; line-height: 1.95; }
.card .ticks { gap: 8px; }
.card .ticks li { font-size: 15px; }
.stamp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; direction: ltr; justify-content: flex-end; }
.stamp code { font-size: 12px; padding: 3px 8px; border: 1px solid rgba(75, 201, 183, 0.22); }

/* ---------- engine ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; inset-inline: 10%; border-top: 2px dashed rgba(212, 170, 94, 0.4); }
.step { position: relative; text-align: center; }
.node { position: relative; width: 70px; height: 70px; margin: 0 auto 16px; display: grid; place-items: center; color: var(--saffron); }
.node::before, .node::after { content: ""; position: absolute; clip-path: var(--star); }
.node::before { inset: 0; background: var(--brass); }
.node::after { inset: 2px; background: var(--night-2); }
.node svg { position: relative; z-index: 1; width: 30px; height: 30px; }
.node em { position: absolute; z-index: 2; top: -6px; inset-inline-end: -8px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--saffron); color: #1a1208; border-radius: 50%; font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 14px; padding-top: 2px; }
.step h3 { font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1.4; margin: 0 0 6px; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--sand-2); }

.engine-lower { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); margin-top: clamp(70px, 9vw, 110px); align-items: start; }
.verse { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.3vw, 28px); color: var(--brass); margin: 0; line-height: 1.6; }
.verse-by { display: block; font-size: 13px; color: var(--sand-3); margin: 2px 0 22px; }
.storms { display: grid; gap: 12px; }
.storm { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 18px 18px 16px; border-radius: 12px; background: rgba(16, 24, 58, 0.78); border: 1px solid rgba(229, 102, 75, 0.22); border-inline-start: 3px solid var(--pom); }
.storm svg { width: 46px; height: 46px; color: var(--pom); }
.storm h3 { margin: 0 0 2px; font-size: 16.5px; font-weight: 800; line-height: 1.7; }
.storm p { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--sand-2); }
.storm b { color: var(--sand); }
.storm .code { font-family: var(--font-mono); color: var(--saffron); font-weight: 700; }

.ledger-wrap { position: relative; padding: 10px 6px 40px; }
.ledger {
  position: relative;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 39px, rgba(140, 110, 60, 0.26) 39px 40px);
  background-position: 0 22px;
  color: var(--ink);
  border-radius: 3px;
  padding: 22px 26px 30px;
  transform: rotate(-1.2deg);
  box-shadow: 0 2px 0 var(--paper-2), 0 36px 80px -30px rgba(0, 0, 0, 0.85);
  /* the seal starts scaled up before it stamps; keep that inside the paper so phones can't pan sideways */
  overflow: clip;
}
.ledger::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 46px; border-inline-start: 1.5px solid rgba(181, 58, 38, 0.45); }
.ledger h3 { margin: 0 0 2px; padding-inline-start: 34px; font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 40px; }
.ledger .meta { padding-inline-start: 34px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin: -6px 0 8px; font-family: var(--font-mono); direction: ltr; text-align: right; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ledger th { text-align: start; font-size: 12.5px; color: var(--ink-2); font-weight: 700; height: 40px; }
.ledger td { height: 40px; padding: 0 4px; white-space: nowrap; }
.ledger td.n { width: 34px; color: var(--ink-2); font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.ledger td.amt { text-align: end; font-weight: 800; }
.ledger td.amt.zero { color: var(--ink-2); font-weight: 600; }
.ledger td .chain { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; color: #b53a26; margin-inline-start: 4px; }
.ledger .note { margin: 6px 0 0; padding-inline-start: 34px; font-size: 13.5px; line-height: 2; color: var(--ink-2); max-width: calc(100% - 140px); }
.seal { position: absolute; bottom: 14px; inset-inline-end: 12px; width: 128px; height: 128px; color: #b8352a; opacity: 0; transform: rotate(-16deg) scale(1.7); transition: transform 0.38s cubic-bezier(0.25, 1.6, 0.45, 1), opacity 0.18s; pointer-events: none; }
.seal.on { opacity: 0.9; transform: rotate(-16deg) scale(1); }
.seal text { fill: currentColor; font-family: var(--font-display); font-weight: 800; }

.loadbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(70px, 9vw, 110px); border-block: 1px solid var(--brass-line); }
.loadbar div { padding: 26px 22px; border-inline-start: 1px solid var(--brass-line); }
.loadbar div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.loadbar b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.25; color: var(--saffron); }
.loadbar span { display: block; font-size: 14px; color: var(--sand-2); line-height: 1.8; }
.stack-note { max-width: 900px; margin: 28px 0 0; color: var(--sand-2); font-size: 15.5px; }

/* ---------- developers ---------- */
.dev-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.code-win { background: #060b20; border: 1px solid rgba(212, 170, 94, 0.36); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.9); }
.code-tabs { display: flex; gap: 2px; padding: 10px 10px 0; background: #0b1230; border-bottom: 1px solid var(--brass-line); overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs button { font: inherit; font-size: 14px; font-weight: 600; color: var(--sand-3); background: none; border: 0; padding: 10px 14px 12px; border-radius: 8px 8px 0 0; cursor: pointer; white-space: nowrap; transition: color 0.2s; }
.code-tabs button:hover { color: var(--sand); }
.code-tabs button[aria-selected="true"] { color: var(--sand); background: #060b20; box-shadow: inset 0 2px 0 var(--saffron); }
.code-win pre { margin: 0; padding: 22px 24px 24px; direction: ltr; text-align: left; font-family: var(--font-mono); font-size: 13.2px; line-height: 1.75; color: #d8d1bd; overflow-x: auto; tab-size: 2; min-height: 470px; }
.code-win pre code { all: unset; }
.code-win [hidden] { display: none; }
.t-m { color: var(--saffron); font-weight: 700; }
.t-u { color: var(--sand); }
.t-h { color: var(--turq); }
.t-k { color: #9ccbea; }
.t-s { color: #c2dc9e; }
.t-n { color: #f0a383; }
.t-c { color: #7f7a6a; font-style: italic; }
.t-r { color: var(--turq); font-weight: 700; }
.code-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--brass-line); font-size: 12.5px; color: var(--sand-3); background: #0b1230; }
.dev-traits .ticks li { font-size: 15.5px; }

/* ---------- admin ---------- */
.admin-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.screen { border-radius: 14px; border: 1px solid rgba(212, 170, 94, 0.36); background: #0c1332; overflow: hidden; box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.95); font-size: 13px; line-height: 1.8; }
.screen-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #091027; border-bottom: 1px solid rgba(212, 170, 94, 0.2); color: var(--sand-3); font-size: 12px; }
.screen-bar b { color: var(--sand); font-weight: 700; }
.screen-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 8px var(--turq); }
.screen-bar .date { margin-inline-start: auto; }
.screen-body { display: grid; grid-template-columns: 190px 1fr; min-height: 470px; }
.side { border-inline-end: 1px solid rgba(212, 170, 94, 0.14); padding: 14px 10px; background: #0a112b; }
.side h6 { margin: 10px 8px 4px; font-size: 11px; color: var(--sand-3); font-weight: 700; }
.side h6:first-child { margin-top: 0; }
.side span { display: block; padding: 3px 10px; border-radius: 6px; color: var(--sand-2); font-size: 12.5px; }
.side span.on { background: rgba(242, 169, 59, 0.13); color: var(--saffron); font-weight: 700; }
.main { padding: 18px 20px; display: grid; gap: 14px; align-content: start; }
.main h4 { margin: 0; font-size: 17px; font-weight: 800; }
.main .hint { margin: -10px 0 0; color: var(--sand-3); font-size: 12px; }
.pending { border: 1px solid rgba(242, 169, 59, 0.35); border-radius: 10px; padding: 14px 16px; background: rgba(242, 169, 59, 0.05); }
.pending .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pending .amt { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--sand); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: rgba(242, 169, 59, 0.16); color: var(--saffron); line-height: 1.9; }
.badge.ok { background: rgba(75, 201, 183, 0.14); color: var(--turq); }
.pending dl { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; margin: 8px 0 12px; color: var(--sand-2); }
.pending dt { color: var(--sand-3); }
.pending dd { margin: 0; }
.pending .mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }
.pending .acts { display: flex; gap: 8px; }
.pending .acts span { font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 7px; background: var(--turq); color: #062019; }
.pending .acts span + span { background: transparent; color: var(--sand-2); border: 1px solid rgba(243, 231, 203, 0.18); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-row div { border: 1px solid rgba(243, 231, 203, 0.08); border-radius: 10px; padding: 10px 12px; background: rgba(243, 231, 203, 0.02); }
.stat-row small { display: block; color: var(--sand-3); font-size: 11.5px; }
.stat-row b { font-size: 15px; }
.spark { width: 100%; height: 34px; margin-top: 4px; }
.audit { border-top: 1px solid rgba(243, 231, 203, 0.08); padding-top: 8px; }
.audit p { margin: 0; display: flex; gap: 10px; color: var(--sand-2); font-size: 12.5px; }
.audit time { color: var(--sand-3); font-size: 12px; flex: none; }

/* ---------- dawn + footer ---------- */
.dawn { position: relative; padding-top: clamp(110px, 14vw, 190px); text-align: center; overflow: clip; background: linear-gradient(180deg, rgba(10, 16, 41, 0) 0%, #16204b 16%, #2f3764 36%, #6c5068 56%, #c97a55 76%, #f1b86c 92%, #f7cd82 100%); }
.dawn .wrap { position: relative; z-index: 2; }
.dawn .verse { color: var(--saffron-hi); }
.dawn .verse-by { color: var(--sand-2); }
.dawn h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.25; margin: 6px 0 16px; }
.dawn p.lead { max-width: 640px; margin: 0 auto 34px; color: var(--sand); font-size: clamp(17px, 1.6vw, 20px); }
.dawn .cta-row { justify-content: center; }
.dawn .btn-ghost::before { background: #3a3c66; }
.dawn .btn-ghost:hover::before { background: #4b4a72; }
.dawn-art { position: relative; margin-top: clamp(30px, 5vw, 60px); height: clamp(220px, 30vw, 420px); }
.dawn-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sun { animation: rise 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-play-state: paused; }
.dawn.in .sun { animation-play-state: running; }
@keyframes rise { from { transform: translateY(70px); opacity: 0.4; } to { transform: none; opacity: 1; } }

.foot { background: var(--earth); color: var(--sand-2); padding: 46px 0 40px; font-size: 14px; border-top: 1px solid rgba(212, 170, 94, 0.18); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.foot .brand b { font-size: 23px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-inline-start: auto; }
.foot nav a { color: var(--sand-2); text-decoration: none; }
.foot nav a:hover { color: var(--saffron); }
.foot .copy { width: 100%; color: var(--sand-3); font-size: 13px; border-top: 1px solid rgba(243, 231, 203, 0.07); padding-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 8px 9px; font-size: 14.5px; }
}
@media (max-width: 980px) {
  .nav, .top .btn { display: none; }
  .menu-btn { display: grid; }
  .top.open { background: rgba(7, 11, 30, 0.97); }
  .top.open .nav { display: flex; position: absolute; top: 74px; inset-inline: 0; flex-direction: column; padding: 8px var(--gutter) 18px; background: rgba(7, 11, 30, 0.97); border-bottom: 1px solid var(--brass-line); }
  .top.open .nav a { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid rgba(212, 170, 94, 0.1); border-radius: 0; }
  .hero-grid, .pockets-grid, .engine-lower, .dev-grid, .admin-grid { grid-template-columns: 1fr; }
  .astro { width: min(76vw, 400px); order: 2; margin-top: 8px; }
  .milestones { max-width: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 30px; bottom: 30px; inset-inline: auto; inset-inline-start: 34px; border-top: 0; border-inline-start: 2px dashed rgba(212, 170, 94, 0.4); }
  .step { display: grid; grid-template-columns: 70px 1fr; gap: 0 18px; text-align: start; padding-bottom: 26px; }
  .step .node { grid-row: span 2; margin: 0; }
  .loadbar { grid-template-columns: 1fr 1fr; }
  .loadbar div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .loadbar div:nth-child(n + 3) { border-top: 1px solid var(--brass-line); }
  .code-win pre { min-height: 0; }
}
@media (max-width: 860px) {
  .station { grid-template-columns: 64px 1fr; }
  .station + .station { margin-top: 28px; }
  .station .card, .station:nth-child(even) .card { grid-column: 2; }
  .marker, .station:nth-child(even) .marker { grid-column: 1; justify-self: start; translate: 0 0; margin-top: 26px; width: 46px; height: 46px; }
  .marker span { font-size: 18px; }
  .lantern { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .milestones { grid-template-columns: 1fr 1fr; gap: 8px 0; }
  .milestones div:nth-child(n + 3) { border-top: 1px solid var(--brass-line); }
  .milestones div:nth-child(n + 3)::before { display: none; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .screen-body { grid-template-columns: 1fr; }
  .side { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row div:last-child { grid-column: span 2; }
  .loadbar { grid-template-columns: 1fr; }
  .loadbar div, .loadbar div:nth-child(3) { border-inline-start: 0; padding-inline: 0; }
  .loadbar div + div { border-top: 1px solid var(--brass-line); }
  .card .icon { width: 44px; height: 44px; }
  .ledger { padding: 20px 16px 28px; }
  .ledger::before { inset-inline-start: 34px; }
  .ledger h3, .ledger .meta, .ledger .note { padding-inline-start: 24px; }
  .ledger td { font-size: 13.5px; }
  .seal { width: 92px; height: 92px; inset-inline-end: 6px; }
  .ledger .note { max-width: calc(100% - 96px); }
  .dawn-art { height: 270px; }
  .foot nav { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .astro .rete, .astro .alidade, .leg-a, .leg-b, .bob, .glow-door { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sun { animation: none; }
  .seal { transition: none; }
}
