:root {
  color-scheme: dark;
  --bg: #070912;
  --bg-deep: #050712;
  --panel: #060a15;
  --panel-soft: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(184, 143, 255, 0.26);
  --text: #f8f7ff;
  --muted: #c7bfd9;
  --soft: #9d95b4;
  --purple: #7c2ce4;
  --violet: #a43bf3;
  --violet-soft: #d99bff;
  --field: #101725;
  --radius-lg: 30px;
  --radius-md: 18px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 28% 38%, rgba(104, 43, 204, 0.28), transparent 36rem),
    radial-gradient(circle at 91% 18%, rgba(76, 82, 184, 0.24), transparent 35rem),
    linear-gradient(112deg, #0a0d1c 0%, #21113f 43%, #101226 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(600px, 860px) minmax(390px, 440px);
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  gap: 96px;
  padding: 64px 76px 54px;
}

.product-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: min(780px, calc(100svh - 118px));
}

.product-intro {
  align-self: center;
  min-width: 0;
  transform: translate3d(0, 28px, 0);
  will-change: transform;
}

.product-side.is-ready .product-intro {
  transition: transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-side.is-brief-open .product-intro {
  transform: translate3d(0, 0, 0);
}

.brand-logo {
  display: block;
  width: 338px;
  height: auto;
  margin: 0 0 44px;
}

.hero-copy {
  max-width: 780px;
  min-width: 0;
}

.eyebrow,
.form-eyebrow,
.brief-meta {
  margin: 0;
  color: #e7d6ff;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 880px;
  margin: 24px 0 14px;
  color: var(--text);
  font-size: 46px;
  line-height: 1.08;
  font-weight: 800;
}

.hero-lede {
  max-width: 780px;
  margin: 0;
  color: var(--violet-soft);
  font-size: 22px;
  line-height: 1.28;
  font-weight: 760;
}

.hero-support {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(245, 240, 255, 0.82);
  font-size: 15px;
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, #7625df, #b244f3);
  box-shadow: 0 18px 40px rgba(124, 44, 228, 0.22);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.9);
}

.button.secondary:hover {
  border-color: rgba(216, 166, 255, 0.36);
  background: rgba(255, 255, 255, 0.075);
}

.access-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 760px;
  gap: 18px;
  margin: 18px 0 0;
  color: rgba(230, 224, 243, 0.8);
  font-size: 13px;
  line-height: 1.45;
}

.access-note strong {
  color: var(--text);
  font-weight: 800;
}

.access-copy-mobile {
  display: none;
}

.brief-reveal {
  display: grid;
  grid-template-rows: 0fr;
  width: min(100%, 790px);
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  pointer-events: none;
  will-change: grid-template-rows, opacity, transform;
}

.brief-reveal-inner {
  min-height: 0;
  overflow: hidden;
}

.product-side.is-ready .brief-reveal {
  transition:
    grid-template-rows 440ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 440ms;
}

.product-side.is-brief-open .brief-reveal {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition:
    grid-template-rows 440ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease 70ms,
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.brief-card {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(260px, 0.84fr);
  gap: 26px;
  width: min(100%, 790px);
  min-width: 0;
  margin-top: 12px;
  padding: 22px 24px 22px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.brief-main {
  min-width: 0;
}

.brief-card h2 {
  margin: 10px 0 18px;
  font-size: 24px;
  line-height: 1.15;
}

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

.brief-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.brief-tab.active {
  border-color: rgba(199, 139, 255, 0.38);
  background: rgba(135, 55, 228, 0.26);
}

.brief-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 14px 0 0;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.brief-points {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  padding-left: 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.brief-point {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 14px;
}

.point-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a35ed, #d07bff);
}

.brief-point h3 {
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.2;
}

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

.page-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: min(100%, 760px);
  gap: 18px 34px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(232, 226, 246, 0.7);
  font-size: 12px;
}

.page-footer a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 160ms ease;
}

.page-footer a:hover {
  color: var(--text);
}

.panel-stack {
  display: grid;
  align-items: stretch;
  isolation: isolate;
  width: 100%;
  max-width: 440px;
  min-width: 0;
}

.auth-panel {
  grid-area: 1 / 1;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  min-width: 0;
  padding: 48px 42px 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 34px;
  background: rgba(5, 8, 18, 0.94);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center;
  will-change: opacity, filter, transform;
}

.panel-stack.is-ready .auth-panel {
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 320ms;
}

.panel-stack.is-ready .auth-panel:not(.is-hidden) {
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.demo-panel {
  padding-top: 38px;
  padding-bottom: 10px;
}

.signin-panel {
  display: flex;
}

.signin-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.is-hidden {
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  filter: blur(2px);
  pointer-events: none;
}

.panel-stack[data-active-panel="signin"] .demo-panel.is-hidden {
  transform: translate3d(18px, 0, 0) scale(0.992);
}

.panel-stack[data-active-panel="demo"] .signin-panel.is-hidden {
  transform: translate3d(-18px, 0, 0) scale(0.992);
}

@media (prefers-reduced-motion: reduce) {
  .product-side.is-ready .product-intro,
  .product-side.is-ready .brief-reveal,
  .panel-stack.is-ready .auth-panel,
  .panel-stack.is-ready .auth-panel:not(.is-hidden) {
    transition: none;
  }

  .product-intro,
  .brief-reveal,
  .panel-stack .auth-panel {
    filter: none;
    transform: none;
  }
}

.signin-form h2,
.demo-form h2 {
  margin: 18px 0 2px;
  font-size: 39px;
  line-height: 1;
  font-weight: 800;
}

.demo-form h2 {
  margin-top: 18px;
  font-size: 34px;
  line-height: 1.24;
}

.form-support {
  margin: 0 0 46px;
  color: rgba(235, 229, 246, 0.82);
  font-size: 15px;
  line-height: 1.5;
}

.demo-form .form-support {
  max-width: 330px;
  margin-bottom: 16px;
  line-height: 1.55;
}

.back-to-signin {
  display: inline-flex;
  align-items: center;
  margin: -2px 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8b4fe;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.back-to-signin:hover {
  color: #f1d9ff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.form-group label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 650;
}

.form-group input,
.form-group textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(146, 164, 194, 0.3);
  border-radius: 17px;
  outline: 0;
  background: var(--field);
  color: var(--text);
  padding: 0 18px;
  font-size: 14px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.form-group textarea {
  min-height: 70px;
  padding-top: 15px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(238, 235, 246, 0.72);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(190, 133, 255, 0.74);
  box-shadow: 0 0 0 4px rgba(138, 53, 237, 0.18);
  background: #111a2a;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.demo-form .form-group {
  margin-bottom: 18px;
}

.demo-form .form-group input {
  min-height: 50px;
  border-radius: 16px;
  font-size: 13px;
}

.message-group label {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.message-group label span {
  color: rgba(143, 152, 185, 0.92);
  font-weight: 500;
}

.store-fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.store-fieldset legend {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 650;
}

.store-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.store-choice {
  cursor: pointer;
}

.store-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.store-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(226, 232, 240, 0.98);
  font-size: 12px;
  font-weight: 750;
}

.store-choice input:checked + span {
  border-color: rgba(192, 132, 252, 0.28);
  background: rgba(124, 58, 237, 0.22);
  color: rgba(255, 255, 255, 0.98);
}

.password-group {
  margin-bottom: 12px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 108px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transform: translateY(-50%);
}

.toggle-password:hover {
  border-color: rgba(216, 166, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.field-hint {
  margin: -4px 0 0;
  color: rgba(232, 226, 246, 0.66);
  font-size: 12px;
  line-height: 1.4;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.form-options a {
  color: #dfadff;
  font-weight: 750;
  white-space: nowrap;
}

.check-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.check-row input:checked + .check-box::after {
  width: 10px;
  height: 10px;
  margin: auto;
  border-radius: 3px;
  background: linear-gradient(135deg, #8130e7, #c466ff);
  content: "";
}

.signin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #7025d3, #ad35ee);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 20px 48px rgba(124, 44, 228, 0.32);
  transition:
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
}

.signin-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 22px 58px rgba(124, 44, 228, 0.4);
}

.demo-submit {
  gap: 9px;
  min-height: 54px;
  border-radius: 999px;
  font-size: 15px;
}

.demo-submit.is-success {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  box-shadow:
    0 20px 54px rgba(168, 85, 247, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.demo-submit.is-success::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  content: "\2713";
  font-size: 12px;
  line-height: 1;
}

.secure-note {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(232, 226, 246, 0.78);
  text-align: center;
  font-size: 13px;
}

.privacy-note {
  margin: 10px 0 0;
  color: rgba(183, 192, 216, 0.92);
  font-size: 11px;
  line-height: 1.45;
}

@media (min-width: 1680px) {
  .page-shell {
    gap: 112px;
    padding-right: 92px;
    padding-left: 92px;
  }
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: minmax(520px, 680px) minmax(360px, 420px);
    gap: 56px;
    padding-right: 44px;
    padding-left: 44px;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .hero-lede {
    font-size: 22px;
  }
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    padding: 42px 24px 36px;
  }

  .product-side {
    width: min(100%, 720px);
    min-height: auto;
    margin: 0 auto;
  }

  .product-intro {
    transform: none;
  }

  .brand-logo {
    width: 310px;
    max-width: 88%;
    margin-bottom: 34px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-lede {
    font-size: 21px;
  }

  .brief-card {
    grid-template-columns: 1fr;
  }

  .brief-points {
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .panel-stack,
  .signin-panel {
    width: min(100%, 720px);
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 28px 16px 30px;
  }

  .brand-logo {
    width: 268px;
    margin-bottom: 30px;
  }

  .access-copy-desktop {
    display: none;
  }

  .access-copy-mobile {
    display: inline;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-lede {
    font-size: 19px;
  }

  .hero-support {
    font-size: 15px;
  }

  .button {
    width: 100%;
  }

  .brief-card,
  .signin-panel,
  .demo-panel {
    border-radius: 24px;
  }

  .panel-stack {
    position: relative;
    display: block;
  }

  .panel-stack .auth-panel {
    grid-area: auto;
  }

  .panel-stack .auth-panel.is-hidden {
    position: absolute;
    inset: 0;
  }

  .brief-tabs {
    grid-template-columns: 1fr;
  }

  .signin-panel,
  .demo-panel {
    padding: 34px 22px 30px;
  }

  .signin-form h2,
  .demo-form h2 {
    font-size: 36px;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .store-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .secure-note {
    margin-top: 42px;
  }
}
