:root {
  color-scheme: light;
  --ink: #201b2b;
  --muted: #64616e;
  --accent: #7b35db;
  --line: #e8e3ee;
  --surface: #fff;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: #fff !important;
}
body.seedance-light {
  margin: 0;
  background: #fff !important;
  color: var(--ink);
  overflow-x: hidden;
}
.surface-white {
  background-color: #fff !important;
}
.surface-card {
  background-color: #fff !important;
  border-color: var(--line);
  box-shadow: 0 8px 32px #25143f07;
}
.surface-subtle {
  background-color: #f8f7fa !important;
}
.surface-glass {
  background-color: #ffffffda !important;
}
.ink {
  color: var(--ink) !important;
}
.muted-ink {
  color: var(--muted) !important;
}
.accent-ink {
  color: #7140a6 !important;
}
.light-border {
  border-color: var(--line) !important;
}
.small-label {
  font-size: 13px !important;
}
.light-heading {
  background-image: none !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
}
.light-vignette {
  background: radial-gradient(
    ellipse at center,
    transparent 28%,
    #fff 100%
  ) !important;
}
.site-header {
  height: 64px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #ffffffed;
  border-bottom: 1px solid #eae5f1;
  backdrop-filter: blur(18px);
}
.site-logo {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-weight: 700;
  color: #7946c9;
  font-size: 16px;
  text-decoration: none;
}
.site-logo img {
  width: 26px;
  height: 34px;
  object-fit: contain;
}
.try-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  min-height: 46px;
  padding: 11px 26px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(110deg, #8647e6, #6531bb) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px #7536cc15;
  transition:
    filter 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.try-button:hover {
  filter: brightness(1.07);
  box-shadow: 0 6px 20px #7536cc25;
  transform: translateY(-1px);
}
.try-button:active {
  transform: translateY(0);
}
.try-button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #a678ef;
  outline-offset: 4px;
}
.header-try {
  min-height: 38px;
  padding: 9px 19px;
  font-size: 14px;
  border-radius: 8px;
}
.hero-section {
  background: #fcfbff !important;
  isolation: isolate;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/7f1f73da7989d9.png") center/cover;
  filter: invert(1);
  opacity: 0.11;
  pointer-events: none;
}
.hero-section > .absolute {
  opacity: 0.12;
}
.hero-section .hero-video {
  mix-blend-mode: normal;
  opacity: 1;
  border-radius: 12px;
  box-shadow: 0 14px 46px #60399114;
}
.hero-section h1 {
  letter-spacing: 0;
  line-height: 1;
}
.hero-copy > p {
  color: #6a6278 !important;
  line-height: 1.55;
}
.hero-notice .typing-text {
  font-size: 13px;
  line-height: 1.5;
}
.hero-notice > div {
  background: #f3edfbb3 !important;
  border-color: #d8c5f0 !important;
}
.hero-generator {
  height: 100%;
  max-height: 224px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  margin: 10px 4px 2px;
  padding: 12px;
  background: #fff;
  border: 1px solid #d8c5ef;
  border-radius: 13px;
  box-shadow: 0 8px 30px #5d31870a;
  text-align: left;
  overflow: hidden;
}
.hero-generator textarea {
  width: 100%;
  min-height: 64px;
  flex: 1;
  resize: none;
  padding: 2px 8px;
  border: 0;
  outline: none;
  font-size: 14px;
  line-height: 1.6;
  color: #3b3347;
  background: transparent;
}
.hero-generator textarea::placeholder {
  color: #857d90;
}
.prompt-count {
  text-align: right;
  font-size: 12px;
  color: #89808f;
  padding: 4px 2px 8px;
}
.generator-toolbar {
  display: flex;
  gap: 7px;
  align-items: center;
  border-top: 1px solid #eee9f4;
  padding-top: 10px;
  flex-wrap: wrap;
}
.generator-toolbar select {
  appearance: none;
  min-height: 34px;
  background: #faf8fc;
  border: 1px solid #e5dfee;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 12px;
  cursor: pointer;
  color: #554860;
}
.generator-toolbar .try-button {
  margin-left: auto;
  min-height: 35px;
  padding: 8px 13px;
  font-size: 13px;
  border-radius: 7px;
}
.audio-setting {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 12px;
  color: #756582;
}
.audio-setting input {
  accent-color: #8543d4;
}
.lazy-video-container video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-video video {
  height: auto;
  min-height: 150px;
  object-fit: cover;
}
.model-card {
  border: 1px solid #ebe4f1;
  box-shadow: 0 5px 20px #3a21520a;
}
.model-card .lazy-video-container {
  height: 100%;
}
.model-card .model-badge {
  background: #ffffffeb !important;
}
.model-card .model-badge span {
  color: #42304f !important;
}
.model-card p {
  line-height: 1.6;
  font-size: 14px;
}
.model-try {
  margin-top: 18px;
  min-height: 38px;
  font-size: 14px;
  padding: 8px 20px;
}
.image-generator {
  box-shadow: 0 8px 32px #25143f07;
}
.image-generator .border-t > .try-button {
  width: 100%;
}
.image-generator textarea {
  font-size: 16px;
  line-height: 1.55;
}
.ratio-option {
  position: relative;
  display: flex;
  width: 54px;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e6e1ed;
  border-radius: 10px;
  cursor: pointer;
  color: #756b80;
  font-size: 12px;
  background: #fff;
}
.ratio-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  cursor: pointer;
}
.ratio-option:has(input:checked) {
  border-color: #a779df;
  background: #f4eefd;
  color: #7941bc;
}
.ratio-option:has(input:focus-visible) {
  outline: 2px solid #8551c5;
  outline-offset: 3px;
}
.ratio-shape {
  display: block;
  max-width: 26px;
  max-height: 23px;
  width: 23px;
  border-radius: 3px;
  background: #d6cce1;
}
.ratio-option:has(input:checked) .ratio-shape {
  background: #a87bd6;
}
.image-try {
  width: 100%;
}
footer {
  background: #faf9fc !important;
  border-top: 1px solid #ece6f3;
}
footer a {
  color: #6b617b !important;
}
footer a:hover {
  color: #8242c8 !important;
}
.footer-language {
  font-size: 14px;
  color: #60576c;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
main > section:nth-child(2) > div.absolute.inset-0 {
  background: #fff !important;
}
main > section:nth-child(2) > div.absolute.inset-0 > div {
  opacity: 0.15;
}
@media (min-width: 1024px) {
  .hero-section {
    min-height: 700px;
  }
  .hero-section h1 {
    font-size: 48px;
  }
  .hero-generator {
    height: calc(100% - 20px);
    margin-top: 18px;
    min-height: 170px;
  }
}
@media (max-width: 1023px) {
  .hero-section {
    padding-top: 84px !important;
    padding-bottom: 30px;
  }
  .hero-section h1 {
    line-height: 1.1;
    letter-spacing: -0.7px;
  }
  .hero-notice {
    margin-bottom: 20px;
  }
  .hero-generator {
    min-height: 196px;
    max-height: none;
  }
  .hero-video {
    height: 100%;
    width: auto;
  }
  .hero-copy > p {
    margin-top: 16px;
  }
}
@media (max-width: 640px) {
  .site-header {
    padding: 0 16px;
  }
  .site-logo {
    font-size: 15px;
  }
  .header-try {
    padding: 9px 14px;
  }
  .hero-section h1 {
    font-size: 30px;
  }
  .hero-section .hero-copy {
    padding: 0;
  }
  .hero-copy > p {
    font-size: 16px;
    padding: 0 !important;
  }
  .hero-generator {
    margin: 10px 0 0;
    padding: 10px;
  }
  .generator-toolbar {
    gap: 6px;
  }
  .generator-toolbar .audio-setting {
    margin-left: 0;
  }
  .generator-toolbar .try-button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .generator-toolbar select {
    font-size: 12px;
    padding: 6px 7px;
  }
  .hero-notice .typing-text {
    font-size: 12px;
  }
  main > section:nth-child(2) {
    padding-left: 16px;
    padding-right: 16px;
  }
  .try-button {
    padding: 11px 20px;
  }
  .header-try {
    padding: 9px 14px;
  }
  h2 {
    overflow-wrap: anywhere;
  }
  main h2.text-4xl {
    font-size: 30px;
  }
  main .text-5xl {
    font-size: 32px;
  }
  main .text-lg {
    font-size: 16px;
  }
  .model-try {
    padding: 8px 20px;
  }
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
