:root {
  color-scheme: light;
  font-family:
    "Plus Jakarta Sans",
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: #17213a;
  background: #f7f8fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --brand: #5940f1;
  --brand-dark: #391fc5;
  --pink: #c900ef;
  --cyan: #00cce5;
  --ink: #11152f;
  --muted: #6f7890;
  --line: #e6e9f2;
  --surface: #fff;
  --page-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f7f8fc;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(89, 64, 241, 0.4);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(231, 234, 243, 0.9);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(var(--page-width), 100%);
  height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--brand), var(--pink));
  box-shadow: 0 7px 18px rgba(89, 64, 241, 0.25);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-mark path {
  fill: #fff;
}

.brand-name {
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.desktop-nav a {
  color: #626c83;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.18s ease;
}

.desktop-nav a:hover {
  color: var(--brand);
}

.header-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--brand), var(--pink));
  box-shadow: 0 7px 17px rgba(89, 64, 241, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.header-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(89, 64, 241, 0.24);
}

.header-action span {
  font-size: 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 87px 24px 78px;
  background:
    radial-gradient(
      ellipse at 50% -15%,
      rgba(114, 94, 243, 0.1),
      transparent 56%
    ),
    #f7f8fc;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.28;
  pointer-events: none;
}

.hero-glow-one {
  top: 90px;
  left: calc(50% - 470px);
  background: #8d78ff;
}

.hero-glow-two {
  top: 160px;
  right: calc(50% - 530px);
  background: #f083ea;
}

.hero-content {
  width: min(810px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 9px;
  padding: 5px 13px;
  border: 1px solid rgba(89, 64, 241, 0.16);
  border-radius: 999px;
  background: rgba(89, 64, 241, 0.06);
  color: #563fe0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--pink));
  box-shadow: 0 0 0 4px rgba(89, 64, 241, 0.1);
}

.hero h1 {
  max-width: 740px;
  margin: 23px auto 16px;
  color: #121630;
  font-size: clamp(42px, 6.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.gradient-text {
  display: block;
  background: linear-gradient(95deg, #5940f1 12%, #bf28ed 60%, #04bcd4 100%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 620px;
  margin: 0 auto;
  color: #69738a;
  font-size: 16px;
  line-height: 1.75;
}

.downloader-panel {
  margin-top: 36px;
  padding: 17px;
  border: 1px solid rgba(222, 225, 238, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 24px 70px rgba(42, 44, 91, 0.09),
    0 3px 12px rgba(42, 44, 91, 0.035);
  text-align: left;
  backdrop-filter: blur(14px);
}

.download-form {
  display: flex;
  gap: 10px;
}

.input-wrap {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex: 1 1 auto;
  align-items: center;
  border: 1px solid #e3e6ef;
  border-radius: 15px;
  background: #f8f9fc;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.input-wrap:focus-within {
  border-color: rgba(89, 64, 241, 0.62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(89, 64, 241, 0.09);
}

.link-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-left: 17px;
  color: #8b93a8;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 8px 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1b2038;
  font-size: 14px;
}

.input-wrap input::placeholder {
  color: #a0a7b8;
}

.paste-button,
.clear-button {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-right: 9px;
  padding: 0 12px;
  border: 1px solid #e4e6ef;
  border-radius: 10px;
  background: #fff;
  color: #5940e3;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.paste-button:hover,
.clear-button:hover {
  border-color: #c8c0ff;
  background: #f5f3ff;
}

.clear-button {
  width: 34px;
  padding: 0;
  color: #788198;
  font-size: 21px;
  line-height: 1;
}

.paste-button[hidden],
.clear-button[hidden] {
  display: none;
}

.submit-button {
  display: inline-flex;
  min-width: 151px;
  min-height: 58px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(105deg, #5940f1, #a728e4);
  box-shadow: 0 9px 22px rgba(89, 64, 241, 0.23);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(89, 64, 241, 0.31);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.submit-arrow {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 3px 0;
  color: #80899d;
  font-size: 11px;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.shield-icon {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #e7f8f1;
  color: #159668;
  font-size: 10px;
  font-weight: 800;
}

.format-note {
  color: #68728a;
  font-weight: 700;
}

.result-region {
  display: block;
  margin-top: 22px;
  text-align: left;
}

.result-region:empty {
  display: none;
}

.result-region > p[role="status"],
.result-region > p[role="alert"] {
  margin: 0;
  padding: 14px 17px;
  border: 1px solid #e5e7f0;
  border-radius: 13px;
  background: #fff;
  color: #566078;
  font-size: 13px;
}

.result-region > p[role="alert"] {
  border-color: #f0caca;
  background: #fff8f8;
  color: #a33232;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 25px;
  color: #7a849a;
  font-size: 11px;
  font-weight: 600;
}

.trust-row > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-check {
  color: #16a77b;
  font-weight: 800;
}

.section-wrap {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  padding: 0 28px;
}

.features {
  padding-top: 28px;
  padding-bottom: 88px;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-kicker {
  color: #6853e8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  margin: 10px 0 9px;
  color: #171b35;
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.section-heading > p {
  margin: 0;
  color: #768097;
  font-size: 14px;
}

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

.feature-card {
  min-height: 190px;
  padding: 23px;
  border: 1px solid #e8eaf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(30, 35, 75, 0.035);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 34px rgba(30, 35, 75, 0.08);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  font-size: 22px;
  font-weight: 700;
}

.feature-icon.purple {
  background: #f0edff;
  color: #624be8;
}

.feature-icon.pink {
  background: #fff0fb;
  color: #d62ab2;
}

.feature-icon.cyan {
  background: #e9fbfd;
  color: #0a9db2;
}

.feature-card h3 {
  margin: 18px 0 6px;
  color: #20243c;
  font-size: 16px;
  font-weight: 750;
}

.feature-card p {
  margin: 0;
  color: #778198;
  font-size: 12px;
  line-height: 1.7;
}

.steps-section {
  padding: 78px 0 84px;
  background:
    radial-gradient(
      ellipse at 10% 100%,
      rgba(106, 76, 238, 0.12),
      transparent 40%
    ),
    #11152f;
  color: #fff;
}

.steps-section .section-heading h2 {
  color: #fff;
}

.steps-section .section-heading > p {
  color: #b6bdd2;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.step-card {
  min-height: 174px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.step-number {
  color: rgba(207, 72, 242, 0.78);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.step-card h3 {
  margin: 12px 0 5px;
  color: #fff;
  font-size: 15px;
}

.step-card p {
  margin: 0;
  color: #aeb6cd;
  font-size: 12px;
  line-height: 1.7;
}

.faq-section {
  padding-top: 85px;
  padding-bottom: 88px;
}

.faq-list {
  max-width: 790px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 19px 36px 19px 2px;
  color: #20243c;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 16px;
  right: 4px;
  color: #715be9;
  content: "+";
  font-size: 22px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 680px;
  margin: -4px 0 19px;
  color: #768097;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px max(28px, calc((100% - var(--page-width)) / 2 + 28px));
  border-top: 1px solid #e8eaf2;
  background: #fff;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.footer-brand .brand-name {
  font-size: 18px;
}

.site-footer p,
.copyright {
  margin: 0;
  color: #828ba0;
  font-size: 11px;
}

.wwwtok-result {
  width: 100%;
  overflow: hidden;
  padding: 7px;
  border-radius: 17px;
  background: linear-gradient(110deg, #4a2bdd, #b80ad6);
  box-shadow: 0 16px 38px rgba(46, 31, 119, 0.16);
  color: #fff;
}

.wwwtok-result__surface {
  display: grid;
  min-height: 212px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 48%);
  align-items: stretch;
  gap: 24px;
  padding: 20px;
  background-color: #1c2460;
  background-image: linear-gradient(
    100deg,
    rgba(20, 32, 90, 0.73),
    rgba(34, 15, 73, 0.82)
  );
  background-position: center;
  background-size: cover;
}

.wwwtok-result__creator {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.wwwtok-result__creator-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 24px;
}

.wwwtok-result__avatar {
  width: 105px;
  height: 105px;
  flex: 0 0 105px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.wwwtok-result__creator-name {
  overflow: hidden;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}

.wwwtok-result__preview {
  display: block;
  width: min(100%, 240px);
  max-height: 360px;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: #101020;
  object-fit: contain;
}

.wwwtok-result__actions {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 9px;
}

.wwwtok-result__notice {
  margin: 0;
  color: #fff;
  font-size: 9px;
  line-height: 1.3;
  text-align: center;
}

a.wwwtok-result__download {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 0;
  border-radius: 3px;
  background: #4aa9e1;
  color: #071523;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    transform 0.16s ease;
}

a.wwwtok-result__download:hover,
a.wwwtok-result__download:focus-visible {
  transform: translateY(-1px);
  background: #6bbcf0;
  color: #071523;
  text-decoration: none;
}

.wwwtok-result__stats {
  display: grid;
  min-height: 43px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(57, 14, 94, 0.78);
}

.wwwtok-result__stat {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.wwwtok-result__stat svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

@media (max-width: 760px) {
  .header-inner {
    height: 68px;
    gap: 14px;
    padding: 0 18px;
  }

  .desktop-nav {
    gap: 14px;
  }

  .desktop-nav a {
    font-size: 11px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  .hero {
    padding: 72px 18px 66px;
  }

  .feature-grid,
  .steps-grid {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 72px;
  }

  .header-inner {
    height: 64px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 11px;
  }

  .brand-name {
    font-size: 19px;
  }

  .desktop-nav {
    display: none;
  }

  .header-action {
    margin-left: auto;
  }

  .hero {
    padding: 57px 16px 55px;
  }

  .hero h1 {
    margin-top: 19px;
    font-size: clamp(39px, 11vw, 52px);
  }

  .hero-copy {
    font-size: 14px;
  }

  .downloader-panel {
    margin-top: 26px;
    padding: 11px;
    border-radius: 18px;
  }

  .download-form {
    flex-direction: column;
  }

  .input-wrap,
  .submit-button {
    min-height: 54px;
  }

  .input-wrap input {
    height: 52px;
    font-size: 13px;
  }

  .submit-button {
    width: 100%;
  }

  .form-footer {
    align-items: flex-start;
    font-size: 10px;
  }

  .trust-row {
    gap: 11px 17px;
    font-size: 10px;
  }

  .section-wrap {
    padding-right: 18px;
    padding-left: 18px;
  }

  .features {
    padding-top: 18px;
    padding-bottom: 63px;
  }

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

  .feature-card {
    min-height: auto;
    padding: 19px;
  }

  .feature-card h3 {
    margin-top: 13px;
  }

  .steps-section {
    padding: 60px 0;
  }

  .step-card {
    min-height: auto;
    padding: 20px;
  }

  .faq-section {
    padding-top: 62px;
    padding-bottom: 66px;
  }

  .site-footer {
    min-height: 0;
    flex-wrap: wrap;
    padding: 22px 18px;
  }

  .site-footer p {
    order: 3;
    width: 100%;
  }

  .wwwtok-result {
    padding: 5px;
    border-radius: 14px;
  }

  .wwwtok-result__surface {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    min-height: 0;
    padding: 16px;
  }

  .wwwtok-result__creator {
    min-height: 68px;
    align-items: stretch;
    gap: 14px;
  }

  .wwwtok-result__creator-info {
    gap: 14px;
  }

  .wwwtok-result__preview {
    width: min(100%, 260px);
    max-height: 420px;
    align-self: center;
  }

  .wwwtok-result__avatar {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    border-width: 3px;
  }

  .wwwtok-result__creator-name {
    font-size: 23px;
  }

  a.wwwtok-result__download {
    min-height: 46px;
    font-size: 17px;
  }
}

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