:root {
  --bg: #fff7f8;
  --surface: rgba(255, 248, 252, 0.62);
  --surface-strong: rgba(255, 248, 252, 0.88);
  --line: rgba(52, 28, 42, 0.08);
  --text: #2a1824;
  --muted: #725b6a;
  --primary: #ff5fa2;
  --primary-strong: #e3478d;
  --accent: #ffc7dd;
  --accent-2: #cbb7ff;
  --shadow: 0 28px 72px rgba(122, 64, 101, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 182, 214, 0.42), transparent 26%),
    radial-gradient(circle at 90% 12%, rgba(203, 183, 255, 0.3), transparent 22%),
    radial-gradient(circle at 18% 78%, rgba(255, 214, 232, 0.32), transparent 20%),
    linear-gradient(180deg, #fffafc 0%, #fff0f6 52%, #fffdfc 100%);
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(26px);
  pointer-events: none;
}

.glow-one {
  top: 2rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 95, 162, 0.24);
}

.glow-two {
  right: -7rem;
  top: 20rem;
  width: 22rem;
  height: 22rem;
  background: rgba(122, 92, 255, 0.18);
}

.container {
  width: min(var(--container), calc(100% - 1.4rem));
  margin: 0 auto;
}

.shell {
  position: relative;
}

.site-header {
  padding: 0.8rem 0 2rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 248, 252, 0.56);
  backdrop-filter: blur(26px);
  box-shadow: 0 18px 38px rgba(110, 60, 96, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #ff5fa2, #9f7cff);
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(52, 28, 42, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 24px rgba(88, 48, 77, 0.06);
}

.lang-button {
  min-width: 3rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: all 180ms ease;
}

.lang-button.is-active,
.lang-button:hover {
  color: white;
  background: linear-gradient(135deg, var(--primary), #9f7cff);
  box-shadow: 0 10px 20px rgba(255, 95, 162, 0.2);
}

.topbar-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.4rem;
  align-items: center;
  padding: 4.2rem 0 2.4rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-strong);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-text,
.section-heading p,
.card-body p,
.pricing-note {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 38rem;
  margin: 1.3rem 0 0;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions {
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), #ff8a9f);
  box-shadow: 0 18px 36px rgba(255, 95, 162, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(35, 24, 21, 0.08);
  box-shadow: 0 14px 30px rgba(81, 45, 73, 0.08);
  backdrop-filter: blur(18px);
}

.button-small {
  min-height: 2.8rem;
  padding: 0.8rem 1rem;
  font-size: 0.94rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.hero-points span,
.template-category,
.card-badge,
.price-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-points span {
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(35, 24, 21, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
}

.hero-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.showcase-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.showcase-main {
  grid-column: 1 / -1;
  padding: 1.4rem;
  background:
    radial-gradient(circle at top left, rgba(255, 175, 204, 0.46), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 239, 248, 0.58));
}

.showcase-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.showcase-main h2 {
  margin-top: 0.4rem;
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
  max-width: 14ch;
}

.showcase-main p,
.showcase-label {
  color: var(--muted);
}

.showcase-stat {
  min-width: 8.5rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(52, 28, 42, 0.08);
  box-shadow: 0 12px 24px rgba(88, 48, 77, 0.08);
  backdrop-filter: blur(18px);
}

.showcase-stat strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.showcase-stat span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.showcase-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.showcase-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(52, 28, 42, 0.08);
  box-shadow: 0 12px 24px rgba(88, 48, 77, 0.06);
  backdrop-filter: blur(18px);
}

.showcase-step h3 {
  font-size: 0.94rem;
  line-height: 1.25;
}

.showcase-step p {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #9f7cff);
  color: white;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.showcase-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.showcase-mini {
  position: relative;
  min-height: 9.5rem;
  padding: 1rem;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.showcase-mini span {
  position: relative;
  z-index: 1;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.showcase-mini::before {
  content: "";
  position: absolute;
  inset: 0;
}

.showcase-mini.pink::before {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(160deg, #ffd4e5, #ff93bb);
}

.showcase-mini.dark {
  color: #f8e2b7;
}

.showcase-mini.dark::before {
  background:
    linear-gradient(160deg, rgba(255, 215, 156, 0.18), transparent 30%),
    linear-gradient(150deg, #171312, #2b211d 60%, #100d0c);
}

.showcase-mini.minimal::before {
  background:
    linear-gradient(90deg, rgba(201, 95, 69, 0.12) 0, rgba(201, 95, 69, 0.12) 2px, transparent 2px),
    linear-gradient(180deg, #ffffff, #f4efec);
}

main section {
  padding: 2.6rem 0;
}

.section-heading {
  max-width: 45rem;
}

.section-heading.narrow {
  max-width: 40rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.template-note {
  margin-top: 1.4rem;
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem 1.15rem 1.45rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 95, 162, 0.16);
  background:
    radial-gradient(circle at top left, rgba(255, 184, 218, 0.32), transparent 26%),
    linear-gradient(135deg, rgba(255, 246, 251, 0.84), rgba(255, 234, 244, 0.62));
  box-shadow:
    0 18px 34px rgba(255, 95, 162, 0.1),
    0 8px 20px rgba(88, 48, 77, 0.05);
  backdrop-filter: blur(20px);
}

.template-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), #9f7cff);
}

.template-note::after {
  content: "!";
  position: absolute;
  right: 1rem;
  top: 0.9rem;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: white;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #9f7cff);
  box-shadow: 0 10px 20px rgba(255, 95, 162, 0.22);
}

.template-note strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.02rem;
  color: var(--primary-strong);
  letter-spacing: 0.01em;
}

.template-note p {
  max-width: calc(100% - 2.8rem);
  margin: 0.45rem 0 0;
  color: var(--text);
  line-height: 1.72;
}

.categories-overview {
  margin-top: 1.3rem;
}

.categories-heading h3 {
  margin-top: 0.3rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.category-card {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(52, 28, 42, 0.08);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 14px 28px rgba(88, 48, 77, 0.06);
  backdrop-filter: blur(18px);
}

.category-card h4 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
}

.category-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.filter-button {
  padding: 0.85rem 1.05rem;
  border: 1px solid rgba(35, 24, 21, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: all 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), #9f7cff);
  box-shadow: 0 16px 30px rgba(255, 95, 162, 0.22);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.template-card,
.price-card {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(26px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.template-card.is-hidden {
  display: none;
}

.card-visual {
  position: relative;
  min-height: 13rem;
  padding: 1rem;
  overflow: hidden;
}

.card-badge {
  position: relative;
  z-index: 1;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 22px rgba(66, 36, 58, 0.08);
  backdrop-filter: blur(16px);
}

.card-body {
  padding: 1.2rem;
}

.template-category {
  color: var(--primary-strong);
}

.card-body h3 {
  margin-top: 0.45rem;
  font-size: 1.45rem;
}

.shape {
  position: absolute;
  inset: auto 0 0;
  height: 100%;
}

.template-love-pink .card-visual {
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.75), transparent 18%),
    linear-gradient(160deg, #ffe2ef, #ff9cc0);
}

.template-love-dark .card-visual {
  background: linear-gradient(150deg, #191414, #2d231f 60%, #100c0b);
  color: #f2d5a3;
}

.template-love-minimal .card-visual {
  background:
    linear-gradient(0deg, rgba(255, 95, 162, 0.08), rgba(255, 95, 162, 0.08)),
    linear-gradient(180deg, #fff, #fff2f7);
}

.template-birthday-confetti .card-visual {
  background: linear-gradient(135deg, #ffda62, #ff7d7d 48%, #6b6cff);
}

.template-birthday-cute .card-visual {
  background: linear-gradient(135deg, #e7d7ff, #ffe5b7 55%, #bff1ff);
}

.template-funny .card-visual {
  background: linear-gradient(135deg, #fff06a, #ff9a55 45%, #ff559f);
}

.template-apology .card-visual {
  background: linear-gradient(150deg, #fff1f6, #e7dcff);
}

.template-surprise .card-visual {
  background: linear-gradient(160deg, #171822, #2b2050 55%, #07070d);
  color: white;
}

.template-runaway-love .card-visual {
  background: linear-gradient(135deg, #ffd9ee, #ff9ac7 58%, #fff1f7);
}

.template-runaway-date .card-visual {
  background: linear-gradient(135deg, #ffe0f1, #ffc46b 55%, #fff8ef);
}

.template-love-meter .card-visual {
  background: linear-gradient(135deg, #ffe3f2, #d9cbff 52%, #fff7fc);
}

.template-meme-no .card-visual {
  background: linear-gradient(135deg, #ffd66d, #ff8b63 48%, #ff5aa0);
}

.hearts::before,
.hearts::after {
  content: "";
  position: absolute;
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(45deg);
  border-radius: 0.7rem;
}

.hearts::before {
  right: 2rem;
  bottom: 2rem;
}

.hearts::after {
  left: 2rem;
  bottom: 3.8rem;
}

.gold-lines::before,
.gold-lines::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(242, 213, 163, 0.48);
  border-radius: 999px;
}

.gold-lines::before {
  inset: 2rem 1.5rem 3rem;
}

.gold-lines::after {
  inset: 4.5rem 4rem 1.5rem 1.5rem;
}

.minimal-bars::before,
.minimal-bars::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  height: 2px;
  background: rgba(201, 95, 69, 0.48);
}

.minimal-bars::before {
  top: 3.4rem;
}

.minimal-bars::after {
  top: 6.4rem;
}

.confetti::before,
.confetti::after,
.bubbles::before,
.bubbles::after,
.zigzag::before,
.zigzag::after,
.soft-rings::before,
.soft-rings::after,
.spotlight::before,
.spotlight::after {
  content: "";
  position: absolute;
}

.confetti::before {
  inset: 1.4rem auto auto 1.2rem;
  width: 6rem;
  height: 6rem;
  background:
    radial-gradient(circle, #fff 0 0.28rem, transparent 0.3rem),
    radial-gradient(circle, #fff 0 0.28rem, transparent 0.3rem);
  background-size: 1.2rem 1.2rem;
  opacity: 0.7;
}

.confetti::after {
  right: 2rem;
  bottom: 2rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.bubbles::before,
.bubbles::after {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.46);
}

.bubbles::before {
  width: 4rem;
  height: 4rem;
  right: 1.6rem;
  top: 1.7rem;
}

.bubbles::after {
  width: 6rem;
  height: 6rem;
  left: 1.3rem;
  bottom: 1rem;
}

.zigzag::before {
  inset: 2rem 1.2rem auto;
  height: 18px;
  background:
    linear-gradient(-45deg, transparent 10px, rgba(255, 255, 255, 0.7) 0) 0 0 / 18px 18px,
    linear-gradient(45deg, transparent 10px, rgba(255, 255, 255, 0.7) 0) 9px 0 / 18px 18px;
}

.zigzag::after {
  width: 5.2rem;
  height: 5.2rem;
  right: 1.4rem;
  bottom: 1.3rem;
  border-radius: 1.4rem;
  transform: rotate(12deg);
  border: 3px solid rgba(255, 255, 255, 0.7);
}

.soft-rings::before,
.soft-rings::after {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.soft-rings::before {
  width: 8rem;
  height: 8rem;
  right: 1rem;
  bottom: 1rem;
}

.soft-rings::after {
  width: 4.5rem;
  height: 4.5rem;
  left: 1.4rem;
  top: 2rem;
}

.spotlight::before {
  inset: 0;
  background: radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.3), transparent 28%);
}

.spotlight::after {
  left: 50%;
  top: 2rem;
  width: 7rem;
  height: 7rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.runaway-dots::before,
.runaway-dots::after,
.runaway-path::before,
.runaway-path::after {
  content: "";
  position: absolute;
}

.runaway-dots::before {
  inset: 2rem auto auto 1.5rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.65);
}

.runaway-dots::after {
  right: 1.8rem;
  bottom: 1.6rem;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(12deg);
}

.runaway-path::before {
  left: 1rem;
  right: 1rem;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.82) 0 10px,
    transparent 10px 18px
  );
}

.runaway-path::after {
  width: 5rem;
  height: 5rem;
  right: 1.5rem;
  top: 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.meme-wave::before,
.meme-wave::after {
  content: "";
  position: absolute;
}

.meme-wave::before {
  left: 1rem;
  right: 1rem;
  bottom: 1.8rem;
  height: 1rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.85) 0 8px, transparent 9px),
    radial-gradient(circle at 32% 50%, rgba(255, 255, 255, 0.65) 0 8px, transparent 9px),
    radial-gradient(circle at 54% 50%, rgba(255, 255, 255, 0.85) 0 8px, transparent 9px),
    radial-gradient(circle at 76% 50%, rgba(255, 255, 255, 0.65) 0 8px, transparent 9px);
}

.meme-wave::after {
  width: 5.2rem;
  height: 5.2rem;
  right: 1.6rem;
  top: 1.4rem;
  border-radius: 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.72);
  transform: rotate(-8deg);
}

.meter-arcs::before,
.meter-arcs::after {
  content: "";
  position: absolute;
  border-radius: 999px 999px 0 0;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-bottom: 0;
}

.meter-arcs::before {
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  height: 5rem;
}

.meter-arcs::after {
  left: 3.4rem;
  right: 3.4rem;
  bottom: 1.4rem;
  height: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.price-card {
  padding: 1.2rem;
}

.price-card.featured {
  background:
    radial-gradient(circle at top left, rgba(255, 196, 224, 0.52), transparent 24%),
    rgba(255, 246, 251, 0.72);
}

.price-label {
  color: var(--primary-strong);
}

.price-card h3 {
  margin-top: 0.4rem;
  font-size: 1.35rem;
}

.price-value {
  margin-top: 0.9rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pricing-note {
  margin: 1.1rem 0 0;
}

.order-shell {
  display: grid;
  gap: 1rem;
}

.order-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.order-checklist li {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(35, 24, 21, 0.08);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: 0 16px 30px rgba(95, 54, 84, 0.06);
  backdrop-filter: blur(20px);
}

.order-cta {
  justify-self: start;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.preview-modal.is-open {
  display: block;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 14, 0.52);
  backdrop-filter: blur(18px);
}

.preview-frame-shell {
  position: absolute;
  inset: 3.25rem 6.5rem;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  background: rgba(34, 20, 31, 0.62);
  backdrop-filter: blur(22px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.15rem 0;
}

.preview-toolbar-title {
  margin: 0;
  color: rgba(255, 249, 242, 0.84);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.preview-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.preview-watermark {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-18deg);
  padding: 0;
  background: transparent;
  border: 0;
  color: rgba(255, 247, 250, 0.28);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(34, 20, 31, 0.16),
    0 0 12px rgba(255, 255, 255, 0.12);
  pointer-events: none !important;
  user-select: none;
  -webkit-user-select: none;
}

.preview-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 22px;
  background: white;
}

@media (max-width: 1100px) {
  .hero,
  .templates-grid,
  .pricing-grid,
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .topbar,
  .hero,
  .hero-showcase,
  .templates-grid,
  .pricing-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 26px;
  }

  .topbar,
  .topbar-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-switch {
    align-self: stretch;
    justify-content: space-between;
  }

  .hero {
    padding-top: 2.5rem;
  }

  h1 {
    max-width: 8.8ch;
  }

  .showcase-main {
    grid-column: auto;
  }

  .showcase-main-head {
    flex-direction: column;
  }

  .preview-frame-shell {
    inset: 1rem;
    border-radius: 22px;
  }

  .preview-watermark {
    font-size: clamp(2rem, 12vw, 4rem);
  }

  .preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
