/* SEO8U v3.1 — conversion-first AI Marketing Studio hero */
.hero,
.quick-brief-section {
  display: none !important;
}
.theme-toggle,
.floating-actions {
  display: none !important;
}
.hero-v31 {
  position: relative;
  z-index: 3;
  padding: clamp(72px, 8vw, 112px) 0 70px;
  background:
    radial-gradient(circle at 50% 2%, rgba(73, 78, 255, 0.2), transparent 30rem),
    radial-gradient(circle at 8% 42%, rgba(0, 220, 255, 0.1), transparent 27rem),
    linear-gradient(180deg, rgba(0, 3, 14, 0.35), rgba(0, 3, 16, 0.96));
  overflow: hidden;
}
.hero-v31:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99, 158, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 158, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.hero-v31-shell {
  position: relative;
}
.hero-v31-heading {
  max-width: 940px;
  margin: 0 auto 26px;
  text-align: center;
}
.hero-v31-heading .eyebrow {
  display: inline-flex;
  margin-bottom: 15px;
}
.hero-v31-heading h1 {
  margin: 0;
  color: #fff;
  font: 800 clamp(3.1rem, 6.4vw, 6.35rem) / 0.98 Kanit, sans-serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-v31-heading h1 em {
  font-style: normal;
  background: linear-gradient(95deg, #ca4cff, #8b6cff 42%, #26e5ff 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(68, 181, 255, 0.18));
}
.hero-v31-heading > p {
  max-width: 760px;
  margin: 18px auto 0;
  color: #c4cee1;
  font-size: clamp(1rem, 1.55vw, 1.32rem);
  line-height: 1.65;
}
.hero-v31-form {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.9fr auto;
  gap: 12px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px 14px;
  border: 1px solid rgba(91, 130, 255, 0.45);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(9, 18, 54, 0.92), rgba(2, 7, 26, 0.98));
  box-shadow: 0 0 0 1px rgba(65, 226, 255, 0.06), 0 26px 80px rgba(0, 0, 25, 0.48);
}
.hero-v31-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.hero-v31-form label > span {
  color: #e6efff;
  font-size: 0.78rem;
  font-weight: 800;
}
.hero-v31-form input,
.hero-v31-form select {
  width: 100%;
  height: 52px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid rgba(111, 143, 219, 0.4);
  border-radius: 12px;
  outline: none;
  background: rgba(2, 7, 26, 0.86);
  color: #fff;
  font: 500 0.92rem "Noto Sans Thai", sans-serif;
}
.hero-v31-form select {
  appearance: auto;
}
.hero-v31-form input:focus,
.hero-v31-form select:focus {
  border-color: #36e8ff;
  box-shadow: 0 0 0 3px rgba(54, 232, 255, 0.14);
}
.hero-v31-form > .btn {
  min-height: 52px;
  padding-inline: 25px;
  white-space: nowrap;
}
.hero-v31-reassurance {
  grid-column: 1 / -1;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #b9c8df;
  font-size: 0.76rem;
}
.hero-v31-reassurance span::first-letter {
  color: #4de7ae;
}
.hero-v31-status {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin: 0;
  color: #73efff;
  font-size: 0.78rem;
}
.hero-v31-status[data-state="error"] {
  color: #ff9eb2;
}
.hero-v31-demo {
  display: grid;
  grid-template-columns: 0.78fr 1fr 0.72fr;
  gap: 24px;
  align-items: center;
  max-width: 1180px;
  margin: 12px auto 0;
  padding: 22px;
  border: 1px solid rgba(75, 107, 209, 0.42);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(7, 16, 50, 0.95), rgba(1, 5, 22, 0.97));
  box-shadow: 0 22px 75px rgba(0, 0, 20, 0.42);
}
.hero-v31-input,
.hero-v31-output {
  min-width: 0;
}
.hero-v31-input > small,
.hero-v31-hook > small,
.hero-v31-portfolio-head small {
  display: block;
  color: #62e9ff;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}
.hero-v31-input > strong,
.hero-v31-output > strong {
  display: block;
  margin-top: 4px;
  color: #f7faff;
  font-size: 0.98rem;
}
.hero-v31-input > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.hero-v31-input span {
  padding: 8px 11px;
  border: 1px solid rgba(99, 129, 205, 0.42);
  border-radius: 9px;
  color: #e8f1ff;
  background: rgba(4, 10, 34, 0.78);
  font-size: 0.78rem;
}
.hero-v31-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 10px 0 8px;
  border: 1px solid rgba(90, 118, 194, 0.4);
  border-radius: 9px;
  overflow: hidden;
}
.hero-v31-tabs button {
  min-height: 36px;
  border: 0;
  border-right: 1px solid rgba(90, 118, 194, 0.3);
  color: #c8d5ed;
  background: rgba(3, 8, 29, 0.75);
  cursor: pointer;
  font: 700 0.78rem "Noto Sans Thai", sans-serif;
}
.hero-v31-tabs button:last-child {
  border-right: 0;
}
.hero-v31-tabs button.active {
  color: #fff;
  background: linear-gradient(105deg, #8e35f8, #245cff 58%, #06cae9);
}
.hero-v31-hook {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(3, 9, 31, 0.8);
}
.hero-v31-hook small,
.hero-v31-hook p {
  grid-column: 1 / -1;
}
.hero-v31-hook p {
  min-height: 3.2em;
  margin: 0;
  color: #fff;
  line-height: 1.6;
  font-weight: 700;
}
.hero-v31-hook button,
.hero-v31-hook a {
  color: #8feeff;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  font: 700 0.76rem "Noto Sans Thai", sans-serif;
}
.hero-v31-hook button {
  justify-self: start;
  padding: 7px 10px;
  border: 1px solid rgba(74, 205, 255, 0.45);
  border-radius: 8px;
}
.hero-v31-hook a {
  justify-self: end;
}
.hero-v31-preview {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(75, 224, 255, 0.35);
  border-radius: 16px;
  background: #01030b;
  box-shadow: 0 0 30px rgba(33, 169, 255, 0.12);
}
.hero-v31-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hero-v31-preview img.changing {
  opacity: 0.18;
  transform: scale(0.985);
}
.hero-v31-preview-controls {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(103, 224, 255, 0.25);
  border-radius: 12px;
  background: rgba(0, 4, 18, 0.82);
  backdrop-filter: blur(12px);
}
.hero-v31-preview-controls > button {
  border: 0;
  color: #bcefff;
  background: transparent;
  cursor: pointer;
  font: 700 0.68rem "Noto Sans Thai", sans-serif;
}
.hero-v31-preview-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-v31-preview-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #5d6a86;
  cursor: pointer;
}
.hero-v31-preview-dots button.active {
  width: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a43cff, #22def7);
}
.hero-v31-preview figcaption {
  position: absolute;
  top: 9px;
  right: 9px;
  max-width: calc(100% - 18px);
  padding: 6px 9px;
  border-radius: 8px;
  color: #cde7ff;
  background: rgba(0, 4, 18, 0.78);
  font-size: 0.62rem;
}
.hero-v31-portfolio {
  max-width: 1040px;
  margin: 18px auto 0;
}
.hero-v31-portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 10px;
}
.hero-v31-portfolio-head strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}
.hero-v31-portfolio-head a {
  color: #84ecff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
}
.hero-v31-posters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  perspective: 1000px;
  padding: 22px 18px 12px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 100%, rgba(100, 67, 255, 0.25), transparent 58%);
}
.hero-v31-posters button {
  position: relative;
  padding: 0;
  aspect-ratio: 1.34;
  overflow: hidden;
  border: 1px solid rgba(90, 134, 232, 0.35);
  border-radius: 16px;
  background: #040817;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.hero-v31-posters button:hover,
.hero-v31-posters button:focus-visible {
  z-index: 2;
  transform: translateY(-5px) scale(1.025);
  border-color: #44e7ff;
}
.hero-v31-posters img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-v31-posters .featured {
  z-index: 2;
  transform: translateY(-10px) scale(1.08);
  border-color: rgba(78, 228, 255, 0.72);
  box-shadow: 0 24px 60px rgba(0, 0, 20, 0.58), 0 0 38px rgba(64, 129, 255, 0.24);
}
.hero-v31-posters .poster-serum img {
  object-fit: cover;
  object-position: center;
}
.hero-v31-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1180px;
  margin: 14px auto 0;
  padding: 20px 0;
  border-top: 1px solid rgba(73, 111, 189, 0.28);
  border-bottom: 1px solid rgba(73, 111, 189, 0.28);
}
.hero-v31-steps > div {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 24px;
  border-right: 1px solid rgba(73, 111, 189, 0.25);
}
.hero-v31-steps > div:last-child {
  border-right: 0;
}
.hero-v31-steps b {
  color: #9c5cff;
  font: 800 2.1rem/1 Kanit, sans-serif;
}
.hero-v31-steps span {
  display: grid;
  gap: 2px;
}
.hero-v31-steps strong {
  color: #fff;
}
.hero-v31-steps small {
  color: #91a3c1;
}
.hero-v31-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: #aebbd1;
}
.hero-v31-secondary .btn {
  min-height: 44px;
}
@media (max-width: 1080px) {
  .hero-v31-form {
    grid-template-columns: 1fr 1fr;
  }
  .hero-v31-form > .btn {
    grid-column: 1 / -1;
  }
  .hero-v31-demo {
    grid-template-columns: 1fr 1fr;
  }
  .hero-v31-preview {
    grid-column: 1 / -1;
    width: min(430px, 100%);
    justify-self: center;
  }
}
@media (max-width: 720px) {
  .site-header .nav-actions .btn-outline {
    display: none;
  }
  .hero-v31 {
    padding: 48px 0 42px;
  }
  .hero-v31-heading {
    margin-bottom: 20px;
  }
  .hero-v31-heading h1 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
    line-height: 1.04;
  }
  .hero-v31-heading > p {
    font-size: 0.94rem;
  }
  .hero-v31-form,
  .hero-v31-demo {
    grid-template-columns: 1fr;
    padding: 17px;
    border-radius: 18px;
  }
  .hero-v31-form > .btn,
  .hero-v31-preview {
    grid-column: auto;
  }
  .hero-v31-reassurance {
    gap: 8px 14px;
  }
  .hero-v31-input {
    text-align: center;
  }
  .hero-v31-input > div {
    justify-content: center;
  }
  .hero-v31-posters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 10px;
  }
  .hero-v31-posters button {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }
  .hero-v31-posters .featured {
    transform: none;
  }
  .hero-v31-portfolio-head {
    align-items: start;
  }
  .hero-v31-steps {
    grid-template-columns: 1fr;
  }
  .hero-v31-steps > div {
    padding: 14px 6px;
    border-right: 0;
    border-bottom: 1px solid rgba(73, 111, 189, 0.2);
  }
  .hero-v31-steps > div:last-child {
    border-bottom: 0;
  }
  .hero-v31-secondary {
    text-align: center;
  }
  .hero-v31-secondary .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v31-posters button {
    transition: none;
  }
  .hero-v31-preview img {
    transition: none;
  }
}
