
* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  height: auto;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background: #020617;
  color: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kx-det-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 4%, rgba(56,189,248,.22), transparent 34rem),
    radial-gradient(circle at 86% 8%, rgba(244,114,182,.16), transparent 34rem),
    radial-gradient(circle at 48% 100%, rgba(250,204,21,.10), transparent 38rem),
    linear-gradient(135deg, #020617, #07111f 50%, #111827);
  padding-bottom: 90px;
}

.kx-det-wrap {
  width: min(1480px, calc(100% - 44px));
  margin: 0 auto;
}

.kx-det-hero {
  padding: 34px 0 20px;
}

.kx-det-hero-card,
.kx-det-card {
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(15,23,42,.86), rgba(2,6,23,.88));
  box-shadow: 0 26px 90px rgba(0,0,0,.32);
}

.kx-det-hero-card {
  padding: clamp(30px, 3vw, 48px);
  background:
    radial-gradient(circle at 12% 18%, rgba(56,189,248,.24), transparent 30rem),
    radial-gradient(circle at 78% 20%, rgba(250,204,21,.10), transparent 28rem),
    linear-gradient(180deg, rgba(15,23,42,.86), rgba(2,6,23,.88));
}

.kx-det-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(56,189,248,.36);
  border-radius: 999px;
  background: rgba(2,6,23,.54);
  color: #e2e8f0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 950;
}

.kx-det-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 24px #38bdf8;
}

.kx-det-hero h1 {
  margin: 18px 0 14px;
  max-width: 1120px;
  font-size: clamp(46px, 6vw, 92px);
  line-height: .93;
  letter-spacing: -.075em;
}

.kx-det-gradient {
  background: linear-gradient(120deg, #fff, #38bdf8 36%, #f472b6 68%, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kx-det-hero p {
  max-width: 1020px;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
  font-size: clamp(17px, 1.35vw, 21px);
}

.kx-det-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.kx-det-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 999px;
  background: rgba(2,6,23,.48);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 850;
}

.kx-det-section {
  margin-top: 22px;
}

.kx-det-section-head {
  margin-bottom: 16px;
}

.kx-det-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1;
  letter-spacing: -.055em;
}

.kx-det-section-head p {
  max-width: 900px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.55;
}

.kx-det-grid {
  display: grid;
  gap: 16px;
}

.kx-det-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kx-det-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kx-det-card {
  padding: 20px;
}

.kx-det-card h3 {
  margin: 0 0 9px;
  font-size: 21px;
  letter-spacing: -.035em;
}

.kx-det-card p,
.kx-det-card li {
  color: #94a3b8;
  line-height: 1.52;
  font-size: 14px;
}

.kx-det-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.kx-det-law {
  min-height: 210px;
  border-color: rgba(56,189,248,.20);
}

.kx-det-law span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #38bdf8, #facc15);
  color: #06111f;
  font-weight: 950;
  margin-bottom: 14px;
}

.kx-det-console {
  display: grid;
  grid-template-columns: minmax(390px, .85fr) minmax(0, 1.35fr);
  gap: 18px;
}

.kx-det-field {
  margin-top: 14px;
}

.kx-det-field label {
  display: block;
  margin-bottom: 8px;
  color: #e2e8f0;
  font-weight: 850;
  font-size: 13px;
}

.kx-det-input,
.kx-det-select,
.kx-det-textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 16px;
  background: rgba(2,6,23,.60);
  color: #f8fafc;
  padding: 13px 14px;
  outline: none;
}

.kx-det-textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
}

.kx-det-input:focus,
.kx-det-select:focus,
.kx-det-textarea:focus {
  border-color: rgba(56,189,248,.72);
  box-shadow: 0 0 0 4px rgba(56,189,248,.10);
}

.kx-det-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 16px;
}

.kx-det-btn {
  min-height: 46px;
  border: 0;
  border-radius: 15px;
  padding: 0 17px;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kx-det-btn.primary {
  color: #06111f;
  background: linear-gradient(135deg, #38bdf8, #f472b6);
}

.kx-det-btn.secondary {
  color: #e2e8f0;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(15,23,42,.72);
}

.kx-det-output {
  display: grid;
  gap: 13px;
}

.kx-det-output-box {
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 22px;
  padding: 16px;
  background: rgba(2,6,23,.45);
}

.kx-det-output-box h4 {
  margin: 0 0 9px;
  font-size: 15px;
  color: #e2e8f0;
}

.kx-det-code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.48;
  color: #cbd5e1;
}

.kx-det-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kx-det-list li {
  display: flex;
  gap: 8px;
  color: #cbd5e1;
  line-height: 1.42;
  font-size: 13px;
}

.kx-det-list li::before {
  content: "◆";
  color: #38bdf8;
  font-size: 10px;
  margin-top: 3px;
}

.kx-det-disc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.kx-det-disc-card {
  min-height: 130px;
  border: 1px solid rgba(56,189,248,.25);
  border-radius: 18px;
  background: rgba(2,6,23,.46);
  padding: 13px;
}

.kx-det-disc-card span {
  color: #38bdf8;
  font-size: 12px;
  font-weight: 950;
}

.kx-det-disc-card b {
  display: block;
  margin: 7px 0;
}

.kx-det-disc-card small {
  color: #94a3b8;
  line-height: 1.4;
}

.kx-det-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(134,239,172,.34);
  background: rgba(34,197,94,.10);
  color: #86efac;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .kx-det-console,
  .kx-det-grid.cols-3,
  .kx-det-grid.cols-4,
  .kx-det-disc {
    grid-template-columns: 1fr;
  }
}
