body {
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ────────────────────────────────────────────────────────────
   HERO — Bluffy app splash replica + frosted marketing bar
   ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  /* Card-style pink top-glow over the dark canvas (matches the share card). */
  background:
    radial-gradient(130% 90% at 50% -20%, rgba(255, 94, 138, 0.12), transparent 55%),
    var(--bg-base);
}

/* Pink hairline across the very top, like the share card. */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 94, 138, 0.6), transparent);
  z-index: 3;
}

/* Splash — faithful recreation of the app's first screen (ProjectList.tsx).
   The app's design tokens are scoped here so the replica reads exactly like
   the product, independent of the marketing site's own palette. */
.hero-splash {
  --app-surface:        #19191b;
  --app-elevated:       #1c1c1f;
  --app-line:           #28282a;
  --app-text:           #f7f4f0;
  --app-text-secondary: #6a6a72;
  --app-accent:         #ff5e8a;

  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8) var(--space-8);
}

.splash-inner {
  width: 100%;
  max-width: 50rem;
}

.splash-head {
  text-align: center;
  margin-bottom: var(--space-8);
}

.splash-logo {
  font-family: 'Gochi Hand', cursive;
  font-size: clamp(3.25rem, 7vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--app-accent);
  /* Soft pink glow behind the wordmark, matching the share card. */
  text-shadow: 0 8px 46px rgba(255, 94, 138, 0.28);
  margin-bottom: var(--space-4);
  user-select: none;
}

.splash-prompt {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  color: #9a9aa2;
}

.splash-input {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: var(--radius);
  padding: 0.4rem;
}

.splash-field {
  flex: 1 1 auto;
  min-width: 0;
  /* A single-line text block (not flex): the line-box strut always reserves
     one full line of height, so the box stays the same size whether the typed
     text is empty or full — just like a real one-line input. */
  padding: 0.3rem 0.55rem;
  font-size: clamp(0.9rem, 1.05vw, 1.05rem);
  line-height: 1.6;
  color: var(--app-text);
  white-space: nowrap;
  overflow: hidden;
}

.splash-typed {
  white-space: pre;
}

.splash-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 2px;
  background: var(--app-text);
  vertical-align: middle;
  animation: splash-caret 1.05s steps(1, end) infinite;
}

@keyframes splash-caret {
  0%, 49.9%  { opacity: 1; }
  50%, 100%  { opacity: 0; }
}

.splash-start {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: clamp(0.5625rem, 0.8vw, 0.6875rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--app-text);
  background: var(--app-elevated);
  border: 1px solid var(--app-line);
  border-radius: 2px;
  padding: 0.5rem 1rem;
  user-select: none;
}

.splash-helper {
  margin-top: var(--space-2);
  text-align: center;
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  line-height: 1.5;
  color: var(--app-text-secondary);
}

/* Gentle on-load entrance for the splash and the marketing bar. */
@media (prefers-reduced-motion: no-preference) {
  .splash-inner,
  .hero-overlay {
    opacity: 0;
    animation: hero-in 0.9s ease forwards;
  }
  .splash-inner { animation-delay: 0.15s; }
  .hero-overlay { animation-delay: 0.35s; }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-caret { animation: none; }
}

/* Mobile portrait: the splash fills the space above the bar, and the bar
   (headline + CTAs) sits as its own block underneath. */
@media (max-width: 700px) {
  .hero-splash {
    padding: var(--space-12) var(--space-4) var(--space-6);
  }

  /* Comfortable breathing room under the CTAs so the buttons clear iOS
     Safari's bottom URL bar / the home indicator. Uses safe-area-inset-bottom
     when available (iPhone with home indicator) and a sensible floor otherwise. */
  .hero-bar {
    padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 1.5rem));
  }
}

.hero-overlay {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  width: 100%;
  padding: var(--space-6) var(--space-8);
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-copy {
  flex: 1;
  min-width: 0;
  max-width: 70ch;
}

.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 var(--space-2);
}

.hero-subhead {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .hero-bar { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .hero-ctas { width: 100%; }
}

/* ────────────────────────────────────────────────────────────
   BUTTONS — unified system
   .btn               base reset (any element)
   .btn-primary       filled · pink hover
   .btn-ghost         outlined · pink hover
   .btn-large         size modifier
   ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.9);
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.btn:focus-visible {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(255, 94, 138, 0.18);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}
.btn-primary:hover {
  background: rgba(255, 94, 138, 0.12);
  border-color: var(--accent-pink);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 94, 138, 0.12);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}
.btn-ghost:hover {
  background: rgba(255, 94, 138, 0.05);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
}

/* ────────────────────────────────────────────────────────────
   SHARED — frosted glass panels
   ──────────────────────────────────────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
}

/* ────────────────────────────────────────────────────────────
   PILLAR SECTIONS — alternating L/R layout
   ──────────────────────────────────────────────────────────── */
.pillar {
  padding: 8rem var(--space-8);
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pillar-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.pillar-flip .pillar-grid {
  grid-template-columns: 1fr 1.15fr;
}
.pillar-flip .pillar-text   { order: 2; }
.pillar-flip .pillar-visual { order: 1; }

@media (max-width: 880px) {
  .pillar { padding: 5.5rem var(--space-6); }
  .pillar-grid,
  .pillar-flip .pillar-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .pillar-flip .pillar-text   { order: 1; }
  .pillar-flip .pillar-visual { order: 2; }
}

/* ── Text column ─────────────────────────────────────────── */
.pillar-text {
  min-width: 0;
}

.pillar-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: var(--space-5);
}

.pillar-eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  background: var(--accent-pink);
  opacity: 0.7;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: var(--space-5);
  max-width: 30ch;
}

.pillar-lede {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.65);
  max-width: 56ch;
  margin-bottom: var(--space-6);
}

.pillar-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 56ch;
}

.pillar-points li {
  position: relative;
  padding-left: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.75);
}

.pillar-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-pink);
  opacity: 0.55;
}

/* ── Visual column — shared frame ────────────────────────── */
.pillar-visual {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-frame {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.visual-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
}

.visual-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tb-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.tb-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Section 2: Chat ─────────────────────────────────────── */
.visual-chat .chat-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 280px;
}

.chat-msg {
  max-width: 88%;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  letter-spacing: 0.005em;
}

.chat-msg.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-msg.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Section 3: Range / scope bars ───────────────────────── */
.visual-scope .scope-body {
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.scope-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  align-items: center;
  gap: 0.9rem;
}

.scope-task {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

.scope-track {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.scope-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 94, 138, 0.45), rgba(255, 94, 138, 0.95));
}

.scope-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Section 4: Look & asset library ─────────────────────── */
.visual-library .library-body {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.look-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.look-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.look-name {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Desaturated, cinematic grade swatches — a little color tells the "film
   look" story without breaking the site's restrained monochrome palette. */
.look-noir   { background: linear-gradient(135deg, #2a2d31, #0e0f11); }
.look-teal   { background: linear-gradient(135deg, #1f4b4f, #6b4a2b); }
.look-golden { background: linear-gradient(135deg, #7a5a2a, #2b2113); }
.look-anime  { background: linear-gradient(135deg, #3a4a6b, #7a5a78); }
.look-bleach { background: linear-gradient(135deg, #4a4d50, #b6bbbe); }

.look-tile.look-more {
  background: rgba(255, 94, 138, 0.06);
  border-color: rgba(255, 94, 138, 0.32);
  border-style: dashed;
  align-items: center;
  justify-content: center;
}

.look-more .look-name {
  color: var(--accent-pink);
  text-shadow: none;
}

.library-rows {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.library-row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  align-items: center;
  gap: 0.85rem;
}

.library-cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.library-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.library-chip {
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

.library-chip-add {
  background: rgba(255, 94, 138, 0.08);
  border-color: rgba(255, 94, 138, 0.4);
  color: var(--accent-pink);
}

.library-note {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ── Section 5: Edit timeline ────────────────────────────── */
.visual-timeline .timeline-body {
  padding: 1.2rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tl-ruler {
  display: flex;
  justify-content: space-between;
  padding-left: 4.6rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.32);
}

.tl-track {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tl-label {
  flex: 0 0 4rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.tl-lane {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 0.3rem;
  height: 30px;
}

.tl-clip {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  padding: 3px 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.tl-clip.tl-board {
  border-left: 2px solid var(--accent-pink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.tl-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.tl-gap {
  background: transparent;
}

.tl-audio {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  background: rgba(255, 94, 138, 0.07);
  border: 1px solid rgba(255, 94, 138, 0.32);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.01em;
  color: rgba(255, 196, 212, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-color {
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: linear-gradient(90deg, #1f4b4f, #6b4a2b);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.tl-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.3rem;
  padding-top: 0.85rem;
  padding-left: 4.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.tl-foot-cta {
  margin-left: auto;
  color: var(--accent-pink);
}

/* ── Section 6: Vertical color pipeline ──────────────────── */
.visual-pipeline {
  padding: 1.6rem 1.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pipeline-frame-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.2rem;
}

.pipe-vert {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 280px;
}

.pipe-node {
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.pipe-node-ai {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 22px -4px rgba(255, 255, 255, 0.15);
}

.pipe-line {
  align-self: center;
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
}

/* ── Section 6: Models ───────────────────────────────────── */
.visual-models .models-body {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.model-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.model-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.model-row-local {
  margin-top: 0.4rem;
  padding-top: 0.95rem;
  border-top: 1px dashed rgba(255, 94, 138, 0.35);
}

.model-cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.model-chip {
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

.model-chip-local {
  background: rgba(255, 94, 138, 0.08);
  border-color: rgba(255, 94, 138, 0.4);
  color: var(--accent-pink);
}

/* ── Section 7: Desktop window ───────────────────────────── */
.visual-window .window-body {
  padding: 1.4rem 1.6rem;
  min-height: 240px;
}

.filetree {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
}

.filetree ul {
  list-style: none;
  padding-left: 1.4rem;
  margin: 0;
}

.ft-folder::before {
  content: "▸ ";
  color: rgba(255, 255, 255, 0.4);
}

.ft-file::before {
  content: "·  ";
  color: rgba(255, 255, 255, 0.3);
}

.ft-more {
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
}

.window-note {
  margin-top: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Scroll entrance for pillar sections ─────────────────── */
.pillar .pillar-eyebrow,
.pillar .pillar-title,
.pillar .pillar-lede,
.pillar .pillar-points,
.pillar .pillar-visual {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.pillar .pillar-eyebrow { transition-delay: 0s; }
.pillar .pillar-title   { transition-delay: 0.12s; }
.pillar .pillar-lede    { transition-delay: 0.26s; }
.pillar .pillar-points  { transition-delay: 0.40s; }
.pillar .pillar-visual  {
  transition-delay: 0.18s;
  transform: translateY(48px) scale(0.985);
}

.pillar.in-view .pillar-eyebrow,
.pillar.in-view .pillar-title,
.pillar.in-view .pillar-lede,
.pillar.in-view .pillar-points,
.pillar.in-view .pillar-visual {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* CTA section gets the same treatment */
.cta-section .cta-headline,
.cta-section .cta-body,
.cta-section .btn {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta-section .cta-headline { transition-delay: 0s; }
.cta-section .cta-body     { transition-delay: 0.14s; }
.cta-section .btn          { transition-delay: 0.30s; }

.cta-section.in-view .cta-headline,
.cta-section.in-view .cta-body,
.cta-section.in-view .btn {
  opacity: 1;
  transform: translateY(0);
}

/* ────────────────────────────────────────────────────────────
   CTA SECTION — Request Access
   ──────────────────────────────────────────────────────────── */
.cta-section {
  padding: 7rem var(--space-6);
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: var(--space-5);
}

.cta-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-8);
}

/* ────────────────────────────────────────────────────────────
   FOOTER — frosted bar matching hero
   ──────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-8);
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.5;
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  transition: color 160ms;
}

.footer-nav a:hover { color: rgba(255, 255, 255, 0.7); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.12em;
}

@media (max-width: 700px) {
  .footer { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-nav { justify-content: center; }
}

/* ────────────────────────────────────────────────────────────
   AUTH / FORM PAGES
   ──────────────────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.auth-form input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text);
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 160ms ease;
}

.auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.auth-form input:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

/* legacy .btn-submit alias — falls back to .btn-primary look */
.btn-submit {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.btn-submit:hover {
  background: rgba(255, 94, 138, 0.12);
  border-color: var(--accent-pink);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 94, 138, 0.12);
}

.btn-submit:disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.auth-error {
  display: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.auth-success {
  display: none;
  text-align: center;
}

.auth-link {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

.auth-link a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ────────────────────────────────────────────────────────────
   ACCESS PAGE — Request Access form
   ──────────────────────────────────────────────────────────── */
.access-page {
  min-height: 100vh;
  background: #000;
  padding: 5rem var(--space-6) 4rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.access-inner {
  max-width: 540px;
  width: 100%;
}

.access-logo-link {
  display: block;
  width: fit-content;
  margin: 0 auto 3rem;
}

.access-logo {
  display: block;
  height: 56px;
  width: auto;
  opacity: 0.9;
  transition: opacity 160ms ease;
}

.access-logo-link:hover .access-logo { opacity: 1; }

.access-title {
  margin-bottom: var(--space-4);
  max-width: none;
}

.access-lede {
  margin-bottom: 2.5rem;
  max-width: none;
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.access-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.access-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.access-optional {
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.08em;
  text-transform: none;
  margin-left: 0.3rem;
}

.access-form input,
.access-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.005em;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  color-scheme: dark; /* tells the browser to render UA controls in dark mode */
}

.access-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.access-form input:focus,
.access-form select:focus {
  border-color: var(--accent-pink);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 94, 138, 0.12);
}

/* Browser autofill override (Chrome / Safari paint inputs cream-yellow when
   autofill is active or eligible — undo by painting our own inset shadow.
   The huge inset covers the UA fill since `background-color` itself can't
   be overridden on autofilled inputs in Chromium). */
.access-form input:-webkit-autofill,
.access-form input:-webkit-autofill:hover,
.access-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0c0c0c inset !important;
          box-shadow: 0 0 0 1000px #0c0c0c inset !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
  caret-color: var(--accent-pink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 99999s ease 0s;
}

.access-form input:-webkit-autofill:focus {
  -webkit-box-shadow:
    0 0 0 1000px #0c0c0c inset,
    0 0 0 3px rgba(255, 94, 138, 0.12) !important;
          box-shadow:
    0 0 0 1000px #0c0c0c inset,
    0 0 0 3px rgba(255, 94, 138, 0.12) !important;
  border-color: var(--accent-pink);
}

/* Firefox autofill */
.access-form input:autofill {
  background: #0c0c0c;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  color: rgba(255, 255, 255, 0.92);
}

.access-select-wrap {
  position: relative;
}

.access-select-wrap::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-25%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent-pink);
  pointer-events: none;
  opacity: 0.85;
}

.access-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
}

.access-form select option {
  background: #0c0c0c;
  color: rgba(255, 255, 255, 0.9);
}

.access-form select:invalid,
.access-form select option[disabled] {
  color: rgba(255, 255, 255, 0.3);
}

.access-submit {
  margin-top: 0.6rem;
  align-self: flex-start;
}

.access-submit:disabled {
  opacity: 0.45;
  cursor: default;
}

.access-thanks {
  display: none;
}

.access-thanks .access-title,
.access-thanks .access-lede {
  text-align: left;
}

.access-footnote {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.access-meta,
.access-back {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
}

.access-meta a,
.access-back a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 1px;
  transition: color 160ms, border-color 160ms;
}

.access-meta a:hover,
.access-back a:hover {
  color: var(--accent-pink);
  border-color: var(--accent-pink);
}

.access-page .auth-error,
#access-error,
#signin-error {
  display: none;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-pink);
  letter-spacing: 0.02em;
  text-align: left;
}

/* ────────────────────────────────────────────────────────────
   DOWNLOAD PAGE
   ──────────────────────────────────────────────────────────── */
.download-inner {
  max-width: 640px;
}

.download-loading {
  text-align: left;
}

.download-loading-msg {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

@media (max-width: 540px) {
  .download-grid { grid-template-columns: 1fr; }
}

.download-version {
  margin: 0.25rem 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-pink);
  opacity: 0.85;
}

.download-empty,
.download-error {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.download-error {
  background: rgba(255, 94, 138, 0.08);
  border-color: rgba(255, 94, 138, 0.35);
  color: var(--accent-pink);
}

.download-tile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "platform arrow"
    "meta     arrow";
  gap: 0.3rem 1rem;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease,
    opacity 200ms ease;
}

.download-tile:hover {
  background: rgba(255, 94, 138, 0.06);
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(255, 94, 138, 0.1);
  transform: translateY(-1px);
}

.download-tile-platform {
  grid-area: platform;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1;
}

.download-tile-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  min-height: 1em;  /* keeps tile height stable while size text loads */
}

.download-tile-arch { /* visual default — no extra rules needed */ }

.download-tile-size {
  position: relative;
  padding-left: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
}

.download-tile-size:empty {
  display: none;
}

.download-tile-size::before {
  content: "·";
  position: absolute;
  left: 0;
  opacity: 0.7;
}

.download-tile-arrow {
  grid-area: arrow;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 200ms ease, transform 200ms ease;
}

.download-tile:hover .download-tile-arrow {
  color: var(--accent-pink);
  transform: translateX(3px);
}

/* Unavailable — platform is not in this release's manifest */
.download-tile-unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.download-tile-unavailable:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform: none;
}

.download-tile-unavailable:hover .download-tile-arrow {
  color: rgba(255, 255, 255, 0.3);
  transform: none;
}

.download-tile-unavailable .download-tile-size {
  color: rgba(255, 255, 255, 0.55);
}

.download-tile-unavailable .download-tile-size::before {
  display: none;
}

/* Loading — fetching signed URL after click */
.download-tile-loading {
  pointer-events: none;
  opacity: 0.65;
}

.download-tile-loading .download-tile-arrow::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.4em;
  border: 1px solid rgba(255, 94, 138, 0.5);
  border-top-color: var(--accent-pink);
  border-radius: 50%;
  animation: tile-spin 0.7s linear infinite;
  vertical-align: -0.1em;
}

@keyframes tile-spin {
  to { transform: rotate(360deg); }
}

/* Sign-out link styled as inline button */
.signout-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 1px;
  transition: color 160ms, border-color 160ms;
}

.signout-link:hover {
  color: var(--accent-pink);
  border-color: var(--accent-pink);
}

/* ────────────────────────────────────────────────────────────
   NOT-FOR PAGE — What Bluffy isn't
   ──────────────────────────────────────────────────────────── */
.not-for-page {
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
}

.not-for-inner {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem var(--space-6) 6rem;
}

.not-for-back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 160ms, border-color 160ms;
}
.not-for-back:hover {
  color: var(--accent-pink);
  border-color: var(--accent-pink);
}

.not-for-header {
  margin-bottom: 3.5rem;
}

.not-for-title {
  margin-bottom: var(--space-5);
  max-width: none;
}

.not-for-lede {
  margin-bottom: 0;
  max-width: 60ch;
}

.not-for-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.not-for-list li {
  position: relative;
  padding: 1.6rem 0 1.6rem 2rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.not-for-list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.not-for-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-pink);
  opacity: 0.7;
  line-height: 1.65;
}

.not-for-list li strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
  text-transform: none;
}

.not-for-closer {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.not-for-closer-line {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
