/* =========================================================
   Deay Bypass — download page
   ========================================================= */
.dl {
  position: relative; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center;
  padding: 150px 0 90px;
}
.dl-canvas {
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 80%);
}
.dl-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000, transparent 75%);
}
.dl-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.dl-orb-1 { width: 560px; height: 560px; left: -180px; top: -140px; background: radial-gradient(circle, rgba(99, 102, 241, .45), transparent 70%); animation: orbFloat 14s ease-in-out infinite; }
.dl-orb-2 { width: 520px; height: 520px; right: -160px; bottom: -180px; background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 70%); animation: orbFloat 18s ease-in-out infinite reverse; }

.dl-wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 64px; align-items: center;
}

/* ---------- Left: intro ---------- */
.dl-intro > * { animation: rise .8s var(--d, 0s) ease both; }
.dl-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, .45); background: rgba(99, 102, 241, .1);
  color: #c7d2fe; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
}
.dl-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: blink 1.6s ease-in-out infinite; }
.dl-title {
  margin-top: 22px;
  font-size: clamp(64px, 10vw, 128px); letter-spacing: -.045em; line-height: .95;
  padding-bottom: .06em;
}
.dl-lead { max-width: 540px; margin-top: 22px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.dl-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.dl-chips > span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(17, 18, 20, .7);
  font-size: 14px; font-weight: 600;
}
.dl-chips svg { width: 17px; height: 17px; color: var(--accent-2); }
.dl-chips svg.c-green { color: #4ade80; }

.dl-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; margin-top: 28px; }
.dl-steps li {
  display: flex; gap: 12px; padding: 16px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(15, 16, 18, .75);
  transition: border-color .3s, background .3s;
}
.dl-steps b {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, .45); background: rgba(99, 102, 241, .12);
  color: #c7d2fe; font-size: 12px; font-weight: 700;
  transition: background .3s, color .3s, box-shadow .3s;
}
.dl-steps h3 { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.dl-steps p { margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.dl-steps li.current { border-color: rgba(129, 140, 248, .55); background: rgba(99, 102, 241, .07); }
.dl-steps li.done b { background: var(--accent); color: #fff; box-shadow: 0 0 14px rgba(99, 102, 241, .5); }

/* ---------- Right: card ---------- */
.dl-card {
  position: relative; padding: 32px;
  border-radius: 22px; border: 1px solid rgba(129, 140, 248, .28);
  background: linear-gradient(180deg, rgba(24, 25, 38, .92), rgba(11, 12, 16, .94));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(99, 102, 241, .12);
  animation: rise .9s .2s ease both;
}
.dl-view { animation: viewIn .45s ease; }
.dl-card-head { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.dl-icon {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  border: 1px solid rgba(129, 140, 248, .4); background: rgba(99, 102, 241, .12); color: #a5b4fc;
}
.dl-icon svg { width: 24px; height: 24px; animation: dlBounce 2.2s ease-in-out infinite; }
.dl-card-head small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--accent-2); }
.dl-card-head small.c-green { color: #4ade80; }
.dl-card-head h2 { margin-top: 2px; font-size: 28px; font-weight: 700; line-height: 1.2; outline: none; }
.dl-card-head p { margin-top: 4px; font-size: 14px; color: var(--muted); }

#keyForm { margin-top: 24px; }
#keyForm label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.key-field {
  display: flex; align-items: center; gap: 10px;
  padding: 0 8px 0 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #0a0b0e;
  transition: border-color .2s, box-shadow .2s;
}
.key-field:focus-within { border-color: rgba(129, 140, 248, .7); box-shadow: 0 0 0 4px rgba(99, 102, 241, .16); }
.key-field > svg { flex: none; width: 18px; height: 18px; color: var(--dim); transition: color .2s; }
.key-field input {
  flex: 1; min-width: 0; padding: 15px 0;
  border: 0; outline: 0; background: none; color: var(--text);
  font-family: var(--mono); font-size: 15px; letter-spacing: .06em;
}
.key-field input::placeholder { color: #4b4b55; }
.key-ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(34, 197, 94, .18); color: #4ade80; opacity: 0; transform: scale(.5); transition: opacity .25s, transform .25s; }
.key-ok svg { width: 13px; height: 13px; }
.key-paste {
  flex: none; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #1b1c21;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: background .2s;
}
.key-paste:hover { background: #25262c; }
.key-field.valid { border-color: rgba(74, 222, 128, .55); }
.key-field.valid > svg { color: #4ade80; }
.key-field.valid .key-ok { opacity: 1; transform: none; }
.key-field.error { border-color: rgba(248, 113, 113, .7); box-shadow: 0 0 0 4px rgba(239, 68, 68, .14); }
.key-field.error > svg { color: #f87171; }
.key-field.shake { animation: shake .45s; }
.key-msg { min-height: 22px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.key-msg.error { color: #f87171; }

.dl-submit { width: 100%; margin-top: 6px; padding: 15px 22px; }
.dl-submit .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.dl-submit.loading { pointer-events: none; opacity: .85; }
.dl-submit.loading .spinner { display: inline-block; }
.dl-submit.loading > svg { display: none; }
.dl-terms { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--dim); }
.dl-terms a { font-weight: 600; color: var(--accent-2); }
.dl-terms a:hover { text-decoration: underline; }

/* success */
.dl-check {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, .5); background: rgba(34, 197, 94, .14); color: #4ade80;
  box-shadow: 0 0 30px rgba(34, 197, 94, .25);
}
.dl-check svg { width: 26px; height: 26px; stroke-dasharray: 24; stroke-dashoffset: 24; animation: drawCheck .5s .2s ease forwards; }
.dl-file {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px; padding: 14px;
  border-radius: 14px; border: 1px solid var(--line); background: #0c0d10;
}
.dl-file-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #312e81, #0f0f1a); border: 1px solid rgba(129, 140, 248, .35); }
.dl-file-icon svg { width: 26px; height: 26px; }
.dl-file b { display: block; font-size: 15px; font-weight: 600; }
.dl-file span { font-size: 12.5px; color: var(--muted); }
.dl-file-tag { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 11.5px !important; font-weight: 600; color: #4ade80 !important; background: rgba(34, 197, 94, .12); border: 1px solid rgba(74, 222, 128, .35); }
.dl-changes-title { margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--dim); }
.dl-changes { list-style: none; display: grid; gap: 8px; margin: 10px 0 20px; }
.dl-changes li { display: flex; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.dl-changes svg { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--accent-2); }
.dl-demo { margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(250, 204, 21, .3); background: rgba(250, 204, 21, .08); color: #fde68a; font-size: 12.5px; line-height: 1.55; }
.dl-demo code { font-family: var(--mono); font-size: 12px; }
.dl-reset { display: block; margin: 16px auto 0; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.dl-reset:hover { color: #fff; }

/* ---------- Keyframes ---------- */
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 30px); } }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dlBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .dl-wrap { grid-template-columns: 1fr; gap: 44px; }
  .dl-card { max-width: 560px; }
}
@media (max-width: 600px) {
  .dl { padding: 120px 0 60px; }
  .dl-lead { font-size: 16px; }
  .dl-steps { grid-template-columns: 1fr; }
  .dl-card { padding: 22px; border-radius: 18px; }
  .dl-card-head h2 { font-size: 24px; }
}
