/*
 * css/developers.css: /developers only. Centered statement over the gravity well, a three-part strip, starting
 * points, the quickstart code tabs, credentials, the tools grid, spending limits and the CTA band.
 * Everything else comes from site.css.
 */

/* ---------- hero ---------- */
.dv-hero { position: relative; overflow: hidden; padding: 112px 48px 56px; isolation: isolate; }
.dv-well { /* the gravity well rises behind the strip; its throat sits just above the cells, the rest fades out */
  position: absolute; left: 50%; top: 0; z-index: -1; width: min(1000px, 92vw); aspect-ratio: 1; translate: -50% calc(-70% - 40px);
  background: var(--or); opacity: .5; pointer-events: none;
  -webkit-mask: url('/img/singularity-current.svg') center / contain no-repeat, radial-gradient(ellipse 44% 26% at 50% 70%, #000 30%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask: url('/img/singularity-current.svg') center / contain no-repeat, radial-gradient(ellipse 44% 26% at 50% 70%, #000 30%, transparent 100%);
  mask-composite: intersect;
}
.dv-hero::after { /* soft glow under the statement */
  content: ''; position: absolute; left: 50%; top: 46%; z-index: -2; width: min(900px, 120%); aspect-ratio: 2 / 1; translate: -50% 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 94, 31, .14), transparent 70%);
}
.dv-hero-in { display: grid; gap: 22px; justify-items: center; text-align: center; max-width: 920px; margin: 0 auto; }
.dv-hero-in .lede { max-width: 640px; }
.dv-kicker { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font: 500 11.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.dv-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.dv-btns .btn:not(.btn-or) { background: var(--bg); }
.dv-strip-wrap { position: relative; margin-top: 168px; }
.dv-strip { list-style: none; margin: 0; padding: 0; background: rgba(21, 20, 20, .9); }
.dv-strip li { display: flex; align-items: center; gap: 14px; padding: 22px 26px; font-weight: 500; font-size: 16px; color: var(--head); }
.dv-si { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 94, 31, .12); color: var(--or); }
.dv-si svg { width: 20px; height: 20px; }

/* ---------- shared bits ---------- */
.dv-sec { border-top: 1px dashed var(--line); }
.dv-label { display: inline-block; font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--or); }
.dv-soft { color: var(--mute); }
.dv-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dv-card-top .ic { margin-bottom: 0; }
.dv-card-top .k { text-align: right; line-height: 1.3; }
.dv-more { margin-top: 28px; text-align: center; }
.dv-more .link, .dv-copy > .link { min-height: 40px; }
.dv-code .copy-btn { position: relative; }
.dv-code .copy-btn::after { content: ''; position: absolute; inset: -10px -8px; } /* a 40 px tap area around the small chip */

/* ---------- starting points ---------- */
.dv-card { transition: background .2s var(--ease); }
.dv-card:hover { background: var(--bg-1); }
.dv-card h3 { font-size: 18px; }
.dv-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 500; font-size: 14.5px; color: var(--or-2); }
.dv-go svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.dv-card:hover .dv-go svg { transform: translate(2px, -2px); }

/* ---------- quickstart ---------- */
.dv-qs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.dv-copy { display: grid; gap: 20px; justify-items: start; }
.dv-steps { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; border-top: 1px solid var(--line); }
.dv-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dv-steps li > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 94, 31, .6); color: var(--or); font: 500 12px/1 var(--mono); }
.dv-steps b { display: block; font-weight: 500; font-size: 15.5px; color: var(--head); }
.dv-steps small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--mute); }
.dv-steps a { color: var(--or-2); }
.dv-steps a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dv-code { padding: 22px; background: var(--bg-1); display: grid; gap: 16px; }
.dv-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); justify-self: start; }
.dv-tabs button { min-height: 40px; padding: 7px 15px; border-radius: 999px; font-weight: 500; font-size: 14.5px; color: var(--ink); transition: background .2s var(--ease); }
.dv-tabs button:hover { background: rgba(240, 227, 222, .06); }
.dv-tabs button[aria-selected='true'] { background: var(--or); color: var(--head); }
.dv-panel { display: grid; gap: 12px; }
.dv-panel .term pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.dv-note { font-size: 13.5px; line-height: 1.55; color: var(--dim); }
.dv-note a { color: var(--or-2); }
.dv-note a svg { display: inline-block; vertical-align: -1px; }
.dv-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- credentials ---------- */
.dv-auth .cell p code.inl { font-size: 12.5px; }
.dv-line { display: grid; gap: 6px; margin-top: 8px; padding: 12px 14px; border: 1px dashed rgba(255, 94, 31, .6); border-radius: 10px; background: rgba(255, 94, 31, .05); }
.dv-line span { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--or); }
.dv-line code { font-size: 13px; line-height: 1.4; color: var(--head); overflow-wrap: anywhere; }

/* ---------- tools ---------- */
.dv-tools { list-style: none; margin: 0; padding: 0; }
.dv-tools > li { border-bottom: 1px solid var(--line); }
.dv-tools > li:nth-last-child(-n+4) { border-bottom: 0; }
.dv-tools a { display: grid; gap: 4px; align-content: start; height: 100%; padding: 24px 24px 26px; transition: background .2s var(--ease); }
.dv-tools a:hover { background: var(--bg-1); }
.dv-ti { width: 40px; height: 40px; border-radius: 10px; background: var(--head); display: grid; place-items: center; margin-bottom: 14px; }
.dv-ti img { width: 24px; height: 24px; object-fit: contain; }
.dv-ti-dark { background: var(--bg-3); border: 1px solid var(--line-2); }
.dv-ti-dark img { width: 18px; height: 18px; }
.dv-letter { width: 24px; height: 24px; font-size: 14px; background: transparent; }
.dv-tools b { font-weight: 500; font-size: 16.5px; color: var(--head); }
.dv-tl { font: 500 11.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--or-2); }
.dv-tools small { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--mute); }

/* ---------- balance ---------- */
.dv-bound .cell { padding: 34px 32px 36px; }
.dv-bound .cell h3 { font-size: 20px; letter-spacing: -0.015em; }
.dv-bound .cell p { font-size: 15.5px; line-height: 1.55; }

/* ---------- CTA band ---------- */
.cta-card .float.f1 { left: 7%; top: 16%; rotate: -12deg; }
.cta-card .float.f2 { right: 8%; top: 12%; rotate: 10deg; }
.cta-card .float.f3 { left: 13%; top: 52%; rotate: 8deg; }
.cta-card .float.f4 { right: 12%; top: 50%; rotate: -9deg; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .dv-qs { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .dv-tools > li:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .dv-tools > li:nth-last-child(-n+2) { border-bottom: 0; }
  .dv-strip > li:nth-child(3) { grid-column: 1 / -1; border-bottom: 0; }
  .dv-auth > .cell:nth-child(3) { grid-column: 1 / -1; border-bottom: 0; }
}
@media (max-width: 760px) {
  .dv-hero { padding: 72px 18px 40px; }
  .dv-well { width: 150vw; translate: -50% calc(-70% - 24px); }
  .dv-strip-wrap { margin-top: 120px; }
  .dv-code { padding: 16px; }
  .dv-bound .cell { padding: 28px 22px; }
}
@media (max-width: 600px) {
  .dv-strip > li { border-bottom: 1px solid var(--line); }
  .dv-strip > li:last-child { border-bottom: 0; }
  .dv-strip li { padding: 16px 18px; font-size: 15px; }
  /* tools stay two-up on phones: icon, name and what it does; the longer line returns on wider screens */
  .dv-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dv-tools > li { border-right: 1px solid var(--line); }
  .dv-tools > li:nth-child(2n) { border-right: 0; }
  .dv-tools > li:nth-last-child(-n+2) { border-bottom: 0; }
  .dv-tools > li:last-child { border-bottom: 0; }
  .dv-tools a { padding: 18px 16px 20px; }
  .dv-tools small { display: none; }
  .dv-ti { width: 36px; height: 36px; margin-bottom: 10px; }
  .dv-ti img { width: 22px; height: 22px; }
  .dv-tabs { justify-self: stretch; justify-content: space-between; }
  .dv-tabs button { flex: 1 1 auto; padding: 7px 10px; font-size: 14px; }
  .dv-panel .term pre { padding: 14px; font-size: 12px; }
}
