:root {
  color-scheme: dark;
  --bg: #10151f;
  --bg-soft: #171e2a;
  --surface: #202836;
  --surface-2: #f5f7fb;
  --text: #f6f8fb;
  --muted: #aab6c9;
  --dark-text: #1a2332;
  --dark-muted: #586274;
  --line: rgba(255, 255, 255, 0.12);
  --red: #ff3b3b;
  --gold: #f5c451;
  --cyan: #28d4d4;
  --blue: #4386ff;
  --pink: #f65b9a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-position: center top;
  background-size: 44px 44px;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 8px 8px;
  padding: 12px 16px;
  background: rgba(16, 21, 31, 0.76);
  backdrop-filter: blur(18px);
}

.brand-link,
.nav-links,
.hero-highlights,
.hero-highlights span,
.hero-actions,
.button,
.handle-copy,
.platform-card,
.site-footer {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 10px;
  min-width: 0;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  font-weight: 800;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 12px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: clamp(34px, 5.5vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: min(760px, calc(100svh - 72px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 86px) 0 66px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(4.2rem, 10vw, 8.25rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #d5deeb;
  font-size: clamp(1.04rem, 1.8vw, 1.3rem);
}

.hero-highlights {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-highlights span {
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: var(--bg-soft);
  color: #e8edf5;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button svg,
.hero-highlights svg,
.handle-copy svg,
.proof-strip svg,
.learning-visual svg,
.platform-visual svg,
.platform-card svg,
.topic-card svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.button.primary {
  background: var(--red);
  color: white;
  box-shadow: 0 16px 36px rgba(255, 59, 59, 0.24);
}

.button.secondary {
  background: var(--surface-2);
  color: var(--dark-text);
}

.button.quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button:hover,
.button:focus-visible,
.handle-copy:hover,
.handle-copy:focus-visible,
.platform-card:hover,
.platform-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.hero-visual {
  position: relative;
  width: min(100%, 400px);
  justify-self: end;
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.hero-visual::before {
  inset: 28px -14px -16px 32px;
  border: 2px solid rgba(245, 196, 81, 0.78);
  border-radius: 22px;
}

.hero-visual::after {
  top: -18px;
  right: 28px;
  width: 98px;
  height: 98px;
  background:
    linear-gradient(90deg, var(--red) 0 24%, transparent 24% 38%, var(--cyan) 38% 62%, transparent 62% 76%, var(--gold) 76% 100%);
  border-radius: 8px;
  opacity: 0.9;
}

.hero-visual > img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.handle-panel {
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: min(280px, calc(100% - 24px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px;
  background: rgba(16, 21, 31, 0.88);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.handle-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.handle-copy {
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface-2);
  color: var(--dark-text);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -18px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.proof-strip div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 12px;
  align-items: start;
  min-width: 0;
  padding: 20px;
  background: rgba(23, 30, 42, 0.94);
}

.proof-strip svg {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  font-size: 1.04rem;
  line-height: 1.2;
}

.proof-strip span {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-shell,
.platform-section,
.connect-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-shell {
  padding: 88px 0 64px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading.compact {
  align-items: start;
}

.section-kicker {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  align-self: stretch;
  min-width: 0;
}

.section-kicker .eyebrow {
  margin-bottom: 0;
}

.learning-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 245px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(40, 212, 212, 0.16), transparent 38%),
    linear-gradient(315deg, rgba(245, 196, 81, 0.14), transparent 52%),
    rgba(23, 30, 42, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 54px rgba(0, 0, 0, 0.18);
}

.learning-visual::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.42;
  pointer-events: none;
}

.learning-visual-header,
.learning-flow,
.learning-meter {
  position: relative;
  z-index: 1;
}

.learning-visual-header,
.learning-node,
.learning-meter {
  display: flex;
  align-items: center;
}

.learning-visual-header {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.learning-visual-header svg,
.learning-node svg {
  color: var(--gold);
}

.learning-flow {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.learning-node {
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 11px;
  background: rgba(16, 21, 31, 0.72);
}

.learning-node span {
  min-width: 0;
  flex: 1;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.learning-node strong {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(40, 212, 212, 0.12);
  color: var(--cyan);
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
}

.learning-meter {
  gap: 10px;
}

.learning-meter span {
  position: relative;
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.learning-meter span::after {
  display: block;
  width: 76%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--cyan));
  content: "";
}

.learning-meter small {
  max-width: 128px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: right;
}

.platform-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 245px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(67, 134, 255, 0.16), transparent 38%),
    linear-gradient(315deg, rgba(246, 91, 154, 0.12), transparent 54%),
    rgba(23, 30, 42, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 54px rgba(0, 0, 0, 0.18);
}

.platform-visual::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.42;
  pointer-events: none;
}

.platform-visual-header,
.channel-list,
.channel-footer {
  position: relative;
  z-index: 1;
}

.platform-visual-header,
.channel-row,
.channel-footer {
  display: flex;
  align-items: center;
}

.platform-visual-header {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.platform-visual-header svg {
  color: var(--gold);
}

.channel-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.channel-row {
  gap: 11px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 11px;
  background: rgba(16, 21, 31, 0.72);
}

.channel-row.youtube {
  border-left-color: var(--red);
}

.channel-row.instagram {
  border-left-color: var(--pink);
}

.channel-row.facebook {
  border-left-color: var(--blue);
}

.channel-row svg {
  color: var(--gold);
}

.channel-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.channel-row strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.15;
}

.channel-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.channel-footer {
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.channel-footer span {
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 850;
}

.channel-footer small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-align: right;
}

.section-heading h2,
.connect-section h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.055);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.topic-card svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.topic-card h3 {
  margin: auto 0 10px;
  font-size: 1.22rem;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
}

.topic-card:hover,
.topic-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.075);
}

.platform-section {
  padding: 30px 0 76px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.platform-card {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  min-height: 305px;
  overflow: hidden;
  border: 1px solid rgba(16, 21, 31, 0.08);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface-2);
  color: var(--dark-text);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.platform-card::after {
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 160px;
  height: 160px;
  border: 28px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.08;
}

.platform-card svg {
  width: 32px;
  height: 32px;
}

.platform-card.youtube svg {
  color: var(--red);
}

.platform-card.instagram svg {
  color: var(--pink);
}

.platform-card.facebook svg {
  color: var(--blue);
}

.platform-name {
  margin-top: 48px;
  color: var(--dark-muted);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.platform-card strong {
  margin-top: 8px;
  font-size: 1.7rem;
  line-height: 1.05;
}

.platform-card span:last-child {
  margin-top: 16px;
  color: var(--dark-muted);
}

.platform-card:hover,
.platform-card:focus-visible {
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.connect-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 76px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 42px 0;
}

.connect-section h2 {
  max-width: 790px;
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.93rem;
}

@media (max-width: 900px) {
  .hero-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-section {
    gap: 34px;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-visual {
    justify-self: start;
    width: min(100%, 380px);
  }

  .section-kicker {
    gap: 14px;
  }

  .learning-visual {
    max-width: 520px;
    min-height: 225px;
  }

  .platform-visual {
    max-width: 520px;
    min-height: 225px;
  }

  .proof-strip,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-card,
  .platform-card {
    min-height: 220px;
  }

  .connect-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 96px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    overflow-x: visible;
    padding-bottom: 2px;
  }

  .nav-links a {
    flex: 1 1 72px;
    padding: 9px 6px;
    text-align: center;
  }

  .hero-section {
    padding-bottom: 56px;
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 5.1rem);
  }

  .hero-highlights span {
    width: 100%;
  }

  .hero-actions .button,
  .connect-section .button {
    width: 100%;
  }

  .handle-panel {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .proof-strip {
    margin-top: 0;
  }

  .learning-visual {
    max-width: none;
    min-height: 220px;
    padding: 16px;
  }

  .platform-visual {
    max-width: none;
    min-height: 220px;
    padding: 16px;
  }

  .learning-node {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .learning-node span {
    flex-basis: calc(100% - 30px);
  }

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

  .section-shell {
    padding-top: 72px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }
}

/* AI business prompt tricks page */
.tricks-page main {
  padding-bottom: 76px;
}

.tricks-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: min(680px, calc(100svh - 72px));
  margin: 0 auto;
  padding: clamp(58px, 7vw, 92px) 0 52px;
}

.tricks-hero-copy {
  max-width: 820px;
}

.tricks-hero-copy h1 {
  max-width: 820px;
  font-size: clamp(3.3rem, 7.4vw, 6.9rem);
  line-height: 0.92;
}

.tricks-hero .hero-lead {
  max-width: 760px;
}

.tricks-note {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  background: rgba(23, 30, 42, 0.86);
  color: var(--muted);
}

.tricks-note p {
  margin: 0;
}

.tricks-note svg,
.prompt-console svg,
.library-visual svg,
.search-field svg,
.copy-mini svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.tricks-note svg {
  margin-top: 2px;
  color: var(--cyan);
}

.prompt-console {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 59, 59, 0.22), transparent 38%),
    linear-gradient(315deg, rgba(67, 134, 255, 0.18), transparent 54%),
    rgba(23, 30, 42, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.24);
}

.prompt-console::before,
.library-visual::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.44;
  pointer-events: none;
}

.prompt-console::after {
  position: absolute;
  right: 18px;
  bottom: 24px;
  width: 118px;
  height: 118px;
  border: 18px solid var(--gold);
  border-left-color: var(--cyan);
  border-radius: 8px;
  content: "";
  opacity: 0.18;
  transform: rotate(10deg);
}

.prompt-console-header,
.prompt-console code,
.prompt-console-grid,
.prompt-console-meter,
.library-visual-header,
.library-stack {
  position: relative;
  z-index: 1;
}

.prompt-console-header,
.prompt-console-grid,
.prompt-console-meter,
.library-visual-header {
  display: flex;
  align-items: center;
}

.prompt-console-header,
.library-visual-header {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.prompt-console-header svg,
.library-visual-header svg {
  color: var(--gold);
}

.prompt-console code {
  display: block;
  margin-top: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(16, 21, 31, 0.74);
  color: var(--text);
  font-size: clamp(1.06rem, 1.8vw, 1.35rem);
  font-weight: 850;
  white-space: normal;
  overflow-wrap: anywhere;
}

.prompt-console-grid {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.prompt-console-grid span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  font-size: 0.82rem;
  font-weight: 800;
}

.prompt-console-meter {
  gap: 12px;
  margin-top: 42px;
}

.prompt-console-meter span {
  position: relative;
  flex: 1;
  height: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.prompt-console-meter span::after {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--cyan), var(--blue));
  content: "";
}

.prompt-console-meter small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: right;
}

.tricks-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -8px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.tricks-stats div {
  display: grid;
  gap: 4px;
  padding: 22px 24px;
  background: rgba(23, 30, 42, 0.94);
}

.tricks-stats strong {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.92;
}

.tricks-stats span {
  color: var(--muted);
  font-weight: 800;
}

.tricks-library {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 0;
  scroll-margin-top: 118px;
}

.tricks-library .section-heading h2 {
  max-width: 820px;
  font-size: clamp(2.1rem, 4.8vw, 4.35rem);
}

.library-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 245px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(245, 196, 81, 0.18), transparent 36%),
    linear-gradient(315deg, rgba(40, 212, 212, 0.12), transparent 55%),
    rgba(23, 30, 42, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 54px rgba(0, 0, 0, 0.18);
}

.library-stack {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.library-stack span {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(16, 21, 31, 0.72);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tricks-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(23, 30, 42, 0.8);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field svg {
  position: absolute;
  left: 15px;
  color: var(--muted);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px 0 46px;
  background: rgba(16, 21, 31, 0.84);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  outline: none;
}

.search-field input::placeholder {
  color: var(--muted);
}

.search-field input:focus {
  border-color: rgba(40, 212, 212, 0.64);
  box-shadow: 0 0 0 3px rgba(40, 212, 212, 0.12);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button[aria-pressed="true"] {
  border-color: rgba(245, 196, 81, 0.72);
  background: rgba(245, 196, 81, 0.13);
  color: var(--text);
  outline: none;
}

.trick-count {
  margin: 0;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tricks-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 30, 42, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.tricks-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.tricks-table caption,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.tricks-table th,
.tricks-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  text-align: left;
  vertical-align: middle;
}

.tricks-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(16, 21, 31, 0.98);
  color: #dce5f2;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tricks-table td:first-child {
  width: 74px;
  color: var(--muted);
  font-weight: 850;
}

.tricks-table td:nth-child(2) {
  width: 32%;
}

.tricks-table td:nth-child(4) {
  width: 112px;
}

.tricks-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.045);
}

.tricks-table tbody tr[hidden] {
  display: none;
}

.tricks-table code {
  display: inline-block;
  border: 1px solid rgba(40, 212, 212, 0.18);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(40, 212, 212, 0.08);
  color: #e8fbff;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 750;
  white-space: normal;
  overflow-wrap: anywhere;
}

.copy-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--surface-2);
  color: var(--dark-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
}

.copy-mini:hover,
.copy-mini:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.empty-state {
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(23, 30, 42, 0.8);
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 900px) {
  .tricks-hero,
  .tricks-library .section-heading {
    grid-template-columns: 1fr;
  }

  .tricks-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .prompt-console,
  .library-visual {
    max-width: 520px;
  }

  .tricks-stats {
    grid-template-columns: 1fr;
  }

  .tricks-library {
    padding-top: 72px;
  }
}

@media (max-width: 620px) {
  .tricks-page main {
    padding-bottom: 54px;
  }

  .tricks-hero {
    padding: 34px 0 42px;
  }

  .tricks-hero-copy h1 {
    font-size: clamp(2.95rem, 15vw, 4.55rem);
  }

  .tricks-note,
  .prompt-console,
  .library-visual,
  .tricks-toolbar {
    padding: 16px;
  }

  .prompt-console {
    min-height: 290px;
  }

  .prompt-console code {
    margin-top: 42px;
  }

  .prompt-console-meter {
    align-items: flex-start;
    flex-direction: column;
  }

  .prompt-console-meter span {
    width: 100%;
    flex: 0 0 10px;
  }

  .prompt-console-meter small {
    text-align: left;
  }

  .tricks-stats div {
    padding: 18px;
  }

  .tricks-library .section-heading h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .search-field input {
    min-height: 50px;
  }

  .filter-button {
    min-height: 40px;
  }

  .tricks-table {
    min-width: 720px;
  }

  .tricks-table th,
  .tricks-table td {
    padding: 14px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
