:root {
  color-scheme: light;
  --ink: #19192e;
  --muted: #6f6f7b;
  --soft: #f4f4f7;
  --paper: #fafafa;
  --panel: #ffffff;
  --panel-soft: #f7f7fb;
  --line: #e8e8ee;
  --line-strong: #d8d8e4;
  --night: #19192e;
  --night-2: #24243a;
  --coral: #e44479;
  --cyan: #4aa7ff;
  --green: #3d9b72;
  --gold: #ffd84d;
  --focus: #e44479;
  --shadow-sm: 0 1px 2px rgba(25, 25, 46, 0.05), 0 10px 26px rgba(25, 25, 46, 0.06);
  --shadow-lg: 0 28px 76px rgba(25, 25, 46, 0.12), 0 2px 12px rgba(25, 25, 46, 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, #fff7fb 0%, #fafafa 22%, #f8f8fb 100%);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(228, 68, 121, 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: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1216px, calc(100vw - 48px));
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(25, 25, 46, 0.08);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(25, 25, 46, 0.08);
  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(25, 25, 46, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(25, 25, 46, 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(228, 68, 121, 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: 999px;
  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: var(--night);
  box-shadow: 0 20px 28px -12px rgba(25, 25, 46, 0.22);
}

.button.secondary,
.login-button,
.logout-button {
  color: var(--night);
  background: rgba(255, 255, 255, 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(700px, 88vh, 880px);
  align-items: center;
  overflow: hidden;
  margin-top: -80px;
  padding: clamp(150px, 14vw, 190px) clamp(16px, 4vw, 56px) clamp(70px, 8vw, 104px);
  color: var(--ink);
  text-align: center;
  background:
    linear-gradient(180deg, #fff3f8 0%, #fafafa 54%, #ffffff 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  display: block;
  width: clamp(170px, 18vw, 270px);
  aspect-ratio: 16 / 10;
  background-position: center;
  background-size: cover;
  border: 10px solid #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(25, 25, 46, 0.15), 0 1px 2px rgba(25, 25, 46, 0.08);
  content: "";
}

.hero::before {
  top: clamp(178px, 17vw, 238px);
  left: clamp(-72px, 2vw, 42px);
  background-image: url("/public/showcase-product.webp");
  transform: rotate(-7deg);
}

.hero::after {
  right: clamp(-38px, 6vw, 110px);
  bottom: clamp(78px, 12vw, 150px);
  background-image: url("/public/showcase-travel.webp");
  transform: rotate(7deg);
}

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

.hero-video {
  inset: auto clamp(-54px, 3vw, 58px) auto auto;
  top: clamp(178px, 17vw, 238px);
  z-index: 0;
  width: clamp(170px, 17vw, 250px);
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  background: #fff;
  border: 10px solid #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(25, 25, 46, 0.15), 0 1px 2px rgba(25, 25, 46, 0.08);
  transform: rotate(6deg);
}

.hero-overlay {
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 48px));
  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: var(--coral);
  background: #ffe8f0;
  border-color: transparent;
}

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

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 100%;
  margin-bottom: 24px;
  font-size: clamp(2.95rem, 5.2vw, 5.1rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: var(--coral);
  font-style: italic;
}

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: 660px;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  text-wrap: pretty;
}

.hero .hero-lede {
  color: var(--muted);
}

.hero-actions {
  justify-content: center;
  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: 720px;
  margin: 34px auto 0;
}

.trust-strip div {
  min-width: 0;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

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

.trust-strip dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 850;
}

.generator-section {
  padding: clamp(58px, 8vw, 108px) clamp(16px, 4vw, 56px);
  background:
    radial-gradient(circle at 16% 12%, rgba(228, 68, 121, 0.12), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(74, 167, 255, 0.1), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8f8fb 100%);
}

.generator-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
  align-items: start;
  width: min(100%, var(--wide));
  margin: 0 auto;
}

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

.generator-copy h2 {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
}

.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;
}

.hero-panel {
  width: 100%;
}

.generator-card {
  padding: clamp(18px, 2vw, 24px);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 255, 0.92));
  border: 1px solid rgba(25, 25, 46, 0.08);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(25, 25, 46, 0.11), 0 2px 12px rgba(25, 25, 46, 0.05);
}

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

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

.generator-controls-pane,
.generator-preview-pane {
  display: grid;
  gap: 12px;
}

.generator-preview-pane {
  position: sticky;
  top: 92px;
}

.preview-topline {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.preview-topline span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.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: var(--green);
  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: 220px;
  place-items: center;
  overflow: hidden;
  margin-bottom: 0;
  padding: 24px;
  color: var(--ink);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 232, 240, 0.5), rgba(255, 255, 255, 0.84)),
    #fff;
  border: 1px dashed rgba(228, 68, 121, 0.36);
  border-radius: 18px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.upload-zone:hover,
.upload-zone:focus-within {
  background: #fff;
  border-color: rgba(228, 68, 121, 0.72);
}

.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: var(--muted);
  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: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background-color: #fff;
  border: 1px solid rgba(25, 25, 46, 0.12);
  border-radius: 14px;
  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;
}

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

.prompt-template {
  min-height: 38px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(25, 25, 46, 0.1);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.prompt-template:hover,
.prompt-template:focus-visible {
  color: var(--ink);
  background: #fff7fb;
  border-color: rgba(228, 68, 121, 0.42);
}

.prompt-template.is-active {
  color: #fff;
  background: var(--coral);
  border-color: transparent;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.field input:focus,
.field select:focus,
.field textarea:focus {
  background-color: #fff;
  border-color: rgba(228, 68, 121, 0.62);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9a9aa8;
}

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

.advanced {
  margin: 4px 0 14px;
  color: var(--ink);
  border-top: 1px solid rgba(25, 25, 46, 0.08);
}

.advanced summary {
  min-height: 44px;
  padding: 12px 0 8px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

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

.credit-cost-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.result-box {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 14px;
  color: var(--ink);
  background: #f7f7fb;
  border: 1px solid rgba(25, 25, 46, 0.08);
  border-radius: 18px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  background: #e7e7ef;
  border-radius: 999px;
}

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

.progress-track span.is-loading {
  animation: progress-flow 1.1s linear infinite;
}

@keyframes progress-flow {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 180% 0;
  }
}

.result-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.result-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(25, 25, 46, 0.08);
  border-radius: 16px;
}

.generation-history {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(25, 25, 46, 0.08);
  border-radius: 18px;
}

.generation-history[hidden] {
  display: none;
}

.history-topline {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.history-topline button,
.history-item button,
.history-item a {
  min-height: 30px;
  padding: 7px 10px;
  color: #101318;
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.history-list {
  display: grid;
  gap: 9px;
}

.history-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #f7f7fb;
  border: 1px solid rgba(25, 25, 46, 0.08);
  border-radius: 14px;
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #a9b3c2;
  font-size: 0.76rem;
  font-weight: 800;
}

.history-status {
  color: #101318;
  background: var(--cyan);
  border-radius: 999px;
  padding: 4px 7px;
}

.history-prompt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}

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

.product-intro .section-copy {
  max-width: 780px;
}

.section-visual {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.product-visual img {
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  background: transparent;
}

.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, 255, 255, 0.92), rgba(247, 247, 251, 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: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(25, 25, 46, 0.04), 0 16px 40px rgba(25, 25, 46, 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: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: transparent;
  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;
}

.credit-contact-notice {
  margin: 0;
  padding: 13px 14px;
  color: #101318;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.45;
}

.credit-contact-notice[hidden] {
  display: none;
}

.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);
}

.legal-hero {
  width: var(--content);
  padding: clamp(64px, 10vw, 132px) 0 clamp(28px, 5vw, 56px);
  margin: 0 auto;
}

.legal-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.legal-hero span {
  display: inline-flex;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.legal-shell {
  width: var(--content);
  padding-bottom: clamp(64px, 10vw, 128px);
  margin: 0 auto;
}

.legal-card {
  max-width: 920px;
  padding: clamp(28px, 5vw, 62px);
  background: rgba(255, 253, 250, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.legal-card h2 {
  margin-top: clamp(28px, 4vw, 42px);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--muted);
}

.legal-card a {
  color: var(--coral);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.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: auto;
    padding-top: 340px;
    text-align: center;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-video {
    top: 118px;
    right: 50%;
    display: block;
    width: min(78vw, 330px);
    transform: translateX(50%) rotate(3deg);
  }

  .hero-overlay {
    background: none;
  }

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

  .generator-preview-pane {
    position: static;
  }

  .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);
  }
}
