/* Сторінка /developers: інженерний стиль (hairline-картки, код-мокапи, рух), у нашій палітрі */
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.dv { overflow-x: clip; --hair: #262626; --hair2: #333; --glow: rgba(203,176,247,.14); }
.dv section.dashed { border-top: 1px dashed rgba(120,130,160,.25); }
.dv section { padding: 72px 0; }

/* ── hero ── */
.dv-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: 36px 0 56px; }
.dv-hero-fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.dv-hero-fx .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 18s ease-in-out infinite alternate; }
.dv-hero-fx .o1 { width: 420px; height: 420px; right: -80px; top: -60px; background: radial-gradient(circle, #8b6cf0, transparent 70%); }
.dv-hero-fx .o2 { width: 300px; height: 300px; left: -100px; bottom: -40px; background: radial-gradient(circle, #4f46c8, transparent 70%); animation-delay: -6s; }
.dv-hero > *:not(.dv-hero-fx) { position: relative; z-index: 1; }
.dv-hero-text h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 400; margin: 16px 0 18px; }
.dv-hero-text .lead { color: var(--ash-mid); font-size: 18px; max-width: 520px; }
.dv-pill { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; color: var(--ash-light); border: 1px solid var(--hair2); border-radius: 99px; padding: 6px 14px; }
.dv-pill b { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 0 rgba(203,176,247,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(203,176,247,0); } 100% { box-shadow: 0 0 0 0 rgba(203,176,247,0); } }
.dv-mini { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.dv-mini div { display: grid; gap: 2px; }
.dv-mini b { font-family: var(--mono); font-size: 22px; letter-spacing: -.03em; font-weight: 500; }
.dv-mini span { font-size: 12px; color: var(--ash); }

/* ── термінал ── */
.term { background: #0a0a0a; border: 1px solid var(--hair2); border-radius: 14px; overflow: hidden; min-width: 0; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02) inset; }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--hair); background: #0f0f0f; }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }
.dots i:nth-child(1) { background: #ff5f57; opacity: .75; } .dots i:nth-child(2) { background: #febc2e; opacity: .75; } .dots i:nth-child(3) { background: #28c840; opacity: .75; }
.term-title { font-family: var(--mono); font-size: 12px; color: var(--ash); flex: 1; }
.term-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--violet); font-family: var(--mono); }
.term-live b { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); animation: ping 2s infinite; }
.term-eps { display: flex; gap: 6px; padding: 12px 14px 0; flex-wrap: wrap; }
.term-eps button { font-family: var(--mono); font-size: 12px; color: var(--ash-mid); background: none; border: 1px solid var(--hair); border-radius: 8px; padding: 5px 10px; cursor: pointer; transition: color .15s, border-color .15s, background .15s, transform .15s; position: relative; }
.term-eps button:hover { color: var(--bone); border-color: var(--hair2); transform: translateY(-1px); }
.term-eps button.on { color: var(--bone); background: rgba(203,176,247,.12); border-color: rgba(203,176,247,.5); }
.term-eps button small { font-size: 9px; color: var(--violet); margin-left: 6px; text-transform: uppercase; letter-spacing: .06em; }
.term-langs { display: flex; gap: 14px; padding: 12px 14px 0; align-items: center; }
.term-langs button { background: none; border: 0; color: var(--ash); font-family: var(--sans); font-size: 12px; cursor: pointer; padding: 4px 0; border-bottom: 1px solid transparent; }
.term-langs button.on { color: var(--bone); border-color: var(--violet); }
.term-langs button.copy { margin-left: auto; font-size: 11px; border: 1px solid var(--hair); border-radius: 6px; padding: 3px 10px; color: var(--ash-mid); }
.term-langs button.copy:hover { color: var(--bone); border-color: var(--hair2); }
.term-code, .term-out { margin: 0; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--ash-light); white-space: pre; overflow-x: auto; min-height: 92px; }
.term-code { min-height: 108px; }
.term-code::after { content: ''; display: inline-block; width: 7px; height: 14px; background: var(--violet); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
.term-code.done::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.term-status { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: #0d0d0d; }
.term-status .run { font-family: var(--sans); font-size: 13px; font-weight: 600; background: var(--bone); color: #000; border: 0; border-radius: 8px; padding: 7px 16px; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.term-status .run:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(203,176,247,.3); }
.term-status .run:disabled { opacity: .6; cursor: default; transform: none; }
#t-meta { font-family: var(--mono); font-size: 12px; color: var(--ash); }
#t-meta .ok { color: #7ee2a8; }
.term-out { max-height: 330px; overflow-y: auto; min-height: 150px; }
.term-out .ln { display: inline; animation: lnin .35s both; }
@keyframes lnin { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.t-k { color: #cbb0f7; } .t-s { color: #9ad7c3; } .t-n { color: #f0a361; } .t-w { color: #82aaff; } .t-y { color: #f0a361; font-weight: 600; } .t-c { color: #5a5a5a; }

/* ── бігуча стрічка ── */
.ticker { overflow: hidden; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker .track { display: flex; gap: 14px; width: max-content; animation: marq 48s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker span { white-space: nowrap; font-family: var(--mono); font-size: 13px; color: var(--ash-mid); border: 1px solid var(--hair); border-radius: 99px; padding: 6px 14px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ── схема потоку ── */
.flow { border: 1px solid var(--hair2); border-radius: 16px; background: #0a0a0a; overflow: hidden; }
.flow-scroll { overflow-x: auto; }
#flow-svg { min-width: 760px; padding: 14px 10px 0; }
#flow-svg svg { width: 100%; height: auto; display: block; }
.flow .base { fill: none; stroke: #2a2a2a; stroke-width: 1.5; }
.flow .run { fill: none; stroke: rgba(203,176,247,.55); stroke-width: 1.5; stroke-dasharray: 5 11; animation: dash 1.6s linear infinite; }
.flow .pulse { fill: #cbb0f7; filter: drop-shadow(0 0 6px rgba(203,176,247,.9)); }
.flow g.edge.on .base { stroke: rgba(203,176,247,.5); }
.flow g.edge.on .run { stroke: #cbb0f7; stroke-width: 2.4; animation-duration: .7s; }
.flow g.edge.dim { opacity: .25; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.flow g.node { cursor: pointer; outline: none; }
.flow g.node rect { fill: #111; stroke: #333; stroke-width: 1; transition: stroke .2s, fill .2s; rx: 10; }
.flow g.node:hover rect, .flow g.node:focus-visible rect { stroke: #cbb0f7; fill: #15131b; }
.flow g.node.on rect { stroke: #cbb0f7; fill: #1a1624; }
.flow g.node text { fill: #e3e2e0; font-family: Inter, sans-serif; font-size: 14px; pointer-events: none; }
.flow g.node text.sub { fill: #868684; font-size: 11px; font-family: "JetBrains Mono", monospace; }
.flow g.hub rect { stroke: rgba(203,176,247,.6); fill: #14111c; }
.flow g.hub text { font-weight: 600; font-size: 15px; }
.flow g.hub .ring { fill: none; stroke: rgba(203,176,247,.35); stroke-width: 1; animation: ringp 3s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ringp { from { transform: scale(1); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }
.flow-detail { padding: 14px 20px 18px; font-size: 14px; color: var(--ash-mid); border-top: 1px solid var(--hair); min-height: 52px; font-family: var(--sans); }
.flow-detail b { color: var(--bone); font-weight: 600; }
.flow-detail .mono { color: var(--violet); }

/* ── картки з підсвіткою ── */
.dcaps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dcap { position: relative; background: #0a0a0a; border: 1px solid var(--hair2); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: hidden; transition: border-color .25s, transform .3s var(--ease); }
.dcap::before { content: ''; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.dcap:hover { border-color: rgba(203,176,247,.4); transform: translateY(-3px); }
.dcap:hover::before { opacity: 1; }
.dcap .n { font-family: var(--mono); font-size: 12px; color: var(--violet); }
.dcap h3 { font-size: 17px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.dcap p { color: var(--ash-mid); font-size: 14px; }

/* ── калькулятор квоти ── */
.calc2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--hair2); border-radius: 14px; background: #0a0a0a; margin-bottom: 20px; overflow: hidden; }
.c2-controls { padding: 24px; display: grid; gap: 22px; border-right: 1px solid var(--hair); }
.c2-field label { display: flex; justify-content: space-between; font-size: 13px; color: var(--ash-mid); margin-bottom: 12px; }
.c2-field label b { font-family: var(--mono); color: var(--bone); font-weight: 500; }
.c2-field input[type=range] { width: 100%; accent-color: #cbb0f7; }
.c2-int { display: flex; gap: 8px; flex-wrap: wrap; }
.c2-int button { font-family: var(--mono); font-size: 12px; color: var(--ash-mid); background: none; border: 1px solid var(--hair2); border-radius: 8px; padding: 7px 12px; cursor: pointer; transition: all .15s; }
.c2-int button:hover { color: var(--bone); border-color: #555; }
.c2-int button.on { color: var(--bone); background: rgba(203,176,247,.12); border-color: rgba(203,176,247,.5); }
.c2-out { padding: 24px; display: grid; gap: 14px; align-content: center; }
.c2-out div { display: flex; align-items: baseline; gap: 10px; }
.c2-out b { font-family: var(--mono); font-size: 26px; letter-spacing: -.03em; font-weight: 500; }
.c2-out span { font-size: 13px; color: var(--ash); }
.c2-fit { padding-top: 14px; border-top: 1px dashed var(--hair2); }
.c2-fit b { color: var(--violet); }

/* ── тарифи ── */
.dplans .plan { background: #0a0a0a; border: 1px solid var(--hair2); border-radius: 12px; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.dplans .plan:hover { transform: translateY(-4px); border-color: rgba(203,176,247,.4); }
.dplans .plan.rec { border-color: #cbb0f7; box-shadow: 0 0 0 1px rgba(203,176,247,.4), 0 18px 60px rgba(110,80,220,.25); transform: translateY(-4px); }
.dplans .plan.rec::after { content: '●'; position: absolute; top: 14px; right: 16px; color: var(--violet); font-size: 11px; animation: ping 2s infinite; border-radius: 50%; }
.dplans .plan.pop { box-shadow: none; }
.beam { position: relative; }
.beam::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0 62%, rgba(203,176,247,.95) 80%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: beam 5s linear infinite; }
@keyframes beam { to { --a: 360deg; } }
.dent { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 28px; align-items: center; padding: 24px; background: #0a0a0a; border: 1px solid var(--hair2); border-radius: 12px; transition: border-color .25s; }
.dent.rec { border-color: #cbb0f7; }
.dent .price { font-family: var(--mono); font-size: 24px; margin: 6px 0; }
.dent ul { list-style: none; display: grid; gap: 9px; }
.dent li { font-size: 14px; color: var(--ash-light); padding-left: 20px; position: relative; }
.dent li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg); }

/* ── ключі ── */
.term.keys .keys-body { padding: 18px; font-size: 14px; }
.term.keys .keyrow { border-color: var(--hair); }

@media (max-width: 1100px) { .dv-hero { grid-template-columns: minmax(0, 1fr); } .dcaps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .calc2, .dent { grid-template-columns: minmax(0, 1fr); } .c2-controls { border-right: 0; border-bottom: 1px solid var(--hair); } }
@media (max-width: 640px) { .dcaps { grid-template-columns: minmax(0, 1fr); } .dv section { padding: 52px 0; } .term-code, .term-out { font-size: 11.5px; } }
