/* ============================================================
   components.css — nav, buttons, hero, cards, media, footer
   ============================================================ */

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(11, 12, 16, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(11, 12, 16, 0.82);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -0.01em; }
.nav__logo { color: var(--gold); display: inline-flex; }
.nav__name { font-size: 1.15rem; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { color: var(--text-soft); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__ghost {
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.nav__cta { margin-left: 8px; }
@media (max-width: 780px) {
  .nav__links { display: none; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-ink);
  background: var(--gold);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  box-shadow: 0 6px 20px rgba(233, 196, 106, 0.22);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(233, 196, 106, 0.34); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 8px 16px; font-size: 0.9rem; }
.btn--lg { padding: 14px 26px; font-size: 1.02rem; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold);
  box-shadow: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(40px, 7vw, 72px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}
.hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(233, 196, 106, 0.06);
}
.hero__title {
  font-size: clamp(3rem, 8vw, 5.8rem);
  max-width: 16ch;
  line-height: 1.02;
}
.hero__title .text-grad { font-style: italic; }
.hero__sub {
  margin-top: 24px;
  max-width: 62ch;
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  color: var(--text-soft);
}
.hero__pun {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 1.02rem;
}
.hero__pun em { color: var(--gold); font-style: italic; }
.hero__cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__note { margin-top: 16px; color: var(--text-dim); font-size: 0.9rem; }
.hero__scroll {
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  animation: nudge 2.4s var(--ease) infinite;
}
.hero__scroll:hover { color: var(--text); }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.hero__media { width: 100%; margin-top: clamp(44px, 7vw, 72px); }

/* ---------- MEDIA FRAMES (asset placeholders) ---------- */
.media-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-elev), var(--surface));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.media-frame--hero {
  max-width: 940px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
}
.media-frame:not(.media-frame--hero) { aspect-ratio: 4 / 3; }
.media-frame--diagram { aspect-ratio: 4 / 3; }
.media-frame__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline: 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  z-index: 2;
}
.media-frame__bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--border-strong);
}
.media-frame__bar span:nth-child(1) { background: #ff5f57; }
.media-frame__bar span:nth-child(2) { background: #febc2e; }
.media-frame__bar span:nth-child(3) { background: #28c840; }
.media-frame__video { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder shown until a real asset is dropped in */
.media-placeholder {
  position: absolute;
  inset: 34px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px);
}
.media-placeholder--sm { inset: 34px 0 0 0; }
.media-placeholder__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-soft);
}
.media-placeholder__pill .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(233,196,106,0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(233,196,106,0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(233,196,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(233,196,106,0); }
}
.media-placeholder__label { font-weight: 700; color: var(--text); }
.media-placeholder__hint {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.asset-hint {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- ONE-LINER ---------- */
.oneliner {
  padding-block: clamp(48px, 8vw, 88px);
  border-bottom: 1px solid var(--border);
}
.oneliner__text {
  max-width: 40ch;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
}
.oneliner__text strong { color: var(--gold); }

/* ---------- KICKER ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- PULLQUOTE ---------- */
.section__pullquote {
  margin-top: 26px;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ---------- COMMAND CARD MOCK ---------- */
/* Command dictionary rendered as a small, polished app window. */
.cmd-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cmd-card__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.cmd-card__dots { display: inline-flex; gap: 7px; }
.cmd-card__dots i { width: 11px; height: 11px; border-radius: 50%; }
.cmd-card__dots i:nth-child(1) { background: #ff5f57; }
.cmd-card__dots i:nth-child(2) { background: #febc2e; }
.cmd-card__dots i:nth-child(3) { background: #28c840; }
.cmd-card__name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.cmd-card__tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  background: rgba(217, 138, 43, 0.10);
  border-radius: 999px;
  padding: 3px 10px;
}

.cmd-list { list-style: none; margin: 0; padding: 6px; }
.cmd-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "say arrow"
    "run run";
  align-items: center;
  gap: 7px 12px;
  padding: 11px 13px;
  border-radius: 10px;
  transition: background 0.18s var(--ease);
}
.cmd-list li:hover { background: var(--surface); }
.cmd-list li + li { border-top: 1px solid var(--border); }

.cmd-list__say {
  grid-area: say;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
}
.cmd-list__arrow {
  grid-area: arrow;
  color: var(--text-dim);
  font-size: 1rem;
}
.cmd-list__run {
  grid-area: run;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 7px 11px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: nowrap;
}
/* {slot} chips: highlighted, editable-looking */
.slot {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--cyan);
  background: rgba(43, 163, 196, 0.12);
  border: 1px solid rgba(43, 163, 196, 0.28);
  border-radius: 5px;
  padding: 0 5px;
}
.cmd-list__say .slot { font-family: inherit; font-weight: 600; }

/* ---------- COMMANDS SECTION (redesigned) ---------- */
.commands__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
  margin-top: clamp(20px, 3vw, 34px);
}
@media (max-width: 860px) {
  .commands__grid { grid-template-columns: 1fr; gap: 24px; }
}
.commands__intro {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 22px;
}

/* centered section heading */
.section__head--center {
  margin-inline: auto;
  text-align: center;
}

/* right-aligned section heading */
.section__head--right {
  margin-left: auto;
  text-align: right;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.section__head--right .section__lead { margin-left: auto; }
@media (max-width: 860px) {
  .section__head--right { text-align: left; }
  .section__head--right .section__lead { margin-left: 0; }
}

/* one confident safety line (replaces the 3-step breakdown) */
.commands__safe {
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--text-soft);
  margin-bottom: 0;
}
.commands__safe strong { color: var(--text); font-weight: 700; }
.commands__safe code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--cyan);
  background: rgba(43, 163, 196, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
}

/* the three safety steps, clean and scannable */
.safe-steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.safe-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.02rem;
  color: var(--text-soft);
  line-height: 1.45;
}
.safe-steps strong { color: var(--text); font-weight: 700; }
.safe-steps code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--cyan);
  background: rgba(43, 163, 196, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
}
.safe-steps__n {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}
.commands__quote {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
}

/* text powers: compact chip row */
.commands__text {
  margin-top: clamp(28px, 4vw, 44px);
  text-align: center;
}
.commands__text-lead {
  max-width: 60ch;
  margin: 0 auto 16px;
  color: var(--text-soft);
  font-size: 1rem;
}
.power-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.power-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text-soft);
  font-size: 0.88rem;
  box-shadow: var(--shadow);
}
.power-chip b { color: var(--text); font-weight: 700; }

/* ---------- CARDS ---------- */
.card {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-elev);
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface);
}
.card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(233,196,106,0.12);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.card h4 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- DIAGRAM (local pipeline) ---------- */
.diagram {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px;
}
.diagram__box {
  border: 1.5px dashed var(--gold);
  border-radius: var(--r);
  padding: 22px 20px 18px;
  position: relative;
  background: rgba(233,196,106,0.04);
  width: 100%;
  max-width: 420px;
}
.diagram__label {
  position: absolute;
  top: -11px; left: 16px;
  background: var(--bg-alt);
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.diagram__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}
.diagram__flow span {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.diagram__flow i { color: var(--text-dim); font-style: normal; }
.diagram__cloud {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px dotted var(--border-strong);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- LOCAL / SAFE (monitor bird) ---------- */
.local__art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.local__art img {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 24px 44px rgba(40, 30, 15, 0.22));
}
/* three scannable local points, with soft icon tiles */
.local__points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.local__points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  color: var(--text-soft);
  line-height: 1.4;
}
.local__points strong { color: var(--text); font-weight: 700; }
.local__ico {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 1.15rem;
}

.local__reassure {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.35;
}

/* ---------- STEPS (glassy droplet icons) ---------- */
.step {
  position: relative;
  padding: 8px 14px 0;
  background: none;
  border: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* raised, glassy "water droplet" disc holding the bird image */
.step__droplet {
  position: relative;
  width: clamp(130px, 15vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 30% 22%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.25) 42%, rgba(255, 255, 255, 0.05) 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(240, 235, 225, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 22px 40px rgba(40, 30, 15, 0.16),          /* outer lift */
    0 4px 10px rgba(40, 30, 15, 0.10),
    inset 0 3px 8px rgba(255, 255, 255, 0.9),     /* top highlight */
    inset 0 -10px 18px rgba(120, 100, 70, 0.14);  /* bottom shade -> raised */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.step__droplet img {
  width: 78%;
  height: 78%;
  object-fit: contain;   /* whole bird + tail fits inside the disc */
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}
/* small number badge on the droplet's corner */
.step__num {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(217, 138, 43, 0.4);
  border: 2px solid var(--bg);
  z-index: 3;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin: 22px 0 10px;
  line-height: 1.15;
}
.step p {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 32ch;
}

/* ---------- PERSONA ---------- */
.personas { align-items: stretch; }
.persona {
  padding: 20px 28px 28px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s var(--ease);
}
.persona:hover {
  transform: translateY(-4px);
}
.persona__art {
  width: clamp(140px, 18vw, 190px);
  height: auto;
  margin-bottom: 6px;
  filter: drop-shadow(0 14px 24px rgba(40, 30, 15, 0.18));
}
.persona h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text);
}
.persona p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 34ch;
}

/* ---------- TRUST (detective bird + scannable points) ---------- */
.trust__art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.trust__art img {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 24px 44px rgba(40, 30, 15, 0.22));
}
.trust-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.4;
}
.trust-list strong { color: var(--text); font-weight: 700; }
.trust-list__ico {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 1.15rem;
}

/* ---------- TRUST ---------- */
.trust__item {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-elev);
}
.trust__item h4 { font-size: 1.08rem; margin-bottom: 8px; }
.trust__item p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding-block: clamp(80px, 12vw, 150px);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 380px at 50% 120%, rgba(139,124,246,0.22), transparent 70%),
              radial-gradient(600px 300px at 50% -10%, rgba(233,196,106,0.16), transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.cta__sub { margin-top: 20px; max-width: 54ch; color: var(--text-soft); font-size: 1.15rem; }
.cta__note { margin-top: 16px; color: var(--text-dim); font-size: 0.9rem; }

/* ---------- FOOTER (Juno-style) ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 36px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}
.footer-brand { font-weight: 700; color: var(--text-soft); letter-spacing: 0.02em; }
.footer-copy { color: var(--text-dim); }
.footer-portfolio {
  color: var(--gold);
  font-weight: 500;
  transition: color 0.2s;
}
.footer-portfolio:hover { color: var(--gold-2); }
@media (max-width: 640px) {
  .site-footer { flex-direction: column; gap: 8px; text-align: center; padding: 28px 16px; }
}

/* ---------- EDGE TREE (left edge decoration) ---------- */
.edge-tree {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: auto;
  transform: translateX(-30%);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 780px) {
  .edge-tree { display: none; }
}

/* ---------- LIVE DEMO (tabbed clips) ---------- */
.demo { flex-direction: column; }
/* Let this section use more of the screen width than the default container. */
.demo .container { width: 100%; max-width: 1560px; }
.demo__head { text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.demo__head .kicker { margin-bottom: 10px; }

.demo__stage {
  display: grid;
  grid-template-columns: 3.4fr 1fr;
  gap: clamp(20px, 2.6vw, 44px);
  align-items: stretch;
}
@media (max-width: 900px) {
  .demo__stage { grid-template-columns: 1fr; }
}

.demo__player {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0d0f16;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.demo__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Compact, elegant speaker caption: slim pill, tiny equalizer, the words. */
.speaker {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(88%, 640px);
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(14, 16, 24, 0.62);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  /* Hidden until the caption's time window; JS toggles .is-visible. */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.speaker.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
/* tiny live equalizer standing in for "speaking" */
.speaker__wave {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 16px;
  padding: 0 2px;
}
.speaker__wave i {
  width: 2.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: speaker-wave 1.1s ease-in-out infinite;
}
.speaker__wave i:nth-child(1) { height: 6px;  animation-delay: 0s;    }
.speaker__wave i:nth-child(2) { height: 12px; animation-delay: 0.18s; }
.speaker__wave i:nth-child(3) { height: 16px; animation-delay: 0.36s; }
.speaker__wave i:nth-child(4) { height: 10px; animation-delay: 0.54s; }
.speaker__wave i:nth-child(5) { height: 7px;  animation-delay: 0.72s; }
@keyframes speaker-wave {
  0%, 100% { transform: scaleY(0.35); opacity: 0.55; }
  50%      { transform: scaleY(1);    opacity: 1;    }
}
.speaker__text {
  color: #f2f3f7;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 450;
  text-align: center;
}
.speaker__text::before { content: "\201C"; opacity: 0.55; }
.speaker__text::after  { content: "\201D"; opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
  .speaker__wave i { animation: none; }
}
@media (max-width: 560px) {
  .speaker { padding: 6px 12px; gap: 8px; }
  .speaker__text { font-size: 0.82rem; }
}

.demo__tabs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
@media (max-width: 900px) {
  .demo__tabs { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
.demo__tab {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "n t"
    "n d";
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  text-align: left;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-elev);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease);
}
.demo__tab:hover { border-color: var(--border-strong); transform: translateX(3px); }
.demo__tab.is-active {
  border-color: var(--gold);
  background: rgba(217, 138, 43, 0.10);
}
.demo__tab-n {
  grid-area: n;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  align-self: center;
}
.demo__tab.is-active .demo__tab-n { color: var(--gold); }
.demo__tab-t {
  grid-area: t;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}
.demo__tab-d {
  grid-area: d;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.35;
}
@media (max-width: 900px) {
  /* On the row layout, drop the description to keep tabs compact. */
  .demo__tab { grid-template-areas: "n t"; }
  .demo__tab-d { display: none; }
}

/* ---------- FAQ (accordion) ---------- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] {
  border-color: rgba(217, 138, 43, 0.4);
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    linear-gradient(180deg, rgba(217, 138, 43, 0.05), transparent) border-box;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 22px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s var(--ease);
}
.faq-item summary:hover { color: var(--gold); }
.faq-item[open] summary { color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
/* circular +/× chip indicator */
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background:
    linear-gradient(var(--gold), var(--gold)) center/2px 11px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center/11px 2px no-repeat,
    rgba(217, 138, 43, 0.10);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(135deg);
}
.faq-item__body {
  padding: 0 22px 20px;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.faq-item__body b { color: var(--text); }
/* smooth open/close: JS animates max-height; this is the no-JS fallback */
.faq-item:not([open]) .faq-item__body { display: none; }

/* ---------- ABOUT THE DEVELOPER ---------- */
.about-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about-avatar {
  width: 128px; height: 128px;
  margin: 0 auto 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elev);
  border: 3px solid rgba(217, 138, 43, 0.35);
  box-shadow:
    0 0 0 6px rgba(217, 138, 43, 0.08),
    0 18px 44px rgba(40, 30, 15, 0.20),
    0 6px 16px rgba(217, 138, 43, 0.18);
}
.about-avatar video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.about-wrap .kicker { margin-bottom: 14px; }
.about-wrap h2 { margin-bottom: 18px; }
.about-body {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 30px;
}
.about-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  justify-content: center;
}
@media (max-width: 560px) {
  /* only stack on genuinely narrow screens */
  .about-links { flex-wrap: wrap; }
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--accent-ink);
  background: var(--gold);
  border: 1px solid transparent;
  box-shadow: 0 6px 20px rgba(217, 138, 43, 0.22);
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.about-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(217, 138, 43, 0.34);
}
.about-link span { font-size: 1.05rem; }
/* ghost variant for github */
.about-link-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
  box-shadow: none;
}
.about-link-ghost:hover {
  background: rgba(20, 22, 30, 0.04);
  border-color: var(--gold);
}
.about-link-ghost svg { flex-shrink: 0; }

/* ---------- REVEAL ANIMATION ---------- */
/* Fade + scale IN on enter, OUT on leave — the "one section per screen"
   illusion (Juno-style). Enters growing from .97, exits growing to 1.02,
   so content always feels like it's advancing toward you. */
.reveal {
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: scale(1);
}
.reveal.is-gone {
  opacity: 0;
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible, .reveal.is-gone {
    opacity: 1; transform: none; transition: none;
  }
}
