/* ============================================================
   Landing · 7 Hacks de Claude
   ============================================================ */

:root {
  --bg: #07080a;
  --bg-2: #0d0e11;
  --ink: #f1ece1;
  --ink-soft: #a39d92;
  --ink-muted: #6a655c;
  --line: rgba(241, 236, 225, 0.08);
  --line-strong: rgba(241, 236, 225, 0.16);
  --accent: #d8c9a3;
  --accent-warm: #c89b6c;
  --claude: #D97757;
  --danger: #c9222a;
  --ok: #6fbf73;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow-card: 0 30px 80px -40px rgba(0, 0, 0, 0.7), 0 6px 20px -10px rgba(0, 0, 0, 0.5);
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Motion tokens */
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overscroll-behavior: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* Prevent iOS auto-zoom on form-style inputs by guaranteeing 16px minimum */
input, textarea, select { font-size: 16px; }

/* ====== Background — STATIC aurora (no filter blur) + dotted mesh ====== */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  /* No filter:blur (was the source of GPU strobing) — radial-gradient already provides soft falloff */
  pointer-events: none;
}
.aurora__blob--1 {
  width: 100vmax; height: 100vmax;
  left: -30vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(216, 201, 163, 0.16), transparent 70%);
}
.aurora__blob--2 {
  width: 90vmax; height: 90vmax;
  right: -35vmax; top: -10vmax;
  background: radial-gradient(closest-side, rgba(200, 155, 108, 0.13), transparent 70%);
}
.aurora__blob--3 {
  width: 110vmax; height: 110vmax;
  left: 10%; bottom: -55vmax;
  background: radial-gradient(closest-side, rgba(216, 201, 163, 0.10), transparent 70%);
}

/* Dotted mesh — STATIC, no mask-image (was triggering repaint) */
.mesh {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  opacity: 0.85;
}
/* Vignette layer to fade the dots into the bg edges, replacing the mask */
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 78% 65% at center, transparent 30%, var(--bg) 100%);
}

/* Subtle film grain — barely there */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Particles canvas */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ====== Header ====== */
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  gap: 20px;
  animation: fadeDown 1.1s var(--ease-out-quint) both;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translate3d(0, -12px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  background: rgba(20, 20, 24, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  transition: border-color .5s var(--ease-soft), transform .6s var(--ease-out-quint), background .5s var(--ease-soft);
}
.brand:hover {
  border-color: var(--line-strong);
  background: rgba(28, 28, 32, 0.6);
  transform: translate3d(0, -1px, 0);
}

.brand__avatar {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2a2a2e, #1a1a1d);
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
}
.brand__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__avatar-fallback {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}
.brand__avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(216, 201, 163, 0.3);
  animation: avatarPulse 3.6s var(--ease-out-quint) infinite;
  pointer-events: none;
  will-change: transform, opacity;
}
@keyframes avatarPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  60%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 13px; font-weight: 600; }
.brand__handle { font-size: 11px; color: var(--ink-soft); margin-top: 2px; font-family: var(--font-mono); }
.brand__yt {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #ff0033;
  color: #fff;
  display: inline-grid;
  place-items: center;
  margin-left: 4px;
  transition: transform .5s var(--ease-spring), box-shadow .4s var(--ease-soft);
  box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.6);
}
.brand:hover .brand__yt {
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(255, 0, 51, 0);
}

.header-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.header-tag::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-warm);
  margin-right: 8px;
  vertical-align: middle;
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 0 8px var(--accent-warm);
  animation: pulse 2.4s ease-in-out infinite;
  will-change: opacity;
}

/* ====== Hero ====== */
.hero {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 80px auto 60px;
  padding: 0 36px;
  text-align: center;
  will-change: transform;
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  animation: heroIn 0.9s var(--ease-out-quint) 0.1s both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.dot {
  position: relative;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 10px var(--accent-warm);
  animation: pulse 2.4s ease-in-out infinite;
  will-change: opacity;
}
.dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent-warm);
  animation: ripple 2.4s var(--ease-out-quint) infinite;
  pointer-events: none;
  will-change: transform, opacity;
}
.dot--ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot--ok::before { border-color: var(--ok); }
@keyframes pulse { 0%,100% {opacity: 1;} 50% {opacity: .35;} }
@keyframes ripple {
  0%   { transform: scale(1); opacity: 0.7; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  /* Clamp tuned so the longest forced line ("Te Harán Ganar Dinero Tan")
     never wraps, even on a 360-375px iPhone. */
  font-size: clamp(22px, 5.4vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 24px auto 22px;
  max-width: 26ch;
  color: var(--ink);
  animation: heroIn 1.1s var(--ease-out-quint) 0.25s both;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  display: inline-block;
  animation: breathAccent 6s ease-in-out infinite;
}

/* "Claude" word with brand-orange logo */
.hero__claude {
  color: var(--claude);
  white-space: nowrap;
  display: inline-block;
  font-style: normal;
}
.claude-logo {
  width: 0.85em;
  height: 0.85em;
  display: inline-block;
  vertical-align: -0.08em;
  margin-right: 0.18em;
  color: var(--claude);
  filter: drop-shadow(0 0 14px rgba(217, 119, 87, 0.35));
}
@keyframes breathAccent {
  0%, 100% { text-shadow: 0 0 0 rgba(216, 201, 163, 0); }
  50%      { text-shadow: 0 0 30px rgba(216, 201, 163, 0.35); }
}
.hero__illegal {
  display: inline-block;
  position: relative;
  color: var(--danger);
  font-style: italic;
  animation: breathDanger 4s ease-in-out infinite;
}
@keyframes breathDanger {
  0%, 100% { text-shadow: 0 0 0 rgba(201, 34, 42, 0); }
  50%      { text-shadow: 0 0 24px rgba(201, 34, 42, 0.55); }
}
.hero__illegal::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%;
  bottom: 0.08em;
  height: 0.08em;
  background: var(--danger);
  opacity: 0.4;
  transform-origin: left;
  animation: underline 1.4s var(--ease-out-expo) 0.6s both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__sub {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  animation: heroIn 1s var(--ease-out-quint) 0.4s both;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  animation: heroIn 1s var(--ease-out-quint) 0.55s both;
}
.hero__meta strong { color: var(--ink); font-weight: 600; }
.hero__meta .sep { color: var(--ink-muted); }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 1s var(--ease-out-quint),
    transform 1s var(--ease-out-quint);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ====== Hacks list — alternating spotlights ====== */
.hacks {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 36px 100px;
}

.spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  perspective: 1600px;
  cursor: pointer;
  transition: transform .6s var(--ease-out-quint);
}
.spotlight:hover .spotlight__cta {
  border-color: rgba(241, 236, 225, 0.34);
  background: rgba(255, 255, 255, 0.04);
}
.spotlight__cta {
  user-select: none;
  transition: border-color .35s var(--ease-soft), background .35s var(--ease-soft);
}
.spotlight--media-right .spotlight__copy  { order: 1; }
.spotlight--media-right .spotlight__media { order: 2; }
.spotlight--media-left  .spotlight__media { order: 1; }
.spotlight--media-left  .spotlight__copy  { order: 2; }
.spotlight--media-right { --ry-rest: -5deg; }
.spotlight--media-left  { --ry-rest:  5deg; }

.spotlight__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  max-width: 56ch;
}
.spotlight__tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spotlight__sub-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(216, 201, 163, 0.1);
  color: var(--accent);
  border: 1px solid rgba(216, 201, 163, 0.2);
}
.spotlight__product {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.spotlight__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.spotlight__title em { font-style: italic; color: var(--accent); }
.spotlight__desc {
  color: var(--ink-soft);
  font-size: clamp(14.5px, 1.2vw, 16px);
  line-height: 1.65;
  margin: 0;
}
.spotlight__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* The 3D floating window — JS controls tilt via inline transform */
.spotlight__media {
  position: relative;
  perspective: 1400px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Idle floating motion sits on a wrapper so it doesn't fight JS tilt */
.spotlight__float {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  animation: floatIdle 9s ease-in-out infinite;
  will-change: transform;
}
.spotlight--media-left .spotlight__float { animation-delay: -4.5s; }
@keyframes floatIdle {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}

.spotlight__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #0a0b0d;
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  /* JS sets transform inline; no CSS transition fighting it */
  will-change: transform;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.7),
    0 20px 40px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.spotlight__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) brightness(0.98);
  transition: filter .6s var(--ease-soft);
}
.spotlight__media:hover .spotlight__frame img { filter: saturate(1.12) brightness(1.02); }

/* Reflection — UNIFORM overlay, no gradient at all.
   Removing every gradient eliminates any iso-alpha curve that could read as a "line". */
.spotlight__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  opacity: var(--glow, 0);
  transition: opacity .7s var(--ease-soft);
  pointer-events: none;
  z-index: 2;
}
.spotlight__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.4));
  pointer-events: none;
  z-index: 1;
}

/* (Aura removed — its radial-gradient boundary was rendering as a visible line behind the frame.) */

/* Sparkles around the frame on hover */
.spotlight__sparkles {
  position: absolute;
  inset: -6%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
}
.spotlight__media:hover .spotlight__sparkles { opacity: 1; }
.spotlight__sparkle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(216, 201, 163, 0.95);
  box-shadow: 0 0 10px rgba(216, 201, 163, 0.7);
  animation: twinkle 2.8s var(--ease-out-quint) infinite;
  opacity: 0;
  will-change: transform, opacity;
}
@keyframes twinkle {
  0%, 100% { transform: scale(0); opacity: 0; }
  40%      { transform: scale(1); opacity: 1; }
  60%      { transform: scale(1); opacity: 1; }
  80%      { transform: scale(0.4); opacity: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease-spring), background .35s var(--ease-soft), border-color .35s var(--ease-soft), color .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
  text-decoration: none;
  background: transparent;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease-soft);
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: translate3d(0, 1px, 0) scale(0.98); }
.btn--primary {
  background: var(--ink);
  color: #0b0c0e;
  border-color: var(--ink);
}
.btn--primary:hover { background: #fff; box-shadow: 0 12px 30px -12px rgba(241, 236, 225, 0.4); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: rgba(241, 236, 225, 0.34); background: rgba(255, 255, 255, 0.04); transform: translate3d(0, -1px, 0); }
.btn--small { padding: 8px 14px; font-size: 12.5px; }

/* ====== Modal — Apple-like opening ====== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[aria-hidden="false"] { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.7);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  animation: backdropIn .45s var(--ease-out-quint) both;
  will-change: opacity;
}
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal__shell {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #14151a, #0c0d10);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.75);
  transform-origin: center 40%;
  animation: modalIn .7s var(--ease-out-expo) both;
  will-change: transform, opacity;
}
@keyframes modalIn {
  from { opacity: 0; transform: translate3d(0, 36px, 0) scale(0.92); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.modal__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.modal__tag--ok { color: var(--ok); }
.modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.018em;
  margin: 0 0 6px;
  line-height: 1.15;
}
.modal__sub {
  color: var(--ink-soft);
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 60ch;
}
.modal__close {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color .4s var(--ease-soft), color .4s var(--ease-soft), transform .4s var(--ease-spring);
  flex-shrink: 0;
}
.modal__close:hover { border-color: var(--line-strong); color: var(--accent); transform: rotate(90deg); }

.modal__resources {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 26px 0;
}
.modal__resources:empty { display: none; }

.resource-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(216, 201, 163, 0.06);
  color: var(--accent);
  border: 1px solid rgba(216, 201, 163, 0.18);
  text-decoration: none;
  transition: background .35s var(--ease-soft), border-color .35s var(--ease-soft), transform .35s var(--ease-spring);
}
.resource-chip:hover { background: rgba(216, 201, 163, 0.12); border-color: rgba(216, 201, 163, 0.32); transform: translate3d(0, -1px, 0); }
.resource-chip svg { flex-shrink: 0; }

.modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 26px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(241, 236, 225, 0.15) transparent;
}
.modal__body::-webkit-scrollbar { width: 8px; }
.modal__body::-webkit-scrollbar-thumb { background: rgba(241, 236, 225, 0.15); border-radius: 4px; }

.prompt-text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #d6d2c9;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}

.modal__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 26px 20px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}
.modal__hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

/* Course modal */
.modal__shell--course { max-width: 760px; }
.modal__head--course { border-bottom: 1px solid var(--line); }
.modal__foot--course { background: rgba(0, 0, 0, 0.25); }
.course-video {
  position: relative;
  display: block;
  margin: 18px 26px 20px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0b0d;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform .5s var(--ease-out-quint), border-color .4s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.course-video:hover {
  border-color: var(--line-strong);
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
}
.course-video__thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transition: transform 1s var(--ease-out-quint), filter .5s var(--ease-soft);
  filter: brightness(0.92);
}
.course-video:hover .course-video__thumb {
  transform: scale(1.04);
  filter: brightness(1);
}
.course-video__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(216, 201, 163, 0.06), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, 18px 18px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.course-video--no-thumb .course-video__fallback { opacity: 1; }
.course-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5));
  pointer-events: none;
  z-index: 1;
}
.course-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ff0033;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
  transform: translate3d(-50%, -50%, 0);
  box-shadow:
    0 14px 40px -12px rgba(255, 0, 51, 0.55),
    0 0 0 0 rgba(255, 0, 51, 0.45);
  transition: transform .4s var(--ease-spring), box-shadow .5s var(--ease-soft);
}
.course-video__play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px; /* optical centering of the play triangle */
}
.course-video:hover .course-video__play {
  transform: translate3d(-50%, -50%, 0) scale(1.1);
  box-shadow:
    0 18px 50px -10px rgba(255, 0, 51, 0.7),
    0 0 0 14px rgba(255, 0, 51, 0);
}

/* ====== Toast ====== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate3d(-50%, 20px, 0);
  background: var(--ink);
  color: #0a0b0d;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s var(--ease-soft), transform .5s var(--ease-spring);
  z-index: 200;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.55);
}
.toast.show {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

/* ====== Footer ====== */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
  padding: 36px 36px 40px;
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer__logo img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity .4s var(--ease-soft), transform .5s var(--ease-spring);
}
.footer__logo:hover img { opacity: 1; transform: translate3d(0, -2px, 0); }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}
.footer__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  transition: color .35s var(--ease-soft);
}
.footer__nav a:hover { color: var(--ink); }
.footer__credit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin: 4px 0 0;
}

/* ====== Responsive ====== */
@media (max-width: 980px) {
  .hero { margin: 50px auto 30px; padding: 0 22px; }
  .site-header { padding: 16px 22px; }
  .header-tag { display: none; }
  .modal { padding: 14px; }
  .modal__shell { max-height: calc(100vh - 28px); border-radius: 18px; }
  .modal__head, .modal__resources, .modal__body, .modal__foot { padding-left: 18px; padding-right: 18px; }
  .course-video { margin-left: 18px; margin-right: 18px; }
  .modal__foot { flex-direction: column; align-items: stretch; }
  .modal__foot .btn { justify-content: center; }
  .site-footer { padding: 30px 22px 36px; }

  .hacks { padding: 30px 22px 60px; }
  .spotlight-list { gap: 56px; }
  .spotlight {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .spotlight--media-left .spotlight__media,
  .spotlight--media-right .spotlight__media { order: 0; }
  .spotlight--media-left .spotlight__copy,
  .spotlight--media-right .spotlight__copy { order: 1; }
}

@media (max-width: 540px) {
  .brand__handle { display: none; }
  .brand__text { line-height: 1.1; }
  .modal__head { flex-direction: row; }
  .modal__title { font-size: 20px; }
  .prompt-text { font-size: 11.5px; }
  .modal__hint { display: none; }
}

/* ============================================================
   MOBILE ROBUSTNESS — strip everything that causes scroll
   compositing artifacts on iOS Safari & low-end Android.
   No 3D transforms, no backdrop-filter, no infinite animations,
   no fixed canvas, no mix-blend-mode, no will-change.
   ============================================================ */
@media (max-width: 980px) {
  /* Background: drop the aurora blobs entirely — large fixed-position
     gradients trigger repaint passes during fast scroll on iOS. */
  .aurora { display: none !important; }
  /* Static gradient body bg replaces the aurora */
  body {
    background:
      radial-gradient(ellipse 90% 50% at 50% 0%, rgba(216, 201, 163, 0.08), transparent 60%),
      radial-gradient(ellipse 80% 40% at 50% 100%, rgba(200, 155, 108, 0.05), transparent 60%),
      var(--bg);
    background-attachment: scroll; /* no fixed bg on iOS — fixed bg is buggy */
  }

  /* Drop everything that uses fixed-position composited layers */
  .grain { display: none !important; }
  #particles { display: none !important; }

  /* Mesh + vignette stay (static, cheap), but unfix them so they don't
     paint over and over while the user scrolls fast. */
  .mesh { position: absolute; min-height: 100vh; }
  .vignette { position: absolute; min-height: 100vh; }

  /* Drop backdrop-filter — measurable repaint bursts on iOS */
  .brand {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    background: rgba(20, 20, 24, 0.85);
  }
  .modal__backdrop {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    background: rgba(5, 6, 8, 0.88);
  }

  /* Kill the 3D transforms — perspective + rotateY combined with iOS's
     layer compositing produce the random zoom-in/zoom-out you saw. */
  .spotlight,
  .spotlight__media { perspective: none !important; }
  .spotlight__frame {
    transform: none !important;
    will-change: auto;
    transform-style: flat;
  }
  .spotlight__float {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
  .spotlight__sparkles { display: none !important; }

  /* Cursor pointer doesn't make sense on touch — also avoids weird
     hover-stuck states after a tap+scroll on iOS. */
  .spotlight { cursor: default; }
  .spotlight:hover .spotlight__cta { background: transparent; border-color: var(--line-strong); }

  /* No infinite hero animations — they continue to repaint while the
     user scrolls and combine badly with momentum scroll on iOS. */
  .hero__title em,
  .hero__illegal { animation: none !important; }
  .hero__illegal::after { animation: none !important; transform: scaleX(1); }
  .brand__avatar::after { display: none; }
  .dot::before { display: none; }
  .header-tag::before { animation: none !important; }
  .hero { will-change: auto; transform: none !important; }

  /* Lighter reveals — no blur (filter on scroll is the slowest path on iOS)
     and no transform either, just opacity. */
  .reveal {
    transform: none !important;
    filter: none !important;
    transition: opacity .8s var(--ease-out-quint);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: auto;
  }

  /* Defensive: clamp any potentially overflowing element to viewport */
  .spotlight__frame,
  .hack__media,
  img { max-width: 100%; }
}

/* prefers-reduced-motion override removed intentionally — animations are forced
   so the page looks alive even on browsers in low-power mode. */
