/* ============ Base ============ */
:root {
  --bg: radial-gradient(circle at top, #111827 0, #020617 42%, #020617 100%);
  --surface: rgba(15, 23, 42, 0.9);
  --card: #0b1120;
  --card-soft: #020617;
  --ink: #e5e7eb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --accent-soft-strong: rgba(79, 70, 229, 0.18);
  --pill-bg: rgba(56, 189, 248, 0.1);
  --pill-border: rgba(56, 189, 248, 0.6);
  --ok: #22c55e;
  --warn: #facc15;
  --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.85);
  --shadow-small: 0 10px 30px rgba(15, 23, 42, 0.7);
  --radius-lg: 18px;
  --radius-xl: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Headings & brand typography */
h1,
h2,
h3,
.logo__text {
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Page shell */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.95),
    rgba(2, 6, 23, 0.85) 60%,
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.logo__mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 0, #38bdf8 0, #4f46e5 55%, #1d4ed8 100%);
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4);
}
.logo__text {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
}

/* Nav */
.nav {
  display: flex;
  gap: 14px;
  margin-left: 12px;
  flex: 1;
}
.nav__link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__link:hover {
  color: #e5e7eb;
  background: rgba(148, 163, 184, 0.12);
}
@media (max-width: 720px) {
  .nav {
    display: none;
  }
}

/* GPU chip */
.gpu-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #a5b4fc;
  border: 1px solid rgba(79, 70, 229, 0.4);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.9);
}
.gpu-chip .icon {
  opacity: 0.85;
}
.gpu-chip__label {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}
.gpu-chip__status {
  font-weight: 600;
}
.gpu-chip.is-offline {
  animation: pulse-chip 1.4s ease-in-out infinite;
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.6);
}
@keyframes pulse-chip {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(248, 113, 113, 0);
  }
}

/* ============ Main ============ */
.main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* HERO */
.hero {
  margin-top: 10px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -80px -40px auto;
  background: radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.35), transparent 60%);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 30px;
  min-height: 400px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.9));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(129, 140, 248, 0.5);
}

.hero__text {
  max-width: 480px;
}

.hero__eyebrow {
  margin: 0 0 6px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c7d2fe;
}

.hero__title {
  margin: 0 0 10px;
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.hero__title-highlight {
  background: linear-gradient(to right, #38bdf8, #a855f7, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: #dbeafe;
  line-height: 1.55;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #d1d5db;
}
.hero-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.hero-list li::before {
  content: "•";
  color: #a5b4fc;
}

/* hero trust pills */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.hero-trust__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.78rem;
  color: #e5e7eb;
}
.hero-trust__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
}
.hero-trust__dot--clean {
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.35);
}
.hero-trust__dot--gpu {
  background: #a855f7;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.35);
}

/* Hero tool area */
.hero__tool {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Tool cards */
.tool-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-xl);
  padding: 16px 16px 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-small);
}

/* Upload drop area */
.upload {
  border-radius: 14px;
  padding: 18px 16px 20px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.22), rgba(15, 23, 42, 0.95));
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}
.upload:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
}
.upload.is-hover {
  transform: translateY(-1px);
  border-color: #e5e7eb;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.32), rgba(15, 23, 42, 0.95));
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.8);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: 0;
  padding: 11px 26px;
  font-size: 0.96rem;
  font-weight: 600;
  color: #f9fafb;
  background: linear-gradient(to right, #4f46e5, #6366f1);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.75);
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.06);
  box-shadow: 0 22px 48px rgba(79, 70, 229, 0.98);
}
.btn-primary:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.85);
}
.btn-primary:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .btn-primary {
    width: 100%;
  }
}

.upload__hint {
  margin: 10px 0 4px;
  font-size: 0.86rem;
  color: var(--muted);
}
.upload__meta {
  margin: 0;
  font-size: 0.82rem;
  color: #e5e7eb;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  font-size: 0.78rem;
  font-weight: 600;
}
.pill--accent {
  color: #e0f2fe;
}

/* Preview card & BA slider */
.tool-card--preview {
  padding-top: 14px;
}

.ba {
  --pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 0, #1e293b 0, #020617 40%, #000000 100%);
}
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.ba__img:not([src]),
.ba__img[src=""] {
  display: none;
}
.ba__img--after {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  transition: clip-path 0.12s linear;
}
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}


/* MINI HERO SLIDER */
.ba--mini {
  margin-top: 18px;
  max-width: 360px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}
.ba--mini .ba__knob {
  width: 26px;
  height: 26px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}
@media (max-width: 720px) {
  .ba--mini {
    max-width: 100%;
  }
}

@keyframes knob-pop {
  0% {
    transform: translateY(-50%) scale(0.4);
    opacity: 0;
  }
  60% {
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

/* Actions & TOS */
.actions {
  margin: 8px 2px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 0.86rem;
}
.link {
  color: #a5b4fc;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}
.link--download {
  font-weight: 600;
}
.link--download.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Download completion animation */
.link--download.is-ready {
  position: relative;
  color: #22c55e;
  animation: pop-glow 1s cubic-bezier(.25, 1, .3, 1);
}
.link--download.is-ready::after {
  content: "⬇️";
  position: absolute;
  right: -1.2em;
  opacity: 0;
  transform: translateY(-8px);
  animation: drop-fade 1.2s ease forwards;
}
@keyframes pop-glow {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(34, 197, 94, 0);
  }
  40% {
    transform: scale(1.25);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(34, 197, 94, 0);
  }
}
@keyframes drop-fade {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.8);
  }
  40% {
    opacity: 1;
    transform: translateY(0) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

.hint {
  color: var(--muted);
}

.tos {
  margin: 10px 2px 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.brand-inline {
  font-weight: 600;
}

/* ============ Sections ============ */
.section {
  margin-top: 32px;
  padding: 20px 18px 22px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-small);
}
.section__header h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
.section__header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Steps */
.section--split .steps {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .section--split .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
.step {
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, var(--accent-soft-strong), var(--card));
  border: 1px solid rgba(79, 70, 229, 0.35);
}
.step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(165, 180, 252, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.step h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}
.step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Use cards */
.section--cards .use-cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .section--cards .use-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
.use-card {
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.16), var(--card));
  border: 1px solid rgba(94, 234, 212, 0.4);
}
.use-card h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}
.use-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* FAQ */
.section--faq .faq {
  margin: 14px 0 0;
  padding: 0;
}
.faq__item + .faq__item {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}
.faq dt {
  font-weight: 600;
  font-size: 0.95rem;
}
.faq dd {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.85);
  background: rgba(2, 6, 23, 0.96);
}
.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============ HUD ============ */
.hud {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  display: grid;
  place-items: center;
  z-index: 100;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.hud.is-open {
  opacity: 1;
  pointer-events: auto;
}
.hud.is-closing {
  opacity: 0;
  pointer-events: none;
}

.hud__card {
  width: min(520px, 92vw);
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
  border: 1px solid rgba(129, 140, 248, 0.5);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(.16, 1, .3, 1), opacity 0.22s ease;
}
.hud.is-open .hud__card {
  transform: none;
  opacity: 1;
}

.hud__head {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}
.hud__title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
}
.hud__title .icon {
  color: #a855f7;
}

.hud__progress {
  height: 8px;
  background: rgba(30, 64, 175, 0.5);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.6);
}
.hud__bar {
  height: 100%;
  width: 2%;
  background: linear-gradient(90deg, #4f46e5, #a855f7, #22c55e);
  transition: width 0.35s cubic-bezier(.2, .8, .2, 1);
}

.hud__steps {
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
}
.hud__steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.88rem;
  animation: fade-up 0.25s ease both;
}
.hud__steps li.is-active {
  color: #e5e7eb;
  font-weight: 600;
}
.hud__steps li.is-done {
  color: var(--ok);
  font-weight: 600;
}

.hud__bullet {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(129, 140, 248, 0.7);
  background: #020617;
  position: relative;
}
.hud__steps li.is-active .hud__bullet {
  border-color: #a855f7;
}
.hud__steps li.is-done .hud__bullet {
  border-color: var(--ok);
  background: rgba(34, 197, 94, 0.15);
}

/* bullets: spinner / checkmark */
.hud__steps li.is-active .hud__bullet::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #a855f7;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
  display: block;
}
.hud__steps li.is-done .hud__bullet::after {
  content: "";
  width: 11px;
  height: 11px;
  display: block;
  box-shadow: inset 14px 14px var(--ok);
  clip-path: polygon(14% 54%, 0 66%, 38% 98%, 100% 18%, 86% 6%, 38% 76%);
}

.hud__label {
  line-height: 1.2;
}
.hud__note {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 10px;
}

/* Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Noscript banner */
.noscript {
  max-width: 1100px;
  margin: 12px auto;
  padding: 10px 16px;
  font-size: 0.86rem;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.7);
}

/* ============ Mobile tweaks ============ */
@media (max-width: 720px) {
  .main {
    padding: 18px 14px 48px;
  }
  .hero__copy {
    padding: 22px 18px 20px;
    min-height: auto;
  }
  .hero__title {
    font-size: 2rem;
  }
  .hero__subtitle {
    font-size: 0.95rem;
  }
}

/* --- Before/After Divider & Knob (fixed) --- */

/* Divider (vertical line) */
.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos); /* --pos is already a percentage like 50% */
  width: 2px;
  background: rgba(248, 250, 252, 0.95);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7);
  transform: translateX(-1px); /* center the 2px line */
  z-index: 2;
}

/* Knob (circle) */
.ba__knob {
  position: absolute;
  top: 50%;
  left: var(--pos); /* align knob with divider */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 0, #f9fafb 0, #e5e7eb 50%, #9ca3af 100%);
  border: 2px solid rgba(15, 23, 42, 0.9);
  transform: translate(-50%, -50%); /* perfectly center on that point */
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.9);
  z-index: 3;
}

/* Mini slider variation */
.ba--mini .ba__knob {
  width: 26px;
  height: 26px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}
/* ============ Ad containers ============ */

/* Base container */
.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  padding: 10px 0;
  max-width: 100%;
}

/* Wrapper that defines the size + ratio */
.ad-inner {
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* The ad iframe always fills its wrapper, no cropping */
.ad-inner iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* === Size-specific wrappers (desktop) === */

/* 728x90 — top leaderboard */
.ad-container--top .ad-inner {
  max-width: 728px;
  aspect-ratio: 728 / 90;
}

/* 300x250 — hero and footer boxes */
.ad-container--hero .ad-inner,
.ad-container--footer .ad-inner {
  max-width: 300px;
  aspect-ratio: 300 / 250;
}

/* 160x300 — small vertical block */
.ad-container--narrow .ad-inner {
  max-width: 160px;
  aspect-ratio: 160 / 300;
}

/* 160x600 — skyscraper */
.ad-container--skyscraper .ad-inner {
  max-width: 160px;
  aspect-ratio: 160 / 600;
}

/* 320x50 — under preview */
.ad-container--below-preview .ad-inner {
  max-width: 320px;
  aspect-ratio: 320 / 50;
}

/* 468x60 — inline near footer */
.ad-container--inline .ad-inner {
  max-width: 468px;
  aspect-ratio: 468 / 60;
}

/* Smartlink text ad under "What can you do" (unchanged) */
.ad-smartlink {
  text-align: center;
  margin: 14px 0 4px;
  font-size: 0.86rem;
  color: var(--muted);
}

.ad-smartlink a {
  color: #a5b4fc;
  text-decoration: underline;
  font-weight: 500;
}

.ad-smartlink a:hover {
  color: #e5e7eb;
}

/* ============ Mobile: scale whole unit down ============ */
@media (max-width: 720px) {
  .ad-container {
    width: 100%;
    max-width: 100%;
    margin: 16px auto;
    padding: 6px 0 0;
  }

  .ad-inner {
    width: 100%;
  }

  .hero__tool {
    gap: 12px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Scroll Indicator Container */
.scroll-indicator {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  padding: 10px 0 14px;
  text-align: center;
  backdrop-filter: blur(4px);
}

/* Animated arrow */
.scroll-arrow {
  font-size: 22px;
  color: white;
  animation: bounce 1.3s infinite;
  margin-bottom: 3px;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

/* “Scroll to continue” text */
.scroll-text {
  color: #fff;
  font-size: 14px;
  margin: 0;
  opacity: 0.85;
}

/* Progress bar container */
.scroll-progress {
  width: 90%;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  margin: 8px auto 0;
  overflow: hidden;
}

/* The progress bar itself */
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: #4caf50;
  transition: width 0.1s linear;
}
.hud__note {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 10px;
}

/* NEW: queue line under steps */
.hud__queue {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #e5e7eb;
}
/* === My Jobs styles === */
.section--jobs .jobs-toolbar {
  margin: 8px 2px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-primary--sm {
  padding: 8px 16px;
  font-size: 0.86rem;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.55);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1000px) {
  .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .jobs-grid { grid-template-columns: minmax(0, 1fr); }
}
.jobs-empty {
  padding: 14px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.6);
}

.job-card {
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-small);
}
.job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.job-title { display: flex; align-items: center; gap: 8px; }
.job-id { color: var(--muted); font-size: 0.82rem; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
}
.chip--queued { background: rgba(234, 179, 8, 0.2); border-color: rgba(234, 179, 8, 0.5); }
.chip--processing { background: rgba(59, 130, 246, 0.22); border-color: rgba(59, 130, 246, 0.5); }
.chip--completed { background: rgba(34, 197, 94, 0.22); border-color: rgba(34, 197, 94, 0.6); }
.chip--failed { background: rgba(248, 113, 113, 0.2); border-color: rgba(248, 113, 113, 0.5); }

.job-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.job-img {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.job-img__label {
  padding: 6px 8px;
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--border-subtle);
}
.job-img__el {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #0b1120;
}

.job-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-link {
  text-decoration: none;
  color: #a5b4fc;
  font-weight: 600;
}
.btn-link.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}
/* ============ HUD Floating + Glow ============ */

/* Floating mode: small card in bottom-right, no full-screen scrim */
.hud.hud--floating {
  inset: auto 16px 16px auto;
  width: auto;
  height: auto;
  background: transparent;
  backdrop-filter: none;
  display: block;
  pointer-events: none; /* only card is interactive */
}

.hud.hud--floating .hud__card {
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 14px 14px 12px;
  border-radius: 16px;
  transform: translateY(0) scale(1);
  opacity: 1;
  cursor: default;
  pointer-events: auto;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

/* Slightly tighter header when floating */
.hud.hud--floating .hud__head {
  margin-bottom: 4px;
}

/* “Job done” glow animation */
.hud.hud--completed .hud__card {
  animation: hud-complete-glow 1.4s ease-in-out 0s 3;
}

@keyframes hud-complete-glow {
  0% {
    box-shadow: 0 18px 40px rgba(22, 163, 74, 0.75);
    border-color: rgba(34, 197, 94, 0.9);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 26px 60px rgba(34, 197, 94, 0.95);
    transform: translateY(-2px);
  }
  100% {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
    border-color: rgba(129, 140, 248, 0.5);
    transform: translateY(0);
  }
}

/* Small “pill” label in floating mode */
.hud.hud--floating .hud__title {
  font-size: 0.86rem;
}

.hud.hud--floating .hud__title::before {
  content: "Processing…";
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
}

/* Make queue + ETA more compact in the mini view */
.hud.hud--floating .hud__queue,
.hud.hud--floating #hud-eta {
  font-size: 0.78rem;
  margin-top: 4px;
}
/* Attention hook inside HUD */
.hud__note--hook {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: radial-gradient(circle at 0 0, rgba(250, 204, 21, 0.14), transparent 58%);
  border: 1px solid rgba(250, 204, 21, 0.55);
  font-size: 0.9rem;
  line-height: 1.4;
  color: #fef9c3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hud__note-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.95;
}

.hud__note-main {
  font-size: 0.9rem;
}

.hud__note-em {
  font-weight: 700;
  background: linear-gradient(to right, #facc15, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

/* Slightly tighter in floating mode so it doesn’t feel bulky */
.hud.hud--floating .hud__note--hook {
  margin-top: 8px;
  padding: 6px 8px;
  font-size: 0.86rem;
}
