:root {
  color-scheme: dark;
  --bg: #10111b;
  --panel: #1c1d2d;
  --panel-2: #25263a;
  --ink: #f5f5f0;
  --muted: #b6b4c6;
  --soft: #7e7b94;
  --line: rgba(255, 255, 255, 0.12);
  --paper: #fffdf8;
  --paper-ink: #111111;
  --violet: #9a6cff;
  --green: #67c870;
  --red: #ff4b4b;
  --gold: #e7b85a;
  --cyan: #7bd4d2;
  --radius: 8px;
  --font-body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Space Grotesk", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: "Space Grotesk", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.8rem;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(123, 212, 210, 0.08), transparent 28rem),
    radial-gradient(circle at 30% -10%, rgba(231, 184, 90, 0.15), transparent 26rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

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

p {
  color: var(--muted);
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(16, 17, 27, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-actions,
.hero-actions,
.proof-strip,
.transport-controls,
.format-grid,
.download-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  color: #10111b;
  background: var(--ink);
  border-radius: 7px;
  letter-spacing: 0;
}

.brand-name {
  font-size: 1.05rem;
}

.site-nav {
  gap: 1.05rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.header-cta,
.language-toggle,
.primary-button,
.secondary-button,
.download-button {
  border-radius: var(--radius);
  font-weight: 700;
}

.header-cta {
  padding: 0.75rem 1rem;
  color: #10111b;
  background: var(--gold);
}

.header-actions {
  gap: 0.65rem;
}

.language-toggle {
  min-width: 3rem;
  padding: 0.72rem 0.85rem;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.section-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

main > section[id] {
  scroll-margin-top: 5.8rem;
}

#top {
  scroll-margin-top: 0;
}

#ai-workbench {
  scroll-margin-top: -2.2rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 2.7rem;
  min-height: min(860px, calc(100vh - 72px));
  padding: 6.8rem 0 0;
  text-align: center;
}

.hero-copy {
  display: grid;
  position: relative;
  z-index: 1;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  font-family: var(--font-display);
}

h1 {
  max-width: 920px;
  font-size: clamp(3rem, 5vw, 5.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-title span {
  display: block;
}

h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.85rem);
  line-height: 1.12;
}

h3 {
  font-size: 1rem;
}

.hero-lede {
  max-width: 720px;
  margin: 1.25rem auto 0;
  color: #aaa6b8;
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero-actions {
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  padding: 0.98rem 1.45rem;
}

.primary-button {
  color: #10111b;
  background: var(--ink);
}

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

.typing-word {
  position: relative;
  display: block;
  min-height: 2.16em;
  color: var(--ink);
  font: inherit;
}

.typing-caret {
  content: "";
  display: inline-block;
  width: 0.045em;
  height: 0.84em;
  margin-left: 0.08em;
  background: var(--gold);
  vertical-align: -0.05em;
  animation: caretBlink 0.85s steps(1) infinite;
}

.typing-word span {
  display: block;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.proof-marquee {
  width: min(760px, 100%);
  margin-top: 2rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 9%, black 91%, transparent);
}

.proof-strip {
  gap: 0.5rem;
  justify-content: flex-start;
  width: max-content;
  margin-top: 0;
  flex-wrap: nowrap;
  animation: proofScroll 26s linear infinite;
}

.proof-strip span {
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.86rem;
  white-space: nowrap;
}

@keyframes proofScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.teacher-figure {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(231, 184, 90, 0.28), rgba(123, 212, 210, 0.2)),
    #26283a;
}

.teacher-figure::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f2d2b3;
  transform: translateX(-50%);
}

.teacher-figure span {
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: 58%;
  height: 48%;
  border-radius: 999px 999px 0 0;
  background: #f5f5f0;
  transform: translateX(-50%);
}

.product-stage {
  width: min(980px, 100%);
  justify-self: center;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 -18px 80px rgba(231, 184, 90, 0.05), 0 34px 95px rgba(0, 0, 0, 0.42);
  perspective: none;
}

.product-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.product-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.product-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(231, 184, 90, 0.09), rgba(123, 212, 210, 0.06)),
    #10111b;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.75rem;
}

.section-heading p:last-child {
  font-size: 0.98rem;
}

.compact {
  max-width: 820px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.workflow,
.ai-workbench,
.publish,
.formats,
.download,
.faq {
  padding: 4.5rem 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.workflow-grid article,
.capability-list article,
.feature-card,
.publish-flow article,
.download-panel,
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.workflow-grid article {
  min-height: 178px;
  padding: 1.05rem;
}

.workflow-grid span {
  display: inline-block;
  margin-bottom: 2.2rem;
  color: var(--gold);
  font-weight: 800;
}

.feature-band {
  padding: 4.5rem 0;
  background: #171827;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 3rem;
  align-items: start;
}

.capability-list {
  display: grid;
  gap: 1rem;
}

.capability-list article {
  padding: 1.2rem;
  background: #202136;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0;
}

.feature-card {
  min-height: 470px;
  padding: 1.35rem;
  overflow: hidden;
  position: relative;
}

.feature-card::after {
  display: none;
}

.transcription-card::after {
  background:
    linear-gradient(90deg, transparent 0 18%, var(--red) 18% 18.5%, transparent 18.5%),
    repeating-linear-gradient(90deg, #f7f4e9 0 32px, #e3dccd 32px 34px);
}

.chords-card::after {
  background:
    repeating-linear-gradient(90deg, rgba(154, 108, 255, 0.75) 0 70px, rgba(103, 200, 112, 0.85) 70px 120px),
    #24263a;
}

.card-kicker {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
}

.feature-card ul {
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.92rem;
}

.ai-visual {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.35rem;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background:
    radial-gradient(circle at 70% 20%, rgba(154, 108, 255, 0.2), transparent 14rem),
    linear-gradient(135deg, rgba(231, 184, 90, 0.1), rgba(123, 212, 210, 0.08)),
    #151722;
  overflow: hidden;
}

.ai-visual::before {
  content: "";
  position: absolute;
  inset: auto -3rem -3.5rem 20%;
  height: 110px;
  border-radius: 50%;
  border-top: 1px solid rgba(231, 184, 90, 0.28);
  transform: rotate(-5deg);
}

.visual-panel {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(245, 245, 240, 0.96);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.24);
}

.panel-label {
  position: absolute;
  top: -0.75rem;
  left: 0.8rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  color: #10111b;
  background: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
}

.input-panel {
  left: 1rem;
  top: 2.15rem;
  width: 42%;
  height: 78px;
  padding: 1.05rem 0.75rem 0.7rem;
  background: linear-gradient(160deg, rgba(103, 200, 112, 0.95), rgba(55, 127, 62, 0.95));
}

.input-panel small,
.output-panel small,
.melody-panel small,
.chord-output-panel small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.66rem;
  font-weight: 800;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  height: 28px;
  margin-bottom: 0.3rem;
}

.waveform i {
  flex: 1;
  height: 55%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.waveform i:nth-child(2),
.waveform i:nth-child(5) {
  height: 88%;
}

.waveform i:nth-child(4),
.waveform i:nth-child(7) {
  height: 34%;
}

.ai-node {
  position: absolute;
  z-index: 2;
  left: 46%;
  top: 48%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--violet), #6a50ff);
  box-shadow: 0 12px 30px rgba(154, 108, 255, 0.45);
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.ai-node.gold {
  background: linear-gradient(135deg, var(--gold), #f1872b);
  box-shadow: 0 12px 30px rgba(231, 184, 90, 0.35);
}

.ai-node.cyan {
  background: linear-gradient(135deg, var(--cyan), #3a9f9d);
  box-shadow: 0 12px 30px rgba(123, 212, 210, 0.32);
}

.flow-arrow {
  position: absolute;
  z-index: 1;
  left: 47%;
  top: 48%;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(154, 108, 255, 0.2), var(--violet));
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  border-left: 10px solid var(--violet);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.flow-arrow.gold {
  background: linear-gradient(90deg, rgba(231, 184, 90, 0.2), var(--gold));
}

.flow-arrow.gold::after {
  border-left-color: var(--gold);
}

.flow-arrow.cyan {
  background: linear-gradient(90deg, rgba(123, 212, 210, 0.2), var(--cyan));
}

.flow-arrow.cyan::after {
  border-left-color: var(--cyan);
}

.output-panel {
  right: 1rem;
  top: 1.5rem;
  width: 42%;
  height: 120px;
  padding: 1.1rem 0.85rem 0.75rem;
}

.notation-lines,
.staff-lines {
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
}

.notation-lines p,
.staff-lines p {
  margin: 0 0 0.5rem;
  color: #111;
  line-height: 1.35;
  word-spacing: 0.18rem;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.output-panel small {
  color: rgba(17, 17, 17, 0.58);
}

.chords-visual {
  background:
    radial-gradient(circle at 80% 15%, rgba(231, 184, 90, 0.22), transparent 12rem),
    linear-gradient(135deg, rgba(231, 184, 90, 0.12), rgba(154, 108, 255, 0.08)),
    #151722;
}

.melody-panel {
  left: 1rem;
  top: 2.1rem;
  width: 43%;
  height: 74px;
  padding: 1.05rem 0.8rem 0.65rem;
  background: linear-gradient(160deg, rgba(231, 184, 90, 0.95), rgba(241, 135, 43, 0.9));
}

.chord-waveform {
  height: 24px;
  margin-bottom: 0.24rem;
}

.chord-output-panel {
  right: 1rem;
  top: 1.55rem;
  width: 43%;
  height: 122px;
  padding: 1.15rem 0.85rem 0.75rem;
}

.chord-output-panel small {
  color: rgba(17, 17, 17, 0.58);
}

.chord-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.chord-row b {
  display: grid;
  place-items: center;
  min-height: 24px;
  border-radius: 5px;
  color: #10111b;
  background: var(--gold);
  font-size: 0.74rem;
}

.compact-staff {
  font-size: 0.8rem;
}

.solfege-visual {
  background:
    radial-gradient(circle at 76% 18%, rgba(123, 212, 210, 0.2), transparent 12rem),
    linear-gradient(135deg, rgba(123, 212, 210, 0.12), rgba(231, 184, 90, 0.08)),
    #151722;
}

.solfege-score-panel {
  left: 1rem;
  top: 1.8rem;
  width: 43%;
  height: 116px;
  padding: 1.1rem 0.85rem 0.75rem;
}

.solfege-audio-panel {
  right: 1rem;
  top: 2.25rem;
  width: 43%;
  height: 84px;
  padding: 1.1rem 0.8rem 0.7rem;
  background: linear-gradient(160deg, rgba(123, 212, 210, 0.94), rgba(58, 159, 157, 0.92));
}

.solfege-waveform {
  height: 26px;
  margin-bottom: 0.34rem;
}

.publish-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.publish-flow article {
  min-height: 150px;
  padding: 1.25rem;
}

.publish-flow strong {
  display: block;
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

.publish-flow span {
  color: var(--muted);
  line-height: 1.55;
}

.formats {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 2rem;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 0.75rem;
}

.format-grid span {
  padding: 1rem;
  text-align: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-weight: 800;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, #202136, #171827);
}

code {
  color: var(--gold);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 5px;
  padding: 0.12rem 0.3rem;
}

.download-actions {
  gap: 1rem;
}

.download-button {
  flex: 1;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  color: #10111b;
  background: var(--ink);
}

.download-button small {
  color: rgba(16, 17, 27, 0.65);
}

.download-button.disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.download-button.disabled small {
  color: var(--soft);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  padding: 1.1rem 1.2rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq details p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: grid;
  gap: 0.35rem;
}

.site-footer strong,
.site-footer a {
  color: var(--ink);
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(231, 184, 90, 0.08), transparent 20rem),
    #07080d;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.35rem 0;
}

.auth-shell {
  width: min(640px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: calc(100vh - 88px);
  display: grid;
  gap: 1.25rem;
  align-content: start;
  justify-items: center;
  padding: 2rem 0 3rem;
}

.auth-steps {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  gap: 1rem;
  color: var(--soft);
  font-weight: 800;
}

.auth-steps .active {
  color: var(--ink);
}

.auth-steps .line {
  width: 9rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.32);
}

.auth-card,
.signed-card {
  width: min(400px, 100%);
  justify-self: center;
}

.auth-card.completed,
.signed-card {
  display: none;
}

.signed-card.active {
  display: block;
  text-align: center;
}

.auth-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.95rem;
  border-radius: 18px;
  color: #030303;
  background: var(--ink);
  font-size: 1.65rem;
  font-weight: 900;
}

.auth-card h2 {
  text-align: center;
  font-size: 1.3rem;
}

.auth-mode-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0.9rem 0 1.2rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.auth-mode-tabs button {
  flex: 1;
  min-height: 2.45rem;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-mode-tabs button.active {
  color: #10111b;
  background: var(--gold);
}

.auth-form {
  display: grid;
  gap: 0.7rem;
}

.phone-row {
  display: grid;
  grid-template-columns: 108px 1fr;
}

.auth-input,
.code-box,
.country-code {
  min-height: 3.55rem;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #202228;
  font: inherit;
}

.auth-input:focus,
.code-box:focus {
  outline: 2px solid rgba(231, 184, 90, 0.55);
  outline-offset: 1px;
}

.country-code {
  display: grid;
  place-items: center;
  border-radius: 8px 0 0 8px;
  border-right: 0;
}

.auth-input {
  width: 100%;
  padding: 0 1rem;
  border-radius: 0 8px 8px 0;
}

.code-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
}

.code-box {
  width: 100%;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2rem;
}

.send-code,
.login-submit,
.launch-app,
.next-step-button {
  min-height: 3.55rem;
  border: 0;
  border-radius: 8px;
  color: #10111b;
  background: var(--gold);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.send-code:hover,
.login-submit:hover,
.launch-app:hover,
.next-step-button:hover {
  background: #f0c96f;
}

.send-code {
  grid-column: 1 / -1;
}

.send-code:disabled,
.login-submit:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.auth-status {
  min-height: 1.25rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.auth-status.error {
  color: #ff7777;
}

.auth-status.success {
  color: var(--gold);
}

.login-submit,
.launch-app,
.next-step-button {
  width: 100%;
}

.launch-app {
  display: grid;
  place-items: center;
}

.auth-note {
  margin-top: 0.85rem;
  padding: 0.8rem;
  color: var(--soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #202228;
  line-height: 1.5;
  font-size: 0.82rem;
}

.signed-card h2 {
  margin-bottom: 0.65rem;
  font-size: 1.65rem;
}

.signed-card p {
  margin: 0 0 1.4rem;
  color: var(--ink);
  font-size: 1.15rem;
}

.switch-account-button {
  margin-top: 1rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.switch-account-button:hover {
  color: var(--gold);
}

.workstation-card {
  display: none;
  width: min(430px, 100%);
  text-align: center;
}

.workstation-card.active {
  display: block;
}

.device-preview {
  width: min(430px, 100%);
  margin: 0 auto 1rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #151722;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.device-screen {
  height: 238px;
  padding: 0;
  border-radius: 10px;
  background: #23243a;
  overflow: hidden;
}

.device-topbar {
  height: 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 0.65rem;
  color: #d8d6e7;
  background: #303149;
  font-size: 0.72rem;
}

.device-topbar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.device-topbar strong {
  font-size: 0.78rem;
}

.device-topbar em {
  justify-self: end;
  padding: 0.08rem 0.28rem;
  border-radius: 3px;
  color: white;
  background: var(--violet);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 900;
}

.device-tools {
  height: 24px;
  background:
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(255, 255, 255, 0.16) 36px 37px),
    #26273d;
}

.device-score {
  position: relative;
  height: 126px;
  padding: 0.7rem 0.8rem;
  color: #111;
  background: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  overflow: hidden;
}

.device-score p {
  margin: 0 0 0.42rem;
  color: #111;
  font-size: 1rem;
  line-height: 1.25;
  word-spacing: 0.18rem;
  white-space: nowrap;
}

.device-score p:nth-child(4) {
  margin-top: 0.5rem;
  font-size: 0.58rem;
  word-spacing: 0.45rem;
}

.device-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 63%;
  width: 2px;
  background: var(--red);
}

.device-timeline {
  display: grid;
  grid-template-columns: 58px 1fr;
  height: 62px;
  background: #222338;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.device-labels {
  display: grid;
  padding: 0.35rem 0.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.device-labels span {
  display: flex;
  align-items: center;
  color: #c8c4dc;
  font-size: 0.48rem;
  font-weight: 900;
}

.device-tracks {
  position: relative;
  padding: 0.35rem 0;
}

.device-track {
  height: 14px;
  margin-bottom: 3px;
}

.device-track.one {
  background:
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(255, 255, 255, 0.28) 36px 46px, transparent 46px 64px),
    #8952ba;
}

.device-track.two,
.device-track.three {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 8px, transparent 8px 18px),
    linear-gradient(180deg, #55b961, #377f3e);
}

.device-timehead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 63%;
  width: 2px;
  background: var(--red);
}

.workstation-card h2 {
  font-size: 1.35rem;
}

.workstation-card p {
  margin: 0.75rem auto 1rem;
  max-width: 400px;
  font-size: 0.9rem;
}

.download-fallback {
  display: none;
  margin-top: 1.2rem;
}

.download-fallback.active {
  display: block;
}

.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0 0.9rem;
}

.platform-tabs button {
  border: 0;
  color: var(--soft);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.platform-tabs button.active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.platform-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.6rem;
  border-radius: 8px;
  color: #10111b;
  background: var(--gold);
  font-weight: 900;
}

.platform-download.disabled {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
}

.download-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--gold);
  background: #10111b;
}

.platform-download.disabled .download-icon {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.12);
}

#authSystemRequirement {
  display: block;
  margin-top: 0.8rem;
  color: var(--soft);
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .split-layout,
  .two-column,
  .auth-shell,
  .formats,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-copy {
    max-width: none;
  }

  .workflow-grid,
  .publish-flow,
  .ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-shell {
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 2rem;
    padding-top: 3.5rem;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
    line-height: 1.08;
  }

  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions {
    align-items: center;
    flex-direction: row;
  }

  .workflow-grid,
  .publish-flow,
  .format-grid,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .auth-header {
    align-items: flex-start;
  }

  .auth-steps {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .auth-steps .line {
    display: none;
  }

  .code-row {
    grid-template-columns: repeat(6, 1fr);
  }

  .send-code {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing-caret,
  .proof-strip {
    animation: none;
  }
}
