/* azbiusta.com — one stylesheet for every page. Dark by design: the brand is graphite and cyan. */

@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0d0f12;
  --panel: #16191d;
  --graphite: #202428;
  --line: rgba(242, 239, 232, 0.12);
  --line-strong: rgba(242, 239, 232, 0.28);
  --paper: #f2efe8;
  --dim: #8d959d;
  --cyan: #33ccff;
  --cyan-dim: rgba(51, 204, 255, 0.16);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: "Poppins", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cyan); color: var(--ink); }

a { color: inherit; text-decoration-color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.dim { color: var(--dim); }
.cyan { color: var(--cyan); }

.shell { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(13, 15, 18, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar .shell { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.crumb { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.crumb .sq { width: 10px; height: 10px; background: var(--cyan); }
.crumb b { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; }
.crumb span { color: var(--dim); }
.bar nav { display: flex; gap: 22px; }
.bar nav a { text-decoration: none; color: var(--dim); }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--paper); }

/* ---------- Type ---------- */
.display { font-family: var(--sans); font-weight: 600; letter-spacing: -0.035em; line-height: 0.95; margin: 0; }
h2.display { font-size: clamp(2.2rem, 5.6vw, 4.6rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9cdd1; max-width: 33em; }

.label { display: flex; align-items: center; gap: 12px; color: var(--dim); margin-bottom: 28px; }
.label::before { content: ""; width: 28px; height: 1px; background: var(--cyan); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.hero .shell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6vw, 6.4rem); }
.hero h1 .ghost { color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); }
.hero h1 .lock { color: var(--cyan); }
.hero .lede { margin: 32px 0 36px; }
.avail { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--line-strong); padding: 10px 16px 10px 12px; }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-dim); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(51, 204, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .avail i { animation: none; } }

/* ---------- Demo ---------- */
.demo { margin: 0 0 0 auto; position: relative; width: 100%; max-width: 460px; }
.stage { position: relative; }
.frame { position: relative; aspect-ratio: 4 / 5; background: #000; overflow: hidden; }
.frame svg { display: block; width: 100%; height: 100%; }
.crop { position: absolute; inset: -14px; pointer-events: none; }
.crop::before, .crop::after, .crop i::before, .crop i::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--paper); opacity: 0.55; }
.crop::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.crop::after { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.crop i::before { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.crop i::after { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; padding: 12px 14px; color: rgba(255, 255, 255, 0.86); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); pointer-events: none; }
.hud.top { top: 0; }
.hud.bottom { bottom: 0; }
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec::before { content: ""; width: 7px; height: 7px; background: var(--cyan); }
.demo[data-mode="raw"] .rec::before { background: #ff5a4f; }

#photo.ease { transition: transform 0.7s cubic-bezier(0.65, 0, 0.25, 1); }
#photo { transform-box: view-box; transform-origin: 0 0; }

.controls { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px; margin-top: 18px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); }
.seg button { appearance: none; border: 0; background: transparent; color: var(--dim); font: inherit; padding: 9px 12px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.seg button:not([aria-pressed="true"]):hover { color: var(--paper); }
.play { appearance: none; width: 38px; height: 38px; border: 1px solid var(--line-strong); background: transparent; color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.play:hover { border-color: var(--cyan); color: var(--cyan); }
.play svg { width: 14px; height: 14px; }
.scrub { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
.scrub::-webkit-slider-runnable-track { height: 10px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px calc(100% / 47)); border-bottom: 1px solid var(--line-strong); }
.scrub::-moz-range-track { height: 10px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px calc(100% / 47)); border-bottom: 1px solid var(--line-strong); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 3px; height: 24px; margin-top: -7px; background: var(--cyan); border: 0; }
.scrub::-moz-range-thumb { width: 3px; height: 24px; background: var(--cyan); border: 0; border-radius: 0; }
.speed button { padding: 9px 9px; }
.demo figcaption { margin-top: 14px; color: var(--dim); }

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 18px 0; }
.ticker div { display: inline-flex; gap: 48px; padding-right: 48px; animation: tick 48s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 48px; }
.ticker span::after { content: ""; width: 6px; height: 6px; background: var(--cyan); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker div { animation: none; } }

/* ---------- Sections ---------- */
.block { padding: clamp(72px, 11vw, 150px) 0; border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .sticky { position: sticky; top: 96px; }

/* Use cases: an index, not cards */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: n; }
.index li { counter-increment: n; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding 0.3s ease, background 0.3s ease; }
.index li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--dim); }
.index li:hover { padding-left: 14px; background: linear-gradient(90deg, var(--cyan-dim), transparent 60%); }
.index li:hover::before { color: var(--cyan); }
.index h3 { margin: 0; font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.1; }
.index p { margin: 0; color: var(--dim); }

/* Zeros */
.zeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 56px; }
.zeros div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 24px 22px; }
.zeros b { display: block; font-family: var(--sans); font-weight: 600; font-size: clamp(4rem, 10vw, 9rem); line-height: 0.8; letter-spacing: -0.06em; color: var(--paper); }
.zeros div:hover b { color: var(--cyan); }
.zeros span { display: block; margin-top: 18px; color: var(--dim); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.facts h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; }
.facts p { margin: 0; color: var(--dim); font-size: 0.97rem; }

/* Growth overlay */
.overlay { width: 100%; height: auto; display: block; }
.specs { margin: 40px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; }
.specs div { border-top: 1px solid var(--line); padding: 18px 0 22px; }
.specs dt { color: var(--cyan); margin-bottom: 6px; }
.specs dd { margin: 0; color: #c9cdd1; font-size: 0.97rem; }

/* Steps */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.steps li { position: relative; padding: 40px 28px 0 0; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border: 1px solid var(--cyan); background: var(--ink); }
.steps li:last-child::before { background: var(--cyan); }
.steps h3 { margin: 10px 0 8px; font-size: 1.2rem; font-weight: 600; }
.steps p { margin: 0; color: var(--dim); font-size: 0.97rem; }

/* Closing */
.closing { padding: clamp(80px, 12vw, 170px) 0; border-bottom: 1px solid var(--line); }
.closing p.display { font-size: clamp(2rem, 5vw, 4.2rem); max-width: 15em; }
.closing .cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 40px; text-decoration: none; border-bottom: 1px solid var(--cyan); padding-bottom: 6px; }
.closing .cta::after { content: "→"; font-family: var(--sans); transition: transform 0.25s ease; }
.closing .cta:hover::after { transform: translateX(6px); }

/* ---------- Footer ---------- */
footer { padding: 48px 0 28px; overflow: hidden; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: var(--dim); }
footer .row nav { display: flex; gap: 22px; }
footer .row a { text-decoration: none; }
.giant { display: flex; align-items: flex-end; gap: 2.2vw; margin-top: 48px; user-select: none; }
.giant svg { width: 13vw; max-width: 170px; height: auto; flex: none; margin-bottom: 1.6vw; }
.giant span { font-family: var(--sans); font-weight: 600; font-size: clamp(5rem, 21vw, 19rem); line-height: 0.74; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }

/* ---------- Home ---------- */
.home-hero h1 { font-size: clamp(3rem, 9vw, 8.6rem); max-width: 10em; }
.home-hero .lede { margin-top: 32px; }
.apps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.apps a { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.apps a:hover h3 { color: var(--cyan); }
.apps .tile { width: 96px; height: 96px; background: var(--graphite); display: grid; place-items: center; }
.apps .tile svg { width: 52px; height: auto; }
.apps h3 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.apps p { margin: 0; color: var(--dim); max-width: 38em; }

/* ---------- Policy ---------- */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 18px; }
.doc h2 { font-size: 1.25rem; font-weight: 600; margin: 56px 0 14px; display: flex; gap: 14px; align-items: baseline; }
.doc h2 .mono { color: var(--cyan); }
.doc p, .doc li { color: #c9cdd1; }
.doc ul { padding-left: 1.1em; }
.doc li { margin-bottom: 0.7em; }
.doc li::marker { color: var(--cyan); }
.doc strong { color: var(--paper); font-weight: 600; }
.doc code { font-family: var(--mono); font-size: 0.88em; color: var(--paper); background: var(--panel); padding: 1px 6px; }
.tldr { border: 1px solid var(--line-strong); padding: 26px 28px; margin: 40px 0 8px; position: relative; }
.tldr .mono { position: absolute; top: -9px; left: 20px; background: var(--ink); padding: 0 8px; color: var(--cyan); }
.tldr p { margin: 0; font-size: 1.12rem; color: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .shell, .split { grid-template-columns: minmax(0, 1fr); }
  .split .sticky { position: static; }
  .zeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts, .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .index li { grid-template-columns: 40px minmax(0, 1fr); }
  .index p { grid-column: 2; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .bar nav { gap: 14px; }
  .crumb span { display: none; }
  .controls { grid-template-columns: auto auto 1fr; }
  .controls .speed { grid-column: 1 / -1; justify-self: start; }
  .facts, .steps, .specs { grid-template-columns: minmax(0, 1fr); }
  .apps a { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; }
  .apps .tile { width: 64px; height: 64px; }
  .apps .tile svg { width: 34px; }
  .apps .go { display: none; }
}
