:root {
  color-scheme: light;
  --ink: #20213a;
  --muted: #687191;
  --paper: rgba(255, 255, 255, 0.82);
  --paper-solid: #ffffff;
  --line: rgba(121, 139, 196, 0.2);
  --blue: #58bdfd;
  --lilac: #d8c9ff;
  --purple: #8f72ff;
  --deep-purple: #5641be;
  --gold: #ffd76a;
  --gold-deep: #f5ad22;
  --rose: #ff8fc7;
  --shadow: 0 24px 80px rgba(57, 48, 111, 0.16);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 215, 106, 0.42), transparent 18rem),
    radial-gradient(circle at 86% 12%, rgba(216, 201, 255, 0.7), transparent 20rem),
    linear-gradient(135deg, #eff9ff 0%, #f7f2ff 45%, #ffffff 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    radial-gradient(circle, rgba(86, 65, 190, 0.16) 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 2px);
  background-size: 90px 90px, 130px 130px;
  background-position: 20px 30px, 70px 10px;
}

body::after {
  background:
    radial-gradient(ellipse at 20% 85%, rgba(88, 189, 253, 0.18), transparent 18rem),
    radial-gradient(ellipse at 90% 80%, rgba(255, 143, 199, 0.14), transparent 16rem);
}

a {
  color: inherit;
}

.site-header,
.section-shell,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.05rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
  box-shadow: 0 12px 34px rgba(86, 65, 190, 0.28);
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-weight: 750;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--deep-purple);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: 42px;
  align-items: center;
  padding: 58px 0 50px;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 78px;
  left: -24px;
  top: -32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  filter: blur(1px);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--deep-purple);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.62;
}

.hero-actions,
.actions,
.modal-actions,
.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.trust-note {
  color: var(--muted);
  font-weight: 800;
}

.button,
button {
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-large {
  min-height: 58px;
  padding: 0 28px;
  font-size: 1.05rem;
}

.button-gold {
  color: #332400;
  background: linear-gradient(135deg, #ffe58d, var(--gold-deep));
  box-shadow: 0 16px 34px rgba(245, 173, 34, 0.32);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.74);
  color: var(--deep-purple);
  border: 1px solid var(--line);
}

.glass-card,
.soft-card,
.benefit-card,
.testimonial-card,
.example-card,
details {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.video-carousel {
  border-radius: 28px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.video-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(88, 189, 253, 0.14), rgba(255, 143, 199, 0.12)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8), transparent 12rem);
  pointer-events: none;
}

.carousel-topline,
.video-stage,
.thumb-row {
  position: relative;
}

.carousel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.icon-button {
  min-height: 42px;
  width: 42px;
  padding: 0;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.video-stage {
  aspect-ratio: 9 / 13.6;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #aee7ff, #eedcff);
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  padding: 28px;
  color: #41346e;
}

.play-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(86, 65, 190, 0.22);
  position: relative;
}

.play-orb::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 23px;
  border-left: 18px solid var(--deep-purple);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.thumb-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.thumb-row button {
  flex: 0 0 116px;
  height: 82px;
  padding: 8px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 220, 255, 0.82));
  border: 2px solid transparent;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
}

.thumb-row button[aria-current="true"] {
  border-color: var(--gold-deep);
}

.mini-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--deep-purple);
  position: relative;
}

.mini-play::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  border-left: 8px solid white;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.thumb-title {
  max-width: 100%;
  color: #3c3474;
  font-size: 0.72rem;
  line-height: 1.05;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.section-block {
  padding: 56px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading.narrow {
  max-width: 660px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.step-grid,
.benefit-grid,
.testimonial-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.soft-card,
.benefit-card,
.testimonial-card,
.example-card {
  border-radius: var(--radius);
  padding: 24px;
}

.step-icon {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 950;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--rose));
  margin-bottom: 18px;
}

.soft-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.soft-card p,
.testimonial-card p,
details p,
.site-footer p {
  color: var(--muted);
  line-height: 1.55;
}

.creator-section {
  padding: 64px 0;
}

.creator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: 22px;
  align-items: start;
}

.creator-form,
.live-preview {
  border-radius: 28px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label span {
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(110, 124, 166, 0.25);
  border-radius: 20px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  outline: none;
}

textarea {
  min-height: 138px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(143, 114, 255, 0.14);
}

.form-error-summary {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 76, 91, 0.22);
  border-radius: 16px;
  background: rgba(255, 245, 246, 0.82);
  color: #9c2f3f;
  font-size: 0.94rem;
  font-weight: 800;
}

.form-error-summary[hidden] {
  display: none;
}

.field-error {
  min-height: 1.1em;
  color: #9c2f3f;
  font-size: 0.82rem;
  font-weight: 800;
}

input.field-invalid,
textarea.field-invalid {
  border-color: rgba(203, 76, 91, 0.72);
  background: rgba(255, 250, 250, 0.96);
}

input.field-invalid:focus,
textarea.field-invalid:focus {
  border-color: rgba(203, 76, 91, 0.86);
  box-shadow: 0 0 0 4px rgba(203, 76, 91, 0.13);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 18px;
}

.chip-group button {
  min-height: 36px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep-purple);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.live-preview {
  position: sticky;
  top: 18px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#resultBadge {
  background: rgba(255, 215, 106, 0.35);
  color: #6e4a00;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.message-preview {
  min-height: 230px;
  display: grid;
  align-content: center;
  padding: 24px;
  border-radius: 24px;
  margin: 12px 0 16px;
  color: #332e67;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.88), transparent 7rem),
    linear-gradient(135deg, rgba(174, 231, 255, 0.74), rgba(238, 220, 255, 0.82));
}

.message-preview strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.message-preview p {
  margin: 0;
  color: #4f4a80;
  font-size: 1.08rem;
  line-height: 1.5;
}

.meter {
  width: 100%;
  height: 10px;
  background: rgba(91, 111, 162, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  transition: width 240ms ease;
}

#statusText {
  color: var(--muted);
  line-height: 1.5;
}

#resultVideo {
  width: 100%;
  border-radius: 22px;
  background: #15152a;
  margin: 12px 0;
}

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

.benefit-card {
  min-height: 132px;
  display: flex;
  align-items: end;
  font-weight: 950;
  font-size: 1.08rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 241, 255, 0.82));
}

.example-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.example-thumb {
  width: 100%;
  aspect-ratio: 9 / 13;
  border-radius: 0;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9), transparent 6rem),
    linear-gradient(135deg, #aee7ff, #eedcff 52%, #ffe4f2);
  display: grid;
  place-items: center;
}

.example-card .example-copy {
  padding: 16px;
}

.example-card h3 {
  margin: 0;
  font-size: 1rem;
}

.example-card::after {
  content: "";
  position: absolute;
  inset: 16px 16px auto auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(31, 31, 68, 0.18);
}

.example-card::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 1;
  border-left: 12px solid var(--deep-purple);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.stars {
  color: var(--gold-deep);
  font-weight: 950;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border-radius: 22px;
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 950;
}

.site-footer {
  padding: 38px 0 48px;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 20px;
  align-items: center;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 14px;
  font-weight: 850;
}

.footer-links a {
  text-decoration: none;
}

.site-footer small {
  grid-column: 1 / -1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(29, 27, 60, 0.54);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(480px, 100%);
  border-radius: 28px;
  padding: 28px;
}

.modal h2 {
  margin: 0 0 8px;
  font-size: 3.2rem;
}

.modal p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 940px) {
  .hero,
  .creator-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .video-carousel {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .live-preview {
    position: static;
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-actions,
  .actions,
  .modal-actions,
  .result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  button {
    width: 100%;
  }

  .benefit-grid,
  .step-grid,
  .testimonial-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .preview-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
