:root {
  --bg-main: #f5f2ea;
  --bg-card: #fffaf2;
  --bg-ink: #11151f;
  --bg-ink-soft: #1d2534;
  --text-main: #121622;
  --text-muted: #3b4359;
  --line-soft: #d6d8df;
  --accent-coral: #f24f3d;
  --accent-cyan: #14c9d8;
  --accent-amber: #ffbb24;
  --accent-blue: #2f4bfd;
  --accent-green: #2dcc8f;
  --shadow-soft: 0 16px 40px rgba(8, 12, 28, 0.08);
  --shadow-neon: 0 0 0 1px rgba(20, 201, 216, 0.28), 0 20px 40px rgba(47, 75, 253, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --max-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 88% -12%, rgba(242, 79, 61, 0.22), transparent 32%),
    radial-gradient(circle at -6% 4%, rgba(20, 201, 216, 0.22), transparent 30%),
    linear-gradient(160deg, #f8f5ee 0%, #f2efe7 44%, #f5f2ea 100%);
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 200;
  background: #0d1727;
  color: #ffffff;
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.4rem);
  background: rgba(246, 242, 233, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(24, 30, 43, 0.12);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-cyan));
  box-shadow: 0 0 0 4px rgba(20, 201, 216, 0.18);
}

.logo-title {
  margin: 0;
  font-family: "Bricolage Grotesque", "Arial Black", sans-serif;
  font-size: clamp(0.98rem, 2.2vw, 1.24rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(47, 75, 253, 0.08);
  border-color: rgba(47, 75, 253, 0.25);
  transform: translateY(-1px);
}

.top-nav a.active {
  background: #0f1627;
  color: #f9f8f2;
  border-color: #0f1627;
}

main {
  width: min(var(--max-width), calc(100% - 2.2rem));
  margin: 1.6rem auto 0;
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "Arial Black", sans-serif;
  line-height: 1.14;
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(2.05rem, 5vw, 4.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

p {
  margin: 0 0 0.95rem;
  color: var(--text-muted);
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #384877;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: clamp(1rem, 2.1vw, 1.28rem);
  max-width: 64ch;
}

.hero {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  margin-bottom: 1.8rem;
}

.hero-compact {
  grid-template-columns: 1fr 1fr;
}

.hero-tags {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(18, 22, 34, 0.22);
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.76);
}

.panel-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.7rem;
}

.panel,
.style-card,
.token-group,
.prompt-card,
.resource-rail,
.cta-block,
.comparison,
.prompt-intro {
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 24, 34, 0.12);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(251, 247, 239, 0.96));
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 1.1rem;
}

.panel.accent {
  background:
    radial-gradient(circle at 90% 12%, rgba(47, 75, 253, 0.17), transparent 40%),
    linear-gradient(165deg, rgba(255, 250, 242, 0.95), rgba(237, 248, 250, 0.96));
}

.panel.glow {
  box-shadow: var(--shadow-neon);
}

.split {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 1.2rem;
  align-items: start;
  margin-bottom: 1.7rem;
}

.media-card {
  margin: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(18, 22, 34, 0.15);
  box-shadow: var(--shadow-soft);
}

.media-card.tall img {
  max-height: 700px;
  object-fit: cover;
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  height: auto;
  background: #d9dce2;
}

.media-card video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-card figcaption {
  padding: 0.65rem 0.8rem 0.78rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: #354061;
  background: #f5f7fb;
}

.media-strip {
  margin-bottom: 1.8rem;
}

.section-intro {
  margin-bottom: 0.9rem;
}

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

.cta-block {
  margin-bottom: 2rem;
  padding: 1.2rem;
}

.cta-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  color: #0f1728;
  border: 1px solid rgba(15, 23, 40, 0.25);
  background: linear-gradient(120deg, #fff, #eaf3ff);
}

.button-link.ghost {
  background: #0f1728;
  color: #f9fbff;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.8rem;
}

.style-card {
  padding: 1rem;
}

.comparison {
  padding: 1rem;
  margin-bottom: 1.8rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  padding: 0.65rem 0.58rem;
  vertical-align: top;
}

th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #364162;
}

.token-board {
  margin-bottom: 1.9rem;
}

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

.token-group {
  padding: 1rem;
}

.token-group ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
}

.token-group li {
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}

.prompt-intro {
  padding: 1rem;
  margin-bottom: 1rem;
}

.framework-list {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
}

.framework-list li {
  margin-bottom: 0.46rem;
  color: var(--text-muted);
}

.prompt-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.prompt-card {
  padding: 1rem;
}

.prompt-card h3 {
  margin-bottom: 0.5rem;
}

.prompt-model {
  font-family: "IBM Plex Mono", monospace;
  color: #1a4d68;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mono-block {
  margin: 0.45rem 0 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  color: #2b3550;
  background: rgba(244, 248, 255, 0.85);
  border: 1px solid rgba(42, 52, 74, 0.2);
  border-radius: 10px;
  padding: 0.7rem;
  white-space: pre-wrap;
}

.copy-btn {
  border: 1px solid rgba(16, 23, 41, 0.25);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-weight: 700;
  font-size: 0.84rem;
  font-family: "Space Grotesk", sans-serif;
  background: #f7fbff;
  color: #121b2e;
  cursor: pointer;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: #e6f6ff;
}

.copy-btn.copied {
  background: #dff9ec;
  border-color: rgba(45, 204, 143, 0.5);
  color: #0f5f3d;
}

.resource-rail {
  width: min(var(--max-width), calc(100% - 2.2rem));
  margin: 0 auto 1rem;
  padding: 1rem;
}

.resource-list {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-link {
  text-decoration: none;
  color: #15203a;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(17, 25, 43, 0.15);
  background: #ffffff;
  display: block;
}

.resource-link:hover,
.resource-link:focus-visible {
  border-color: rgba(47, 75, 253, 0.45);
  background: #f3f6ff;
}

.resource-tag {
  display: inline-block;
  margin-top: 0.28rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: #44507a;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 2.2rem));
  margin: 0 auto 2rem;
  border-top: 1px solid rgba(16, 24, 40, 0.14);
  padding-top: 0.9rem;
  color: #4b5571;
}

.site-footer p {
  margin-bottom: 0.6rem;
}

.resource-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.resource-inline a {
  text-decoration: none;
  font-size: 0.83rem;
  font-family: "IBM Plex Mono", monospace;
  border: 1px solid rgba(16, 24, 40, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  color: #223053;
}

.evidence-list {
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
}

.evidence-list li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 640ms cubic-bezier(.18,.85,.32,1) forwards;
}

.hero.reveal { animation-delay: 40ms; }
.panel-grid.reveal { animation-delay: 110ms; }
.split.reveal { animation-delay: 170ms; }
.media-strip.reveal { animation-delay: 230ms; }
.cta-block.reveal,
.comparison.reveal { animation-delay: 290ms; }
.resource-rail.reveal,
.site-footer.reveal { animation-delay: 330ms; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .hero-compact,
  .split {
    grid-template-columns: 1fr;
  }

  .panel-grid,
  .card-grid,
  .media-grid,
  .token-grid,
  .prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .top-nav {
    width: 100%;
  }

  .top-nav a {
    flex: 1;
    min-width: 0;
  }

  main,
  .resource-rail,
  .site-footer {
    width: calc(100% - 1.2rem);
  }

  .panel-grid,
  .card-grid,
  .media-grid,
  .token-grid,
  .prompt-grid,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
