:root {
  color-scheme: dark;
  --ink: #f7f1e3;
  --muted: #b9b2a3;
  --soft: #ded3ba;
  --paper: #101014;
  --panel: #181820;
  --panel-strong: #20202a;
  --line: rgba(247, 241, 227, 0.16);
  --red: #ff375f;
  --yellow: #ffd166;
  --green: #2ee59d;
  --blue: #4dabf7;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 55, 95, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 28%, rgba(46, 229, 157, 0.14), transparent 25rem),
    linear-gradient(135deg, #09090d 0%, #111015 48%, #10140f 100%);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--yellow) 42%, var(--green));
  color: #09090d;
}

nav {
  gap: 6px;
}

nav a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  min-height: 620px;
  padding: 34px 0 44px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.3vw, 6.3rem);
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.lede {
  max-width: 650px;
  color: var(--soft);
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
}

.quick-answer {
  max-width: 650px;
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #101014;
}

.button.secondary {
  color: var(--ink);
}

.signal-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    #111116;
  box-shadow: var(--shadow);
}

.signal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent);
  pointer-events: none;
}

.rainbow-stack {
  position: absolute;
  inset: 44px 28px 150px;
}

.rainbow-stack span {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  border-radius: 999px;
  filter: drop-shadow(0 0 26px currentColor);
  animation: drift 5.5s ease-in-out infinite alternate;
}

.rainbow-stack span:nth-child(1) {
  top: 6%;
  color: var(--red);
  border: 12px solid currentColor;
}

.rainbow-stack span:nth-child(2) {
  top: 24%;
  color: var(--yellow);
  border: 12px solid currentColor;
  animation-delay: -1.3s;
}

.rainbow-stack span:nth-child(3) {
  top: 42%;
  color: var(--green);
  border: 12px solid currentColor;
  animation-delay: -2.4s;
}

.rainbow-stack span:nth-child(4) {
  top: 60%;
  color: var(--blue);
  border: 12px solid currentColor;
  animation-delay: -3.2s;
}

.rainbow-stack span:nth-child(5) {
  top: 78%;
  color: #f7f1e3;
  border: 12px solid currentColor;
  animation-delay: -4s;
}

@keyframes drift {
  from {
    transform: translateX(-16px) rotate(-2deg);
  }
  to {
    transform: translateX(16px) rotate(2deg);
  }
}

.tag-cloud {
  position: absolute;
  inset: auto 24px 24px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--soft);
  font-size: 0.9rem;
}

.answer-grid,
.definition-list,
.meaning-map,
.warning-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.answer-grid article,
.definition-list article,
.meaning-map article,
.warning-board article {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.label {
  display: block;
  margin-bottom: 28px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.answer-grid h2 {
  margin-bottom: 10px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.45rem;
}

.answer-grid p,
.definition-list p,
.content-section p,
details p,
footer p {
  color: var(--muted);
}

.seo-searches {
  padding: 34px 0 18px;
}

.search-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-chip-grid a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.search-chip-grid a:hover {
  border-color: rgba(255, 209, 102, 0.56);
  color: var(--yellow);
}

.content-section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.content-section.contrast {
  margin: 20px -24px 0;
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #191b16;
}

.section-title {
  max-width: 820px;
}

.dossier {
  position: relative;
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 181px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 24px var(--yellow);
}

.timeline span,
.map-number {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline h3,
.meaning-map h3,
.warning-board h3 {
  margin-bottom: 8px;
}

.timeline p {
  grid-column: 2;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 30px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.meaning-map {
  margin-top: 28px;
}

.meaning-map article {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel);
}

.meaning-map article::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  border: 18px solid rgba(255, 209, 102, 0.16);
  border-radius: 999px;
}

.map-number {
  display: inline-block;
  margin-bottom: 52px;
}

.warning-board {
  margin-top: 28px;
}

.warning-board article {
  border-left: 5px solid var(--red);
  background: rgba(255, 55, 95, 0.075);
}

.generator-section {
  padding-top: 70px;
}

.generator-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(46, 229, 157, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(46, 229, 157, 0.12), rgba(255, 55, 95, 0.08)),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.generator-copy h2 {
  margin-bottom: 18px;
}

.generator-copy p {
  max-width: 760px;
  color: var(--soft);
  font-size: 1.08rem;
}

.generator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.generator-button {
  cursor: pointer;
  border: 0;
  font: inherit;
}

.coming-soon {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--yellow);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.generator-panel {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0b0f;
}

.generator-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.48;
  pointer-events: none;
}

.generator-preview {
  position: absolute;
  inset: 28px 26px 92px;
}

.generator-preview span {
  position: absolute;
  left: 2%;
  right: 2%;
  height: 18%;
  border-radius: 999px;
  border: 10px solid currentColor;
  filter: drop-shadow(0 0 22px currentColor);
}

.generator-preview span:nth-child(1) {
  top: 12%;
  color: var(--red);
  transform: rotate(-3deg);
}

.generator-preview span:nth-child(2) {
  top: 34%;
  color: var(--yellow);
  transform: rotate(2deg);
}

.generator-preview span:nth-child(3) {
  top: 56%;
  color: var(--green);
  transform: rotate(-1deg);
}

.generator-preview span:nth-child(4) {
  top: 78%;
  color: var(--blue);
  transform: rotate(2deg);
}

.generator-steps {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.generator-steps span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.46);
  color: var(--soft);
  font-size: 0.86rem;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 20px 0;
  font-size: 1.2rem;
  font-weight: 800;
}

summary::marker {
  color: var(--yellow);
}

details p {
  max-width: 760px;
  padding-bottom: 20px;
}

.video-section > p {
  max-width: 820px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 55, 95, 0.16), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px);
  opacity: 0.42;
  pointer-events: none;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 209, 102, 0.56);
  background:
    linear-gradient(160deg, rgba(255, 209, 102, 0.12), rgba(255, 255, 255, 0.03)),
    var(--panel-strong);
}

.video-card.hot {
  border-color: rgba(46, 229, 157, 0.48);
}

.video-frame {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #050507;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050507;
}

.video-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.video-index {
  position: relative;
  z-index: 1;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.video-card h3 {
  position: relative;
  z-index: 1;
  margin: 12px 0 8px;
  font-size: 1rem;
}

.video-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-cta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--yellow);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.video-cta:hover {
  text-decoration: underline;
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 56px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
}

.footer-links a {
  color: var(--soft);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--yellow);
}

.legal-page {
  max-width: 900px;
  padding: 92px 0 96px;
}

.legal-page h1 {
  font-size: clamp(3.1rem, 8vw, 7rem);
}

.legal-page .lede {
  max-width: 760px;
}

.legal-card {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.35rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card a,
.contact-link {
  color: var(--yellow);
  font-weight: 800;
}

.contact-card ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.example-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}

.compare-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.compare-grid h3 {
  font-size: 1rem;
}

.compact-timeline {
  margin-top: 18px;
}

.compact-timeline article {
  grid-template-columns: 120px minmax(0, 1fr);
}

.compact-timeline article::before {
  left: 141px;
}

@media (max-width: 1100px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero,
  .generator-shell,
  .two-column,
  .answer-grid,
  .definition-list,
  .meaning-map,
  .warning-board,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 26px;
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 4.2rem);
  }

  .signal-card {
    min-height: 390px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline p {
    grid-column: auto;
  }

  .timeline article::before {
    left: auto;
    right: 20px;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .content-section.contrast {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rainbow-stack span {
    animation: none;
  }
}
