:root {
  --ink: #f7f9ff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.56);
  --surface: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --accent: #bb2464;
  --accent-dark: #98184e;
  --cyan: #57b5bd;
  --focus: #86a9ee;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #090d16;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  background: #090d16;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.signup-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, 0.88fr);
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(3, 6, 12, 0.32), rgba(3, 6, 12, 0.7)),
    url("assets/video-editor-stock.jpg") center / cover fixed;
}

.product-story {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: rgba(0, 0, 0, 0.1);
}

.story-image,
.story-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-image {
  display: none;
}

.story-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.48));
}

.brand {
  display: inline-flex;
  align-items: center;
  z-index: 2;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 188px;
  height: 43px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.55));
}

.brand-light {
  position: absolute;
  top: 34px;
  left: 42px;
}

.brand-dark {
  position: absolute;
  top: 34px;
  left: 48px;
}

.story-copy {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: min(680px, 100%);
  padding: 120px 7% 7%;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-story .eyebrow {
  color: #a9c3f5;
}

h1,
h2 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(40px, 4.3vw, 68px);
  line-height: 1.02;
}

h2 {
  max-width: 520px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
}

.story-lead {
  max-width: 580px;
  margin: 20px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.benefit-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.32);
}

.benefit-list span {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #b9d0ff;
  font-size: 10px;
}

.proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 31px;
}

.proof p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

.proof strong {
  color: var(--white);
  font-size: 13px;
}

.platform-stack {
  display: flex;
  padding-left: 8px;
}

.platform-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  place-items: center;
  border: 2px solid #18201f;
  border-radius: 50%;
  background: #181818;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.28);
}

.platform-icon img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.platform-icon.youtube {
  background: #ff0033;
}

.platform-icon.instagram {
  background: #c13584;
}

.platform-icon.tiktok {
  background: #111111;
}

.platform-icon.x-platform {
  background: #000000;
}

.signup-panel {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.form-wrap {
  width: min(520px, calc(100% - 64px));
  margin: auto;
  padding: 112px 0 60px;
}

#signupForm {
  border: 2px solid #ffffff;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  padding: 31px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 15px rgba(0, 0, 0, 0.55), 0 17px 50px rgba(0, 0, 0, 0.45);
}

.progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.progress-bar {
  position: relative;
  width: 118px;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
}

#progressFill {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
  transition: width 220ms ease;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: step-in 220ms ease-out;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-intro {
  max-width: 480px;
  margin: 15px 0 28px;
  color: var(--muted);
  line-height: 1.6;
}

.field-grid {
  display: grid;
  gap: 17px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.field > span:first-child small {
  color: var(--muted);
  font-weight: 400;
}

.field input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.09);
  padding: 0 14px;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.12);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.field input:focus {
  border-color: rgba(108, 164, 255, 0.9);
  background: rgba(255, 255, 255, 0.13);
  box-shadow:
    0 0 0 3px rgba(0, 122, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.field input.is-invalid {
  border-color: rgba(255, 99, 99, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.18);
}

.platform-picker select {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  padding: 0 42px 0 14px;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.platform-picker select:focus {
  border-color: rgba(108, 164, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.28);
}

.platform-picker select.is-invalid {
  border-color: rgba(255, 99, 99, 0.9);
}

.platform-picker option {
  color: #111111;
}

.password-control {
  position: relative;
}

.password-control input {
  padding-right: 64px;
}

.visibility-button {
  position: absolute;
  top: 50%;
  right: 8px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.error {
  min-height: 0;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 500;
}

.error:not(:empty) {
  min-height: 15px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.check-row a,
.signin-link a,
footer a {
  color: #ffffff;
  font-weight: 600;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 0 19px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.primary-button {
  width: 100%;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #ffffff;
  color: var(--accent);
}

.primary-button:hover {
  border-color: #ffffff;
  background: var(--accent);
  color: #ffffff;
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.signin-link {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.consent-copy {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.consent-copy a {
  color: #ffffff;
}

.button-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  margin-top: 22px;
}

.button-row .primary-button {
  margin-top: 0;
}

.telegram-setup {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 15px;
}

.telegram-heading {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 11px;
  align-items: center;
  margin-bottom: 17px;
}

.telegram-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #229ed9;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.telegram-heading strong,
.telegram-heading small {
  display: block;
}

.telegram-heading strong {
  font-size: 13px;
}

.telegram-heading small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.telegram-heading a {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.connection-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.setup-guide {
  margin-top: 12px;
  border: 1px solid rgba(127, 175, 255, 0.34);
  border-radius: 12px;
  background: rgba(15, 33, 58, 0.54);
  padding: 12px;
}

.guide-message {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: start;
}

.guide-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #284b82;
  font-size: 9px;
  font-weight: 800;
}

.guide-message p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  line-height: 1.45;
}

.guide-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.guide-prompts button,
.social-connect button {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.guide-prompts button {
  min-height: 28px;
  padding: 0 9px;
}

.guide-input {
  display: grid;
  grid-template-columns: 1fr 32px;
  gap: 6px;
}

.guide-input input {
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 10px;
  color: #ffffff;
  font-size: 11px;
}

.guide-input input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.guide-input button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.social-connect-list {
  display: grid;
  gap: 8px;
}

.social-connect {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 9px 10px;
}

.social-logo {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
}

.social-logo img {
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
}

.social-logo.youtube { background: #ff0033; }
.social-logo.instagram { background: #c13584; }
.social-logo.tiktok { background: #111111; }
.social-logo.x-platform { background: #000000; }

.social-connect strong,
.social-connect small {
  display: block;
}

.social-connect strong {
  font-size: 12px;
}

.social-connect small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.social-connect button {
  min-width: 58px;
  height: 32px;
  padding: 0 10px;
}

.social-connect button.is-selected {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--accent);
}

.connection-status {
  min-height: 0;
  margin-top: 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.connection-status.is-testing,
.connection-status.is-success,
.connection-status.is-error {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  padding: 11px 12px;
}

.connection-status.is-success {
  border-color: rgba(110, 220, 168, 0.42);
  color: #b8f2d4;
}

.connection-status.is-error {
  border-color: rgba(255, 99, 99, 0.55);
  color: #ffb4b4;
}

.more-platforms {
  margin-top: 16px;
}

.more-platforms h3 {
  margin: 0 0 10px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 0;
}

.more-platforms h3 small {
  color: var(--muted);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
}

[hidden] {
  display: none !important;
}

.success-step {
  text-align: left;
}

.success-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 23px;
  place-items: center;
  border-radius: 50%;
  background: rgba(94, 174, 142, 0.2);
  color: #9ae3c2;
  font-size: 24px;
  font-weight: 700;
}

footer {
  display: flex;
  width: min(520px, calc(100% - 64px));
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 11px;
}

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

@media (max-width: 980px) {
  .signup-shell {
    grid-template-columns: 1fr;
  }

  .product-story {
    min-height: 410px;
  }

  .story-copy {
    padding: 120px 42px 44px;
  }

  .story-lead,
  .benefit-list,
  .proof {
    display: none;
  }

  .signup-panel {
    min-height: auto;
    background: rgba(0, 0, 0, 0.28);
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
  }

  .brand-dark {
    display: none;
  }

  .form-wrap {
    padding-top: 52px;
  }
}

@media (max-width: 600px) {
  .product-story {
    min-height: 330px;
  }

  .story-image {
    object-position: 39% center;
  }

  .brand-light {
    top: 22px;
    left: 22px;
  }

  .story-copy {
    padding: 94px 22px 28px;
  }

  h1 {
    max-width: 360px;
    font-size: 38px;
  }

  .form-wrap,
  footer {
    width: min(100% - 36px, 520px);
  }

  .form-wrap {
    padding: 38px 0 46px;
  }

  #signupForm {
    padding: 24px 19px;
  }

  h2 {
    font-size: 31px;
  }

  .telegram-heading {
    grid-template-columns: 38px 1fr;
  }

  .telegram-heading a {
    grid-column: 2;
  }

  .button-row {
    grid-template-columns: 92px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
