/* ============================================================
   devswitch homepage — Claude design (Devswitch.dc.html) 1:1.
   All values copied verbatim from the design; classes are the
   inline-style conversion (.ds-* naming, tokens from styles.css).
   Loaded only on the homepage (asset registry: id_contains home).
   ============================================================ */

/* ---------- keyframes (design names, verbatim) ---------- */
@keyframes ds-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -24px) scale(1.08);
  }
}
@keyframes ds-float2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-28px, 22px) scale(1.1);
  }
}
@keyframes ds-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes ds-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@keyframes ds-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}
@keyframes ds-dash {
  to {
    stroke-dashoffset: -1000;
  }
}
@keyframes ds-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ds-spin-rev {
  to {
    transform: rotate(-360deg);
  }
}
@keyframes ds-bob {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 9px));
  }
}
@keyframes ds-ring {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
@keyframes ds-tile {
  0%,
  20%,
  100% {
    border-color: var(--ds-border);
    background: var(--ds-surface);
    box-shadow: inset 0 1px 0 var(--ds-glass-hi);
  }
  6%,
  14% {
    border-color: var(--ds-accent);
    background: color-mix(in srgb, var(--ds-accent) 18%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--ds-accent) 35%, transparent);
  }
}
@keyframes ds-reveal {
  0%,
  8% {
    opacity: 0;
    transform: translateY(4px);
  }
  20%,
  88% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ds-pop {
  0%,
  55%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 transparent;
  }
  62%,
  75% {
    transform: scale(1.08);
    box-shadow: 0 0 14px color-mix(in srgb, #34d399 45%, transparent);
  }
}

/* ---------- page scope ---------- */
.ds-home {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}
.ds-home ::selection {
  background: var(--ds-accent);
  color: #fff;
}
.ds-home a {
  text-decoration: none;
}

/* per-category color hook (.dd-page covers homepage AND tool pages) */
.dd-page [data-cat='all'] {
  --ds-c: #7c7bff;
}
.dd-page [data-cat='color'] {
  --ds-c: var(--ds-cat-color);
}
.dd-page [data-cat='image'] {
  --ds-c: var(--ds-cat-image);
}
.dd-page [data-cat='code'] {
  --ds-c: var(--ds-cat-code);
}
.dd-page [data-cat='file'] {
  --ds-c: var(--ds-cat-file);
}
.dd-page [data-cat='number'] {
  --ds-c: var(--ds-cat-number);
}
.dd-page [data-cat='web'] {
  --ds-c: var(--ds-cat-web);
}

/* "Explore More Tools" browse block on tool pages (shared partial) */
.ds-browse:not(.ds-browse--home) {
  position: relative;
  z-index: 4;
  margin: 70px auto 0;
}
.ds-browse__title {
  font-family: var(--ds-font-sans);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ds-text);
}

/* shared recipes */
.ds-glass {
  border: 1px solid var(--ds-border);
  background:
    linear-gradient(140deg, var(--ds-glass-hi), transparent 60%),
    var(--ds-surface);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 var(--ds-glass-hi),
    0 8px 26px -16px rgba(0, 0, 0, 0.28);
}
.ds-code-pane {
  border-radius: 16px;
  border: 1px solid var(--ds-border);
  background: var(--ds-code-bg);
  overflow: hidden;
}
.ds-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.ds-dot--red {
  background: #ff6b57;
}
.ds-dot--yellow {
  background: #fbbf24;
}
.ds-dot--green {
  background: #34d399;
}
.ds-cursor {
  display: inline-block;
  width: 8px;
  animation: ds-blink 1s step-end infinite;
  color: var(--ds-text);
}

/* ---------- atmosphere ---------- */
.ds-grid-tex {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ds-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ds-grid) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(
    ellipse 85% 55% at 50% -5%,
    #000 35%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 85% 55% at 50% -5%,
    #000 35%,
    transparent 100%
  );
}
.ds-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
}
.ds-glow--1 {
  top: -120px;
  left: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--ds-glow1), transparent 70%);
  animation: ds-float 16s ease-in-out infinite;
}
.ds-glow--2 {
  top: 380px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--ds-glow3), transparent 70%);
  animation: ds-float2 20s ease-in-out infinite;
}
.ds-glow--3 {
  top: 1100px;
  left: 30%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, var(--ds-glow2), transparent 70%);
  animation: ds-float 22s ease-in-out infinite;
}

/* ---------- hero / tool selection ---------- */
.ds-hero {
  position: relative;
  z-index: 4;
  max-width: 1680px;
  margin: 0 auto;
  padding: 40px 40px 20px;
}
.ds-hero h1 {
  font-family: var(--ds-font-sans);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 760px;
  color: var(--ds-text);
}
.ds-hero-accent {
  color: var(--ds-accent-2);
  text-shadow: 0 0 32px color-mix(in srgb, var(--ds-accent) 55%, transparent);
}
.ds-lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ds-text-muted);
  max-width: 620px;
  margin: 0 0 34px;
}

/* filter row: search orb + category pills */
.ds-filter-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}
.ds-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

/* glassy search orb: a magnifier button that expands to the right over
   the pills on hover/focus and turns into the tool search input */
.ds-search-orb {
  flex: none;
  position: static; /* panel positions against .ds-filter-row */
  width: 41px;
  align-self: stretch;
}
.ds-search-orb__panel {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 41px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--ds-border);
  background:
    linear-gradient(140deg, var(--ds-glass-hi), transparent 60%),
    var(--ds-surface);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 var(--ds-glass-hi);
  overflow: hidden;
  cursor: pointer;
  transition:
    width 0.25s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.ds-search-orb__icon {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--ds-text-soft);
  transition: color 0.2s ease;
}
.ds-search-orb input,
.ds-search-orb input:focus,
.ds-search-orb input:focus-visible {
  flex: 1;
  min-width: 0;
  height: auto;
  align-self: center;
  line-height: normal;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  background-color: transparent;
  color: var(--ds-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
.ds-search-orb input {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.ds-search-orb input::placeholder {
  color: var(--ds-text-dim);
}
.ds-search-orb input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.ds-search-orb:hover .ds-search-orb__panel {
  border-color: var(--ds-border-strong);
}
.ds-search-orb:hover .ds-search-orb__panel,
.ds-search-orb:focus-within .ds-search-orb__panel,
.ds-search-orb.ds-open .ds-search-orb__panel {
  width: 100%;
  cursor: text;
}
.ds-search-orb:focus-within .ds-search-orb__panel,
.ds-search-orb.ds-open .ds-search-orb__panel {
  border-color: var(--ds-accent);
  background: var(--ds-surface-2);
}
.ds-search-orb:focus-within .ds-search-orb__icon,
.ds-search-orb.ds-open .ds-search-orb__icon {
  color: var(--ds-accent);
}
.ds-search-orb:hover input,
.ds-search-orb:focus-within input,
.ds-search-orb.ds-open input {
  opacity: 1;
}
/* !important needed: the startup base styles `button { background/border
   !important }` plus uppercase/letter-spacing — the design pill must win. */
.ds-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: normal !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  height: auto !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 var(--ds-glass-hi) !important;
  border: 1px solid var(--ds-border) !important;
  background: var(--ds-surface) !important;
  color: var(--ds-text-soft) !important;
  transform: none !important;
}
.ds-pill::before {
  display: none !important;
}
.ds-pill:hover {
  border-color: var(--ds-border-strong) !important;
  background: var(--ds-surface) !important;
  color: var(--ds-text-soft) !important;
  box-shadow: inset 0 1px 0 var(--ds-glass-hi) !important;
}
.ds-pill.active,
.ds-pill.active:hover {
  border: 1px solid var(--ds-c) !important;
  background: color-mix(in srgb, var(--ds-c) 13%, transparent) !important;
  color: var(--ds-text) !important;
}
.ds-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ds-c);
  display: inline-block;
}
.ds-pill__count {
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

/* search (kept from the base, restyled to the design language) */
/* tool grid */
.ds-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.ds-tool-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.ds-card-link:hover .ds-tool-card {
  border-color: var(--ds-c);
  background: var(--ds-surface-2);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 var(--ds-glass-hi),
    0 12px 30px -12px color-mix(in srgb, var(--ds-c) 30%, transparent);
}
.ds-card-link:active .ds-tool-card {
  transform: translateY(-1px);
  transition-duration: 0.08s;
}
.ds-tool-card__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--ds-c);
  background: color-mix(in srgb, var(--ds-c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--ds-c) 32%, transparent);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.ds-card-link:hover .ds-tool-card__icon {
  background: color-mix(in srgb, var(--ds-c) 24%, transparent);
  border-color: color-mix(in srgb, var(--ds-c) 48%, transparent);
}
.ds-tool-card__body {
  flex: 1;
  min-width: 0;
}
.ds-tool-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ds-font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ds-c);
  margin-bottom: 5px;
}
.ds-tool-card__cat::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--ds-c);
}
.ds-tool-card__name {
  font-family: var(--ds-font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ds-text);
}
.ds-tool-card__arrow {
  flex: none;
  color: var(--ds-text-dim);
  font-size: 17px;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}
.ds-card-link:hover .ds-tool-card__arrow {
  transform: translateX(3px);
  color: var(--ds-c);
}
.ds-grid-empty {
  display: none;
  padding: 26px 4px;
  font-size: 15px;
  color: var(--ds-text-muted);
}
.ds-grid-empty.show {
  display: block;
}

/* Anchor wrapper for card-like links. The visual card lives on an inner
   <div>, so the startup base's global link rules (`a { border-bottom: none
   !important }`, `a { display: inline-flex; color: var(--link) }`) never
   touch the card itself — no !important tug-of-war needed. */
.ds-card-link {
  display: block;
  color: inherit;
  min-width: 0;
}
.ds-card-link:hover {
  color: inherit;
}

/* ---------- flagship: live switchboard ---------- */
.ds-board-wrap {
  position: relative;
  z-index: 4;
  max-width: 1240px;
  margin: 90px auto 0;
  padding: 0 40px;
}
.ds-board {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
}
.ds-board h2 {
  font-family: var(--ds-font-sans);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--ds-text);
}
.ds-board__copy {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ds-text-muted);
  margin: 0 0 24px;
}
.ds-board__tagrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ds-font-mono);
  font-size: 13px;
  color: var(--ds-text-soft);
}
.ds-board__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ds-c) 13%, transparent);
  color: var(--ds-c);
  font-weight: 600;
}
.ds-board__tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-c);
}
.ds-io {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
.ds-pane {
  min-height: 150px;
}
.ds-pane__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ds-border-soft);
}
.ds-pane__head--out {
  justify-content: space-between;
}
.ds-pane__label {
  font-family: var(--ds-font-mono);
  font-size: 11px;
  color: var(--ds-text-dim);
}
.ds-pane__label--in {
  margin-left: 6px;
}
.ds-pane--out .ds-pane__label {
  color: var(--ds-c);
}
.ds-pane__ready {
  font-family: var(--ds-font-mono);
  font-size: 11px;
  color: #34d399;
}
.ds-pane pre {
  margin: 0;
  padding: 16px;
  font-family: var(--ds-font-mono);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ds-code-text);
  white-space: pre-wrap;
  word-break: break-word;
}
.ds-pane--out {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.ds-pane--out pre {
  color: var(--ds-c);
}
.ds-pane--out.on {
  border-color: var(--ds-c);
  box-shadow: 0 0 40px color-mix(in srgb, var(--ds-c) 13%, transparent);
}
.ds-knob-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ds-knob {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  padding: 3px;
  transition: background 0.4s ease;
  background: var(--ds-track-off);
}
.ds-knob.on {
  background: var(--ds-c);
}
.ds-knob__ball {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ds-text);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: translateX(0);
}
.ds-knob.on .ds-knob__ball {
  transform: translateX(22px);
}
.ds-knob-label {
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ds-text-dim);
}

/* ---------- pipeline marquee ---------- */
.ds-marquee {
  position: relative;
  z-index: 4;
  margin: 70px 0 0;
  padding: 26px 0;
  border-top: 1px solid var(--ds-border-soft);
  border-bottom: 1px solid var(--ds-border-soft);
  background:
    linear-gradient(140deg, var(--ds-glass-hi), transparent 60%),
    var(--ds-surface);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 var(--ds-glass-hi),
    0 8px 26px -16px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.ds-marquee__track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: ds-marquee 34s linear infinite;
  will-change: transform;
}
/* items are links to their tools: pause the belt while hovering so
   they can actually be clicked */
.ds-marquee:hover .ds-marquee__track {
  animation-play-state: paused;
}
.ds-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--ds-font-mono);
  font-size: 14px;
  white-space: nowrap;
  color: var(--ds-text-soft);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
/* the base `a { border-bottom: none !important }` link-underline reset
   strips the bottom border again — re-assert it (same as the cards) */
.ds-home a.ds-marquee__item {
  border-bottom: 1px solid var(--ds-border) !important;
}
.ds-marquee__item:hover {
  border-color: var(--ds-c);
  background: var(--ds-surface-2);
  color: var(--ds-text);
  transform: translateY(-2px);
}
.ds-home a.ds-marquee__item:hover {
  border-bottom-color: var(--ds-c) !important;
}
.ds-marquee__item::before {
  content: '●';
  color: var(--ds-c);
}

/* ---------- how it works ---------- */
.ds-how {
  position: relative;
  z-index: 4;
  max-width: 1240px;
  margin: 100px auto 0;
  padding: 0 40px;
}
.ds-how__head {
  text-align: center;
  margin-bottom: 54px;
}
.ds-how__head h2,
.ds-eco__head h2,
.ds-faq__head h2 {
  font-family: var(--ds-font-sans);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ds-text);
}
.ds-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ds-step {
  position: relative;
  padding: 24px;
  border-radius: 22px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.ds-step:hover {
  transform: translateY(-4px);
  border-color: var(--ds-accent);
}
.ds-step h3 {
  font-family: var(--ds-font-sans);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--ds-text);
}
.ds-step > p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ds-text-muted);
  margin: 0;
}
.ds-scene {
  height: 116px;
  margin-bottom: 22px;
  border-radius: 14px;
  border: 1px solid var(--ds-border-soft);
  background: var(--ds-code-bg);
  overflow: hidden;
}
/* scene 1: pulsing tile grid */
.ds-scene--tiles {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: center;
}
.ds-scene--tiles span {
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  box-shadow: inset 0 1px 0 var(--ds-glass-hi);
  animation: ds-tile 4.8s ease-in-out infinite;
}
.ds-scene--tiles span:nth-child(2) {
  animation-delay: 0.8s;
}
.ds-scene--tiles span:nth-child(3) {
  animation-delay: 1.6s;
}
.ds-scene--tiles span:nth-child(4) {
  animation-delay: 2.4s;
}
.ds-scene--tiles span:nth-child(5) {
  animation-delay: 3.2s;
}
.ds-scene--tiles span:nth-child(6) {
  animation-delay: 4s;
}
/* scenes 2+3: mini code panes */
.ds-scene__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--ds-border-soft);
}
.ds-scene__head--out {
  justify-content: space-between;
}
.ds-scene__head .ds-dot {
  width: 8px;
  height: 8px;
}
.ds-scene pre {
  margin: 0;
  padding: 8px 14px;
  font-family: var(--ds-font-mono);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ds-code-text);
}
.ds-scene--out pre {
  padding: 13px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.ds-scene pre .ds-line {
  display: inline-block;
  animation: ds-reveal 4.5s ease-in-out infinite;
}
.ds-scene pre .ds-line:nth-of-type(2) {
  animation-delay: 0.5s;
}
.ds-scene pre .ds-line:nth-of-type(3) {
  animation-delay: 1s;
}
.ds-scene pre .ds-line:nth-of-type(4) {
  animation-delay: 1.5s;
}
.ds-scene .ds-num {
  color: var(--ds-accent);
}
.ds-scene .ds-cursor {
  width: 7px;
}
.ds-copied {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, #34d399 16%, transparent);
  font-family: var(--ds-font-sans);
  font-size: 11px;
  color: #34d399;
  font-weight: 700;
  animation: ds-pop 4.5s ease-in-out infinite;
}

/* ---------- ecosystem / the stack ---------- */
.ds-eco {
  position: relative;
  z-index: 4;
  max-width: 1240px;
  margin: 110px auto 0;
  padding: 0 40px;
}
.ds-eco__head {
  text-align: center;
  margin: 0 auto 20px;
  max-width: 680px;
}
.ds-eco__head h2 {
  font-size: 40px;
  line-height: 1.08;
  margin: 0 0 14px;
}
.ds-eco__head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ds-text-muted);
  margin: 0;
}
.ds-eco__head p a {
  color: var(--ds-accent-2);
  font-weight: 600;
}
.ds-eco__head p a:hover {
  opacity: 0.8;
}
.ds-orbit {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 560px;
  margin: 0 auto;
}
.ds-orbit__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}
.ds-orbit__svg .ds-wire {
  stroke: var(--ds-border-strong);
}
.ds-orbit__svg .ds-wire--dash {
  stroke: var(--ds-accent);
  stroke-dasharray: 7 11;
  animation: ds-dash 18s linear infinite;
}
.ds-orbit__svg .ds-wire--dash-2 {
  animation-duration: 20s;
}
.ds-orbit__svg .ds-wire--dash-3 {
  animation-duration: 22s;
}
.ds-orbit__svg .ds-packet {
  fill: var(--ds-accent);
}
.ds-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  z-index: 0;
}
.ds-ring--outer {
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border: 1.5px dashed color-mix(in srgb, var(--ds-accent) 62%, transparent);
  animation: ds-spin 40s linear infinite;
}
.ds-ring--inner {
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border: 1.5px dashed color-mix(in srgb, var(--ds-accent) 45%, transparent);
  animation: ds-spin-rev 30s linear infinite;
}
.ds-ring--glow {
  width: 380px;
  height: 380px;
  margin: -190px 0 0 -190px;
  background: radial-gradient(circle, var(--ds-glow1), transparent 68%);
  filter: blur(10px);
  animation: ds-ring 6s ease-in-out infinite;
}
.ds-node--center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 260px;
  border-radius: 18px;
  border: 1px solid var(--ds-border);
  background:
    linear-gradient(140deg, var(--ds-glass-hi), transparent 60%),
    var(--ds-surface);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 var(--ds-glass-hi),
    0 20px 50px -18px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.ds-node--center .ds-pane__head {
  padding: 10px 14px;
}
.ds-node__url {
  margin-left: 8px;
  flex: 1;
  height: 16px;
  border-radius: 5px;
  background: var(--ds-surface-2);
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-family: var(--ds-font-mono);
  font-size: 9px;
  color: var(--ds-text-dim);
}
.ds-node__body {
  padding: 20px 18px 22px;
  text-align: center;
}
.ds-node__globe {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--ds-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--ds-accent) 40%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-accent);
}
.ds-node__title {
  font-family: var(--ds-font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ds-text);
}
.ds-node--hosting {
  position: absolute;
  left: 50%;
  top: 21.4%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  gap: 12px;
  animation: ds-bob 7s ease-in-out infinite;
}
.ds-host-card {
  display: block;
  width: 120px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--ds-border);
  background:
    linear-gradient(140deg, var(--ds-glass-hi), transparent 60%),
    var(--ds-surface);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 var(--ds-glass-hi),
    0 10px 30px -14px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.ds-card-link:hover .ds-host-card {
  transform: translateY(-3px);
}
.ds-card-link:hover .ds-host-card--cf {
  border-color: #f6821f;
}
.ds-card-link:hover .ds-host-card--gh {
  border-color: var(--ds-text);
}
.ds-host-card svg {
  margin-bottom: 8px;
}
.ds-host-card--gh svg {
  fill: var(--ds-text);
}
.ds-host-card__name {
  font-family: var(--ds-font-sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--ds-text);
}
.ds-host-card__sub {
  font-size: 11px;
  color: var(--ds-text-muted);
  margin-top: 1px;
}
/* Node positioning lives on the anchor wrapper (.ds-node-pos--*), the
   visual card on the inner div — base link rules can't reach the visuals. */
.ds-node-pos--sendform,
.ds-node-pos--privcaptcha {
  display: block;
  position: absolute;
  top: 77.1%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 172px;
  color: inherit;
}
.ds-node-pos--sendform {
  left: 25.8%;
  animation: ds-bob 8s ease-in-out infinite;
  animation-delay: -2s;
}
.ds-node-pos--privcaptcha {
  left: 74.2%;
  animation: ds-bob 7.5s ease-in-out infinite;
  animation-delay: -4s;
}
.ds-node--sendform,
.ds-node--privcaptcha {
  height: 140px;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.ds-card-link:hover .ds-node--sendform {
  transform: translateY(-3px);
  border-color: #eebe6b;
  box-shadow: 0 16px 38px -16px rgba(107, 120, 188, 0.6);
}
.ds-card-link:hover .ds-node--privcaptcha {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, #2ec4b6 70%, var(--ds-border));
  box-shadow:
    inset 0 1px 0 var(--ds-glass-hi),
    0 16px 38px -16px rgba(46, 196, 182, 0.55);
}
.ds-node--sendform {
  border: 1px solid #e5d9c4;
  background: linear-gradient(150deg, #fbf6ec, #f3ebda);
  box-shadow: 0 12px 32px -16px rgba(107, 120, 188, 0.45);
}
.ds-node--privcaptcha {
  border: 1px solid color-mix(in srgb, #2ec4b6 40%, var(--ds-border));
  background: linear-gradient(
    140deg,
    color-mix(in srgb, #2ec4b6 12%, transparent),
    var(--ds-surface)
  );
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 var(--ds-glass-hi),
    0 12px 32px -16px rgba(46, 196, 182, 0.4);
}
.ds-node__logo {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 10px;
}
.ds-node__logo img {
  width: 24px;
  height: 24px;
  display: block;
}
.ds-node__logo span {
  font-family: var(--ds-font-sans);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.ds-node--sendform .ds-node__logo span {
  color: #2e2618;
}
.ds-node--privcaptcha .ds-node__logo span {
  color: var(--ds-text);
}
/* brand TLD suffix, same treatment as the DevSwitch.net wordmark */
.ds-node--sendform .ds-node__logo .ds-node__tld {
  color: #ce7c2b;
}
.ds-node--privcaptcha .ds-node__logo .ds-node__tld {
  color: #8b3ff5;
}
.ds-node__label {
  font-family: var(--ds-font-sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--ds-text);
}
.ds-node--sendform .ds-node__label {
  color: #2e2618;
}
.ds-node__sub {
  font-size: 12px;
  color: var(--ds-text-muted);
  margin-top: 2px;
}
.ds-node--sendform .ds-node__sub {
  color: #7c6f5b;
}

/* ---------- why devswitch: old way vs devswitch way ---------- */
@keyframes ds-why-rowin {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ds-why-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -18px);
  }
}
.ds-why {
  position: relative;
  z-index: 4;
  max-width: 1080px;
  margin: 100px auto 0;
  padding: 0 40px;
}
.ds-why__glow {
  position: absolute;
  top: -80px;
  right: 8%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ds-glow1), transparent 70%);
  filter: blur(20px);
  animation: ds-why-float 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.ds-why__inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}
.ds-why__head {
  text-align: center;
  margin-bottom: 34px;
}
.ds-why__head h2 {
  font-family: var(--ds-font-sans);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--ds-text);
}
.ds-why__head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ds-text-muted);
  margin: 0 auto;
  max-width: 560px;
}
.ds-why__togglewrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
/* !important: the base button rules (background/border !important,
   uppercase, margins) must not restyle the comparison toggle */
.ds-why__toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 !important;
  padding: 5px !important;
  border-radius: 999px !important;
  border: 1px solid var(--ds-border) !important;
  background: var(--ds-surface) !important;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 var(--ds-glass-hi) !important;
  cursor: pointer;
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: normal !important;
  height: auto !important;
  color: inherit !important;
  transform: none !important;
  position: relative;
}
.ds-why__toggle::before {
  display: none !important;
}
.ds-why__knob {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--ds-accent);
  box-shadow: 0 4px 16px -4px
    color-mix(in srgb, var(--ds-accent) 70%, transparent);
  transition:
    transform 0.5s cubic-bezier(0.34, 1.3, 0.5, 1),
    background 0.4s ease;
  transform: translateX(100%);
}
.ds-why.is-old .ds-why__knob {
  transform: translateX(0);
  background: color-mix(in srgb, var(--ds-bad) 55%, transparent);
  box-shadow: none;
}
.ds-why__opt {
  position: relative;
  z-index: 1;
  padding: 11px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: color 0.4s ease;
  white-space: nowrap;
}
.ds-why__opt--old {
  color: var(--ds-text-dim);
}
.ds-why__opt--new {
  color: #fff;
}
.ds-why.is-old .ds-why__opt--old {
  color: #fff;
}
.ds-why.is-old .ds-why__opt--new {
  color: var(--ds-text-dim);
}
.ds-why__table {
  border-radius: 22px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 var(--ds-glass-hi),
    0 20px 60px -24px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.ds-why__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--ds-border-soft);
  animation: ds-why-rowin 0.5s ease both;
}
.ds-why__row:nth-child(2) {
  animation-delay: 0.08s;
}
.ds-why__row:nth-child(3) {
  animation-delay: 0.16s;
}
.ds-why__row:nth-child(4) {
  animation-delay: 0.24s;
}
.ds-why__row:nth-child(5) {
  animation-delay: 0.32s;
}
.ds-why__row:nth-child(6) {
  animation-delay: 0.4s;
}
.ds-why__label {
  padding: 20px 26px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ds-text);
}
.ds-why__cell {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.4s ease;
}
.ds-why__cell--old {
  opacity: 0.65;
}
.ds-why.is-old .ds-why__cell--old {
  opacity: 1;
}
.ds-why__cell--new {
  opacity: 1;
}
.ds-why.is-old .ds-why__cell--new {
  opacity: 0.65;
}
.ds-why__mark {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds-why__mark--x {
  background: color-mix(in srgb, var(--ds-bad) 22%, transparent);
  color: var(--ds-bad);
}
.ds-why__mark--check {
  background: color-mix(in srgb, var(--ds-good) 20%, transparent);
  color: var(--ds-good);
  box-shadow: 0 0 14px color-mix(in srgb, var(--ds-good) 45%, transparent);
  transition: box-shadow 0.4s ease;
}
.ds-why.is-old .ds-why__mark--check {
  box-shadow: none;
}
.ds-why__old {
  font-size: 14px;
  color: var(--ds-text-muted);
}
.ds-why__new {
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-text);
  transition: color 0.4s ease;
}
.ds-why.is-old .ds-why__new {
  color: var(--ds-text-muted);
}
.ds-why__stat {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: center;
  background: color-mix(in srgb, var(--ds-accent) 7%, transparent);
}
.ds-why__label--stat {
  padding: 22px 26px;
  font-weight: 700;
}
.ds-why__statold {
  padding: 20px;
  font-family: var(--ds-font-mono);
  font-size: 15px;
  color: var(--ds-text-muted);
}
.ds-why__statold span {
  font-size: 12px;
}
.ds-why__statnew {
  padding: 20px;
  font-family: var(--ds-font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--ds-good);
}
.ds-why__note {
  text-align: center;
  font-size: 14px;
  color: var(--ds-text-dim);
  margin: 22px 0 0;
}
.ds-faq {
  position: relative;
  z-index: 4;
  max-width: 820px;
  margin: 100px auto 0;
  padding: 0 40px;
}
.ds-faq__head {
  text-align: center;
  margin-bottom: 42px;
}
.ds-faq__list .collapse-container {
  --collapse-accent: var(--ds-accent);
  --collapse-accent-rgb: 61, 125, 255;
}

/* ---------- reveal on scroll (JS-gated: .ds-reveal-ready is added
   by home-seo.js, so content stays visible without JS) ---------- */
.ds-reveal-ready .ds-step,
.ds-reveal-ready .ds-board,
.ds-reveal-ready .ds-eco__head {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.ds-reveal-ready .ds-step.in,
.ds-reveal-ready .ds-board.in,
.ds-reveal-ready .ds-eco__head.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- bottom spacing (base footer follows) ---------- */
.ds-home > section:last-of-type {
  margin-bottom: 100px;
}

/* ---------- responsive (design is 1240px desktop; below is our
   extension — desktop values above stay pixel-true) ---------- */
@media (max-width: 1100px) {
  .ds-tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ds-board {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }
}
/* mobile/tablet: pills wrap to multiple rows, so the expanding orb trick
   stops making sense — turn the search into a regular always-open
   full-width field above the pills (touch has no hover anyway) */
@media (max-width: 900px) {
  .ds-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .ds-search-orb {
    position: relative;
    width: 100%;
    height: 41px;
    align-self: auto;
  }
  .ds-search-orb__panel,
  .ds-search-orb:hover .ds-search-orb__panel,
  .ds-search-orb:focus-within .ds-search-orb__panel,
  .ds-search-orb.ds-open .ds-search-orb__panel {
    width: 100%;
    cursor: text;
  }
  .ds-search-orb input {
    opacity: 1;
  }

  .ds-tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ds-steps {
    grid-template-columns: 1fr;
  }
  .ds-hero h1 {
    font-size: 34px;
  }
  .ds-how__head h2,
  .ds-eco__head h2,
  .ds-faq__head h2 {
    font-size: 34px;
  }
  .ds-board h2 {
    font-size: 34px;
  }
  .ds-hero,
  .ds-board-wrap,
  .ds-how,
  .ds-eco,
  .ds-faq {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 760px) {
  .ds-orbit {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
  }
  .ds-orbit__svg,
  .ds-ring {
    display: none;
  }
  .ds-node--center,
  .ds-node--hosting,
  .ds-node-pos--sendform,
  .ds-node-pos--privcaptcha {
    position: static;
    transform: none;
    animation: none;
  }
  .ds-node--center {
    order: -1;
  }
}
@media (max-width: 560px) {
  .ds-tool-grid {
    grid-template-columns: 1fr;
  }
  .ds-io {
    grid-template-columns: 1fr;
  }
  .ds-knob-wrap {
    flex-direction: row;
    justify-content: center;
  }
  .ds-hero {
    padding: 24px 16px 12px;
  }
  .ds-board-wrap,
  .ds-how,
  .ds-eco,
  .ds-faq {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ds-board {
    padding: 20px;
  }
  .ds-hero h1 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ds-glow--1,
  .ds-glow--2,
  .ds-glow--3,
  .ds-marquee__track,
  .ds-ring--outer,
  .ds-ring--inner,
  .ds-ring--glow,
  .ds-node--hosting,
  .ds-node--sendform,
  .ds-node--privcaptcha,
  .ds-orbit__svg .ds-wire--dash {
    animation: none !important;
  }
}
