
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  height: auto;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-padding-top: 150px;
}

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

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

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

.kx-cg-hero {
  padding: 28px 0 18px;
}

.kx-cg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .78fr);
  gap: 22px;
  align-items: stretch;
}

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

.kx-cg-story {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 3vw, 46px);
}

.kx-cg-story::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -170px;
  top: -190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56,189,248,.26), transparent 66%);
  pointer-events: none;
}

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

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

.kx-cg-story h1 {
  position: relative;
  z-index: 1;
  margin: 18px 0 14px;
  max-width: 940px;
  font-size: clamp(44px, 5.3vw, 82px);
  line-height: .94;
  letter-spacing: -.07em;
}

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

.kx-cg-story p {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.58;
  font-size: 16px;
}

.kx-cg-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.kx-cg-flow span {
  min-height: 76px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 20px;
  background: rgba(2,6,23,.46);
  padding: 12px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.35;
}

.kx-cg-flow b {
  display: block;
  color: #38bdf8;
  margin-bottom: 5px;
}

.kx-cg-auth {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.kx-cg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(148,163,184,.16);
  background: rgba(15,23,42,.62);
}

.kx-cg-tab {
  min-height: 58px;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 19px;
  background: rgba(2,6,23,.50);
  color: #cbd5e1;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
}

.kx-cg-tab.active {
  color: #fff;
  border-color: rgba(56,189,248,.78);
  background: linear-gradient(180deg, rgba(14,165,233,.30), rgba(15,23,42,.88));
  box-shadow: 0 18px 50px rgba(56,189,248,.14);
}

.kx-cg-auth-body {
  padding: 24px 26px 28px;
}

.kx-cg-form {
  display: none;
}

.kx-cg-form.active {
  display: block;
}

.kx-cg-form h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -.055em;
}

.kx-cg-muted {
  color: #94a3b8;
  line-height: 1.55;
  font-size: 14px;
}

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

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

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

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

.kx-cg-textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.45;
}

.kx-cg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kx-cg-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.kx-cg-btn {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 0 20px;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.kx-cg-btn.primary {
  color: #06111f;
  background: linear-gradient(135deg, #38bdf8, #f472b6);
  box-shadow: 0 18px 48px rgba(56,189,248,.22);
}

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

.kx-cg-message {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(250,204,21,.25);
  border-radius: 16px;
  background: rgba(250,204,21,.07);
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.45;
}

.kx-cg-message.error {
  border-color: rgba(248,113,113,.38);
  background: rgba(248,113,113,.08);
}

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

.kx-cg-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

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

.kx-cg-section-head p {
  max-width: 660px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.5;
}

.kx-cg-vault {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kx-cg-demo-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, rgba(148,163,184,.22));
  border-radius: 26px;
  background:
    radial-gradient(circle at 16% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 15rem),
    linear-gradient(180deg, rgba(15,23,42,.78), rgba(2,6,23,.82));
  padding: 20px;
  box-shadow: 0 20px 70px rgba(0,0,0,.24);
}

.kx-cg-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.kx-cg-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), #facc15);
  font-weight: 950;
}

.kx-cg-card-chip {
  max-width: 170px;
  border: 1px solid rgba(148,163,184,.20);
  border-radius: 999px;
  padding: 7px 10px;
  color: #cbd5e1;
  background: rgba(2,6,23,.42);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kx-cg-demo-card h3 {
  margin: 14px 0 7px;
  font-size: 22px;
  letter-spacing: -.035em;
}

.kx-cg-demo-card p {
  margin: 0 0 12px;
  min-height: 62px;
  color: #94a3b8;
  line-height: 1.45;
  font-size: 13px;
}

.kx-cg-credentials {
  display: grid;
  gap: 6px;
}

.kx-cg-credentials label {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 850;
}

.kx-cg-credentials code {
  display: block;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 11px;
  background: rgba(2,6,23,.60);
  color: #f8fafc;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.35;
}

.kx-cg-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.kx-cg-card-actions button,
.kx-cg-card-actions a {
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  padding: 0 10px;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.kx-cg-card-actions button {
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), #facc15);
}

.kx-cg-card-actions a {
  color: #e2e8f0;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(15,23,42,.70);
}

.kx-cg-capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding-bottom: 80px;
}

.kx-cg-cap-card {
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15,23,42,.74), rgba(2,6,23,.80));
  padding: 20px;
}

.kx-cg-cap-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.kx-cg-cap-card p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.5;
  font-size: 14px;
}

@media (max-width: 1280px) {
  .kx-cg-hero-grid {
    grid-template-columns: 1fr;
  }

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

  .kx-cg-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kx-cg-wrap {
    width: min(100% - 28px, 1480px);
  }

  .kx-cg-flow,
  .kx-cg-vault,
  .kx-cg-capabilities,
  .kx-cg-row {
    grid-template-columns: 1fr;
  }

  .kx-cg-story h1 {
    font-size: clamp(40px, 11vw, 60px);
  }
}
