/* 1. Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: #0f061f;
  color: #fff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Montserrat", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(181, 80, 201, .14), transparent 35%),
    linear-gradient(180deg, #0f061f 0%, #090313 100%);
  color: var(--color-text);
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* 2. Design tokens */
:root {
  --color-bg: #0f061f;
  --color-bg-deep: #090313;
  --color-bg-panel: #160626;
  --color-bg-panel-2: #1f0a35;
  --color-header: #170527;
  --color-footer: #150421;
  --color-text: #ffffff;
  --color-text-muted: #d9d0e8;
  --color-text-soft: #b9abc9;
  --color-placeholder: #6f617f;
  --color-cyan: #00e5ff;
  --color-cyan-soft: #8ff4ff;
  --color-blue: #53bdff;
  --color-purple: #b550c9;
  --color-purple-light: #de60f6;
  --color-purple-vivid: #9747ff;
  --color-error: #ff1717;
  --gradient-title: linear-gradient(90deg, #77f6ff 0%, #c9b8ff 58%, #ffffff 100%);
  --gradient-logo: linear-gradient(90deg, #ffffff 0%, #ffffff 58%, #b780ff 100%);
  --gradient-button: linear-gradient(90deg, #53bdff 0%, #62b7ff 60%, #8d72ff 100%);
  --gradient-preview: linear-gradient(135deg, #063247 0%, #2a285f 50%, #5b244e 100%);
  --shadow-neon-purple: 0 0 8px rgba(181, 80, 201, .75), 0 0 18px rgba(181, 80, 201, .45);
  --shadow-neon-cyan: 0 0 8px rgba(0, 229, 255, .45);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container-desktop: 1120px;
  --container-narrow: 1000px;
  --header-height-desktop: 100px;
  --header-height-mobile: 60px;
}

/* 3. Base layout */
.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

.container {
  width: min(var(--container-desktop), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-blue);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.section {
  padding: 84px 0 0;
}

.section__action {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* 4. Typography */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 0 16px rgba(183, 128, 255, .55);
}

.logo span,
.logo strong {
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo strong {
  color: #b780ff;
  -webkit-text-fill-color: transparent;
}

.logo--desktop {
  font-size: 56px;
}

.logo--footer {
  font-size: 52px;
}

.gradient-heading {
  margin: 0;
  text-align: center;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* 5. Buttons */
.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gradient-button);
}

.btn--outline {
  border-color: var(--color-purple-light);
  background: rgba(31, 10, 53, .34);
  color: #fff;
}

.btn--small {
  min-height: 34px;
  padding: 8px 20px;
  font-size: 14px;
}

.btn--wide {
  width: 100%;
}

.btn.is-disabled,
.btn:disabled {
  border-color: transparent;
  background: #d8d8d8;
  color: #747985;
  pointer-events: none;
  filter: none;
}

.icon-download {
  font-size: 0;
}

.icon-download::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

/* 6. Forms */
.auth-card,
.support-form {
  border: 1px solid rgba(181, 80, 201, .12);
  background: linear-gradient(180deg, rgba(28, 8, 49, .98), rgba(18, 5, 34, .98));
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.auth-card {
  display: grid;
  width: 320px;
  gap: 18px;
  padding: 20px 16px 28px;
}

.auth-card--narrow {
  width: 320px;
  margin-inline: auto;
}

.form-field {
  display: grid;
  gap: 8px;
  color: #fff;
}

.form-field__label,
.prompt-field__label {
  font-size: 16px;
  font-weight: 500;
}

.form-field__control {
  position: relative;
  display: block;
}

.form-field input,
.prompt-field textarea {
  width: 100%;
  border: 1px solid var(--color-cyan);
  border-radius: 8px;
  outline: 0;
  background: transparent;
  color: #fff;
  transition: box-shadow .18s ease;
}

.form-field input {
  height: 42px;
  padding: 0 16px;
}

.form-field input::placeholder,
.prompt-field textarea::placeholder {
  color: var(--color-placeholder);
}

.form-field input:focus,
.prompt-field textarea:focus {
  box-shadow: var(--shadow-neon-cyan);
}

.form-field__error,
.select-field__error,
.form-message--error {
  color: var(--color-error);
  font-size: 14px;
  font-weight: 700;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  transform: translateY(-50%);
}

.icon-eye,
.icon-user {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
}

.icon-eye {
  border-radius: 50% 50% 45% 45%;
  transform: rotate(-12deg);
}

.icon-eye::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.icon-user {
  border-radius: 50%;
  position: relative;
}

.icon-user::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: -7px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.prompt-field {
  display: grid;
  gap: 0;
}

.prompt-field__label {
  padding: 13px 16px;
  border: 1px solid var(--color-cyan);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.prompt-field textarea {
  min-height: 132px;
  resize: vertical;
  border-radius: 0 0 8px 8px;
  padding: 14px 16px;
}

.captcha-mock {
  display: grid;
  grid-template-columns: 28px 1fr 38px;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid #e8eef8;
  border-radius: 8px;
  background: #fff;
  color: #151521;
}

.captcha-mock__check {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #5b8cff;
  position: relative;
}

.captcha-mock__check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 8px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(42deg);
}

.captcha-mock__text {
  display: grid;
  gap: 8px;
}

.captcha-mock__text strong {
  font-size: 16px;
  font-weight: 700;
}

.captcha-mock__text small {
  font-size: 13px;
}

.captcha-mock__text em {
  color: #858585;
  font-size: 10px;
  font-style: normal;
}

.captcha-mock__icons {
  display: flex;
  gap: 4px;
}

.captcha-mock__icons i {
  width: 14px;
  height: 14px;
  border: 2px solid #333;
  border-radius: 50%;
}

.agreement-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.25;
}

.agreement-field input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-blue);
}

.auth-card__links {
  display: grid;
  gap: 14px;
  justify-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.auth-card__links a {
  text-decoration: underline;
}

/* 7. Cards */
.before-after {
  display: grid;
  gap: 12px;
}

.before-after__media {
  overflow: hidden;
  border: 2px solid var(--color-purple);
  border-radius: 17px;
  box-shadow: var(--shadow-neon-purple);
  background: var(--gradient-preview);
}

.before-after__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after--hero .before-after__media {
  width: 440px;
  aspect-ratio: 1.58;
}

.generation-card .before-after__media {
  aspect-ratio: 1.58;
}

.before-after--result .before-after__media {
  width: min(610px, 100%);
  aspect-ratio: 1.5;
}

.before-after__caption {
  display: grid;
  gap: 8px;
  color: #fff;
}

.before-after__caption strong {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.before-after__caption span,
.before-after__caption time {
  font-size: 13px;
  color: #fff;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  width: min(1030px, 100%);
  margin: 64px auto 56px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.stepper__item {
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: 2px solid var(--color-purple-light);
  border-radius: 18px;
  background: rgba(42, 13, 58, .86);
  box-shadow: var(--shadow-neon-purple);
  color: #fff;
  text-align: center;
  font-size: 17px;
}

.stepper__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -72px;
  top: 50%;
  width: 72px;
  height: 14px;
  background: linear-gradient(90deg, rgba(222, 96, 246, .2), rgba(222, 96, 246, .95));
  clip-path: polygon(0 32%, 82% 32%, 82% 0, 100% 50%, 82% 100%, 82% 68%, 0 68%);
  transform: translateY(-50%);
}

/* 8. Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 3, 12, .82);
}

.modal-card {
  position: relative;
  width: min(290px, calc(100vw - 32px));
  padding: 58px 16px 32px;
  border-radius: 16px;
  background: #fff;
  color: #151521;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .34);
}

.modal-card__close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-purple-light);
  border-radius: 8px;
  background: #fff;
  color: var(--color-purple-light);
  font-size: 0;
}

.modal-card__close span {
  font-size: 0;
}

.modal-card__close span::before,
.modal-card__close span::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 17px;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.modal-card__close span::before {
  transform: rotate(45deg);
}

.modal-card__close span::after {
  transform: rotate(-45deg);
}

.modal-card__content {
  display: grid;
  gap: 16px;
  font-size: 23px;
  line-height: 1.12;
}

.modal-card__content p {
  color: #151521;
}

.modal-card__email {
  color: var(--color-blue) !important;
}

.modal-card__actions {
  display: grid;
  gap: 24px;
  justify-items: center;
  margin-top: 32px;
}

.modal-card__button {
  min-height: 36px;
  padding: 8px 14px;
  color: #151521;
}

.modal-card__button.btn--primary {
  color: #fff;
}

/* 9. Header/navigation */
.site-header {
  min-height: var(--header-height-desktop);
  background: rgba(23, 5, 39, .96);
  box-shadow: 0 0 24px rgba(181, 80, 201, .32);
}

.site-header__inner {
  display: flex;
  width: min(1324px, calc(100% - 64px));
  min-height: var(--header-height-desktop);
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-inline: auto;
}

.site-header__menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 58px;
  font-size: 15px;
  font-weight: 800;
}

.site-nav--app a {
  position: relative;
  padding: 16px 20px;
}

.site-nav--app a.is-active {
  color: var(--color-purple-light);
}

.site-nav--app a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-purple-light);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--color-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.mobile-menu-toggle {
  display: none;
  width: 36px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
}

.site-footer {
  margin-top: 110px;
  background: rgba(21, 4, 33, .98);
  box-shadow: inset 0 0 28px rgba(181, 80, 201, .24);
}

.site-footer__inner {
  display: flex;
  width: min(1324px, calc(100% - 64px));
  min-height: 190px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-inline: auto;
}

.site-footer__links {
  display: flex;
  gap: 84px;
  font-size: 16px;
  font-weight: 800;
}

.site-footer__links a {
  text-decoration: underline;
}

/* 10. Public pages */
.hero-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 86px;
  align-items: center;
  padding-top: 118px;
}

.hero-section__copy {
  max-width: 430px;
}

.hero-section__title {
  text-align: left;
  font-size: 44px;
}

.hero-section__copy p {
  margin-top: 22px;
  font-size: 15px;
  color: #fff;
}

.hero-section__prompt {
  display: inline-flex;
  margin: 16px 0 24px;
  color: #fff;
  font-size: 15px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 86px;
  width: min(960px, 100%);
  margin: 64px auto 0;
}

.section--faq .faq-accordion {
  margin-top: 64px;
}

.faq-accordion {
  display: grid;
  width: min(1000px, 100%);
  gap: 14px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--color-cyan);
  border-radius: 7px;
  overflow: hidden;
}

.faq-item__question {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 8px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.icon-chevron {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.icon-chevron::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.faq-item.is-open .icon-chevron::before,
.select-field.is-open .icon-chevron::before {
  transform: rotate(225deg);
}

.faq-item__answer {
  padding: 0 14px 18px;
}

.faq-item__answer p {
  color: #fff;
  font-size: 12px;
}

.help-article {
  padding-top: 42px;
}

.help-article__content {
  width: min(980px, 100%);
  margin: 36px auto 0;
  font-size: 13px;
}

.help-article__content section + section {
  margin-top: 22px;
}

.help-article__content h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

.help-article__content p {
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.help-article__content p + p {
  margin-top: 10px;
}

.support-section {
  padding-top: 80px;
}

.support-form {
  display: grid;
  width: 300px;
  gap: 16px;
  margin: 34px auto 0;
  padding: 20px 16px 28px;
}

.prompt-field--support textarea {
  min-height: 100px;
}

/* 11. Auth pages */
.auth-screen {
  padding-top: 62px;
}

.auth-screen--simple {
  min-height: 620px;
}

.auth-screen__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 140px;
  align-items: center;
  min-height: 740px;
}

.auth-screen__marketing {
  padding-left: 140px;
}

.auth-screen__kicker {
  margin-bottom: 40px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.auth-screen__marketing-title {
  text-align: left;
  font-size: 56px;
}

.auth-screen__marketing p:last-child {
  margin-top: 34px;
  color: #fff;
  font-size: 18px;
}

.auth-screen--simple .gradient-heading {
  margin-bottom: 60px;
}

.form-message {
  margin: 0;
}

/* 12. Dashboard/create flow */
.app-screen {
  padding-top: 62px;
}

.credits-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 86px;
  margin-top: 58px;
  flex-wrap: wrap;
}

.credits-row__count {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: 18px;
  font-weight: 900;
}

.credits-row__count span {
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.credits-row__count strong {
  color: var(--color-purple-light);
  font-size: 40px;
}

.credits-row__warning {
  width: 100%;
  color: var(--color-error);
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.create-form {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 116px;
  align-items: start;
}

.upload-block {
  display: grid;
  justify-items: center;
  gap: 32px;
}

.upload-dropzone {
  width: 300px;
  height: 300px;
  overflow: hidden;
  border: 2px dashed var(--color-cyan);
  border-radius: 16px;
}

.upload-dropzone.is-filled {
  border-style: solid;
  border-color: var(--color-purple);
  box-shadow: var(--shadow-neon-purple);
}

.upload-dropzone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-block__btn {
  min-width: 170px;
}

.create-form__fields {
  display: grid;
  gap: 20px;
}

.select-field {
  display: grid;
}

.select-field__button,
.select-field__option {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-cyan);
  background: transparent;
  color: #fff;
  padding: 0 16px;
  text-align: left;
  font-weight: 500;
}

.select-field__button {
  border-radius: 8px;
  font-size: 17px;
}

.select-field.is-open .select-field__button {
  border-radius: 8px 8px 0 0;
}

.select-field__menu {
  display: grid;
}

.select-field__option {
  border-top: 0;
  font-size: 14px;
}

.select-field__option:last-child {
  border-radius: 0 0 8px 8px;
}

.select-field__option i {
  width: 12px;
  height: 12px;
  border: 1px solid var(--color-purple-light);
  border-radius: 50%;
}

.select-field__option.is-selected i {
  background: var(--color-purple-light);
  box-shadow: 0 0 0 3px rgba(222, 96, 246, .2);
}

.select-field__error {
  margin-top: 8px;
}

.create-form__submit {
  justify-self: start;
  min-width: 210px;
}

.generation-state,
.generation-result {
  display: grid;
  justify-items: center;
  margin-top: 70px;
}

.generation-preview {
  width: min(610px, 100%);
  aspect-ratio: 1.5;
  border: 2px solid var(--color-purple);
  border-radius: 18px;
  background: var(--gradient-preview);
  box-shadow: var(--shadow-neon-purple);
}

.generation-state p {
  margin-top: 38px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.generation-state--error p {
  color: var(--color-error);
}

.generation-state--error .btn {
  margin-top: 24px;
}

.generation-result__actions {
  display: flex;
  gap: 48px;
  margin-top: 34px;
}

/* 13. Profile/payment */
.profile-strip {
  margin-top: 52px;
  background: rgba(21, 4, 33, .86);
  box-shadow: inset 0 0 28px rgba(181, 80, 201, .18);
}

.profile-strip__inner {
  display: grid;
  min-height: 156px;
  grid-template-columns: 220px 360px 1fr;
  gap: 108px;
  align-items: center;
}

.profile-strip label {
  display: grid;
  gap: 10px;
}

.profile-strip span {
  color: #fff;
  font-size: 16px;
}

.profile-strip strong {
  min-height: 38px;
  border: 1px solid var(--color-cyan);
  border-radius: 7px;
  padding: 8px 24px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.profile-strip a {
  justify-self: end;
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
}

.profile-generations {
  padding-top: 56px;
}

.gallery-grid--profile {
  width: min(960px, 100%);
}

/* 14. Responsive */
@media (max-width: 900px) {
  .container,
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 32px, var(--container-desktop));
  }

  .site-header,
  .site-header__inner {
    min-height: var(--header-height-mobile);
  }

  .logo--desktop,
  .logo--footer {
    font-size: 18px;
    gap: 4px;
  }

  .site-header__inner {
    position: relative;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .site-header__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(222, 96, 246, .5);
    border-radius: 12px;
    background: rgba(15, 6, 31, .98);
    box-shadow: var(--shadow-neon-purple);
  }

  .site-header__menu.is-open {
    display: flex;
  }

  .site-nav,
  .site-header__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .site-nav a,
  .site-header__actions .btn,
  .profile-pill {
    justify-content: center;
    width: 100%;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 34px;
    text-align: center;
  }

  .hero-section__copy {
    max-width: none;
  }

  .hero-section__title {
    text-align: center;
    font-size: 26px;
  }

  .hero-section__copy p {
    font-size: 11px;
  }

  .hero-section .btn {
    width: 100%;
  }

  .before-after--hero .before-after__media,
  .before-after--result .before-after__media {
    width: 100%;
  }

  .section {
    padding-top: 52px;
  }

  .gradient-heading {
    font-size: 21px;
  }

  .stepper {
    grid-template-columns: 1fr;
    gap: 26px;
    margin: 34px auto 38px;
  }

  .stepper__item {
    min-height: 70px;
    font-size: 12px;
  }

  .stepper__item:not(:last-child)::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -28px;
    width: 18px;
    height: 28px;
    transform: translateX(-50%) rotate(90deg);
  }

  .gallery-grid,
  .gallery-grid--profile {
    grid-template-columns: 1fr;
    gap: 34px;
    width: min(250px, 100%);
    margin-top: 34px;
  }

  .faq-accordion {
    gap: 10px;
  }

  .faq-item__question {
    min-height: 42px;
    font-size: 10px;
  }

  .faq-item__answer p {
    font-size: 10px;
    line-height: 1.35;
  }

  .site-footer {
    margin-top: 70px;
  }

  .site-footer__inner {
    min-height: 210px;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    text-align: center;
  }

  .site-footer__links {
    flex-direction: column;
    gap: 18px;
    font-size: 11px;
  }

  .help-article {
    padding-top: 34px;
  }

  .help-article__content p {
    font-size: 12px;
    line-height: 1.32;
  }

  .auth-screen {
    padding-top: 28px;
  }

  .auth-screen__grid {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    text-align: center;
  }

  .auth-screen__marketing {
    padding-left: 0;
  }

  .auth-screen__kicker {
    margin-bottom: 24px;
    font-size: 17px;
  }

  .auth-screen__marketing-title {
    text-align: center;
    font-size: 28px;
  }

  .auth-screen__marketing p:last-child {
    margin-top: 20px;
    font-size: 13px;
  }

  .auth-card,
  .auth-card--narrow,
  .support-form {
    width: 100%;
  }

  .auth-screen--register .auth-card {
    border-radius: 18px;
    background: #fff;
    color: #151521;
  }

  .auth-screen--register .form-field {
    color: #151521;
  }

  .auth-screen--register .form-field input {
    color: #151521;
  }

  .auth-screen--register .password-toggle {
    color: #151521;
  }

  .app-screen {
    padding-top: 34px;
  }

  .credits-row {
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
  }

  .credits-row__count {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 14px;
  }

  .credits-row__count strong {
    font-size: 34px;
  }

  .credits-row .btn {
    width: 100%;
  }

  .create-form {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .upload-dropzone {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .upload-block__btn,
  .create-form__submit {
    width: 100%;
  }

  .generation-result__actions {
    width: 100%;
    flex-direction: column;
    gap: 16px;
  }

  .generation-result__actions .btn {
    width: 100%;
  }

  .generation-state p {
    font-size: 16px;
  }

  .profile-strip__inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 30px;
  }

  .profile-strip a {
    justify-self: start;
  }
}

@media (max-width: 360px) {
  .container,
  .site-header__inner,
  .site-footer__inner {
    width: calc(100% - 20px);
  }

  .btn {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero-section__title {
    font-size: 24px;
  }

  .before-after__caption strong,
  .before-after__caption span,
  .before-after__caption time {
    font-size: 10px;
  }

  .form-field__label,
  .prompt-field__label,
  .select-field__button {
    font-size: 14px;
  }

  .captcha-mock {
    grid-template-columns: 24px 1fr 28px;
    gap: 8px;
    padding: 10px 8px;
  }

  .captcha-mock__text strong {
    font-size: 14px;
  }

  .captcha-mock__text small {
    font-size: 11px;
  }

  .modal-card__content {
    font-size: 20px;
  }
}
