/* Inner pages: same night/teal/copper palette as the hero. Top bar = logo + MENU (pinout), then a short
   banner with typed code fading in the background, then an editorial two-column body. No web fonts. */
:root {
  --hx-night: #0a101d; --hx-surface: #0f1829; --hx-ink: #e7eef8; --hx-mute: #9fadc3; --hx-soft: #cfd9e8;
  --hx-line: #1c2940; --hx-accent: #2dd4bf; --cu: #c98a52; --cu-hi: #f0b27a;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --wrap: 1180px; --pad: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--hx-night); color: var(--hx-ink); font: 400 17px/1.7 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--hx-accent); text-underline-offset: 3px; }
a:hover { color: #5eead4; }
:focus-visible { outline: 2px solid var(--cu-hi); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--cu); color: #111; border-radius: 4px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* top bar */
.inner .site-top.mh { position: sticky; top: 0; z-index: 30; align-items: center; padding: 10px var(--pad);
  border-bottom: 1px solid rgba(28, 41, 64, .7); }
/* blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed pinout overlay inside the bar */
.inner .site-top.mh::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 16, 29, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.inner .mh-left { flex-direction: row; align-items: center; }
.inner .site-logo { display: inline-block; border-radius: 6px; }
.inner .site-logo img { display: block; width: 112px; height: auto; }
.inner .mh .pn-btn { margin-top: 0; }
@media (max-width: 600px) { .inner .site-logo img { width: 96px; } .inner .mh .pn-btn { margin-top: 0; } }
html:not(.js) .inner .site-top.mh { position: static; }

/* banner: short, code typing faintly behind the headline */
.banner { position: relative; overflow: hidden; border-bottom: 1px solid var(--hx-line);
  background: radial-gradient(900px 380px at 78% 40%, rgba(45, 212, 191, .10), transparent 70%), radial-gradient(700px 300px at 10% 100%, rgba(201, 138, 82, .10), transparent 70%); }
.codebg { position: absolute; inset: 0; margin: 0; padding: 18px var(--pad); overflow: hidden; pointer-events: none;
  font: 13px/1.75 var(--mono); color: #7f93b3; opacity: .13; white-space: pre; user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.codebg .k { color: #f0b27a; } .codebg .s { color: #5eead4; } .codebg .c { color: #56657e; }
.codebg .cur { display: inline-block; width: .6em; height: 1.1em; vertical-align: -2px; background: var(--hx-accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.banner-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 40px;
  min-height: 400px; padding-top: 28px; padding-bottom: 40px; }
@media (max-width: 900px) { .banner-in { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding-bottom: 48px; } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-mute); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #3a4a66; }
.crumbs a { color: var(--hx-mute); text-decoration: none; }
.crumbs a:hover { color: var(--hx-ink); }

.kick { margin: 0 0 10px; font: 600 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cu-hi); }
h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
h1 em { font-style: normal; color: var(--hx-accent); }
.lede { max-width: 620px; margin: 0 0 26px; font-size: clamp(17px, 1.8vw, 19px); color: var(--hx-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; background: var(--cu); color: #121212; font-weight: 700; text-decoration: none; transition: background-color .2s, transform .2s; }
.btn:hover { background: var(--cu-hi); color: #121212; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--hx-ink); border: 1px solid #2a3a57; }
.btn-ghost:hover { background: rgba(255, 255, 255, .04); border-color: var(--cu-hi); color: var(--cu-hi); }

/* photo cube (CSS 3D). Reduced motion / no 3D: the photo face only. */
.cube-stage { justify-self: center; width: 260px; height: 260px; perspective: 1100px; position: relative; }
.cube-stage::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -46px; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(45, 212, 191, .28), transparent); filter: blur(4px); }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: cube 24s cubic-bezier(.7, 0, .3, 1) infinite; }
.cube-stage:hover .cube { animation-play-state: paused; }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid rgba(240, 178, 122, .35); border-radius: 6px; background: linear-gradient(145deg, #142039, #0c1424);
  box-shadow: inset 0 0 40px rgba(45, 212, 191, .08); backface-visibility: hidden; text-align: center; padding: 18px; }
.face img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.face.f1 { transform: translateZ(130px); }
.face.f2 { transform: rotateY(90deg) translateZ(130px); }
.face.f3 { transform: rotateY(180deg) translateZ(130px); }
.face.f4 { transform: rotateY(-90deg) translateZ(130px); }
.face.f5 { transform: rotateX(90deg) translateZ(130px); }
.face.f6 { transform: rotateX(-90deg) translateZ(130px); }
.face b { font: 800 64px/1 var(--sans); letter-spacing: -.03em; color: #fff; }
.face b small { font-size: .5em; color: var(--hx-accent); }
.face span { font: 600 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cu-hi); }
.face .chip { width: 88%; }
@keyframes cube {
  0%, 14% { transform: rotateX(-8deg) rotateY(-14deg); }
  20%, 30% { transform: rotateX(-8deg) rotateY(-104deg); }
  36%, 46% { transform: rotateX(-8deg) rotateY(-194deg); }
  52%, 62% { transform: rotateX(-8deg) rotateY(-284deg); }
  68%, 76% { transform: rotateX(-98deg) rotateY(-374deg); }
  82%, 90% { transform: rotateX(82deg) rotateY(-374deg); }
  100% { transform: rotateX(-8deg) rotateY(-374deg); }
}
@media (max-width: 900px) { .cube-stage { width: 220px; height: 220px; } .face.f1 { transform: translateZ(110px); } .face.f2 { transform: rotateY(90deg) translateZ(110px); }
  .face.f3 { transform: rotateY(180deg) translateZ(110px); } .face.f4 { transform: rotateY(-90deg) translateZ(110px); }
  .face.f5 { transform: rotateX(90deg) translateZ(110px); } .face.f6 { transform: rotateX(-90deg) translateZ(110px); } .face b { font-size: 50px; } }
@media (prefers-reduced-motion: reduce) { .cube { animation: none; transform: none; } .face:not(.f1) { display: none; } .codebg .cur { animation: none; } }

/* stats strip */
.stats-band { border-bottom: 1px solid var(--hx-line); background: rgba(15, 24, 41, .6); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; list-style: none; }
.stats li { padding: 26px 24px 24px; border-right: 1px solid var(--hx-line); }
.stats li:first-child { padding-left: 0; }
.stats li:last-child { border-right: 0; }
.stats b { display: block; font: 800 clamp(30px, 3.4vw, 42px)/1 var(--sans); letter-spacing: -.02em; }
.stats b small { font-size: .55em; color: var(--hx-accent); }
.stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--hx-mute); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats li:nth-child(3) { padding-left: 0; } .stats li:nth-child(2) { border-right: 0; } .stats li:nth-child(-n+2) { border-bottom: 1px solid var(--hx-line); } }

/* body sections: label column + content column */
.sec { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px 56px; padding: 72px 0; border-bottom: 1px solid var(--hx-line); }
.sec:last-of-type { border-bottom: 0; }
.sec-h { position: sticky; top: 96px; align-self: start; }
.sec-h .no { display: block; margin-bottom: 10px; font: 600 12px/1 var(--mono); letter-spacing: .16em; color: var(--cu-hi); }
h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.015em; }
.sec-b { max-width: 760px; }
.sec-b > p:first-child { margin-top: 0; }
.big { font-size: clamp(19px, 2vw, 22px); line-height: 1.6; color: var(--hx-ink); }
p, ul, ol { margin: 0 0 16px; }
p { color: var(--hx-soft); }
strong { color: #fff; }
@media (max-width: 900px) { .sec { grid-template-columns: 1fr; padding: 56px 0; } .sec-h { position: static; } }

/* datasheet */
.spec { margin: 28px 0 0; border: 1px solid var(--hx-line); border-radius: 12px; background: var(--hx-surface); overflow: hidden; }
.spec-cap { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 18px; border-bottom: 1px solid var(--hx-line);
  font: 600 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hx-mute); }
.spec-cap i { font-style: normal; color: var(--hx-accent); }
.spec dl { display: grid; grid-template-columns: minmax(130px, 30%) 1fr; margin: 0; }
.spec dt, .spec dd { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--hx-line); }
.spec dt { font: 500 13px/1.7 var(--mono); color: var(--hx-mute); }
.spec dd { color: var(--hx-ink); }
.spec dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 560px) { .spec dl { grid-template-columns: 1fr; } .spec dt { padding-bottom: 0; border-bottom: 0; } }

/* timeline: year column + entry */
.tl { margin: 0; padding: 0; list-style: none; }
.tl li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--hx-line); }
.tl li:first-child { border-top: 0; padding-top: 0; }
.tl .yr { font: 600 14px/1.7 var(--mono); color: var(--cu-hi); }
.tl b { display: block; color: #fff; font-size: 18px; }
.tl p { margin: 4px 0 0; }
@media (max-width: 560px) { .tl li { grid-template-columns: 1fr; gap: 2px; } }

/* principle cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: c; }
.cards li { position: relative; padding: 22px 20px 20px; border: 1px solid var(--hx-line); border-radius: 12px; background: var(--hx-surface); transition: border-color .2s, transform .2s; }
.cards li:hover { border-color: rgba(240, 178, 122, .45); transform: translateY(-2px); }
.cards li::before { counter-increment: c; content: "0" counter(c); display: block; margin-bottom: 12px; font: 600 12px/1 var(--mono); letter-spacing: .14em; color: var(--hx-accent); }
.cards h3 { margin: 0 0 6px; font-size: 18px; }
.cards p { margin: 0; font-size: 15px; }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.links a { display: inline-block; padding: 8px 15px; border: 1px solid #2a3a57; border-radius: 999px; color: var(--hx-ink); text-decoration: none; font-size: 15px; }
.links a:hover { border-color: var(--hx-accent); color: var(--hx-accent); }

/* FAQ */
.faq details { border-top: 1px solid var(--hx-line); }
.faq details:last-child { border-bottom: 1px solid var(--hx-line); }
.faq summary { position: relative; display: block; padding: 18px 36px 18px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 24px/1 var(--mono); color: var(--cu-hi); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; }

/* footer */
.foot { border-top: 1px solid var(--hx-line); background: linear-gradient(#0a101d, #080d18); }
.foot-in { padding-top: 56px; padding-bottom: 32px; }
.foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 36px; margin-bottom: 24px; border-bottom: 1px solid var(--hx-line); }
.foot-k { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.015em; color: #fff; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 12px; }
.foot-nav a, .foot-small a { color: var(--hx-mute); text-decoration: none; }
.foot-nav a:hover, .foot-small a:hover { color: var(--hx-ink); }
.foot-small { margin: 0; font-size: 14px; color: var(--hx-mute); }

/* timeline motion: a rail that fills with scroll, entries slide in, hover lights the node */
.tl { position: relative; padding-left: 34px; }
.tl::before, .tl-fill { content: ""; position: absolute; left: 7px; top: 6px; width: 2px; border-radius: 2px; }
.tl::before { bottom: 6px; background: var(--hx-line); }
.tl-fill { height: calc(var(--p, 0) * (100% - 12px)); background: linear-gradient(var(--cu-hi), var(--hx-accent)); box-shadow: 0 0 10px rgba(45, 212, 191, .5); }
.tl li { position: relative; padding-left: 12px; padding-right: 12px; border-radius: 10px; transition: background-color .25s, transform .25s, opacity .6s, translate .6s; }
.tl li::before { content: ""; position: absolute; left: -33px; top: 24px; width: 12px; height: 12px; border-radius: 3px; background: var(--hx-night); border: 2px solid #3a4a66; transition: border-color .25s, background-color .25s, box-shadow .25s, transform .25s; }
.tl li:first-child::before { top: 6px; }
.tl li.lit::before { border-color: var(--cu-hi); }
.tl li:hover { background: rgba(255, 255, 255, .03); }
.tl li:hover::before { background: var(--hx-accent); border-color: var(--hx-accent); box-shadow: 0 0 0 5px rgba(45, 212, 191, .15), 0 0 16px rgba(45, 212, 191, .6); transform: rotate(45deg); }
.tl li:hover .yr { color: var(--hx-accent); }
.tl .yr { transition: color .25s; }
.js .tl li.rv { opacity: 0; translate: 0 18px; }
@media (prefers-reduced-motion: reduce) { .js .tl li.rv { opacity: 1; translate: none; } .tl li, .tl li::before { transition: none; } }

/* banner without a visual */
.banner-in.solo { grid-template-columns: minmax(0, 1fr); min-height: 340px; }
.banner-in.solo .lede { max-width: 720px; }

/* data-flow card in a service banner: nodes in a column, a packet runs down the wire */
.flow { justify-self: center; position: relative; width: min(100%, 340px); margin: 0; padding: 22px 22px 22px 54px; list-style: none;
  border: 1px solid var(--hx-line); border-radius: 14px; background: rgba(15, 24, 41, .85); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.flow::before { content: ""; position: absolute; left: 32px; top: 40px; bottom: 40px; width: 2px; background: linear-gradient(var(--cu), var(--hx-accent)); opacity: .5; }
.flow::after { content: ""; position: absolute; left: 28px; top: 40px; width: 10px; height: 10px; border-radius: 50%; background: var(--hx-accent);
  box-shadow: 0 0 12px var(--hx-accent); animation: packet 3.2s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes packet { 0% { top: 36px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 46px); opacity: 0; } }
.flow li { position: relative; padding: 10px 0; }
.flow li + li { border-top: 1px dashed var(--hx-line); }
.flow li::before { content: ""; position: absolute; left: -27px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 2px; background: var(--hx-night); border: 2px solid var(--cu-hi); }
.flow b { display: block; font-size: 15px; color: #fff; }
.flow span { display: block; font: 500 12px/1.5 var(--mono); color: var(--hx-mute); }
@media (prefers-reduced-motion: reduce) { .flow::after { animation: none; display: none; } }

/* service cards */
.svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.svc a, .svc .soon > div { display: flex; flex-direction: column; height: 100%; padding: 22px; border: 1px solid var(--hx-line); border-radius: 12px; background: var(--hx-surface); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s, background-color .2s; }
.svc a:hover { border-color: rgba(45, 212, 191, .5); transform: translateY(-3px); background: #111d31; }
.svc-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 8px; border: 1px solid rgba(240, 178, 122, .4);
  background: linear-gradient(145deg, #1a2742, #0e1626); font: 700 13px/1 var(--mono); letter-spacing: .06em; color: var(--cu-hi); }
.svc h3 { margin: 0 0 6px; font-size: 19px; color: #fff; }
.svc p { flex: 1; margin: 0 0 14px; font-size: 15px; }
.svc-go { font: 600 13px/1 var(--mono); letter-spacing: .06em; color: var(--hx-accent); }
.svc .soon { opacity: .55; }
.svc .soon .svc-go { color: var(--hx-mute); }

/* proof blocks */
.proof { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.proof > li { padding: 22px; border: 1px solid var(--hx-line); border-left: 3px solid var(--cu); border-radius: 12px; background: var(--hx-surface); }
.proof .tag { display: inline-block; margin-bottom: 8px; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hx-accent); }
.proof h3 { margin: 0 0 8px; font-size: 19px; color: #fff; }
.proof p { margin: 0 0 8px; font-size: 15px; }
.proof p:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.chips li { padding: 3px 10px; border: 1px solid #2a3a57; border-radius: 999px; font: 500 12px/1.6 var(--mono); color: var(--hx-mute); }

/* case studies */
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border: 1px solid #2a3a57; border-radius: 999px; font: 500 13px/1.4 var(--mono); color: var(--hx-soft); }
.status span { color: var(--hx-accent); }
.cases .ctag { display: block; margin-bottom: 10px; font: 600 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hx-accent); }

/* contact */
.contact-ways a { color: #fff; text-decoration: none; }
.contact-ways a:hover { color: var(--hx-accent); }
.form { display: grid; gap: 4px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form p { margin: 0 0 14px; }
.form label { display: block; margin-bottom: 6px; font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hx-mute); }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #2a3a57; border-radius: 8px; background: var(--hx-surface); color: var(--hx-ink); font: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--hx-accent); box-shadow: 0 0 0 3px rgba(45, 212, 191, .18); }
.form textarea { resize: vertical; min-height: 150px; }
.form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { margin: 0 0 20px; padding: 14px 18px; border-radius: 10px; border: 1px solid; }
.note.ok { border-color: rgba(45, 212, 191, .5); background: rgba(45, 212, 191, .08); color: var(--hx-ink); }
.note.bad { border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .08); }
.note.bad p, .note.bad ul { margin: 0; color: var(--hx-ink); }

/* confidentiality notice: a redaction bar + one clear sentence */
.nda { border-bottom: 1px solid var(--hx-line); background: repeating-linear-gradient(135deg, rgba(240, 178, 122, .05) 0 12px, transparent 12px 24px), #0c1322; }
.nda-in { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 12px 40px; align-items: center; padding-top: 26px; padding-bottom: 26px; }
.nda-k { display: flex; align-items: center; gap: 12px; margin: 0; font: 800 clamp(20px, 2.2vw, 26px)/1.2 var(--sans); color: #fff; }
.nda-t { margin: 0; color: var(--hx-soft); }
.nda-bar { flex: none; display: inline-block; width: 56px; height: 16px; border-radius: 2px; background: #000; box-shadow: inset 0 0 0 1px rgba(240, 178, 122, .5); position: relative; overflow: hidden; }
.nda-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(240, 178, 122, .35), transparent); transform: translateX(-100%); animation: redact 3s ease-in-out infinite; }
@keyframes redact { 60%, 100% { transform: translateX(100%); } }
.nda-line { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 15px; color: var(--hx-soft); }
.nda-line .nda-bar { width: 40px; height: 12px; }
@media (max-width: 760px) { .nda-in { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .nda-bar::after { animation: none; } }

/* launched sites archive */
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.sites li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--hx-line); border-radius: 10px; background: var(--hx-surface); }
.sites a, .sites span { font-weight: 700; color: #fff; text-decoration: none; }
.sites a:hover { color: var(--hx-accent); }
.sites a span { color: var(--hx-mute); font-weight: 400; }
.sites small { font: 500 12px/1.5 var(--mono); color: var(--hx-mute); }

/* Free-novel promo band above the footer (Arabic, RTL) */
.story { border-top: 1px solid var(--hx-line); background: radial-gradient(120% 140% at 85% 50%, #18202e 0, #07090e 70%); }
.story[hidden] { display: none; }
.story-in { position: relative; display: flex; align-items: center; gap: 28px; padding-top: 28px; padding-bottom: 28px; }
.story-img { flex: 0 0 auto; width: 220px; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.story-txt { max-width: 560px; font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
.story-k { margin: 0 0 6px; font-size: 14px; color: var(--cu-hi); }
.story-h { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; color: #fff; }
.story-txt p { margin: 0 0 16px; font-size: 16px; line-height: 1.9; color: var(--hx-soft); }
.story-x { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border: 1px solid #2a3a57; border-radius: 50%; background: transparent; color: var(--hx-mute); font-size: 20px; line-height: 1; cursor: pointer; }
.story-x:hover, .story-x:focus-visible { color: #fff; border-color: var(--hx-mute); }
@media (max-width: 640px) { .story-in { flex-direction: column; text-align: center; gap: 12px; } .story-img { width: 180px; } .story-txt { max-width: none; } }
/* hero.css also styles a .btn (tiny, opacity 0) and loads after this file on the homepage; scoped rules win back footer and band buttons */
.foot .btn, .story .btn { display: inline-flex; width: auto; height: auto; opacity: 1; padding: 12px 20px; border-radius: 8px; background: var(--cu); color: #121212; font: 700 16px/1.2 var(--sans); }
.foot .btn:hover, .story .btn:hover { background: var(--cu-hi); }
.foot .btn-ghost { background: transparent; color: var(--hx-ink); border: 1px solid #2a3a57; }
.foot .btn-ghost:hover { background: rgba(255, 255, 255, .04); color: var(--cu-hi); border-color: var(--cu-hi); }
.story .btn { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }

/* /start/ and /ar/start/ content-prep guide */
.toc { justify-self: center; width: min(100%, 320px); margin: 0; padding: 14px; list-style: none; border: 1px solid var(--hx-line); border-radius: 14px; background: rgba(15, 24, 41, .85); }
.toc a { display: flex; gap: 14px; padding: 9px 8px; border-radius: 8px; color: var(--hx-ink); text-decoration: none; }
.toc a:hover, .toc a:focus-visible { background: #111d31; color: #fff; }
.toc span { font: 600 12px/1.9 var(--mono); color: var(--cu-hi); }
.lang-sw { margin: 0; }
.lang-sw a { font-weight: 700; color: var(--hx-accent); }
.phases { counter-reset: ph; margin: 24px 0 0; padding: 0; list-style: none; }
.phases li { counter-increment: ph; position: relative; padding: 14px 0 14px 56px; border-top: 1px dashed var(--hx-line); }
.phases li::before { content: counter(ph, decimal-leading-zero); position: absolute; left: 0; top: 14px; width: 40px; height: 28px; border-radius: 6px; border: 1px solid rgba(240, 178, 122, .4);
  display: grid; place-items: center; font: 700 12px/1 var(--mono); color: var(--cu-hi); background: var(--hx-surface); }
.phases b { display: block; color: #fff; }
.phases span { display: block; font-size: 15px; color: var(--hx-soft); }
.qs { padding-left: 1.3em; }
.qs li { margin: 0 0 8px; }
.prep { margin: 28px 0 0; padding: 22px; border: 1px solid var(--hx-line); border-radius: 12px; background: var(--hx-surface); }
.prep h3 { margin: 0 0 8px; font-size: 20px; color: #fff; }
.prep > p { margin: 0 0 12px; font-size: 15px; color: var(--hx-soft); }
.prep dl { margin: 0; }
.prep dt { margin-top: 12px; font-weight: 700; color: var(--hx-accent); }
.prep dd { margin: 2px 0 0; font-size: 15px; }
.start-note { margin-top: 14px; font-size: 14px; color: var(--hx-mute); }
.start[dir="rtl"] { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
.start[dir="rtl"] h1, .start[dir="rtl"] .kick, .start[dir="rtl"] .sec-h .no { letter-spacing: 0; text-transform: none; }
.start[dir="rtl"] .kick { font-family: inherit; font-size: 14px; }
.start[dir="rtl"] h1 { line-height: 1.3; }
.start[dir="rtl"] .phases li { padding: 14px 56px 14px 0; }
.start[dir="rtl"] .phases li::before { left: auto; right: 0; }
.start[dir="rtl"] .qs { padding-left: 0; padding-right: 1.3em; }
.start[dir="rtl"] .btn { font-family: inherit; }
