/* Custom development experience page (mirrors consultancy page rhythm) */

.dev-page {
  overflow-x: hidden;
}

/* Seaqns: internal framework (not sold) */
.dev-seaqns {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
}

.dev-seaqns__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 200px);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

@media (max-width: 640px) {
  .dev-seaqns__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dev-seaqns__mark {
    order: -1;
    margin-inline: auto;
  }
}

.dev-seaqns__eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-hot);
  margin: 0 0 0.5rem;
}

.dev-seaqns__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  color: #f4f6fa;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.dev-seaqns__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #9aa3b2;
  max-width: 42rem;
}

.dev-seaqns__text strong {
  color: #e2e8f0;
  font-weight: 600;
}

.dev-seaqns__note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #6b7280;
}

.dev-seaqns__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border-subtle);
  background: #fff;
}

.dev-seaqns__mark img {
  width: 100%;
  max-width: 160px;
  height: auto;
  object-fit: contain;
}

.dev-hero {
  position: relative;
  padding: clamp(4rem, 12vw, 6.5rem) 0 clamp(3rem, 8vw, 4.5rem);
  background:
    radial-gradient(ellipse 70% 55% at 15% 30%, rgba(232, 163, 23, 0.1), transparent 50%),
    radial-gradient(ellipse 55% 45% at 88% 70%, rgba(242, 100, 25, 0.1), transparent 45%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border-subtle);
}

.dev-hero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .dev-hero__grid {
    grid-template-columns: 1fr;
  }
}

.dev-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent-hot);
  margin: 0 0 0.75rem;
}

.dev-hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #f4f6fa;
  margin: 0 0 1rem;
}

.dev-hero__lede {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #9aa3b2;
  max-width: 40rem;
}

.dev-hero__card {
  border-radius: var(--radius);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-2);
  padding: 1.25rem 1.35rem;
}

.dev-hero__card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.dev-hero__card strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.dev-flow {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.dev-flow__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.dev-flow__head h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: #f4f6fa;
  margin: 0 0 0.65rem;
}

.dev-flow__head p {
  margin: 0;
  color: #8b95a5;
  font-size: 0.95rem;
  line-height: 1.55;
}

.dev-flow__shell {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

@media (max-width: 768px) {
  .dev-flow__shell {
    grid-template-columns: 1fr;
  }
}

.dev-steps {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (max-width: 768px) {
  .dev-steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.dev-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #9aa3b2;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.dev-step:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #c5cbd6;
}

.dev-step.is-active {
  border-color: rgba(232, 163, 23, 0.45);
  background: rgba(232, 163, 23, 0.08);
  color: #f4f6fa;
}

.dev-step__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dev-step.is-active .dev-step__num {
  background: rgba(232, 163, 23, 0.25);
  color: #fff;
}

.dev-step__label {
  flex: 1;
  line-height: 1.35;
}

.dev-panel {
  border-radius: var(--radius);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg);
  overflow: hidden;
}

.dev-stage {
  position: relative;
  min-height: min(52vw, 300px);
  max-height: 340px;
  background:
    linear-gradient(180deg, rgba(14, 16, 22, 0.92) 0%, rgba(6, 7, 8, 0.98) 100%),
    radial-gradient(circle at 40% 100%, rgba(232, 163, 23, 0.07), transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.dev-vis {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s;
}

.dev-vis.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dev-vis__caption {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  max-width: 18rem;
}

/* Step 1: outside options */
.dev-shelf {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 400px;
}

.dev-shelf__item {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-2);
  font-size: 0.72rem;
  font-weight: 600;
  color: #8b95a5;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    color 0.4s ease;
}

.dev-shelf__item--dim {
  opacity: 0.45;
}

.dev-vis--1.is-visible .dev-shelf__item--build {
  border-color: rgba(242, 100, 25, 0.55);
  color: #fff;
  box-shadow: 0 0 20px rgba(242, 100, 25, 0.2);
  animation: dev-glow 2.4s ease-in-out infinite;
}

@keyframes dev-glow {
  50% {
    box-shadow: 0 0 28px rgba(242, 100, 25, 0.35);
  }
}

/* Step 2: streamline */
.dev-stream {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 440px;
}

.dev-stream__src {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dev-stream__box {
  width: 72px;
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.62rem;
  font-weight: 600;
  color: #9aa3b2;
  text-align: center;
  line-height: 1.2;
}

.dev-stream__join {
  font-size: 1.4rem;
  color: rgba(232, 163, 23, 0.5);
  line-height: 1;
}

.dev-stream__hub {
  min-width: 120px;
  padding: 1rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(242, 100, 25, 0.2), rgba(20, 24, 32, 0.95));
  border: 1px solid rgba(242, 100, 25, 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  transform: scale(0.85);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.45s ease;
}

.dev-vis--2.is-visible .dev-stream__hub {
  transform: scale(1);
  opacity: 1;
}

.dev-stream__arrows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: rgba(242, 100, 25, 0.6);
  font-size: 0.9rem;
}

/* Step 3: draft approved */
.dev-draft {
  position: relative;
  width: min(280px, 85vw);
  aspect-ratio: 3 / 4;
  max-height: 240px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f4f4f5 0%, #e4e6ea 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  padding: 1.25rem 1rem;
}

.dev-draft__lines {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dev-draft__lines span {
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
}

.dev-draft__lines span:nth-child(1) {
  width: 55%;
}
.dev-draft__lines span:nth-child(2) {
  width: 88%;
}
.dev-draft__lines span:nth-child(3) {
  width: 72%;
}

.dev-draft__stamp {
  position: absolute;
  right: 12%;
  bottom: 14%;
  width: 88px;
  height: 88px;
  border: 3px solid rgba(34, 197, 94, 0.85);
  border-radius: 50%;
  color: rgba(34, 197, 94, 0.9);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  transform: rotate(-12deg) scale(0);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity 0.35s ease;
}

.dev-vis--3.is-visible .dev-draft__stamp {
  transform: rotate(-12deg) scale(1);
  opacity: 1;
  transition-delay: 0.25s;
}

/* Step 4: delivery + revisions + scope */
.dev-track {
  width: min(100%, 420px);
}

.dev-track__row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.dev-track__node {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.62rem;
  font-weight: 700;
  color: #c5cbd6;
  text-align: center;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.dev-vis--4.is-visible .dev-track__node {
  opacity: 1;
  transform: translateY(0);
}

.dev-vis--4.is-visible .dev-track__node:nth-child(1) {
  transition-delay: 0.05s;
}
.dev-vis--4.is-visible .dev-track__node:nth-child(2) {
  transition-delay: 0.15s;
}
.dev-vis--4.is-visible .dev-track__node:nth-child(3) {
  transition-delay: 0.25s;
}
.dev-vis--4.is-visible .dev-track__node:nth-child(4) {
  transition-delay: 0.35s;
}
.dev-vis--4.is-visible .dev-track__node:nth-child(5) {
  transition-delay: 0.45s;
}

.dev-track__node--accent {
  border-color: rgba(242, 100, 25, 0.45);
  background: rgba(242, 100, 25, 0.12);
}

.dev-scope {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 2px dashed rgba(232, 163, 23, 0.35);
  background: rgba(232, 163, 23, 0.05);
}

.dev-scope__box {
  flex: 1;
  font-size: 0.68rem;
  font-weight: 600;
  color: #9aa3b2;
}

.dev-scope__pipe {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-hot);
  white-space: nowrap;
}

.dev-scope__next {
  flex: 0 0 72px;
  padding: 0.4rem;
  border-radius: 8px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-subtle);
  font-size: 0.58rem;
  font-weight: 700;
  color: #8b95a5;
  text-align: center;
  line-height: 1.2;
}

/* Step 5: license fork */
.dev-license {
  display: flex;
  gap: 0.75rem;
  width: min(100%, 400px);
  flex-wrap: wrap;
  justify-content: center;
}

.dev-license__path {
  flex: 1;
  min-width: 140px;
  max-width: 180px;
  padding: 1rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-2);
  text-align: center;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.dev-license__path--yes {
  border-color: rgba(34, 197, 94, 0.4);
}

.dev-license__path--no {
  border-color: rgba(185, 28, 28, 0.35);
}

.dev-vis--5.is-visible .dev-license__path--yes {
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.12);
}

.dev-license__icon {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.dev-license__title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f4f6fa;
  margin: 0 0 0.35rem;
}

.dev-license__text {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #8b95a5;
}

.dev-copy {
  padding: 1.35rem 1.5rem 1.5rem;
  border-top: 1px solid var(--color-border-subtle);
}

.dev-copy__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #f4f6fa;
  margin: 0 0 0.5rem;
}

.dev-copy__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #9aa3b2;
}

.dev-copy__text + .dev-copy__text {
  margin-top: 0.65rem;
}

.dev-arrows {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem 1.25rem;
}

.dev-arrows button {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #c5cbd6;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.dev-arrows button:hover:not(:disabled) {
  border-color: rgba(232, 163, 23, 0.5);
  color: #fff;
}

.dev-arrows button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Scope playground */
.dev-play {
  background: var(--color-bg);
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.dev-play__head {
  max-width: 38rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.dev-play__head h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: #f4f6fa;
  margin: 0 0 0.6rem;
}

.dev-play__head p {
  margin: 0;
  color: #8b95a5;
  font-size: 0.92rem;
  line-height: 1.55;
}

.dev-play__control {
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

.dev-play__control label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.dev-play__control input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  appearance: none;
}

.dev-play__control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(232, 163, 23, 0.45);
}

.dev-play__control input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid #fff;
  cursor: pointer;
}

.dev-scope-demo {
  --push: 0.25;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-2);
}

.dev-scope-demo__fence {
  flex: 1;
  min-height: 72px;
  border: 2px dashed rgba(34, 197, 94, 0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dev-scope-demo__chip {
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: rgba(242, 100, 25, 0.2);
  border: 1px solid rgba(242, 100, 25, 0.45);
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  transform: translateX(calc(var(--push) * 28px));
  transition: transform 0.15s ease-out;
}

.dev-scope-demo__phase2 {
  flex: 0 0 76px;
  padding: 0.5rem 0.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b95a5;
  text-align: center;
  line-height: 1.25;
  opacity: calc(0.35 + var(--push) * 0.65);
  transition: opacity 0.15s ease-out;
}

.dev-cta {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 clamp(4rem, 10vw, 5rem);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-top: 1px solid var(--color-border-subtle);
}

.dev-cta p {
  margin: 0 0 1.25rem;
  color: #9aa3b2;
  font-size: 0.95rem;
  max-width: 36rem;
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .dev-vis,
  .dev-stream__hub,
  .dev-draft__stamp,
  .dev-track__node,
  .dev-shelf__item--build {
    transition: none !important;
    animation: none !important;
  }
  .dev-vis.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .dev-vis:not(.is-visible) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
  }
  .dev-vis--3.is-visible .dev-draft__stamp {
    transform: rotate(-12deg) scale(1);
    opacity: 1;
  }
  .dev-vis--2.is-visible .dev-stream__hub {
    transform: scale(1);
    opacity: 1;
  }
}
