:root {
  --ink: #15202b;
  --ink-soft: #5b6b7c;
  --paper: #eef3f6;
  --line: rgba(21, 32, 43, 0.12);
  --rose: #b76e79;
  --rose-deep: #8f4f59;
  --gold: #9a7b4f;
  --danger: #b42318;
  --font-display: "Syne", "Outfit", sans-serif;
  --font-body: "Outfit", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

.hidden { display: none !important; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 10% 15%, rgba(183, 110, 121, 0.18), transparent 58%),
    radial-gradient(ellipse 50% 40% at 92% 8%, rgba(90, 140, 170, 0.2), transparent 55%),
    linear-gradient(160deg, #f4f7fa 0%, #e8eef3 52%, #dde7ee 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { filter: hue-rotate(0deg) saturate(1); transform: scale(1); }
  to { filter: hue-rotate(-6deg) saturate(1.05); transform: scale(1.03); }
}

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 72px);
  max-width: 920px;
  margin: 0 auto;
  animation: rise 0.7s ease both;
}

.stage-scroll {
  justify-content: flex-start;
  max-width: 980px;
  padding-bottom: 64px;
}

.panels {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 8vh, 72px);
}

.panel { max-width: 40rem; }

.steps {
  margin: 1.2rem 0 1.4rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.steps a {
  color: var(--rose-deep);
  font-weight: 600;
  text-underline-offset: 3px;
}

.crd-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}

.field textarea {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  resize: vertical;
  min-height: 88px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(183, 110, 121, 0.15);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn.ghost.large {
  padding: 16px 22px;
  font-size: 1.05rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--rose-deep);
  margin-bottom: 0.35em;
}

.brand.compact {
  font-size: 1.35rem;
  margin: 0;
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.55em;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34rem;
}

.brand-block { margin-bottom: 2.4rem; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(183, 110, 121, 0.15);
}

.btn {
  appearance: none;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 20px;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn.primary {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  color: #fffaf7;
  box-shadow: 0 10px 28px rgba(143, 79, 89, 0.28);
}

.btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #c57b85 0%, var(--rose) 100%);
}

.btn.primary.large {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.btn.ghost:hover {
  color: var(--ink);
  border-color: rgba(28, 25, 23, 0.28);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(40px, 10vh, 96px);
}

.download-hero { max-width: 40rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  animation: fadein 0.8s ease 0.15s both;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 1.6rem 0 1.8rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.meta-item strong {
  color: var(--ink);
  font-weight: 600;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hint {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.error {
  min-height: 1.2em;
  color: var(--danger);
  font-size: 0.9rem;
}

.ok {
  min-height: 1.2em;
  color: #1f6b4a;
  font-size: 0.95rem;
  font-weight: 500;
}

.latest-box {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  max-width: 520px;
}

.subhead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.field textarea[readonly] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.9);
}

.stable-step {
  margin: 1.25rem 0 1.5rem;
  padding-top: 0.4rem;
}

.step-title {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}

.advanced {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.advanced summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

@media (max-width: 640px) {
  .stage { padding: 28px 20px 40px; }
  .btn.primary.large,
  .btn.ghost.large { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
}
