/* =========================================================
   YouMind — AI Creation Studio  (clone)
   Design tokens
   ========================================================= */
:root {
  --bg: #FBFAF7;
  --bg-alt: #F4F1EA;
  --surface: #FFFFFF;
  --ink: #16110D;
  --ink-soft: #4A433B;
  --muted: #8A8178;
  --line: rgba(22, 17, 13, 0.10);
  --line-soft: rgba(22, 17, 13, 0.06);
  --accent: #FF5A3C;
  --accent-soft: rgba(255, 90, 60, 0.12);
  --accent-deep: #E8431F;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Instrument Serif', 'Georgia', 'Times New Roman', serif;

  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --maxw: 1160px;
  --shadow-sm: 0 1px 2px rgba(22,17,13,.05), 0 4px 14px rgba(22,17,13,.04);
  --shadow-md: 0 10px 30px rgba(22,17,13,.08), 0 2px 8px rgba(22,17,13,.05);
  --shadow-lg: 0 30px 70px rgba(22,17,13,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: var(--radius-pill);
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,90,60,.32); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(22,17,13,.05); background: rgba(251,250,247,.9); }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.brand__mark { color: var(--accent); display: inline-flex; }
.brand__name { font-size: 20px; letter-spacing: -.01em; }

.nav__links { display: flex; gap: 30px; margin-left: 14px; }
.nav__links a { font-size: 15px; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav__signin { font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.nav__signin:hover { color: var(--ink); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: 6px;
  padding: 8px 24px 20px; border-top: 1px solid var(--line-soft);
}
.nav__mobile a { padding: 12px 4px; font-size: 16px; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
.nav__mobile .btn { margin-top: 12px; border-bottom: 0; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,90,60,.18) 0%, rgba(255,90,60,0) 70%);
  filter: blur(10px);
}
.hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  padding: 7px 16px; border-radius: var(--radius-pill);
  background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft);
  margin-bottom: 26px;
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400; line-height: .98; letter-spacing: -.01em;
  font-size: clamp(56px, 11vw, 132px);
  margin-bottom: 18px;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__subtitle { font-size: clamp(17px, 2.4vw, 22px); color: var(--ink-soft); max-width: 540px; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Product mockup */
.mock {
  width: min(960px, 100%); margin-top: 56px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left;
  transform: perspective(1600px) rotateX(3deg);
}
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); background: #FBFAF7; }
.mock__dot { width: 11px; height: 11px; border-radius: 50%; background: #E4DFD6; }
.mock__url { margin-left: 12px; font-size: 12.5px; color: var(--muted); background: #fff; border: 1px solid var(--line-soft); padding: 5px 12px; border-radius: 8px; }
.mock__body { display: flex; min-height: 340px; }
.mock__side { width: 180px; padding: 20px 14px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; background: #FCFBF8; }
.mock__chip { font-size: 13.5px; color: var(--ink-soft); padding: 10px 12px; border-radius: 10px; }
.mock__chip--active { background: var(--ink); color: #fff; }
.mock__main { flex: 1; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.mock__line { height: 13px; border-radius: 7px; background: linear-gradient(90deg, #EFEBE3, #E6E1D8); }
.mock__line--title { height: 22px; width: 55%; background: linear-gradient(90deg, #D9D3C9, #E8E3DA); margin-bottom: 8px; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0; }
.mock__card { height: 96px; border-radius: 14px; background: linear-gradient(135deg, #FFE9E2, #FFD9CF); box-shadow: inset 0 0 0 1px rgba(255,90,60,.18); }
.mock__card:nth-child(2) { background: linear-gradient(135deg, #E7E9FF, #D6DAFF); }
.mock__card:nth-child(3) { background: linear-gradient(135deg, #FFF3D6, #FFE6B0); }
.mock__prompt { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-radius: 14px; background: #F4F1EA; color: var(--muted); font-size: 13.5px; }
.mock__send { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }

/* =========================================================
   Section primitives
   ========================================================= */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section__head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section__kicker { font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 5vw, 54px); line-height: 1.08; letter-spacing: -.01em; }
.section__title .accent { color: var(--accent); font-style: italic; }
.section__lead { margin-top: 18px; color: var(--ink-soft); font-size: 18px; }
.accent { color: var(--accent); }

/* =========================================================
   Features
   ========================================================= */
.features { background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 20px;
}
.feature__title { font-size: 21px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.feature__text { color: var(--ink-soft); font-size: 15.5px; }

/* =========================================================
   Studio banner
   ========================================================= */
.studio { background: var(--bg-alt); }
.studio__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.studio__copy .section__title { text-align: left; }
.studio__text { margin: 18px 0 28px; color: var(--ink-soft); font-size: 17px; max-width: 460px; }
.studio__visual { position: relative; min-height: 320px; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb--1 { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, #FFB199, var(--accent)); top: 10px; right: 30px; opacity: .9; }
.orb--2 { width: 150px; height: 150px; background: radial-gradient(circle at 30% 30%, #B8C0FF, #7C8CFF); bottom: 10px; left: 20px; }
.studio__panel {
  position: relative; z-index: 2; width: 100%; max-width: 380px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-lg);
}
.studio__row { height: 14px; border-radius: 7px; background: #ECE7DE; margin-bottom: 12px; }
.studio__row--short { width: 60%; }
.studio__row--mid { width: 80%; }
.studio__tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.studio__tags span { font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-deep); }

/* =========================================================
   Gallery
   ========================================================= */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.work__thumb {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(135deg, #f0e9e0, #e6ddd1);
}
.work__type {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.9); color: var(--ink); backdrop-filter: blur(4px);
}
.work__meta { padding: 16px 18px 20px; }
.work__meta h4 { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.work__meta span { font-size: 13px; color: var(--muted); }

/* Distinct gradient per work thumbnail */
.work:nth-child(1) .work__thumb { background: linear-gradient(135deg, #FFE3DA, #FFC9B8); }
.work:nth-child(2) .work__thumb { background: linear-gradient(135deg, #E7E9FF, #C9CEFF); }
.work:nth-child(3) .work__thumb { background: linear-gradient(135deg, #FFE9C7, #FFD58A); }
.work:nth-child(4) .work__thumb { background: linear-gradient(135deg, #D9F3EC, #A8E6D2); }
.work:nth-child(5) .work__thumb { background: linear-gradient(135deg, #F0EEF2, #DAD6E2); }
.work:nth-child(6) .work__thumb { background: linear-gradient(135deg, #D9E8FF, #A9C8FF); }
.work:nth-child(7) .work__thumb { background: linear-gradient(135deg, #FFE0F0, #FFB3DE); }
.work:nth-child(8) .work__thumb { background: linear-gradient(135deg, #EDE3D2, #D6C2A0); }
.work:nth-child(9) .work__thumb { background: linear-gradient(135deg, #FFD6E0, #FF9FB8); }
.work:nth-child(10) .work__thumb { background: linear-gradient(135deg, #E0F0FF, #B3D9FF); }
.work:nth-child(11) .work__thumb { background: linear-gradient(135deg, #FFF0D6, #FFE0A3); }
.work:nth-child(12) .work__thumb { background: linear-gradient(135deg, #E3FBE7, #B6F0C2); }

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner { padding: clamp(56px, 8vw, 96px) 0; }
.cta-banner__inner {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(44px, 7vw, 80px) 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  position: relative; overflow: hidden;
}
.cta-banner__inner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 50% 0%, rgba(255,90,60,.35), transparent 60%);
}
.cta-banner__title { position: relative; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 5.5vw, 58px); line-height: 1.06; max-width: 760px; }
.cta-banner__title .accent { color: var(--accent); font-style: italic; }

/* =========================================================
   Creators
   ========================================================= */
.creator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.creator {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.creator:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.creator blockquote { font-size: 16px; line-height: 1.55; color: var(--ink); letter-spacing: -.005em; }
.creator figcaption { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 17px;
  background: linear-gradient(135deg, var(--accent), #FF8A5C);
}
.creator figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.creator figcaption strong { font-size: 15.5px; font-weight: 600; }
.creator figcaption em { font-style: normal; font-size: 13px; color: var(--muted); }
.creator:nth-child(2) .avatar { background: linear-gradient(135deg, #7C8CFF, #B8C0FF); }
.creator:nth-child(3) .avatar { background: linear-gradient(135deg, #2BB673, #7BE0A8); }
.creator:nth-child(4) .avatar { background: linear-gradient(135deg, #111, #555); }
.creator:nth-child(5) .avatar { background: linear-gradient(135deg, #FFB800, #FFD75E); }
.creator:nth-child(6) .avatar { background: linear-gradient(135deg, #C44CE0, #E89BFF); }
.creator:nth-child(7) .avatar { background: linear-gradient(135deg, #1FA8C4, #7FD9EC); }

/* =========================================================
   Numbers
   ========================================================= */
.numbers { background: var(--bg-alt); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.stat__num { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 1; color: var(--ink); letter-spacing: -.01em; }
.stat__label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; color: var(--accent); margin: 12px 0 8px; }
.stat__desc { font-size: 14px; color: var(--ink-soft); }

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta { text-align: center; }
.final-cta__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final-cta__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 9vw, 104px); line-height: 1; }
.final-cta__title em { font-style: italic; color: var(--accent); }
.final-cta__sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--ink-soft); margin-bottom: 8px; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--ink); color: #E9E4DC; padding: 64px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand__name { color: #fff; }
.footer .brand__mark { color: var(--accent); }
.footer__tag { margin-top: 16px; color: #B7AFA4; font-size: 15px; max-width: 320px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: #8C8478; margin-bottom: 16px; }
.footer__col a { display: block; color: #D6CFC4; font-size: 15px; padding: 6px 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; color: #8C8478; font-size: 14px; flex-wrap: wrap; gap: 10px; }
.footer__legal a { margin-left: 18px; color: #8C8478; }
.footer__legal a:hover { color: #fff; }

/* =========================================================
   Reveal animation
   ========================================================= */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .feature-grid, .gallery__grid, .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .studio__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__mobile { display: flex; }
  .feature-grid, .gallery__grid, .creator-grid, .stat-grid { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 48px; }
}
@media (max-width: 460px) {
  .footer__cols { grid-template-columns: 1fr; }
  .mock__cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Nav scrollspy active
   ========================================================= */
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { width: 100%; }

/* =========================================================
   Auth modal
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(22,17,13,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .3s var(--ease); }
.modal__card {
  position: relative; z-index: 1; max-width: 420px; width: calc(100% - 40px);
  margin: 11vh auto 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 32px 30px; box-shadow: var(--shadow-lg);
  animation: pop .35s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 12px; right: 14px; font-size: 24px; line-height: 1; color: var(--muted); padding: 4px 9px; transition: color .2s; }
.modal__close:hover { color: var(--ink); }
.modal__brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.modal__brand .brand__mark { color: var(--accent); display: inline-flex; }
.modal__brand .brand__name { font-size: 19px; font-weight: 600; }
.modal__title { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.04; }
.modal__sub { color: var(--ink-soft); font-size: 15px; margin: 8px 0 22px; }
.modal__field { display: block; margin-bottom: 14px; }
.modal__field span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.modal__field input {
  width: 100%; padding: 13px 15px; font-size: 15px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.modal__field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.modal__hint { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 16px; }
.modal__hint a { color: var(--ink-soft); text-decoration: underline; }
.modal__switch { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 14px; }
.modal__switch a { color: var(--accent); font-weight: 600; }
.modal__ok { text-align: center; padding: 14px 0 6px; animation: pop .35s var(--ease); }
.modal__ok-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 22px; margin: 0 auto 12px; }
.modal__ok p { color: var(--ink-soft); font-size: 15px; }
body.modal-open { overflow: hidden; }

/* =========================================================
   Back to top
   ========================================================= */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 20px; box-shadow: var(--shadow-md);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s;
}
html.js .to-top { opacity: 0; transform: translateY(12px); pointer-events: none; }
html.js .to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }

/* =========================================================
   Hero typewriter
   ========================================================= */
.typing__text { color: var(--ink-soft); }

/* =========================================================
   Gallery filters
   ========================================================= */
.gallery__filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 38px; max-width: 760px; }
.work-filter {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 9px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: var(--surface);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.work-filter:hover { border-color: var(--ink); color: var(--ink); }
.work-filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.work.is-hidden { display: none; }

/* work hover overlay */
.work__overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; gap: 5px;
  background: linear-gradient(to top, rgba(22,17,13,.72), rgba(22,17,13,0) 62%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.work:hover .work__overlay { opacity: 1; }
.work__overlay .ov-title { color: #fff; font-weight: 600; font-size: 16px; line-height: 1.25; transform: translateY(8px); transition: transform .3s var(--ease); }
.work__overlay .ov-view { color: rgba(255,255,255,.85); font-size: 13px; transform: translateY(8px); transition: transform .3s var(--ease) .04s; }
.work:hover .work__overlay .ov-title,
.work:hover .work__overlay .ov-view { transform: none; }

/* =========================================================
   Feature number
   ========================================================= */
.feature-grid { counter-reset: feat; }
.feature { position: relative; counter-increment: feat; }
.feature::before {
  content: counter(feat, decimal-leading-zero);
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-display); font-size: 46px; line-height: 1;
  color: rgba(22,17,13,.06); pointer-events: none;
}

/* =========================================================
   Studio points
   ========================================================= */
.studio__points { list-style: none; margin: 22px 0 28px; display: grid; gap: 13px; }
.studio__points li { position: relative; padding-left: 32px; color: var(--ink-soft); font-size: 15.5px; }
.studio__points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--accent-soft) center / 13px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8431F' stroke-width='3'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E");
}

/* =========================================================
   Footer newsletter + social
   ========================================================= */
.footer__news {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 30px 0 34px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 38px;
}
.footer__news-copy h4 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: #fff; line-height: 1.1; }
.footer__news-copy p { color: #B7AFA4; font-size: 14px; margin-top: 6px; }
.news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.news-form input {
  width: min(280px, 62vw); padding: 13px 16px; font-size: 14px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff;
  transition: border-color .2s;
}
.news-form input::placeholder { color: #8C8478; }
.news-form input:focus { outline: none; border-color: var(--accent); }
.footer__social { display: flex; gap: 12px; margin-top: 4px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #D6CFC4; transition: background-color .2s var(--ease), color .2s, transform .2s var(--ease);
}
.footer__social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* =========================================================
   Announcement bar
   ========================================================= */
.announce {
  background: var(--ink); color: #E9E4DC;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 10px 44px 10px 16px; position: relative; text-align: center;
}
.announce__link { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.announce__tag {
  background: var(--accent); color: #fff; font-weight: 600; font-size: 11px;
  letter-spacing: .04em; padding: 3px 9px; border-radius: var(--radius-pill); text-transform: uppercase;
}
.announce__more { color: var(--accent); font-weight: 600; }
.announce__close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: #B7AFA4; font-size: 22px; line-height: 1; padding: 4px 8px; transition: color .2s;
}
.announce__close:hover { color: #fff; }
.announce.is-hidden { display: none; }

/* =========================================================
   Hero mockup — chat bubbles
   ========================================================= */
.mock__main { gap: 12px; }
.bubble { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.bubble--user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.bubble--ai { align-self: flex-start; background: #F4F1EA; color: var(--ink); border-bottom-left-radius: 5px; display: flex; gap: 10px; max-width: 94%; }
.bubble__avatar {
  width: 28px; height: 28px; border-radius: 9px; background: var(--accent); color: #fff;
  display: grid; place-items: center; flex: none; align-self: flex-start;
}
.bubble__body { min-width: 0; }
.bubble__body p { margin-bottom: 10px; }
.bubble__body .mock__cards { margin: 0; }
.caret {
  display: inline-block; width: 2px; height: 1.05em; background: var(--accent);
  margin-left: 2px; vertical-align: -2px; animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.typing { color: var(--ink-soft); }

/* =========================================================
   Work type icon (injected by JS)
   ========================================================= */
.work__icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  color: rgba(22,17,13,.30); transition: transform .3s var(--ease), color .3s var(--ease);
  pointer-events: none;
}
.work:hover .work__icon { transform: translate(-50%,-50%) scale(1.1); color: rgba(22,17,13,.5); }
.work__thumb { overflow: hidden; }
.work__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 80% 0%, rgba(255,255,255,.35), transparent 45%);
  opacity: .8; pointer-events: none;
}

/* =========================================================
   PROMPT LIBRARY / AI 提示词资料库
   ========================================================= */
.prompts { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.prompts .section__lead { max-width: 620px; margin-top: 14px; color: var(--ink-soft); font-size: 17px; }

.prompts__toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; margin: 34px 0 30px;
}
.prompt-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-filter {
  font-weight: 600; font-size: 14px; color: var(--ink-soft);
  padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-variant-emoji: text;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.prompt-filter:hover { border-color: var(--ink); transform: translateY(-1px); }
.prompt-filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.prompt-search {
  position: relative; display: flex; align-items: center; flex: 1 1 280px; max-width: 420px;
}
.prompt-search__icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.prompt-search input {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 16px 12px 44px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.prompt-search input::placeholder { color: var(--muted); }
.prompt-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.prompt-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.prompt {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.prompt:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(22,17,13,.16); }
.prompt.is-hidden { display: none; }
.prompt__top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.prompt__icon {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent-deep);
  font-size: 16px; font-weight: 600;
  font-variant-emoji: text;
}
.prompt__cat { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.prompt__title { font-family: var(--font-display); font-weight: 400; font-size: 25px; line-height: 1.15; margin-bottom: 8px; }
.prompt__desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.prompt__copy {
  align-self: flex-start; margin-top: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 13.5px; color: var(--ink);
  padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--bg);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.prompt__copy::before { content: "⧉"; font-size: 15px; line-height: 1; }
.prompt__copy:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.prompt__copy.is-copied { background: var(--accent); color: #fff; border-color: var(--accent); }
.prompt__copy.is-copied::before { content: "✓"; }

.prompt__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.prompt__foot .prompt__copy { margin-top: 0; align-self: auto; }
.prompt__meta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prompt__level {
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.prompt__level--easy { background: rgba(31,138,76,.12); color: #1f8a4c; }
.prompt__level--medium { background: rgba(185,113,10,.14); color: #b0710a; }
.prompt__level--hard { background: var(--accent-soft); color: var(--accent-deep); }
.prompt__time { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }

.prompt-empty { text-align: center; color: var(--muted); font-size: 16px; padding: 40px 0 10px; }

.prompts__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; }
.prompts__cta-note { font-size: 14.5px; color: var(--ink-soft); max-width: 360px; }

/* Responsive */
@media (max-width: 980px) {
  .prompt-grid { grid-template-columns: repeat(2, 1fr); }
  .prompts__toolbar { flex-direction: column; align-items: stretch; }
  .prompt-search { max-width: none; }
}
@media (max-width: 600px) {
  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .prompt-filters::-webkit-scrollbar { display: none; }
}

/* result count + favorites */
.prompts__result { font-size: 13.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin: 0 0 16px; }
.prompts__result b { color: var(--ink); }

.prompts__stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 2px; }
.pstat {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface);
}
.pstat b { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink); }
.pstat span { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pstat--fav { background: var(--accent-soft); border-color: transparent; }
.pstat--fav b { color: var(--accent-deep); }

.prompt__fav {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  color: var(--muted); font-size: 15px; line-height: 1;
  transition: transform .18s var(--ease), color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.prompt__fav:hover { transform: scale(1.08); color: var(--accent); border-color: var(--accent); }
.prompt__fav.is-fav { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.prompt__fav.is-fav::before { content: "♥"; }
.prompt__fav:not(.is-fav)::before { content: "♡"; }
.prompt { position: relative; }
.prompt__title { padding-right: 44px; }

.prompt-empty__reset {
  display: inline-block; margin-left: 10px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}
.prompt-empty__reset:hover { color: var(--accent-deep); }

/* =========================================================
   TOAST
   ========================================================= */
.toast-wrap {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 1200;
  pointer-events: none;
}
.toast {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  padding: 12px 18px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px) scale(.96);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: auto;
}
.toast.is-show { opacity: 1; transform: translateY(0) scale(1); }
.toast__check {
  display: grid; place-items: center; width: 20px; height: 20px; flex: none;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px;
}

/* subbar: difficulty filter + saved-only */
.prompts__subbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin: -12px 0 28px;
}
.prompt-levels { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prompt-levels__label {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin-right: 2px;
}
.prompt-level {
  font-weight: 600; font-size: 13px; color: var(--ink-soft);
  padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.prompt-level:hover { border-color: var(--ink); }
.prompt-level.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.prompt-favonly {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 13px; color: var(--ink-soft);
  padding: 8px 15px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.prompt-favonly::before { content: "\2661"; font-size: 14px; line-height: 1; }
.prompt-favonly:hover { border-color: var(--accent); color: var(--accent); }
.prompt-favonly.is-active { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--accent); }
.prompt-favonly.is-active::before { content: "\2665"; }

/* card is clickable to open detail modal */
.prompt { cursor: pointer; }
.prompt__actions { display: inline-flex; align-items: center; gap: 8px; }
.prompt__expand {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 13.5px; color: var(--ink-soft);
  padding: 9px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--bg);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.prompt__expand::after { content: "\2197"; font-size: 14px; line-height: 1; }
.prompt__expand:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* card keyboard focus */
.prompt:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.prompt__hl { background: var(--accent-soft); color: var(--accent-deep); border-radius: 4px; padding: 0 2px; font-weight: 600; }

/* modal prev/next navigation */
.pmodal__head-r { display: inline-flex; align-items: center; gap: 8px; }
.pmodal__nav { display: inline-flex; gap: 4px; }
.pmodal__navbtn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft);
  font-size: 18px; line-height: 1; display: grid; place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .18s var(--ease);
}
.pmodal__navbtn:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.pmodal__navbtn:active { transform: scale(.92); }
.pmodal__navbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pmodal__count { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: -6px 0 14px; letter-spacing: .04em; }

/* prompt detail modal */
.modal__card.pmodal { max-width: 600px; padding: 30px 30px 26px; }
.pmodal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pmodal__head-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pmodal__fav {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  display: grid; place-items: center; font-size: 17px; line-height: 1;
  transition: transform .18s var(--ease), color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.pmodal__fav:hover { transform: scale(1.06); color: var(--accent); border-color: var(--accent); }
.pmodal__fav.is-fav { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.pmodal__fav.is-fav::before { content: "\2665"; }
.pmodal__fav:not(.is-fav)::before { content: "\2661"; }
.pmodal__cat { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pmodal__level { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); }
.pmodal__level--easy { background: rgba(31,138,76,.12); color: #1f8a4c; }
.pmodal__level--medium { background: rgba(185,113,10,.14); color: #b0710a; }
.pmodal__level--hard { background: var(--accent-soft); color: var(--accent-deep); }
.pmodal__time { font-size: 12.5px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 4px; }
.pmodal__title { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.05; margin-bottom: 10px; }
.pmodal__desc { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 20px; }
.pmodal__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pmodal__body {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 0 0 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.6; color: var(--ink);
  white-space: pre-wrap; word-break: break-word; max-height: 42vh; overflow: auto;
}
.pm-var {
  background: var(--accent-soft); color: var(--accent-deep);
  padding: 1px 5px; border-radius: 5px; font-weight: 600;
}
.pmodal__foot { display: flex; gap: 10px; }
.pmodal__foot .btn { flex: 1; }
@media (max-width: 520px) {
  .modal__card.pmodal { padding: 22px 18px 20px; }
  .pmodal__title { font-size: 26px; }
}
