:root {
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --type-body: 1rem;
  --type-hero-title: 4.45rem;
  --type-hero-copy: 1.1rem;
  --type-section-title: 3.1rem;
  --type-section-copy: 1rem;
  --type-story-title: clamp(2rem, 3.4vw, 3.45rem);
  --type-story-copy: clamp(1rem, 1.25vw, 1.12rem);
  --type-card-title: 1.08rem;
  --type-card-copy: 0.9rem;
  --type-tool-title: 1.14rem;
  --type-tool-copy: 0.82rem;
  --type-gallery-title: 0.98rem;
  --type-gallery-meta: 0.7rem;
  --type-faq-question: 1rem;
  --type-footer-heading: 0.86rem;
  --type-footer-link: 0.8rem;
  --type-footer-meta: 0.74rem;
  --ink: #17151d;
  --ink-soft: #5d5968;
  --line: #e8e5ec;
  --surface: #ffffff;
  --surface-soft: #f7f6f9;
  --pink: #f24ba6;
  --pink-dark: #d72a87;
  --purple: #8d4ff4;
  --blue: #42a5f5;
  --cyan: #4fd4df;
  --coral: #ff796b;
  --lime: #b9e74c;
  --deep: #19172b;
  --brand-gradient: linear-gradient(105deg, var(--pink-dark), var(--purple) 56%, var(--blue));
  --brand-text-gradient: linear-gradient(105deg, #e052a2, #a26de8 56%, #4f9fdc);
  --button-height: 44px;
  --button-radius: 8px;
  --button-padding: 19px;
  --button-primary-border: #b82172;
  --button-border: #d8d3de;
  --button-border-hover: #d72a87;
  --button-surface: #ffffff;
  --button-surface-muted: #f4f1f6;
  --button-surface-hover: #fff2f8;
  --button-focus: #7547d8;
  --button-shadow: none;
  --button-shadow-hover: none;
  --shadow: 0 24px 70px rgba(40, 27, 63, 0.12);
  --shadow-soft: 0 12px 32px rgba(40, 27, 63, 0.08);
  --radius: 8px;
  --shell: min(1240px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.6;
  letter-spacing: 0;
}

body.dialog-open {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

button,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--button-focus);
  outline-offset: 2px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

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

svg {
  width: 1em;
  height: 1em;
  stroke-width: 2;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-header .svg-sprite {
  width: 0;
  height: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand,
.button {
  font-family: var(--font-display);
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 4.5rem;
  line-height: 1.04;
  font-weight: 800;
}

h2 {
  margin-bottom: 20px;
  font-size: var(--type-section-title);
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 750;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 80;
  padding-top: 16px;
  border: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  line-height: 1.55;
  transition: padding-top 180ms ease;
}

.site-header.scrolled,
.site-header.is-sticky {
  position: fixed;
  padding-top: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: header-in 250ms ease both;
}

@keyframes header-in {
  from { transform: translateY(-100%); }
}

.nav {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 22px;
  padding: 0 10px 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: #0b0711;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px);
}

.site-header .nav.shell,
.site-header .mobile-menu-inner.shell {
  width: min(1280px, calc(100% - 48px));
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-size: 1.17rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-header .brand {
  color: #fff;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

.nav-menu {
  position: relative;
}

.compact-menu {
  position: relative;
}

.desktop-nav .compact-menu::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: calc(100% + 24px);
  height: 16px;
  content: "";
  transform: translateX(-50%);
}

.nav-trigger,
.nav-top-link,
.text-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--button-radius);
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-weight: 650;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.nav-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.site-header svg,
.mobile-menu svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-trigger:hover,
.nav-trigger[aria-expanded="true"],
.nav-menu:hover > .nav-trigger,
.nav-top-link:hover,
.text-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-menu:hover > .nav-trigger svg,
.nav-menu:focus-within > .nav-trigger svg,
.nav-menu.is-open > .nav-trigger svg {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 72px;
  right: 0;
  left: 0;
  visibility: hidden;
  border-top: 1px solid #ece8ef;
  border-bottom: 1px solid #ddd8e2;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 56px rgba(29, 21, 38, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  backdrop-filter: blur(18px);
}

.nav-menu:hover > .mega-menu,
.nav-menu:focus-within > .mega-menu,
.nav-menu.is-open > .mega-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(260px, 0.95fr);
  gap: 42px;
  padding-top: 34px;
  padding-bottom: 36px;
}

.mega-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.mega-column > strong {
  margin-bottom: 5px;
  color: #928b99;
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mega-column a {
  padding: 3px 0;
  color: #4f4956;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 160ms ease, transform 160ms ease;
}

.mega-column a:hover {
  color: var(--pink-dark);
  transform: translateX(3px);
}

.mega-feature {
  position: relative;
  display: flex;
  min-height: 226px;
  justify-content: flex-end;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.mega-feature::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 11, 18, 0.08) 10%, rgba(15, 11, 18, 0.9) 100%);
  content: "";
}

.mega-feature > * {
  position: relative;
  z-index: 1;
}

.mega-feature > span {
  margin-bottom: 8px;
  color: #ff89c8;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mega-feature > strong {
  margin-bottom: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
}

.mega-feature p {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  line-height: 1.5;
}

.mega-feature b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
}

.anime-feature { background-image: url("assets/works/hero-cinematic.jpg"); }
.video-feature { background-image: url("assets/works/nexus.jpg"); }
.comics-feature { background-image: url("assets/works/distance.webp"); }
.models-feature { background-image: url("assets/works/cyberpunk.jpg"); }

.explore-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  visibility: hidden;
  width: max-content;
  min-width: 220px;
  gap: 3px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  color: #fff;
  background: rgba(19, 12, 27, 0.98);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.compact-menu:hover > .explore-menu,
.compact-menu:focus-within > .explore-menu,
.compact-menu.is-open > .explore-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.explore-menu a {
  padding: 10px 11px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
}

.explore-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.site-header .nav-cta {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 8px;
}

.site-header .text-link {
  min-height: 0;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.77rem;
  font-weight: 700;
}

.site-header .nav-login {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.55;
}

.site-header .nav-cta svg,
.mobile-menu-inner > .button svg {
  width: 17px;
  height: 17px;
}

.nav-search {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--button-radius);
  color: #fff;
  background: rgba(12, 10, 17, 0.16);
  backdrop-filter: blur(10px);
}

.nav-search:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--button-height);
  padding: 0 var(--button-padding);
  border: 1px solid var(--button-border);
  border-radius: var(--button-radius);
  font-size: 0.91rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled,
.hero-create-button:disabled,
.hero-tool-button:disabled,
.icon-button:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.button svg,
.hero-create-button svg,
.hero-tool-button svg,
.tool-action svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.button-primary {
  color: #fff;
  border-color: var(--button-primary-border);
  background: var(--brand-gradient);
  box-shadow: var(--button-shadow);
}

.button-primary:hover {
  border-color: var(--button-primary-border);
  filter: saturate(1.08) brightness(1.03);
  box-shadow: var(--button-shadow-hover);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--button-border);
  background: var(--button-surface);
}

.button-secondary:hover {
  border-color: var(--button-border-hover);
  background: var(--button-surface-hover);
  box-shadow: none;
}

.button-light {
  color: var(--deep);
  border-color: var(--button-border);
  background: var(--button-surface);
  box-shadow: none;
}

.button.large {
  min-height: 56px;
  padding-inline: 24px;
  font-size: 1rem;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--button-border);
  border-radius: var(--button-radius);
  color: var(--ink);
  background: var(--button-surface);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  border-color: var(--button-border-hover);
  color: var(--pink-dark);
  background: var(--button-surface-hover);
  box-shadow: none;
  transform: translateY(-1px);
}

.icon-button:active {
  transform: translateY(0);
}

.mobile-menu-button {
  display: none;
}

.site-header .mobile-menu-button {
  width: 42px;
  height: 42px;
  border-color: var(--button-border);
  color: var(--ink);
  background: var(--button-surface);
  box-shadow: none;
  backdrop-filter: none;
}

.site-header .menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--button-border);
  border-radius: 8px;
  color: var(--ink);
  background: var(--button-surface);
  box-shadow: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-header .menu-button:hover {
  border-color: var(--button-border-hover);
  color: var(--pink-dark);
  background: var(--button-surface-hover);
  transform: translateY(-1px);
}

.site-header .menu-button svg {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  position: static;
  margin-top: 8px;
  overflow: visible;
  border: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-inner {
  display: grid;
  max-height: calc(100vh - 98px);
  min-height: 0;
  gap: 1px;
  padding: 16px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(13, 8, 19, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.mobile-search {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  color: #77707d;
  background: #f8f7fa;
  font-size: 0.84rem;
}

.mobile-nav-list a {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  padding: 9px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.85rem;
  font-weight: 500;
}

.mobile-nav-list a svg {
  width: 14px;
  height: 14px;
  color: inherit;
}

.mobile-menu-inner > a:not(.button) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.85rem;
}

.mobile-menu-inner > a:not(.button) svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transform: rotate(-45deg);
}

.mobile-menu-inner .mobile-account {
  margin-top: 8px;
  color: #fff;
}

.mobile-menu-inner > .button {
  margin-top: 10px;
}

.mobile-generate {
  position: static;
  width: auto;
  margin: 10px 0 0;
  box-shadow: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 122px 0 88px;
  color: #fff;
  background: #16131b;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 900ms ease, transform 6s ease;
}

.hero-video.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(12, 10, 17, 0.28) 0%, rgba(12, 10, 17, 0.24) 26%, rgba(12, 10, 17, 0.68) 100%),
    linear-gradient(90deg, rgba(15, 12, 19, 0.48), rgba(15, 12, 19, 0.1) 50%, rgba(15, 12, 19, 0.42));
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    transition: none;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  text-align: center;
}

.anime-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.4;
}

.anime-breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 180ms ease;
}

.anime-breadcrumb a:hover {
  color: #fff;
}

.anime-breadcrumb svg {
  width: 13px;
  height: 13px;
  color: rgba(255, 255, 255, 0.34);
}

.anime-breadcrumb span[aria-current="page"] {
  color: rgba(255, 255, 255, 0.92);
}

.hero-copy h1 {
  max-width: 1040px;
  margin-right: auto;
  margin-bottom: 18px;
  margin-left: auto;
  color: #fff;
  font-size: var(--type-hero-title);
  text-shadow: 0 3px 32px rgba(0, 0, 0, 0.32);
}

.hero-copy h1 .hero-title-line {
  display: block;
  font-size: clamp(1rem, 4.8vw, 3.35rem);
  line-height: 1.08;
  white-space: nowrap;
}

.hero-copy h1 em {
  display: block;
  white-space: nowrap;
  background: var(--brand-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-copy > p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--type-hero-copy);
  line-height: 1.65;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.hero-eyebrow {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  background: rgba(18, 15, 24, 0.26) !important;
  backdrop-filter: blur(12px);
}

.hero-prompt {
  width: min(900px, 100%);
  min-height: 178px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 72px rgba(13, 9, 19, 0.34);
  backdrop-filter: blur(22px);
  text-align: left;
}

.hero-prompt textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 2px 4px;
  resize: none;
  border: 0;
  outline: none;
  color: #2d2932;
  background: transparent;
  font-size: 1rem;
  line-height: 1.55;
}

.hero-prompt textarea::placeholder {
  color: #8c8791;
}

.hero-prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-input-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.hero-tool-button,
.hero-mode-select {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--button-border);
  border-radius: var(--button-radius);
  color: #37313d;
  background: var(--button-surface-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.hero-tool-button {
  font-family: var(--font-display);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hero-tool-button:hover {
  border-color: var(--button-border-hover);
  color: var(--pink-dark);
  background: var(--button-surface-hover);
  box-shadow: none;
  transform: translateY(-1px);
}

.hero-tool-button.icon-only {
  width: 40px;
  padding: 0;
  justify-content: center;
}

.hero-mode-select {
  position: relative;
  min-width: 150px;
  padding: 0 11px;
  border-color: var(--button-border);
  color: #8f2b70;
  background: #f7e8f2;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-mode-select:hover,
.hero-mode-select:focus-within {
  border-color: var(--button-border-hover);
  color: var(--pink-dark);
  background: var(--button-surface-hover);
  box-shadow: none;
}

.hero-mode-select select {
  width: 100%;
  min-width: 0;
  padding: 0 22px 0 0;
  border: 0;
  appearance: none;
  outline: 0;
  color: inherit;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.hero-mode-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.hero-mode-select svg {
  width: 15px;
  height: 15px;
}

.hero-mode-select .hero-mode-chevron {
  position: absolute;
  right: 10px;
  pointer-events: none;
}

.hero-model-picker {
  position: relative;
  z-index: 8;
  min-width: 190px;
  flex: 0 0 auto;
}

.hero-model-picker[hidden] {
  display: none;
}

.hero-model-trigger {
  width: 100%;
  min-width: 190px;
  justify-content: flex-start;
  font-family: var(--font-display);
  cursor: pointer;
}

.hero-model-trigger-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-logo {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
}

.model-logo svg {
  display: block;
  width: 24px;
  height: 24px;
}

.hero-model-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 258px;
  max-height: 260px;
  padding: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #e3dde7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 54px rgba(25, 17, 32, 0.22);
  backdrop-filter: blur(18px);
}

.hero-model-menu[hidden] {
  display: none;
}

.hero-model-menu button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #3b3541;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.hero-model-menu button:hover,
.hero-model-menu button[aria-selected="true"] {
  color: #8f2b70;
  background: #f8edf5;
}

.hero-model-menu button:focus-visible {
  color: #8f2b70;
  background: #f8edf5;
  outline: 2px solid var(--button-focus);
  outline-offset: -2px;
}

.hero-model-picker.is-open .hero-mode-chevron {
  transform: rotate(180deg);
}

@media (max-height: 820px) and (min-width: 761px) {
  .hero .hero-model-menu {
    top: auto;
    bottom: calc(100% + 10px);
  }
}

.hero-create-button {
  display: inline-flex;
  min-width: 150px;
  min-height: var(--button-height);
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--button-primary-border);
  border-radius: var(--button-radius);
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: var(--button-shadow);
  font-family: var(--font-display);
  font-size: 0.91rem;
  font-weight: 750;
  cursor: pointer;
  transition: box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.hero-create-button:hover {
  border-color: var(--button-primary-border);
  filter: saturate(1.08) brightness(1.03);
  box-shadow: var(--button-shadow-hover);
  transform: translateY(-1px);
}

.hero-create-button:active {
  transform: translateY(0);
}

.studio-section {
  padding-top: 108px;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 121, 107, 0.08), transparent 22%),
    radial-gradient(circle at 86% 8%, rgba(66, 165, 245, 0.1), transparent 26%),
    linear-gradient(180deg, #fff 0%, #fbfaff 76%, #f6f5f8 100%);
}

.studio-intro {
  max-width: 760px;
  margin-bottom: 44px;
  text-align: center;
}

.studio-intro h2 {
  margin-bottom: 16px;
}

.studio-intro p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 12px;
  border: 1px solid rgba(215, 42, 135, 0.18);
  border-radius: 999px;
  color: #9f256c;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow.subtle {
  padding: 0;
  border: 0;
  color: var(--pink-dark);
  background: transparent;
}

.eyebrow.light {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.studio {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 600px;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.34fr);
  overflow: hidden;
  border: 1px solid #dfdbe5;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.studio-controls {
  padding: 20px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 7px;
  background: #f0eef3;
}

.mode-tab {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #77717f;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.mode-tab.active {
  border-color: var(--button-border);
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.control-section {
  margin-bottom: 17px;
}

.control-section > label,
.label-row > label,
.label-row > span,
.compact > label {
  color: #393441;
  font-size: 0.82rem;
  font-weight: 700;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.inline-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: var(--pink-dark);
  background: transparent;
  font-size: 0.77rem;
  font-weight: 650;
  cursor: pointer;
}

.value-readout {
  color: #817b88 !important;
  font-weight: 500 !important;
}

.prompt-wrap {
  position: relative;
}

.prompt-wrap textarea {
  width: 100%;
  min-height: 116px;
  padding: 13px 14px 30px;
  resize: vertical;
  border: 1px solid #dcd8e1;
  border-radius: 7px;
  outline: none;
  color: #393441;
  background: #fbfafc;
  font-size: 0.87rem;
  line-height: 1.55;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.prompt-wrap textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(242, 75, 166, 0.09);
}

.prompt-count {
  position: absolute;
  right: 11px;
  bottom: 9px;
  color: #9a94a0;
  font-size: 0.68rem;
}

.style-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.style-option {
  min-width: 0;
  padding: 5px 5px 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #5d5763;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.style-option.active {
  border-color: var(--pink);
  color: var(--pink-dark);
  box-shadow: none;
}

.style-swatch {
  display: block;
  width: 100%;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 4px;
}

.style-swatch.cinematic {
  background: linear-gradient(145deg, #202645, #6251bf 50%, #f375a8);
}

.style-swatch.manga {
  background: repeating-linear-gradient(135deg, #26232d 0 2px, #e9e6ec 2px 6px);
}

.style-swatch.fantasy {
  background: linear-gradient(145deg, #d3eff4, #a1cfca 48%, #ffe0b6);
}

.style-swatch.retro {
  background: linear-gradient(145deg, #e9695d, #f6bd55 50%, #4d8290);
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.control-section.compact {
  margin-bottom: 17px;
}

.compact > label {
  display: block;
  margin-bottom: 8px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: #f8f7fa;
}

.segmented button {
  min-height: 34px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  color: #726c78;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}

.segmented button.active {
  border-color: var(--button-primary-border);
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: none;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  appearance: none;
  outline: none;
  color: #554f5b;
  background: #f8f7fa;
  font-size: 0.72rem;
  font-weight: 650;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 10px;
  color: #8d8792;
  pointer-events: none;
  transform: translateY(-50%);
}

.generate-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid var(--button-primary-border);
  border-radius: var(--button-radius);
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: none;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.generate-button:hover {
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.generate-button.loading {
  pointer-events: none;
  filter: saturate(0.75);
}

.generate-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.credit-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 600;
}

.demo-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  color: #89838e;
  font-size: 0.7rem;
}

.upload-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px dashed #cfc9d6;
  border-radius: 7px;
  color: #625c69;
  background: #fbfafc;
  cursor: pointer;
}

.upload-drop > svg {
  flex: 0 0 auto;
  color: var(--pink-dark);
}

.upload-drop span,
.upload-drop small {
  display: block;
}

.upload-drop strong {
  display: block;
  font-size: 0.78rem;
}

.upload-drop small {
  color: #96909c;
  font-size: 0.68rem;
  font-weight: 500;
}

#reference-upload {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.studio-result {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #24212a;
}

.studio-result > img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  transition: opacity 220ms ease, transform 500ms ease;
}

.studio-result.is-changing > img {
  opacity: 0.35;
  transform: scale(1.02);
}

.studio-result[data-ratio="portrait"] > img {
  object-position: center;
}

.result-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #fff;
  background: rgba(24, 21, 31, 0.54);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 650;
}

.result-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(185, 231, 76, 0.18);
}

.result-overlay .icon-button {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(24, 21, 31, 0.54);
  backdrop-filter: blur(10px);
}

.result-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  color: #fff;
  background: rgba(24, 21, 31, 0.6);
  backdrop-filter: blur(12px);
}

.result-caption strong,
.result-caption span {
  display: block;
}

.result-caption strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
}

.result-caption span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
}

.result-actions {
  display: flex;
  gap: 6px;
}

.result-actions .icon-button {
  width: 36px;
  height: 36px;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-proof span {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #5b5661;
  font-size: 0.82rem;
  font-weight: 650;
}

.hero-proof span + span {
  border-left: 1px solid var(--line);
}

.hero-proof svg {
  color: var(--pink-dark);
  font-size: 1.2rem;
}

.section {
  padding: 112px 0;
}

.section-heading {
  margin-bottom: 48px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p,
.split-heading > p,
.centered > p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 60px;
}

.split-heading > p {
  margin: 0 0 6px;
}

.centered {
  max-width: 760px;
  margin-right: auto;
  margin-bottom: 58px;
  margin-left: auto;
  text-align: center;
}

.centered > p {
  max-width: 680px;
  margin: 20px auto 0;
}

.gallery-section {
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-action {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.work-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #25212a;
  aspect-ratio: 4 / 5;
  vertical-align: top;
}

.work-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 38%, rgba(10, 8, 14, 0.78));
}

.work-card img,
.work-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.work-card:hover img,
.work-card:hover video,
.work-card:focus-visible img,
.work-card:focus-visible video {
  transform: scale(1.04);
}

.work-card:focus-visible {
  outline: 3px solid rgba(242, 75, 166, 0.72);
  outline-offset: 3px;
}

.work-wide {
  grid-column: span 2;
}

.work-tall {
  grid-row: span 2;
}

.bottom-wide {
  grid-column: 2 / span 2;
}

.work-meta {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 15px;
  left: 16px;
  color: #fff;
  transition: opacity 220ms ease, transform 220ms ease;
}

.work-meta span,
.work-meta strong {
  display: block;
}

.work-meta span {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--type-gallery-meta);
  text-transform: uppercase;
}

.work-meta strong {
  font-family: "Manrope", sans-serif;
  font-size: var(--type-gallery-title);
}

.work-type-badge {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 17, 25, 0.52);
  backdrop-filter: blur(10px);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
}

.work-type-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.work-prompt {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  padding: 20px;
  color: #fff;
  background: linear-gradient(180deg, rgba(11, 8, 15, 0.08) 8%, rgba(11, 8, 15, 0.9) 72%, rgba(11, 8, 15, 0.97) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.work-prompt > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #ff82c6;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-prompt p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.work-prompt-copy {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-top: 14px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--button-radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.work-prompt-copy:hover {
  border-color: rgba(255, 130, 198, 0.72);
  background: rgba(242, 75, 166, 0.24);
  transform: translateY(-1px);
}

.work-prompt-copy.is-copied {
  border-color: rgba(185, 231, 76, 0.72);
  background: rgba(185, 231, 76, 0.2);
}

.work-prompt-copy svg {
  width: 14px;
  height: 14px;
}

.work-card:hover .work-prompt,
.work-card:focus-visible .work-prompt,
.work-card:focus-within .work-prompt {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.work-card:hover .work-meta,
.work-card:focus-visible .work-meta,
.work-card:focus-within .work-meta {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .work-prompt {
    padding: 16px;
    opacity: 0;
    transform: translateY(10px);
  }

  .work-prompt p {
    -webkit-line-clamp: 3;
  }

  .work-meta {
    opacity: 1;
  }
}

.features-section {
  background: linear-gradient(180deg, #faf9fc 0%, #f5f3f8 100%);
}

.feature-heading {
  margin-bottom: 38px;
}

.feature-heading h2 {
  color: var(--ink);
  font-size: 3.1rem;
}

.feature-heading > p {
  margin-top: 14px;
  color: var(--ink-soft);
}

.feature-card-grid {
  display: grid;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  min-height: 190px;
  padding: 26px 28px;
  border: 1px solid #e3dfe8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(40, 27, 63, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.feature-card:hover {
  border-color: rgba(141, 79, 244, 0.34);
  box-shadow: 0 14px 30px rgba(40, 27, 63, 0.12);
  transform: translateY(-3px);
}

.feature-card-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
}

.feature-card-title svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--purple);
  stroke-width: 2.2;
}

.feature-card:nth-child(2) .feature-card-title svg,
.feature-card:nth-child(5) .feature-card-title svg {
  color: var(--pink-dark);
}

.feature-card:nth-child(3) .feature-card-title svg,
.feature-card:nth-child(6) .feature-card-title svg {
  color: var(--blue);
}

.feature-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-card-title);
  line-height: 1.35;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--type-card-copy);
  line-height: 1.65;
}

.tools-section {
  overflow: hidden;
  background: #fff;
}

.tool-section-head {
  margin-bottom: 42px;
}

.tool-title-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: center;
}

.tool-title-row h2 {
  max-width: 900px;
  margin: 0 auto;
  font-size: 3.1rem;
  line-height: 1.08;
}

.tool-title-row h2 em {
  color: transparent;
  background: var(--brand-text-gradient);
  background-clip: text;
  font-style: normal;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tool-section-description {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.72;
  text-align: center;
}

.tool-carousel-controls {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  width: fit-content;
  margin: 4px auto 0;
  gap: 8px;
}

.tool-carousel-controls .icon-button {
  width: 44px;
  height: 44px;
  border-color: #dcd8e1;
  background: #fff;
}

.tool-carousel-controls .icon-button:hover:not(:disabled) {
  border-color: var(--pink);
  color: var(--pink-dark);
  background: #fff5fb;
}

.tool-carousel-controls .icon-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.tool-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 38px;
  cursor: grab;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tool-carousel[data-dragging="true"] {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.tool-carousel::-webkit-scrollbar {
  display: none;
}

.tool-slide {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - 60px) / 4);
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #eeeaf2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(38, 28, 48, 0.08);
  scroll-snap-align: start;
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.tool-slide[href] {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.tool-slide[href]:focus-visible {
  outline: 3px solid rgba(102, 156, 255, 0.78);
  outline-offset: 4px;
}

.tool-slide::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 18px;
  left: 18px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--brand-gradient);
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 300ms ease, transform 300ms ease;
}

.tool-slide:hover,
.tool-slide:focus-within {
  border-color: rgba(214, 63, 158, 0.28);
  box-shadow: 0 22px 52px rgba(65, 37, 83, 0.16);
  transform: translateY(-8px);
}

.tool-slide:hover::before,
.tool-slide:focus-within::before {
  opacity: 1;
  transform: scaleX(1);
}

.tool-card-copy {
  flex: 1;
  padding: 18px 4px 0;
}

.tool-card-copy h3 {
  min-height: 48px;
  margin: 0;
  color: #25202b;
  font-size: var(--type-tool-title);
  line-height: 1.35;
}

.tool-visual {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 14px;
  background: #201d25;
  isolation: isolate;
}

.tool-visual > img,
.tool-visual > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.tool-slide:hover .tool-visual > img,
.tool-slide:hover .tool-visual > video,
.tool-slide:focus-within .tool-visual > img,
.tool-slide:focus-within .tool-visual > video {
  transform: scale(1.055);
}

.tool-kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-tool-copy);
  font-weight: 600;
  line-height: 1.45;
}

.tool-kind svg {
  width: 15px;
  height: 15px;
  color: var(--pink-dark);
}

.tool-action {
  align-self: flex-end;
  display: inline-flex;
  min-height: var(--button-height);
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  padding: 0 var(--button-padding);
  border: 1px solid var(--button-primary-border);
  border-radius: var(--button-radius);
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: var(--button-shadow);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1;
  transition: box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.tool-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-2px);
  transition: transform 500ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.tool-action-icon svg {
  width: 16px;
  height: 16px;
}

.tool-slide:hover .tool-action-icon,
.tool-slide:focus-within .tool-action-icon {
  transform: translateX(5px);
}

.tool-action:hover {
  filter: saturate(1.08) brightness(1.03);
  box-shadow: var(--button-shadow-hover);
  transform: translateY(-2px);
}

.tool-compare .tool-before {
  filter: grayscale(1) contrast(1.18) brightness(1.08);
}

.tool-compare .tool-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}

.tool-compare-line {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(20, 17, 25, 0.12);
}

.models-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.models-layout {
  position: relative;
  z-index: 1;
  display: block;
}

.model-copy {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.model-copy p {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--ink-soft);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 22px;
  margin: 0 auto;
}

.model-item {
  display: block;
  min-width: 0;
}

.model-visual {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1.45;
  background: var(--deep);
}

.model-visual::after {
  position: absolute;
  inset: 0;
  background: rgba(13, 10, 17, 0.32);
  content: "";
  transition: background 220ms ease;
}

.model-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms ease;
}

.model-wordmark {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.48);
  transform: translate(-50%, -50%);
}

.model-item h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}

.model-item > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.model-item:hover .model-visual::after,
.model-item:focus-visible .model-visual::after {
  background: rgba(13, 10, 17, 0.18);
}

.model-item:hover .model-visual img,
.model-item:focus-visible .model-visual img {
  transform: scale(1.035);
}

.models-action {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.testimonial-section {
  background: #f8f7f9;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 14px;
}

.testimonial-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #e1dde5;
  border-radius: var(--radius);
  background: #fff;
}

.testimonial-card.featured {
  color: #fff;
  border-color: var(--deep);
  background: var(--deep);
  transform: translateY(-14px);
}

.quote-mark {
  height: 46px;
  color: var(--pink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.2rem;
  line-height: 1;
}

.testimonial-card > p {
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.8;
}

.testimonial-card.featured > p {
  color: rgba(255, 255, 255, 0.74);
}

.creator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.featured .creator {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.creator-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #221e25;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.creator-avatar.coral { background: #f4a6cf; }
.creator-avatar.blue { background: #9cccf5; }
.creator-avatar.lime { background: #c7aff6; }

.creator strong,
.creator small {
  display: block;
}

.creator strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
}

.creator small {
  color: #8b8590;
  font-size: 0.73rem;
}

.featured .creator small {
  color: rgba(255, 255, 255, 0.55);
}

.faq-section {
  background: #fff;
}

.faq-layout {
  display: block;
}

.faq-intro {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.faq-intro > p {
  max-width: 680px;
  margin: 20px auto 28px;
  color: var(--ink-soft);
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  min-height: 76px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  list-style: none;
  font-family: "Manrope", sans-serif;
  font-size: var(--type-faq-question);
  font-weight: 700;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary svg {
  color: var(--pink-dark);
  transition: transform 180ms ease;
}

.faq-list details[open] summary svg {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 760px;
  margin: -4px 42px 24px 0;
  color: var(--ink-soft);
}

.site-footer {
  color: #fff;
  background: #121119;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(4, minmax(130px, 0.8fr));
  align-items: start;
  gap: 36px;
  padding: 76px 0 64px;
}

.launch-menu {
  width: max-content;
  min-width: 220px;
}

.explore-menu.launch-menu a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.launch-mobile-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.launch-mobile-nav .mobile-account-link {
  margin-top: 8px;
  border-top: 0;
  color: #fff;
}

.footer-main.launch-footer-main {
  grid-template-columns: minmax(220px, 1.25fr) repeat(4, minmax(120px, 0.82fr));
  gap: 28px;
}

.launch-footer-main .footer-links a[aria-current="page"] {
  color: #fff;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 330px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.footer-socials a {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--button-radius);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 750;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.footer-socials a:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
}

.language-select {
  position: relative;
  display: grid;
  width: 176px;
  height: 42px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.language-select select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 36px;
  border: 0;
  appearance: none;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 0.78rem;
  cursor: pointer;
}

.language-select > svg,
.language-select > i {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 6px;
  font-family: "Manrope", sans-serif;
  font-size: var(--type-footer-heading);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.52);
  font-size: var(--type-footer-link);
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  min-height: 76px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.36);
  font-size: var(--type-footer-meta);
}

.footer-bottom > span {
  flex: 0 0 auto;
}

.footer-bottom nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.42);
  transition: color 180ms ease;
}

.footer-bottom a:hover {
  color: #fff;
}

.preview-dialog {
  width: min(1100px, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #18151c;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}

.preview-dialog::backdrop {
  background: rgba(16, 13, 20, 0.74);
  backdrop-filter: blur(8px);
}

.preview-dialog img {
  width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(20, 17, 25, 0.62);
}

@media (max-width: 1100px) {
  :root {
    --shell: min(100% - 36px, 960px);
  }

  .footer-main.launch-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 48px;
  }

  .launch-footer-main .footer-brand {
    grid-column: span 2;
  }

  .desktop-nav {
    display: none;
  }

  .desktop-only {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .site-header .menu-button.mobile-menu-button {
    display: inline-flex;
  }

  .mega-menu-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(230px, 0.95fr);
    gap: 28px;
  }

  .studio {
    grid-template-columns: minmax(330px, 0.9fr) 1.1fr;
  }

  .style-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    gap: 12px;
  }

  .feature-card-grid {
    gap: 16px;
  }

  .feature-card {
    padding: 23px;
  }

  .models-layout {
    gap: 48px;
  }

  .model-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 18px;
  }

  .faq-layout {
    gap: 52px;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 32px, 720px);
  }

  h2,
  .feature-heading h2,
  .tool-title-row h2 {
    font-size: 2.6rem;
  }

  .site-header,
  .site-header.scrolled,
  .site-header.is-sticky {
    backdrop-filter: none;
  }

  .site-header .nav.shell,
  .site-header .mobile-menu-inner.shell {
    width: min(100% - 32px, 720px);
  }

  .hero {
    min-height: max(760px, 100svh);
    padding: 104px 0 68px;
  }

  .hero-copy h1 {
    font-size: 3.5rem;
  }

  .hero-prompt {
    min-height: 168px;
  }

  .studio-section {
    padding-top: 82px;
  }

  .studio {
    grid-template-columns: 1fr;
  }

  .studio-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .studio-result > img {
    min-height: 480px;
  }

  .hero-proof {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-proof span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-proof span:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .split-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

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

  .work-tall {
    grid-row: span 2;
  }

  .bottom-wide {
    grid-column: span 2;
  }

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

  .tool-title-row {
    display: block;
  }

  .tool-carousel-controls {
    position: static;
    justify-content: center;
    margin-top: 22px;
  }

  .tool-slide {
    flex-basis: calc((100% - 20px) / 2);
  }

  .models-layout {
    grid-template-columns: 1fr;
  }

  .model-copy {
    max-width: 620px;
  }

  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    min-height: auto;
  }

  .testimonial-card.featured {
    transform: none;
  }

  .testimonial-card > p {
    min-height: 160px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-intro {
    position: static;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 48px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 580px) {
  :root {
    --shell: calc(100% - 28px);
    --type-body: 0.9375rem;
    --type-hero-title: 2.45rem;
    --type-hero-copy: 1rem;
    --type-section-title: 2.05rem;
    --type-section-copy: 0.9375rem;
    --type-story-title: 1.9rem;
    --type-story-copy: 0.98rem;
    --type-gallery-title: 0.83rem;
    --type-gallery-meta: 0.62rem;
    --type-faq-question: 0.93rem;
  }

  body {
    font-size: var(--type-body);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: var(--type-section-title);
  }

  .hero {
    min-height: max(760px, 100svh);
    padding: 96px 0 58px;
  }

  .hero-copy {
    width: calc(100% - 24px);
  }

  .hero-copy h1 {
    margin-bottom: 16px;
    font-size: var(--type-hero-title);
    line-height: 1.05;
  }

  .hero-copy > p {
    margin-bottom: 22px;
    font-size: var(--type-hero-copy);
    line-height: 1.55;
  }

  .hero-eyebrow {
    margin-bottom: 16px;
    font-size: 0.65rem;
  }

  .hero-video {
    object-position: 58% center;
  }

  .hero-prompt {
    min-height: 190px;
    padding: 14px;
    border-radius: 14px;
  }

  .hero-prompt textarea {
    min-height: 82px;
    font-size: 0.9rem;
  }

  .hero-prompt-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .hero-input-tools {
    display: grid;
    grid-template-columns: 116px 40px minmax(0, 1fr);
    justify-content: stretch;
  }

  .hero-tool-button:not(.icon-only) {
    padding-inline: 8px;
    font-size: 0.72rem;
  }

  .hero-mode-select {
    width: 100%;
    min-width: 0;
  }

  .hero-mode-select select {
    font-size: 0.72rem;
  }

  .hero-model-picker {
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
  }

  .hero-model-trigger {
    min-width: 0;
  }

  .hero-model-menu {
    top: auto;
    bottom: calc(100% + 10px);
    width: 100%;
    max-height: 286px;
  }

  .hero-create-button {
    width: 100%;
  }

  .studio-section {
    padding-top: 72px;
  }

  .studio-intro {
    margin-bottom: 32px;
  }

  .studio {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .studio-controls {
    padding: 14px;
  }

  .mode-tab {
    min-height: 48px;
    flex-direction: column;
    gap: 2px;
    font-size: 0.66rem;
  }

  .style-options {
    grid-template-columns: repeat(4, minmax(74px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .control-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .studio-result > img {
    min-height: 410px;
  }

  .result-caption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .result-overlay {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .hero-proof {
    width: 100%;
    margin-top: 0;
  }

  .hero-proof span {
    min-height: 68px;
    padding: 8px;
    font-size: 0.7rem;
    text-align: center;
  }

  .section {
    padding: 82px 0;
  }

  .gallery-grid {
    gap: 8px;
  }

  .work-wide,
  .work-tall,
  .bottom-wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  .work-card {
    min-height: 0;
  }

  .feature-heading {
    margin-bottom: 30px;
  }

  .feature-heading h2 {
    font-size: 2.05rem;
  }

  .feature-card-grid {
    grid-auto-rows: auto;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card {
    min-height: auto;
    padding: 22px 20px;
  }

  .tool-section-head {
    margin-bottom: 32px;
  }

  .tool-title-row {
    display: block;
    text-align: center;
  }

  .tool-title-row h2 {
    font-size: var(--type-section-title);
  }

  .tool-carousel-controls {
    justify-content: center;
    margin-top: 22px;
  }

  .tool-slide {
    flex-basis: 100%;
  }

  .tool-visual {
    height: 290px;
  }

  .models-layout {
    gap: 42px;
  }

  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-item {
    min-height: 0;
  }

  .testimonial-card {
    padding: 23px;
  }

  .testimonial-card > p {
    min-height: 0;
  }

  .faq-list summary {
    min-height: 70px;
    font-size: var(--type-faq-question);
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-main.launch-footer-main {
    grid-template-columns: 1fr;
  }

  .launch-footer-main .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

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

  .preview-dialog {
    width: calc(100% - 20px);
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 10px;
  }

  .site-header.scrolled,
  .site-header.is-sticky {
    padding-top: 8px;
  }

  .nav {
    min-height: 58px;
    padding-left: 12px;
    border-radius: 13px;
  }

  .site-header .nav.shell,
  .site-header .mobile-menu-inner.shell {
    width: calc(100% - 28px);
  }

  .brand {
    font-size: 1.02rem;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .site-header .nav-login {
    display: none;
  }

  .site-header .nav-cta {
    min-height: 38px;
    padding-inline: 13px;
  }

  .site-header .menu-button,
  .site-header .mobile-menu-button {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Shared rating module for every routed SEO page except the homepage. */
body .tool-rating-section.lume-rating-section {
  margin: 0;
  padding: 48px 20px;
  background: #fff;
}

body .tool-rating-section.lume-rating-section > .lume-rating-card[data-unified-rating] {
  display: flex;
  width: min(1240px, 100%);
  min-height: 126px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
  padding: 34px 48px;
  border: 0;
  border-radius: 0;
  color: #191823;
  background: #fff;
  box-shadow: none;
}

body .lume-rating-card[data-unified-rating] .lume-rating-title {
  color: #25232e;
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.014em;
  white-space: nowrap;
}

body .lume-rating-card[data-unified-rating] .lume-rating-stars {
  display: flex;
  gap: 6px;
}

body .lume-rating-card[data-unified-rating] .lume-rating-stars button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #ddd9e7;
  border-radius: 10px;
  color: #7459e8;
  background: #f7f5fa;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

body .lume-rating-card[data-unified-rating] .lume-rating-stars button:hover,
body .lume-rating-card[data-unified-rating] .lume-rating-stars button:focus-visible,
body .lume-rating-card[data-unified-rating] .lume-rating-stars button.is-active {
  border-color: #7459e8;
  color: #fff;
  background: linear-gradient(135deg, #cf2999, #7559e7 58%, #419eff);
  transform: translateY(-1px);
}

body .lume-rating-card[data-unified-rating] .lume-rating-stars button:focus-visible {
  outline: 2px solid rgba(116, 89, 232, 0.34);
  outline-offset: 2px;
}

body .lume-rating-card[data-unified-rating] .lume-rating-stars button[disabled] {
  cursor: default;
}

body .lume-rating-card[data-unified-rating] .lume-rating-stars button svg {
  width: 21px;
  height: 21px;
}

body .lume-rating-card[data-unified-rating] .lume-rating-stars button.is-active svg {
  fill: currentColor;
}

body .lume-rating-card[data-unified-rating] .lume-rating-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

body .lume-rating-card[data-unified-rating] .lume-rating-summary[hidden] {
  display: none;
}

body .lume-rating-card[data-unified-rating] .lume-rating-summary strong {
  color: #25232e;
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 1.45rem;
  font-weight: 700;
}

body .lume-rating-card[data-unified-rating] .lume-rating-summary span {
  color: #6f6a79;
  font-size: 0.85rem;
}

body .lume-rating-card[data-unified-rating] .lume-rating-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 760px) {
  body .tool-rating-section.lume-rating-section {
    padding: 38px 16px;
  }

  body .tool-rating-section.lume-rating-section > .lume-rating-card[data-unified-rating] {
    min-height: 0;
    align-items: center;
    flex-direction: column;
    gap: 14px;
    padding: 28px 20px;
    text-align: center;
  }

  body .lume-rating-card[data-unified-rating] .lume-rating-summary {
    justify-content: center;
  }
}
