:root {
  color-scheme: light;
  --ink: #261f1b;
  --muted: #706760;
  --soft: #f1ece4;
  --paper: #faf7f1;
  --panel: #fffdfa;
  --panel-soft: #f8f2ea;
  --line: #e4d8ca;
  --line-strong: #d4c1ad;
  --night: #171b1f;
  --night-2: #20262c;
  --coral: #e96135;
  --cyan: #2a9d8f;
  --green: #3d9b72;
  --gold: #c7952d;
  --focus: #d96a3a;
  --shadow-sm: 0 1px 2px rgba(38, 31, 27, 0.06), 0 10px 26px rgba(38, 31, 27, 0.06);
  --shadow-lg: 0 28px 76px rgba(38, 31, 27, 0.16), 0 2px 12px rgba(38, 31, 27, 0.08);
  --content: min(1180px, calc(100vw - 32px));
  --wide: min(1280px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbf8f2 0%, #f6f0e8 38%, #f9f7f2 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(233, 97, 53, 0.16);
}

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

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

[hidden] {
  display: none !important;
}

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

button,
input,
select,
textarea,
a {
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 72%, white);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--night);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-left));
  padding-inline: clamp(16px, 4vw, 56px);
  background: rgba(250, 247, 241, 0.82);
  border-bottom: 1px solid rgba(111, 94, 78, 0.14);
  backdrop-filter: blur(20px) saturate(1.08);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  background: var(--panel);
  border: 1px solid rgba(111, 94, 78, 0.2);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(38, 31, 27, 0.08);
}

.nav-links,
.site-footer nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a,
.site-footer a {
  padding: 6px 8px;
  border-radius: 999px;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover,
.nav-links a[aria-current="page"],
.site-footer a[aria-current="page"] {
  color: var(--ink);
  background: rgba(233, 97, 53, 0.08);
}

.nav-links a[aria-current="page"],
.site-footer a[aria-current="page"] {
  font-weight: 900;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta,
.button,
.submit-button,
.login-button,
.logout-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.header-cta,
.button {
  padding: 0 18px;
}

.header-cta,
.button.primary,
.submit-button {
  color: #fff;
  background: var(--night);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(16, 19, 24, 0.16);
}

.button.primary,
.submit-button {
  background: linear-gradient(135deg, #ec7146, var(--coral));
  box-shadow: 0 14px 32px rgba(233, 97, 53, 0.24);
}

.button.secondary,
.login-button,
.logout-button {
  color: var(--night);
  background: rgba(255, 253, 250, 0.88);
  border: 1px solid var(--line);
}

.login-button,
.logout-button {
  padding: 0 14px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.header-cta:hover,
.button:hover,
.submit-button:hover,
.login-button:hover,
.logout-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 32px rgba(16, 19, 24, 0.16);
}

.submit-button:disabled {
  cursor: progress;
  opacity: 0.86;
  transform: none;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.submit-button[aria-busy="true"] .button-spinner {
  display: block;
}

.user-badge {
  display: inline-flex;
  min-height: 44px;
  max-width: 190px;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  color: var(--night);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 850;
}

.user-badge[hidden],
.login-button[hidden],
.logout-button[hidden] {
  display: none;
}

.user-badge img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: cover;
  background: var(--soft);
  border-radius: 50%;
}

.user-badge span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: flex;
  min-height: clamp(640px, 84vh, 860px);
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(92px, 12vw, 152px) clamp(16px, 4vw, 56px) clamp(48px, 8vw, 92px);
  color: #fff;
  background: #151719;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 27, 31, 0.94) 0%, rgba(30, 28, 25, 0.78) 46%, rgba(23, 27, 31, 0.28) 100%),
    linear-gradient(180deg, rgba(233, 97, 53, 0.08) 0%, rgba(23, 27, 31, 0.74) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: var(--wide);
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .eyebrow,
.section-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  background: rgba(233, 97, 53, 0.1);
  border: 1px solid rgba(233, 97, 53, 0.16);
  border-radius: 999px;
}

.hero .eyebrow {
  color: #ff9b78;
  background: rgba(233, 97, 53, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
}

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

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: min(880px, 100%);
  margin-bottom: 22px;
  font-size: clamp(2.85rem, 5.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  text-wrap: pretty;
}

.hero .hero-lede {
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.trust-strip,
.pricing-summary {
  font-variant-numeric: tabular-nums;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 34px 0 0;
}

.trust-strip div {
  min-width: 0;
  padding: 15px 16px;
  background: rgba(255, 253, 250, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(14px);
}

.trust-strip dt,
.pricing-summary span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trust-strip dd {
  margin: 4px 0 0;
  color: #fff;
  font-weight: 850;
}

.generator-section {
  padding: clamp(58px, 8vw, 108px) clamp(16px, 4vw, 56px);
  background:
    linear-gradient(180deg, #fffdfa 0%, #f6f0e8 100%);
}

.generator-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.46fr) minmax(620px, 1fr);
  gap: clamp(44px, 7vw, 108px);
  align-items: start;
  width: var(--wide);
  margin: 0 auto;
}

.generator-copy {
  max-width: 440px;
}

.generator-copy h2 {
  font-size: clamp(1.85rem, 2.9vw, 3.1rem);
}

.generator-copy p,
.section > p,
.plan-head p,
.pricing-note,
.credit-grid p,
.feature-grid p,
.showcase-grid p,
.case-list p,
.quality-grid p,
.steps p,
.quote-grid blockquote,
.faq p {
  color: var(--muted);
}

.generator-copy p,
.section > p {
  font-size: 1.06rem;
  text-wrap: pretty;
}

.generator-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.generator-pills li {
  min-height: 40px;
  padding: 8px 13px;
  color: var(--night);
  background: rgba(255, 253, 250, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  font-weight: 850;
}

.hero-panel {
  width: 100%;
}

.generator-card {
  padding: clamp(18px, 2vw, 24px);
  color: #f8fafc;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.08), rgba(255, 255, 255, 0)),
    var(--night);
  border: 1px solid rgba(255, 253, 250, 0.14);
  border-radius: 14px;
  box-shadow: 0 34px 88px rgba(38, 31, 27, 0.2), 0 2px 12px rgba(38, 31, 27, 0.08);
}

.generator-form-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(330px, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.generator-media-pane,
.generator-controls-pane {
  min-width: 0;
}

.generator-media-pane {
  display: grid;
  gap: 12px;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 850;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b8efd0;
  font-size: 0.88rem;
}

.status-dot::before {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 999px;
  content: "";
}

.upload-zone {
  position: relative;
  display: grid;
  min-height: 284px;
  place-items: center;
  overflow: hidden;
  margin-bottom: 0;
  padding: 24px;
  color: #f8fafc;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.04), rgba(255, 253, 250, 0)),
    #1b2029;
  border: 1px dashed rgba(255, 253, 250, 0.34);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.upload-zone:hover,
.upload-zone:focus-within {
  background: #202734;
  border-color: rgba(20, 167, 182, 0.86);
}

.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ef7a50, var(--coral));
  border-radius: 999px;
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1;
}

.upload-title,
.upload-meta {
  display: block;
}

.upload-title {
  font-weight: 900;
}

.upload-meta {
  color: #aeb7c5;
  font-size: 0.9rem;
}

#previewImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.upload-zone.has-preview #previewImage {
  opacity: 1;
}

.upload-zone.has-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 19, 24, 0.16), rgba(16, 19, 24, 0.68));
  content: "";
}

.upload-zone.has-preview .upload-icon,
.upload-zone.has-preview .upload-title,
.upload-zone.has-preview .upload-meta {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: #fff;
  background-color: #171b22;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 650;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field textarea {
  min-height: 118px;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.field input:focus,
.field select:focus,
.field textarea:focus {
  background-color: #1d232d;
  border-color: rgba(20, 167, 182, 0.82);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8792a3;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.advanced {
  margin: 4px 0 14px;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.advanced summary {
  min-height: 44px;
  padding: 12px 0 8px;
  color: #cbd3df;
  cursor: pointer;
  font-weight: 850;
}

.submit-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  font-size: 1rem;
}

.result-box {
  margin-top: 14px;
  padding: 14px;
  color: #f8fafc;
  background: #171b22;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #303846;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--cyan), var(--gold));
  transition: width 260ms ease;
}

.result-box p {
  margin: 0;
  color: #d8dee8;
  font-size: 0.92rem;
}

.result-box video {
  width: 100%;
  margin-top: 12px;
  border-radius: 8px;
}

.section {
  width: var(--wide);
  padding: clamp(66px, 9vw, 118px) 0;
  margin: 0 auto;
}

.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(42px, 6vw, 96px);
  align-items: center;
}

.product-intro .section-kicker {
  margin-top: 10px;
}

.section-visual {
  margin: 0;
  overflow: hidden;
  background: rgba(255, 253, 250, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.section-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

.section-visual figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.feature-section,
.how-section,
.testimonials,
.pricing-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1280px) / 2));
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.92), rgba(250, 247, 241, 0.92));
}

.feature-section > *,
.how-section > *,
.testimonials > *,
.pricing-section > * {
  max-width: var(--wide);
  margin-inline: auto;
}

.feature-grid,
.showcase-grid,
.quote-grid,
.case-list,
.quality-grid,
.steps,
.pricing-grid,
.credit-grid {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  margin-top: 30px;
}

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

.case-list,
.quality-grid,
.quote-grid,
.credit-grid,
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article,
.case-list article,
.quality-grid article,
.quote-grid figure,
.pricing-card,
.credit-grid article,
.faq details {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 253, 250, 0.96));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 32px rgba(38, 31, 27, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-grid article,
.case-list article,
.quality-grid article,
.quote-grid figure,
.credit-grid article {
  padding: 24px;
}

.card-icon,
.step-icon,
.case-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--green);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 900;
}

.card-icon svg,
.step-icon svg,
.case-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.feature-grid article:nth-child(2) .card-icon,
.steps li:nth-child(2) .step-icon,
.case-list article:nth-child(2) .case-icon {
  background: var(--cyan);
}

.feature-grid article:nth-child(3) .card-icon,
.steps li:nth-child(3) .step-icon {
  background: var(--gold);
}

.feature-grid article:nth-child(4) .card-icon,
.steps li:nth-child(4) .step-icon,
.case-list article:nth-child(3) .case-icon {
  background: var(--coral);
}

.showcase-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.showcase-grid article {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1fr);
  column-gap: clamp(34px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 253, 250, 0.96));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 38px rgba(38, 31, 27, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.showcase-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--soft);
  transition: transform 260ms ease;
}

.showcase-grid article > div {
  min-width: 0;
  padding: clamp(28px, 4.4vw, 54px) clamp(28px, 4.8vw, 64px) clamp(28px, 4.4vw, 54px) 0;
  transition: transform 220ms ease;
}

.case-tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 14px;
  padding: 4px 9px;
  color: var(--night);
  background: rgba(233, 97, 53, 0.09);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-grid h3 {
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
}

.showcase-grid p {
  max-width: 620px;
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 260px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.78), rgba(248, 242, 234, 0.92));
  border: 1px solid var(--line);
  border-radius: 14px;
  counter-increment: steps;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 28px rgba(38, 31, 27, 0.05);
}

.steps li::before {
  position: absolute;
  top: 24px;
  right: 22px;
  color: var(--cyan);
  content: "0" counter(steps);
  font-size: 1.4rem;
  font-weight: 900;
}

.quality-grid article {
  overflow: hidden;
  padding: 0;
}

.quality-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
  transition: transform 260ms ease;
}

.quality-grid h3,
.quality-grid p {
  padding-inline: 22px;
}

.quality-grid h3 {
  margin-top: 20px;
}

.quality-grid p {
  padding-bottom: 22px;
}

@media (hover: hover) and (pointer: fine) {
  .section-visual:hover,
  .feature-grid article:hover,
  .case-list article:hover,
  .quality-grid article:hover,
  .quote-grid figure:hover,
  .pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92), 0 22px 52px rgba(38, 31, 27, 0.1);
  }

  .showcase-grid article:hover,
  .showcase-grid article:focus-within {
    transform: translateX(6px);
    border-color: var(--line-strong);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92), 0 24px 60px rgba(38, 31, 27, 0.12);
  }

  .showcase-grid article:hover img,
  .showcase-grid article:focus-within img {
    transform: translateX(-8px);
  }

  .showcase-grid article:hover > div,
  .showcase-grid article:focus-within > div {
    transform: translateX(6px);
  }

  .quality-grid article:hover img,
  .section-visual:hover img {
    transform: scale(1.025);
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .product-intro,
    .feature-grid article,
    .showcase-grid article,
    .steps li,
    .quality-grid article,
    .case-list article,
    .quote-grid figure,
    .faq details,
    .final-cta > * {
      animation: rise-in both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }

    .showcase-grid article:nth-child(2),
    .steps li:nth-child(2),
    .quality-grid article:nth-child(2),
    .case-list article:nth-child(2) {
      animation-range: entry 4% cover 26%;
    }

    .showcase-grid article:nth-child(3),
    .steps li:nth-child(3),
    .quality-grid article:nth-child(3),
    .case-list article:nth-child(3) {
      animation-range: entry 8% cover 28%;
    }
  }
}

.quote-grid blockquote {
  margin: 0 0 18px;
  font-size: 1.02rem;
}

.quote-grid figcaption {
  font-weight: 900;
}

.faq {
  max-width: 1100px;
}

.faq details {
  margin-top: 12px;
  padding: 20px 22px;
}

.faq summary {
  min-height: 32px;
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  margin: 12px 0 0;
}

.final-cta {
  padding: clamp(64px, 9vw, 108px) clamp(16px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20, 167, 182, 0.2), transparent 42%),
    var(--night);
  text-align: center;
}

.final-cta h2,
.final-cta p {
  margin-inline: auto;
}

.final-cta p {
  max-width: 620px;
  color: #d8dee8;
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  width: var(--wide);
  padding: clamp(62px, 9vw, 126px) 0 48px;
  margin: 0 auto;
}

.pricing-hero-copy {
  max-width: 940px;
}

.pricing-summary {
  display: grid;
  gap: 12px;
  padding: 18px;
  color: #fff;
  background: var(--night);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.pricing-summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  background: var(--night-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.pricing-summary strong {
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1;
}

.pricing-summary span {
  color: #cbd3df;
  text-align: right;
}

.pricing-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
}

.pricing-card h3 {
  font-size: 1.35rem;
}

.plan-head {
  min-height: 112px;
}

.credit-rate {
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 9px;
  color: var(--night);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

.plan-price span {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
}

.plan-price small {
  color: var(--muted);
  font-weight: 800;
}

.custom-price span {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.popular-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 9px;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-plan {
  border-color: rgba(240, 100, 79, 0.62);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 55px rgba(240, 100, 79, 0.16);
}

.plan-features {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 24px;
  color: var(--muted);
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 24px;
}

.plan-features li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  color: var(--green);
  content: "+";
  font-weight: 900;
}

.pricing-card .button {
  width: 100%;
  margin-top: auto;
}

.enterprise-card {
  grid-column: span 3;
  color: #fff;
  background: var(--night);
  border-color: rgba(255, 255, 255, 0.12);
}

.enterprise-card .plan-head p,
.enterprise-card .plan-features,
.enterprise-card .plan-price small {
  color: #cbd3df;
}

.enterprise-card .button.secondary {
  color: var(--night);
}

.pricing-note {
  max-width: 860px;
  margin: 22px 0 0;
}

.pricing-faq {
  padding-top: clamp(42px, 7vw, 86px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 36px clamp(16px, 4vw, 56px);
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-video {
    display: none;
  }

  .section-visual,
  .feature-grid article,
  .case-list article,
  .quality-grid article,
  .quote-grid figure,
  .pricing-card,
  .showcase-grid article,
  .showcase-grid img,
  .showcase-grid article > div,
  .quality-grid img {
    transform: none !important;
  }
}

@media (max-width: 1100px) {
  .generator-shell,
  .product-intro,
  .pricing-hero {
    grid-template-columns: 1fr;
  }

  .generator-copy {
    position: static;
    max-width: 760px;
  }

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

  .enterprise-card {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 630px;
    padding-top: 74px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(16, 19, 24, 0.3), rgba(16, 19, 24, 0.78) 54%, rgba(16, 19, 24, 0.95)),
      linear-gradient(90deg, rgba(16, 19, 24, 0.9), rgba(16, 19, 24, 0.28));
  }

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

  .trust-strip,
  .showcase-grid,
  .quality-grid,
  .case-list,
  .quote-grid,
  .credit-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid article {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

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

@media (max-width: 600px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
    align-items: center;
  }

  .brand span:last-child {
    max-width: 94px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-cta {
    padding: 0 12px;
  }

  .login-button,
  .logout-button {
    padding: 0 10px;
    max-width: 154px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-badge {
    max-width: 120px;
  }

  .field-grid,
  .feature-grid,
  .steps,
  .generator-form-layout,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-card {
    grid-column: auto;
  }

  .steps li {
    min-height: auto;
  }

  .header-actions {
    flex-wrap: nowrap;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.45rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }
}
