* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background:
    radial-gradient(38% 42% at 12% 14%, rgba(36, 137, 255, 0.98) 0%, rgba(36, 137, 255, 0.54) 34%, rgba(36, 137, 255, 0) 74%),
    radial-gradient(42% 46% at 48% 12%, rgba(223, 230, 255, 0.92) 0%, rgba(223, 230, 255, 0.26) 36%, rgba(223, 230, 255, 0) 76%),
    radial-gradient(46% 60% at 80% 16%, rgba(35, 34, 218, 0.98) 0%, rgba(24, 26, 170, 0.96) 38%, rgba(12, 13, 108, 0.86) 72%, rgba(12, 13, 108, 0) 100%),
    linear-gradient(135deg, #1a8eff 0%, #2a5fff 26%, #1f33e6 58%, #251cb5 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: #eef4ff;
  background:
    radial-gradient(46% 60% at 80% 16%, rgba(35, 34, 218, 0.98) 0%, rgba(24, 26, 170, 0.96) 38%, rgba(12, 13, 108, 0.86) 72%, rgba(12, 13, 108, 0) 100%),
    linear-gradient(135deg, #1a8eff 0%, #2a5fff 34%, #1f33e6 66%, #251cb5 100%);
  font-family: "Segoe UI Variable Display", "SF Pro Display", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(64% 44% at 50% 18%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(180deg, rgba(7, 11, 24, 0.18) 0%, rgba(7, 11, 24, 0.34) 100%),
    radial-gradient(88% 90% at 50% 50%, rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, 0.24) 100%);
}

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

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

button {
  font: inherit;
}

.page-background-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: url("/bg.webp") center / cover no-repeat;
  object-fit: cover;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding-bottom: 4rem;
  isolation: isolate;
  overflow: hidden;
}

.page-wrap {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 54px rgba(7, 11, 24, 0.14);
  backdrop-filter: blur(22px) saturate(150%);
}

.header-row {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #050816;
  font-weight: 850;
  letter-spacing: 0;
}

.site-brand img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 44px rgba(28, 54, 179, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav-link,
.site-button,
.primary-action,
.secondary-action,
.copy-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.site-nav-link {
  position: relative;
  padding: 0 0.8rem;
  color: rgba(15, 23, 42, 0.7);
  font-size: 0.94rem;
}

.site-nav-link:hover,
.site-nav-link[aria-current="page"] {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.38);
}

.site-button,
.primary-action {
  background: #171717;
  padding: 0 1rem;
  color: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 15, 24, 0.18);
  transition: transform 180ms ease, background-color 180ms ease;
}

.site-button:hover,
.primary-action:hover,
.secondary-action:hover,
.copy-button:hover {
  transform: translateY(-1px);
}

.page-main {
  padding-top: 7.4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.58fr);
  gap: 1.2rem;
  align-items: stretch;
}

.hero-copy,
.hero-board,
.prompt-card,
.note-section {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(9, 12, 29, 0.48);
  box-shadow: 0 30px 90px rgba(4, 7, 35, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
}

.hero-copy {
  padding: clamp(1.7rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 0.75rem;
  color: rgba(245, 248, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1.1rem 0 0;
  max-width: 780px;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p,
.prompt-toolbar p,
.prompt-body p,
.board-step p,
.note-grid p {
  color: rgba(236, 241, 255, 0.78);
  line-height: 1.75;
}

.hero p {
  max-width: 760px;
  margin: 1.1rem 0 0;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.secondary-action {
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.78);
  color: #101623;
  box-shadow: 0 18px 44px rgba(24, 38, 120, 0.14);
  transition: transform 180ms ease, background-color 180ms ease;
}

.hero-board,
.note-section {
  border-color: rgba(255, 255, 255, 0.62);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.9) 0%, rgba(228, 238, 255, 0.76) 100%);
  color: #101623;
  box-shadow: 0 34px 90px rgba(34, 48, 132, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-board {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.board-step {
  border: 1px solid rgba(79, 104, 214, 0.12);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.58);
}

.board-step span {
  color: #1f33e6;
  font-size: 0.78rem;
  font-weight: 900;
}

.board-step strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 1.04rem;
}

.board-step p,
.note-grid p {
  margin: 0.45rem 0 0;
  color: rgba(17, 24, 39, 0.75);
  font-size: 0.92rem;
}

.prompt-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 4rem) 0 1.2rem;
}

.prompt-toolbar h2,
.note-section h2 {
  margin: 0.75rem 0 0;
  color: #ffffff;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.note-section h2 {
  color: #0f172a;
}

.prompt-toolbar p {
  max-width: 440px;
  margin: 0;
  font-size: 0.95rem;
}

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

.prompt-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.prompt-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 34px 96px rgba(4, 7, 35, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.prompt-media {
  position: relative;
  aspect-ratio: 1 / 0.74;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  cursor: zoom-in;
}

.prompt-media:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.88);
  outline-offset: -5px;
}

.prompt-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.prompt-media:hover img,
.prompt-media:focus-visible img {
  transform: scale(1.035);
}

.prompt-body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.prompt-body h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.tags span {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.32rem 0.55rem;
  color: rgba(236, 241, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 750;
}

.prompt-body p {
  margin: 0;
  font-size: 0.94rem;
}

.copy-button {
  width: fit-content;
  min-height: 38px;
  padding: 0 0.9rem;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
  transition: transform 180ms ease, background-color 180ms ease;
}

.copy-button:hover {
  background: #eef4ff;
}

.prompt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.prompt-lightbox[hidden] {
  display: none;
}

.prompt-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 7, 18, 0.78);
  cursor: zoom-out;
  backdrop-filter: blur(18px) saturate(130%);
}

.prompt-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  width: min(1180px, 96vw);
  max-height: 92vh;
}

.prompt-lightbox-image {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.42);
}

.prompt-lightbox-close {
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  display: inline-flex;
  width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #101623;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.prompt-lightbox-caption {
  margin: 0;
  color: rgba(245, 248, 255, 0.86);
  font-size: 0.96rem;
  font-weight: 750;
  text-align: center;
}

body.prompt-lightbox-open {
  overflow: hidden;
}
.note-section {
  margin-top: 1rem;
  padding: clamp(1.3rem, 3vw, 2rem);
}

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

.note-grid p {
  margin: 0;
  border-radius: 8px;
  border: 1px solid rgba(79, 104, 214, 0.12);
  background: rgba(255, 255, 255, 0.58);
  padding: 1rem;
}

.page-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0 0;
  color: rgba(238, 244, 255, 0.62);
  font-size: 0.92rem;
  font-weight: 650;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-row a:hover {
  color: #ffffff;
}

@media (max-width: 980px) {
  .hero,
  .prompt-grid,
  .note-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: sticky;
  }

  .header-row,
  .footer-row,
  .prompt-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-row {
    padding: 0.75rem 0;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .site-nav-link,
  .site-button {
    min-height: 38px;
    padding: 0 0.65rem;
    font-size: 0.88rem;
  }

  .page-main {
    padding-top: 1.5rem;
  }

  .prompt-grid,
  .note-grid,
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page-wrap {
    width: min(100% - 20px, 1180px);
  }

  .hero h1 {
    font-size: clamp(2rem, 15vw, 3.2rem);
  }

  .prompt-body {
    padding: 0.9rem;
  }

  .footer-row nav {
    justify-content: flex-start;
  }
}

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