:root {
  color-scheme: dark;
  --background: #000;
  --foreground: #f5f5f7;
  --muted: #8e8e93;
  --dim: #5c5c62;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.08);
  --highlight: #2997ff;
  --success: #30d158;
  --radius: 16px;
  --section-header-gap: 80px;
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark only;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  color-scheme: dark only;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(41, 151, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 88% 22%, rgba(175, 82, 222, 0.13), transparent 30rem),
    radial-gradient(circle at 12% 54%, rgba(48, 209, 88, 0.08), transparent 24rem),
    var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 78%);
}

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

.section {
  position: relative;
  display: flex;
  min-height: 100svh;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 240px 24px;
  scroll-margin-top: 0;
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin: 0 auto;
  text-align: center;
}

.section-inner.narrow {
  width: min(100%, 860px);
}

#what .section-inner.narrow {
  width: min(100%, 1040px);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 96px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("./assets/hero-ascii-bg.png");
  background-position: center 47%;
  background-repeat: no-repeat;
  background-size: 120vw auto;
  content: "";
  filter: brightness(1.18) contrast(1.12);
  opacity: 0.82;
  transform: translateY(-1vh);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.24) 31%, rgba(0, 0, 0, 0.54) 74%, #000 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.06) 42%, #000 96%);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  min-height: calc(100svh - 160px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--highlight);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.display-title,
.headline,
.subtitle,
.card h3,
.card p,
.wide-card h3,
.wide-card p {
  margin-top: 0;
}

.display-title {
  margin-bottom: 28px;
  font-size: clamp(58px, 8.0vw, 100px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.02;
}

.headline {
  max-width: 980px;
  margin: 0 auto 32px;
  font-size: clamp(38px, 6.0vw, 70px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
}

.section-header {
  margin-bottom: var(--section-header-gap);
}

.section-header:last-child {
  margin-bottom: 0;
}

.section-header .headline:last-child,
.section-header .subtitle:last-child {
  margin-bottom: 0;
}

.subtitle {
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 520;
  line-height: 1.48;
}

.hero-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(245, 245, 247, 0.82);
  box-shadow: 0 20px 64px rgba(41, 151, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-pill span {
  font-size: 14px;
  font-weight: 720;
}

.hero-pill i {
  width: 18px;
  height: 1px;
  background: rgba(245, 245, 247, 0.3);
}

.scroll-cue {
  display: grid;
  width: 28px;
  height: 46px;
  place-items: start center;
  margin-top: 74px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  opacity: 0.58;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--foreground);
  animation: scroll-bounce 1.8s var(--ease) infinite;
}

.section-indicator {
  position: fixed;
  top: 50%;
  right: clamp(9px, 1.8vw, 27px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 0.85vh, 10px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
}

.section-indicator button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.28);
  cursor: pointer;
  transition:
    width 240ms var(--ease),
    height 240ms var(--ease),
    background-color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms var(--ease);
}

.section-indicator button:hover {
  background: rgba(245, 245, 247, 0.56);
  transform: scale(1.08);
}

.section-indicator button.is-active {
  width: 7px;
  height: 24px;
  background: rgba(245, 245, 247, 0.96);
  box-shadow: 0 0 18px rgba(245, 245, 247, 0.18);
  transform: none;
}

.concept-visual,
.prompt-box,
.flow-card,
.card,
.wide-card,
.module-panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.concept-visual {
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(41, 151, 255, 0.1), transparent 34rem),
    rgba(255, 255, 255, 0.025);
}

.concept-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card {
  min-height: 300px;
  padding: 30px;
  text-align: left;
  transition:
    transform 420ms var(--ease),
    border-color 320ms ease,
    background-color 320ms ease;
}

#why .card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background: var(--card);
  box-shadow:
    0 2px 24px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(41, 151, 255, 0.08);
}

#why .card::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(17, 214, 232, 0.88), rgba(41, 151, 255, 0.28) 48%, rgba(191, 90, 242, 0.84));
  content: "";
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

#why .card:hover::before {
  background: linear-gradient(135deg, rgba(17, 214, 232, 1), rgba(41, 151, 255, 0.42) 48%, rgba(191, 90, 242, 1));
}

#why::before,
#tools::before,
#codex::before,
#resource-library::before {
  position: absolute;
  z-index: 0;
  background-repeat: no-repeat;
  content: "";
  mix-blend-mode: screen;
  pointer-events: none;
}

#why::before {
  display: none;
}

#why::after,
#tools::after,
#codex::after,
#resource-library::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

#why::after {
  display: none;
}

#codex::before {
  width: min(76vw, 1120px);
  height: min(92vw, 1360px);
  left: 50%;
  bottom: -54%;
  background-image: url("./assets/decor-why-system-generated.png");
  background-position: center;
  background-size: contain;
  filter: brightness(1.24) contrast(1.16);
  opacity: 0.56;
  transform: translateX(-50%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 44%, rgba(0, 0, 0, 0.76) 68%, transparent 94%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0 44%, rgba(0, 0, 0, 0.76) 68%, transparent 94%);
}

#codex::after {
  width: min(76vw, 1180px);
  height: min(76vw, 1180px);
  left: 50%;
  bottom: -54%;
  border: 1px solid rgba(41, 151, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 120px rgba(41, 151, 255, 0.08),
    inset 0 0 90px rgba(191, 90, 242, 0.035);
  transform: translateX(-50%);
}

.card:hover,
.wide-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--card-strong);
  transform: translateY(-3px);
}

.card span {
  display: inline-flex;
  margin-bottom: 52px;
  color: var(--highlight);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.card h3,
.wide-card h3 {
  margin-bottom: 18px;
  color: var(--foreground);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 720;
  line-height: 1.12;
}

.card p,
.wide-card p,
.card small,
.flow-card p,
.prompt-box li,
.module-panel strong {
  color: var(--muted);
  font-size: 17px;
  font-weight: 460;
  line-height: 1.62;
}

.card.compact {
  min-height: 260px;
}

.card.compact p {
  margin-bottom: 18px;
  color: var(--foreground);
  font-weight: 640;
}

.card.compact small {
  display: block;
}

.tool-catalog {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.tool-category {
  display: flex;
  grid-column: span 2;
  min-height: 292px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
  text-align: left;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tool-category:nth-child(4) {
  grid-column: 2 / span 2;
}

.tool-category:nth-child(5) {
  grid-column: 4 / span 2;
}

.tool-category-head h3 {
  margin: 0 0 8px;
  color: var(--foreground);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.08;
}

.tool-category-head p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 460;
  line-height: 1.45;
}

.tool-rows {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}

.tool-row {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.tool-row strong {
  color:rgba(255, 255, 255, 0.6) ;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
}

#tools::before {
  display: none;
}

#tools::after {
  display: none;
}

.stack-list {
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}

.case-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
}

.wide-card {
  padding: clamp(28px, 5vw, 48px);
  text-align: left;
  transition:
    transform 420ms var(--ease),
    border-color 320ms ease,
    background-color 320ms ease;
}

.schema-card {
  position: relative;
  display: grid;
  width: min(100%, 520px);
  min-height: 220px;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(24px, 3.4vw, 34px);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background:
    radial-gradient(circle at 74% 86%, rgba(41, 151, 255, 0.15), transparent 12rem),
    radial-gradient(circle at 22% 10%, rgba(255, 255, 255, 0.045), transparent 10rem),
    rgba(255, 255, 255, 0.035);
  text-align: left;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 420ms var(--ease),
    border-color 320ms ease,
    background-color 320ms ease;
}

.schema-card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(41, 151, 255, 0.34), transparent 26%),
    linear-gradient(315deg, rgba(191, 90, 242, 0.22), transparent 28%);
  content: "";
  opacity: 0.5;
  pointer-events: none;
}

.schema-card:hover {
  transform: translateY(-6px);
  border-color: rgba(41, 151, 255, 0.34);
}

.schema-card-copy {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.schema-card h3 {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.08;
}

.schema-visual {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-top: 34px;
}

.wave-visualizer {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 5px;
  padding: 0 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.wave-visualizer span {
  display: block;
  width: 100%;
  max-width: 18px;
  min-width: 5px;
  height: 10px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(41, 151, 255, 0.95), rgba(41, 151, 255, 0.16));
  box-shadow: 0 0 22px rgba(41, 151, 255, 0.22);
  animation: wavePulse 1.65s ease-in-out infinite;
  animation-delay: calc(var(--i) * -90ms);
  transform-origin: center;
}

.schema-card-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 760;
}

.schema-card-action::after {
  margin-left: 8px;
  content: "→";
  transition: transform 240ms ease;
}

.schema-card:hover .schema-card-action::after {
  transform: translateX(4px);
}

@keyframes wavePulse {
  0%,
  100% {
    transform: scaleY(0.38);
    opacity: 0.4;
  }

  45% {
    transform: scaleY(1.85);
    opacity: 1;
  }
}

.card-kicker {
  margin: 0 0 24px;
  color: var(--highlight);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tag-cloud span {
  padding: 12px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(245, 245, 247, 0.78);
  font-size: 15px;
  font-weight: 650;
}

.flow-card {
  display: grid;
  gap: 0;
  max-width: 900px;
  margin: 64px auto 0;
  overflow: hidden;
  text-align: left;
}

.flow-card div {
  padding: 30px;
  border-bottom: 1px solid var(--border-soft);
}

.flow-card div:last-child {
  border-bottom: 0;
}

.flow-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--highlight);
  font-size: 13px;
  font-weight: 760;
}

.flow-card h3 {
  margin: 0 0 8px;
  color: var(--foreground);
  font-size: 25px;
  font-weight: 720;
}

.flow-card p {
  margin: 0;
}

.prompt-box {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  text-align: left;
}

.copy-template-button {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(245, 245, 247, 0.72);
  cursor: pointer;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    transform 220ms var(--ease);
}

.copy-template-button:hover,
.copy-template-button:focus-visible {
  border-color: rgba(41, 151, 255, 0.48);
  background: rgba(41, 151, 255, 0.13);
  color: var(--foreground);
  outline: none;
}

.copy-template-button:active {
  transform: translateY(1px);
}

.copy-template-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.copy-template-button span {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(245, 245, 247, 0.92);
  color: #000;
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 180ms ease,
    transform 180ms var(--ease);
  white-space: nowrap;
}

.copy-template-button.is-copied span {
  opacity: 1;
  transform: translateY(0);
}

.copy-template-button.is-copy-failed span {
  background: rgba(255, 69, 58, 0.94);
  color: var(--foreground);
  opacity: 1;
  transform: translateY(0);
}

.prompt-box-content {
  height: 480px;
  overflow-y: auto;
  padding-right: 42px;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  scrollbar-width: thin;
}

.prompt-box-content::-webkit-scrollbar {
  width: 8px;
}

.prompt-box-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.prompt-template-rendered {
  margin: 0;
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.68;
}

.prompt-template-rendered h3,
.prompt-template-rendered h4,
.prompt-template-rendered p {
  margin-top: 0;
}

.prompt-template-rendered h3 {
  margin-bottom: 28px;
  color: var(--foreground);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 760;
  line-height: 1.18;
}

.prompt-template-rendered section {
  padding-block: 28px;
  border-top: 1px solid var(--border-soft);
}

.prompt-template-rendered section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.prompt-template-rendered section:last-child {
  padding-bottom: 0;
}

.prompt-template-rendered h4 {
  margin-bottom: 18px;
  color: var(--highlight);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.prompt-template-rendered p {
  margin-bottom: 10px;
  color: rgba(245, 245, 247, 0.86);
  font-weight: 650;
}

.prompt-template-rendered .prompt-placeholder {
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 520;
}

.prompt-template-rendered ol,
.prompt-template-rendered ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding-left: 1.25em;
  color: var(--muted);
}

.prompt-template-rendered li {
  padding-left: 0.15em;
}

.prompt-template-rendered li span {
  display: block;
  margin-top: 2px;
}

.prompt-template-rendered pre {
  margin: 0 0 22px;
  overflow-x: auto;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.prompt-template-rendered code {
  color: rgba(245, 245, 247, 0.76);
  font-family:
    "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.copy-template-source {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.closing {
  min-height: 100svh;
  isolation: isolate;
  padding-block: clamp(88px, 10vw, 132px);
  background:
    radial-gradient(circle at 50% 46%, rgba(41, 151, 255, 0.2), transparent 24rem),
    radial-gradient(circle at 42% 54%, rgba(48, 209, 88, 0.08), transparent 22rem),
    radial-gradient(circle at 62% 50%, rgba(191, 90, 242, 0.1), transparent 24rem),
    linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.028));
}

.closing::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(41, 151, 255, 0.13), transparent 38%),
    linear-gradient(90deg, transparent 18%, rgba(41, 151, 255, 0.055) 50%, transparent 82%);
  content: "";
  opacity: 0.9;
  pointer-events: none;
}

.closing::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48) 58%, #000 100%),
    linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.08) 38%, #000 100%);
  content: "";
  pointer-events: none;
}

.closing-inner {
  width: min(100%, 1180px);
}

.closing .section-header {
  margin-bottom: clamp(28px, 4vw, 42px);
}

.closing .headline {
  max-width: 1100px;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.08;
  white-space: nowrap;
}

.closing .subtitle {
  margin-top: 18px;
  color: rgba(245, 245, 247, 0.5);
}

.tip-module {
  min-height: auto;
  padding-block: 120px;
  background:
    radial-gradient(circle at 50% 52%, rgba(41, 151, 255, 0.1), transparent 34rem),
    transparent;
}

.tip-module .headline {
  margin-bottom: 32px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.06;
}

.tip-module .subtitle {
  font-size: clamp(18px, 1.6vw, 23px);
}

#tips {
  min-height: auto;
  padding-bottom: 42px;
}

#tips + .tip-module {
  padding-top: 80px;
}

.module-panel {
  max-width: 780px;
  margin: 56px auto 0;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.module-panel p {
  margin: 0 0 16px;
  color: var(--highlight);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.module-panel strong {
  display: block;
  color: var(--foreground);
  font-size: clamp(26px, 4vw, 50px);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.16;
}

.iteration-tips {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.iteration-tips article {
  padding: 24px 28px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--card);
  text-align: left;
}

.iteration-tips h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--foreground);
  font-size: 22px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.25;
}

.iteration-tips p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 460;
  line-height: 1.58;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 740px;
  margin: 0 auto;
}

.feedback-grid article {
  min-height: 116px;
  padding: 22px 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.feedback-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--highlight);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.feedback-grid h3 {
  margin: 0 0 8px;
  color: var(--foreground);
  font-size: 17px;
  font-weight: 720;
}

.feedback-grid p {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.45;
}

.feedback-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 46px auto 0;
}

.feedback-example {
  min-height: 126px;
  padding: 24px;
  border-radius: var(--radius);
  text-align: left;
}

.feedback-example.bad {
  border: 1px solid rgba(255, 69, 58, 0.28);
  background: rgba(255, 69, 58, 0.06);
}

.feedback-example.good {
  border: 1px solid rgba(48, 209, 88, 0.28);
  background: rgba(48, 209, 88, 0.06);
}

.feedback-example p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 720;
}

.feedback-example p::before {
  font-size: 15px;
  line-height: 1;
}

.feedback-example.bad p::before {
  content: "❌";
}

.feedback-example.good p::before {
  content: "✅";
}

.feedback-example.bad p {
  color: #ff453a;
}

.feedback-example.good p {
  color: var(--success);
}

.feedback-example span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.mvp-road {
  position: relative;
  display: flex;
  max-width: 950px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto;
}

.mvp-line {
  position: absolute;
  top: 50%;
  left: -125px;
  right: -125px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--highlight), transparent);
  opacity: 0.9;
}

.mvp-road article {
  position: relative;
  z-index: 1;
  width: 110px;
  min-height: 165px;
  padding: 23px 15px 20px;
  border: 1px solid rgba(41, 151, 255, 0.36);
  border-radius: 10px;
  background: rgba(4, 10, 18, 0.86);
  box-shadow: 0 0 34px rgba(41, 151, 255, 0.08);
}

.mvp-road article strong {
  display: block;
  margin-bottom: 13px;
  font-size: 43px;
  line-height: 1;
}

.mvp-road h3 {
  margin: 0 0 5px;
  color: var(--foreground);
  font-size: 19px;
  font-weight: 720;
}

.mvp-road p {
  margin: 0;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.45;
}

.mvp-road i {
  position: relative;
  z-index: 2;
  color: rgba(245, 245, 247, 0.6);
  font-style: normal;
  font-weight: 700;
}

.resource-inner {
  width: min(100%, 900px);
}

.resource-groups {
  display: grid;
  gap: 42px;
  text-align: left;
}

#resource-library::before {
  width: min(46vw, 650px);
  height: min(68vw, 940px);
  right: max(3vw, 36px);
  bottom: 5%;
  background-image: url("./assets/flower-1-generated.png");
  background-position: center bottom;
  background-size: contain;
  filter: brightness(1.28) contrast(1.16);
  opacity: 0.56;
  -webkit-mask-image: radial-gradient(ellipse at 50% 58%, #000 0 48%, rgba(0, 0, 0, 0.76) 70%, transparent 92%);
  mask-image: radial-gradient(ellipse at 50% 58%, #000 0 48%, rgba(0, 0, 0, 0.76) 70%, transparent 92%);
}

#resource-library::after {
  width: min(52vw, 760px);
  height: min(52vw, 760px);
  right: -3vw;
  bottom: -14vw;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 120px rgba(41, 151, 255, 0.08),
    inset 0 0 100px rgba(191, 90, 242, 0.045);
}

.resource-group h3 {
  margin: 0 0 18px;
  color: var(--highlight);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 720;
  letter-spacing: 0;
}

.link-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-pills a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.052);
  color: rgba(245, 245, 247, 0.78);
  font-size: 13px;
  font-weight: 560;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms var(--ease);
}

.link-pills a:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: var(--foreground);
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.8;
  }
}

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

  .reveal,
  .card,
  .wide-card,
  .schema-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-cue span,
  .wave-visualizer span {
    animation: none;
  }
}

@media (max-width: 920px) {
  .section {
    min-height: auto;
    padding: 110px 20px;
  }

  .section-indicator {
    right: 6px;
    gap: 5px;
  }

  .section-indicator button {
    width: 5px;
    height: 5px;
  }

  .section-indicator button.is-active {
    width: 5px;
    height: 19px;
  }

  .tip-module {
    padding-block: 72px;
  }

  #tips {
    padding-bottom: 36px;
  }

  #tips + .tip-module {
    padding-top: 36px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero::before {
    background-size: 150vw auto;
    opacity: 0.68;
    transform: translateY(-3vh);
  }

  #codex::before {
    width: 132vw;
    height: 156vw;
    left: 50%;
    bottom: -54%;
    opacity: 0.42;
    transform: translateX(-50%);
  }

  #tools::before {
    display: none;
  }

  #resource-library::before {
    width: 76vw;
    height: 108vw;
    right: -18vw;
    bottom: 8%;
    opacity: 0.34;
  }

  .closing::before {
    opacity: 0.72;
  }

  .closing .headline {
    font-size: clamp(30px, 4.2vw, 52px);
    white-space: nowrap;
  }

  #why::after,
  #tools::after,
  #codex::after,
  #resource-library::after {
    display: none;
  }

  .hero-inner {
    min-height: calc(100svh - 180px);
  }

  .card-grid.three,
  .card-grid.four,
  .card-grid.two,
  .case-list {
    grid-template-columns: 1fr;
  }

  .feedback-grid,
  .feedback-examples {
    grid-template-columns: 1fr;
  }

  .mvp-road {
    flex-wrap: wrap;
    gap: 12px;
  }

  .mvp-line,
  .mvp-road i {
    display: none;
  }

  .card {
    min-height: 250px;
  }

  .tool-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
  }

  .tool-category,
  .tool-category:nth-child(4),
  .tool-category:nth-child(5) {
    grid-column: span 1;
    min-height: 270px;
  }
}

@media (max-width: 720px) {
  .tool-catalog {
    grid-template-columns: 1fr;
  }

  .tool-category {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 94px 16px;
  }

  .section-indicator {
    display: none;
  }

  .tip-module {
    padding-block: 60px;
  }

  .tip-module .headline {
    font-size: clamp(31px, 9.4vw, 46px);
  }

  .display-title {
    font-size: clamp(54px, 17vw, 82px);
  }

  .hero::before {
    background-position: center 34%;
    background-size: 190vw auto;
    opacity: 0.58;
    transform: translateY(-8vh);
  }

  #why::before,
  #tools::before,
  #codex::before,
  #resource-library::before {
    opacity: 0.26;
  }

  .headline {
    font-size: clamp(36px, 11.5vw, 56px);
  }

  .subtitle {
    font-size: 19px;
  }

  .closing .headline {
    font-size: clamp(34px, 11vw, 48px);
    white-space: normal;
  }

  .hero-pill {
    border-radius: 24px;
  }

  .hero-pill i {
    display: none;
  }

  .card,
  .wide-card,
  .schema-card,
  .prompt-box,
  .module-panel,
  .iteration-tips article,
  .tool-category {
    padding: 24px;
  }

  .schema-card {
    min-height: 210px;
  }

  .wave-visualizer {
    height: 44px;
    gap: 5px;
  }

}
