:root {
  --deep: #250837;
  --deep-2: #391054;
  --purple: #7434c6;
  --purple-2: #a15be9;
  --lilac: #dec4ff;
  --lavender: #f5eeff;
  --cream: #fffdf9;
  --ink: #25142f;
  --muted: #74677b;
  --line: rgba(65, 22, 93, .1);
  --gold: #edc978;
  --shadow: 0 24px 70px rgba(46, 11, 67, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(18px, calc((100% - 1160px) / 2));
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: white;
  background: rgba(37, 8, 55, .93);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--deep);
  background: linear-gradient(145deg, #f6dda0, #dba945);
  font: 800 18px/1 "Manrope";
  box-shadow: inset 0 1px rgba(255,255,255,.5);
}
.guide-button, .secondary-button, .favorites-filter {
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.guide-button { padding: 10px 16px; }
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  color: white;
  background:
    radial-gradient(circle at 85% 20%, rgba(151,78,220,.34), transparent 28%),
    linear-gradient(135deg, #1d052a, #320948 55%, #4b126d);
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 80px; padding: 80px 0; }
.eyebrow { display: block; margin-bottom: 13px; color: var(--purple); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero .eyebrow, .more-card .eyebrow { color: var(--gold); }
h1, h2, h3 { font-family: "Manrope", sans-serif; }
h1 { margin: 0; font-size: clamp(45px, 5.5vw, 72px); line-height: .98; letter-spacing: -.055em; }
h1 em { color: var(--lilac); font-style: normal; }
.hero-content > div:first-child > p { max-width: 610px; margin: 26px 0 31px; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.primary-button, .secondary-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 23px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.primary-button { color: white; background: linear-gradient(135deg, #7e35d2, #a356e7); box-shadow: 0 15px 35px rgba(102,31,166,.34); }
.secondary-button { padding: 0 21px; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.07); }
.hero-demo { position: relative; height: 420px; }
.demo-card { position: absolute; width: 285px; height: 390px; border-radius: 27px; overflow: hidden; }
.demo-back { right: 20px; top: 20px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.07); transform: rotate(8deg); }
.demo-main { right: 75px; top: 0; background: white; box-shadow: 0 35px 80px rgba(8,0,12,.4); transform: rotate(-3deg); }
.demo-main img { width: 100%; height: 315px; object-fit: cover; object-position: center 25%; }
.demo-main div { padding: 14px 18px; color: var(--ink); }
.demo-main span, .demo-main strong { display: block; }
.demo-main span { color: var(--purple); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.demo-main strong { margin-top: 4px; font-size: 15px; }
.copy-bubble { position: absolute; right: 3px; bottom: 39px; z-index: 3; padding: 12px 16px; border-radius: 999px; color: var(--deep); background: white; box-shadow: var(--shadow); font-size: 12px; font-weight: 800; }
.hero-orb { position: absolute; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.orb-one { width: 550px; height: 550px; right: -210px; top: -220px; }
.orb-two { width: 370px; height: 370px; left: -250px; bottom: -240px; }
.quick-guide { border-bottom: 1px solid var(--line); background: white; }
.quick-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.quick-grid article { display: flex; gap: 15px; padding: 29px 30px; border-right: 1px solid var(--line); }
.quick-grid article:last-child { border-right: 0; }
.quick-grid article > span, .modal-body li > span {
  flex: 0 0 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--purple);
  background: var(--lavender);
  font-size: 12px;
  font-weight: 800;
}
.quick-grid strong { font-size: 13px; }
.quick-grid p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.library { padding: 90px 0 105px; background: linear-gradient(180deg, #fffdf9, #faf6ff); }
.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.library-heading h2, .more-card h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -.04em; }
.library-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.library-heading > p strong { color: var(--purple); }
.tools { display: grid; grid-template-columns: 1fr auto; gap: 11px; margin-bottom: 14px; }
.search { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 9px 30px rgba(43,11,69,.04); }
.search span { color: var(--purple); font-size: 22px; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search input::placeholder { color: #9c919f; }
.favorites-filter { min-width: 112px; color: var(--purple); border-color: rgba(110,43,196,.14); background: white; }
.favorites-filter.active { color: white; background: var(--purple); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 5px 0 23px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: 0 0 auto; padding: 9px 14px; cursor: pointer; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); font-size: 11px; font-weight: 700; }
.filters button.active { color: white; border-color: var(--purple); background: var(--purple); }
.prompt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prompt-card { position: relative; border: 1px solid var(--line); border-radius: 23px; background: white; box-shadow: 0 14px 40px rgba(43,11,69,.065); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.prompt-card:hover { transform: translateY(-5px); box-shadow: 0 24px 55px rgba(43,11,69,.11); }
.card-image { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #e8d9f3; }
.card-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .45s ease; }
.prompt-card:hover .card-image img { transform: scale(1.025); }
.category-tag { position: absolute; left: 14px; top: 14px; padding: 7px 10px; border-radius: 999px; color: var(--deep); background: rgba(255,255,255,.9); backdrop-filter: blur(7px); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.favorite-button { position: absolute; right: 13px; top: 13px; width: 35px; height: 35px; display: grid; place-items: center; cursor: pointer; border: 0; border-radius: 50%; color: var(--deep); background: rgba(255,255,255,.9); font-size: 19px; }
.favorite-button.active { color: #a32169; }
.card-body { padding: 20px; }
.card-body h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.card-body > p { min-height: 40px; margin: 7px 0 17px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.copy-button, .preview-button { min-height: 46px; cursor: pointer; border-radius: 12px; font-size: 11px; font-weight: 800; }
.copy-button { color: white; border: 0; background: linear-gradient(135deg, #6723b1, #9348df); }
.copy-button.copied { background: #258b65; }
.preview-button { width: 46px; color: var(--purple); border: 1px solid rgba(110,43,196,.14); background: var(--lavender); font-size: 17px; }
.prompt-preview { display: none; margin-top: 13px; padding: 13px; max-height: 130px; overflow: auto; border-radius: 11px; color: #65566b; background: #faf7fc; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.prompt-preview.open { display: block; }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-state span { font-size: 40px; color: var(--lilac); }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); }
.more-section { padding: 0 0 90px; background: #faf6ff; }
.more-card { display: flex; justify-content: space-between; align-items: center; gap: 50px; padding: 55px; color: white; border-radius: 28px; background: radial-gradient(circle at 90% 0, rgba(158,80,224,.35), transparent 30%), var(--deep); box-shadow: var(--shadow); }
.more-card h2 { max-width: 600px; font-size: 35px; }
.more-card p { max-width: 680px; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.65; }
.more-card > a { flex: 0 0 auto; display: inline-flex; gap: 15px; padding: 13px 17px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 11px; font-weight: 800; }
footer { padding: 30px 0; color: rgba(255,255,255,.54); background: #16041f; font-size: 11px; }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
footer .brand { color: white; }
.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; color: white; background: #23102c; box-shadow: 0 20px 60px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transform: translateY(20px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: #258b65; }
.toast strong, .toast small { display: block; }
.toast strong { font-size: 12px; }
.toast small { margin-top: 2px; color: rgba(255,255,255,.55); font-size: 9px; }
.guide-modal { width: min(590px, calc(100% - 24px)); max-height: min(760px, calc(100vh - 30px)); padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: white; box-shadow: 0 40px 100px rgba(20,0,30,.4); }
.guide-modal::backdrop { background: rgba(23,4,32,.72); backdrop-filter: blur(5px); }
.modal-head { display: flex; align-items: start; justify-content: space-between; padding: 28px 30px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.modal-head button { width: 37px; height: 37px; cursor: pointer; border: 0; border-radius: 50%; color: var(--muted); background: var(--lavender); font-size: 23px; }
.modal-body { padding: 23px 30px 30px; overflow-y: auto; }
.modal-body ol { margin: 0; padding: 0; list-style: none; }
.modal-body li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.modal-body li strong { font-size: 13px; }
.modal-body li p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.tip { margin: 20px 0; padding: 15px; border-radius: 13px; color: #594565; background: var(--lavender); font-size: 11px; line-height: 1.55; }
.gemini-link { width: 100%; }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 45px; text-align: center; }
  .hero-content > div:first-child > p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-demo { width: min(410px, 100%); height: 390px; margin: auto; }
  .demo-main { right: 50%; transform: translateX(50%) rotate(-2deg); }
  .demo-back { right: 50%; transform: translateX(63%) rotate(8deg); }
  .copy-bubble { right: 4%; }
  .prompt-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1160px); }
  .topbar { height: 64px; padding: 0 13px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .guide-button { padding: 9px 13px; font-size: 10px; }
  .hero { min-height: auto; }
  .hero-content { padding: 58px 0 68px; gap: 38px; }
  h1 { font-size: 43px; }
  .hero-content > div:first-child > p { font-size: 15px; }
  .hero-actions { display: grid; }
  .primary-button, .secondary-button { width: 100%; }
  .hero-demo { height: 355px; }
  .demo-card { width: 235px; height: 330px; }
  .demo-main img { height: 263px; }
  .copy-bubble { right: 0; bottom: 26px; }
  .quick-grid { grid-template-columns: 1fr; padding: 8px 0; }
  .quick-grid article { padding: 18px 5px; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-grid article:last-child { border-bottom: 0; }
  .library { padding: 67px 0 80px; }
  .library-heading { align-items: start; flex-direction: column; gap: 8px; }
  .library-heading h2 { font-size: 37px; }
  .tools { grid-template-columns: 1fr; }
  .favorites-filter { min-height: 45px; }
  .prompt-grid { grid-template-columns: 1fr; gap: 17px; }
  .prompt-card { display: grid; grid-template-columns: 43% 57%; border-radius: 18px; }
  .card-image { aspect-ratio: auto; min-height: 260px; }
  .category-tag { left: 9px; top: 9px; font-size: 7px; }
  .favorite-button { right: 8px; top: 8px; width: 31px; height: 31px; }
  .card-body { display: flex; flex-direction: column; padding: 17px 14px; }
  .card-body h3 { font-size: 15px; }
  .card-body > p { min-height: 0; margin-bottom: auto; font-size: 10px; }
  .card-actions { grid-template-columns: 1fr; margin-top: 14px; }
  .preview-button { display: none; }
  .copy-button { min-height: 44px; font-size: 9px; }
  .more-section { padding-bottom: 65px; }
  .more-card { align-items: start; flex-direction: column; padding: 35px 25px; }
  .more-card h2 { font-size: 29px; }
  footer .container { flex-direction: column; text-align: center; }
  .toast { left: 12px; right: 12px; bottom: 12px; }
  .modal-head, .modal-body { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
