/* ── FREE DEMO PAGE ──────────────────────────────────────── */

/* ── PAGE HERO ───────────────────────────────────────────── */
.demo-hero {
  position: relative;
  z-index: 10;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  text-align: center;
}

.demo-hero-inner {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) both;
}

.demo-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79,127,255,0.1);
  border: 1px solid rgba(79,127,255,0.25);
  border-radius: 100px;
  padding: 5px 14px;
}

.demo-heading {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.04em;
}

.demo-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 540px;
}

.demo-cta {
  margin-top: 4px;
  padding: 14px 32px;
  font-size: 15px;
}

/* ── ROADMAP SECTION ─────────────────────────────────────── */
.roadmap-section {
  position: relative;
  z-index: 10;
  padding: 60px 24px 40px;
}

.roadmap-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* ── GLASSMORPHISM BOX ───────────────────────────────────── */
.glass-box {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
}

/* ── STEP ROWS ───────────────────────────────────────────── */
.roadmap-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 500px;
  /* Reveal animation start state */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.roadmap-row.revealed {
  opacity: 1;
  transform: translateY(0);
}

.roadmap-row--left {
  margin-right: auto;
}

.roadmap-row--right {
  margin-left: auto;
  flex-direction: row-reverse;
}

/* ── STEP BADGE ──────────────────────────────────────────── */
.step-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(79,127,255,0.1);
  border: 1px solid rgba(79,127,255,0.28);
  border-radius: 8px;
  padding: 5px 9px;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── STEP BOX CONTENT ────────────────────────────────────── */
.step-box {
  padding: 36px 40px;
  flex: 1;
}

.step-icon {
  color: rgba(79,127,255,0.7);
  margin-bottom: 18px;
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.step-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.step-link {
  color: #8ab4ff;
  text-decoration: underline;
  text-decoration-color: rgba(138,180,255,0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.step-link:hover {
  color: #adc8ff;
  text-decoration-color: rgba(173,200,255,0.7);
}

/* ── ARROWS ──────────────────────────────────────────────── */
.arrow-wrap {
  position: relative;
  height: 90px;
  margin: 4px 0;
}

.arrow-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Desktop: reveal anim state — opacity tied to scroll via JS */
.arrow-wrap .arrow-path {
  /* stroke-dasharray and stroke-dashoffset set by JS */
  will-change: stroke-dashoffset;
}

/* ── STEP REVEAL (also applied to launchpad sections) ─────── */
.step-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.step-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── LAUNCHPAD SECTION ───────────────────────────────────── */
.launchpad-section {
  position: relative;
  z-index: 10;
  padding: 80px 24px 120px;
}

.launchpad-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.launchpad-header {
  text-align: center;
}

.launchpad-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.launchpad-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.launchpad-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── FORM ────────────────────────────────────────────────── */
.launchpad-form {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-required {
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
}

.form-optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-faint);
}

.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--text-faint);
}

.form-input:focus {
  border-color: rgba(79,127,255,0.6);
  box-shadow: 0 0 0 3px rgba(79,127,255,0.12);
}

.form-input.input-error {
  border-color: rgba(255,80,80,0.6);
  box-shadow: 0 0 0 3px rgba(255,80,80,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
}

/* Select */
.form-select-wrap {
  position: relative;
}

.form-select {
  padding-right: 40px;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.form-select option {
  background: #0e0e1a;
  color: var(--text-primary);
}

/* ── FILE UPLOAD ─────────────────────────────────────────── */
.form-upload-wrap {
  border: 1px dashed var(--border-2);
  border-radius: 12px;
  padding: 32px 24px 16px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}

.form-upload-wrap:hover,
.form-upload-wrap.dragging {
  border-color: rgba(79,127,255,0.5);
  background: rgba(79,127,255,0.05);
}

.form-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.form-upload-ui {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.upload-title {
  font-size: 14px;
  color: var(--text-muted);
}

.upload-browse {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(79,127,255,0.4);
}

.upload-types {
  font-size: 12px;
  color: var(--text-faint);
}

.upload-hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-faint);
  font-style: italic;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* File list */
.upload-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(79,127,255,0.08);
  border: 1px solid rgba(79,127,255,0.2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
}

.file-name {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 75%;
}

.file-size {
  color: var(--text-faint);
  flex-shrink: 0;
}

/* ── SUBMIT BUTTON ───────────────────────────────────────── */
.launchpad-submit {
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  align-self: center;
  letter-spacing: 0.01em;
  margin-top: 8px;
}

/* ── SUCCESS STATE ───────────────────────────────────────── */
.form-success {
  padding: 64px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeUp 0.6s ease both;
}

.form-success h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form-success p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 400px;
}

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 680px) {
  .demo-hero {
    padding: 100px 20px 60px;
  }

  /* Collapse both rows to left-aligned single column */
  .roadmap-row,
  .roadmap-row--right {
    margin-left: 0;
    margin-right: auto;
    max-width: 100%;
    flex-direction: row;
  }

  .step-box {
    padding: 28px 24px;
  }

  /* Replace diagonal arrows with a vertical connector on the left */
  .arrow-wrap {
    height: 60px;
    display: flex;
    align-items: stretch;
    padding-left: 30px;
  }

  /* Hide the diagonal SVG on mobile */
  .arrow-svg {
    display: none;
  }

  /* Vertical line */
  .arrow-wrap::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
      rgba(79,127,255,0.2),
      rgba(79,127,255,0.55),
      rgba(79,127,255,0.2));
  }

  /* Arrowhead at bottom of vertical line */
  .arrow-wrap::after {
    content: '';
    position: absolute;
    left: 16px;
    bottom: 4px;
    width: 13px;
    height: 13px;
    border-right: 1.5px solid rgba(79,127,255,0.6);
    border-bottom: 1.5px solid rgba(79,127,255,0.6);
    transform: rotate(45deg);
  }

  .launchpad-form {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .launchpad-submit {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .demo-heading {
    font-size: 32px;
  }

  .step-title {
    font-size: 18px;
  }

  .form-success {
    padding: 40px 20px;
  }
}
