:root {
  --apk-ink: #12150f;
  --apk-panel: #1d241a;
  --apk-panel-2: #283023;
  --apk-paper: #fffdf7;
  --apk-cream: #f4efe2;
  --apk-wash: #ebe1cd;
  --apk-line: rgba(18, 21, 15, .14);
  --apk-line-dark: rgba(255, 255, 255, .16);
  --apk-copper: #b66d3f;
  --apk-gold: #c49b45;
  --apk-green: #1f6f54;
  --apk-rust: #743b2f;
  --apk-muted: rgba(18, 21, 15, .72);
  --apk-muted-dark: rgba(255, 255, 255, .76);
}

.apk-page {
  background: var(--apk-cream);
  color: var(--apk-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.apk-page * {
  box-sizing: border-box;
}

.apk-page a {
  color: inherit;
}

.apk-shell {
  width: min(95vw, 1440px);
  margin: 0 auto;
}

.apk-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(196, 155, 69, .22), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(31, 111, 84, .2), transparent 30%),
    linear-gradient(135deg, #10140f 0%, #1f281d 58%, #293222 100%);
}

.apk-hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .18));
  pointer-events: none;
}

.apk-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .75;
}

.apk-orbit span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  transform: rotate(-18deg);
  animation: apk-drift 20s linear infinite;
}

.apk-orbit span:nth-child(1) { width: 56vw; height: 56vw; left: -14vw; top: -24vw; }
.apk-orbit span:nth-child(2) { width: 34vw; height: 34vw; right: 5vw; top: 10vh; animation-duration: 26s; }
.apk-orbit span:nth-child(3) { width: 24vw; height: 24vw; left: 42vw; bottom: -11vw; animation-duration: 17s; }
.apk-orbit span:nth-child(4) { width: 14vw; height: 14vw; right: 22vw; bottom: 12vh; animation-duration: 12s; }

.apk-breadcrumbs {
  position: relative;
  z-index: 1;
  padding-top: 24px;
}

.apk-breadcrumbs a,
.apk-breadcrumbs span {
  color: rgba(255, 255, 255, .82);
}

.apk-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .58fr);
  gap: clamp(28px, 4.5vw, 70px);
  align-items: center;
  padding: clamp(42px, 6vw, 86px) 0 clamp(52px, 7vw, 88px);
}

.apk-kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  font-size: .78rem;
  color: var(--apk-copper);
}

.apk-hero .apk-kicker {
  color: #e8c47a;
}

.apk-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.45rem, 4.65vw, 5.45rem);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 830;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.apk-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.62;
}

.apk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.apk-actions .btn {
  border-radius: 8px;
}

.apk-proofbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.apk-proofbar li {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
}

.apk-proofbar strong,
.apk-proofbar span {
  display: block;
}

.apk-proofbar strong {
  color: #e8c47a;
  font-size: .76rem;
  text-transform: uppercase;
}

.apk-proofbar span {
  margin-top: 5px;
  color: rgba(255, 255, 255, .86);
  overflow-wrap: anywhere;
}

.apk-terminal {
  max-width: 620px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #0f130e;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
}

.apk-window {
  display: flex;
  gap: 7px;
  padding: 15px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: #1d231c;
}

.apk-window span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--apk-copper);
}

.apk-window span:nth-child(2) { background: var(--apk-gold); }
.apk-window span:nth-child(3) { background: var(--apk-green); }

.apk-terminal pre,
.apk-code pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  white-space: pre-wrap;
  color: #f8efd9;
  font-size: clamp(.78rem, .9vw, .9rem);
  line-height: 1.58;
}

.apk-strip {
  border-top: 1px solid var(--apk-line-dark);
  border-bottom: 1px solid var(--apk-line-dark);
  background: #10140f;
  color: #fff;
}

.apk-strip-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.apk-strip p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  line-height: 1.55;
}

.apk-strip a {
  flex: 0 0 auto;
  color: #f0c573;
  font-weight: 800;
}

.apk-section {
  padding: clamp(58px, 7vw, 98px) 0;
}

.apk-section-head {
  max-width: 900px;
  margin-bottom: 30px;
}

.apk-section h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(1.85rem, 3.05vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 820;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.apk-section-head p:not(.apk-kicker),
.apk-demo p,
.apk-code p {
  color: var(--apk-muted);
  font-size: clamp(.98rem, 1vw, 1.06rem);
  line-height: 1.68;
}

.apk-radar,
.apk-compare,
.apk-faq {
  background: var(--apk-paper);
}

.apk-demo,
.apk-code {
  background: var(--apk-wash);
}

.apk-usecases {
  background: var(--apk-cream);
}

.apk-radar-grid,
.apk-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.apk-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apk-radar-grid article,
.apk-card-grid article,
.apk-decision,
.apk-faq-grid details {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--apk-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 48px rgba(18, 21, 15, .07);
}

.apk-radar-grid h3,
.apk-card-grid h3,
.apk-flowline h3 {
  margin: 22px 0 8px;
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.18;
  text-wrap: balance;
}

.apk-radar-grid span {
  color: var(--apk-copper);
  font-weight: 900;
}

.apk-radar-grid p,
.apk-card-grid p,
.apk-flowline p,
.apk-faq-grid p {
  color: var(--apk-muted);
  line-height: 1.64;
}

.apk-demo-grid,
.apk-code-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.apk-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.apk-controls label {
  display: grid;
  gap: 8px;
  color: #263024;
  font-weight: 800;
}

.apk-controls select,
.apk-controls input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--apk-line);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--apk-paper);
  color: var(--apk-ink);
  font: inherit;
}

.apk-decision {
  background: linear-gradient(145deg, #fffdf7, #e9dfc7);
}

.apk-score-label {
  margin: 0;
  color: var(--apk-rust);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  font-size: .75rem;
}

.apk-decision strong {
  display: block;
  margin: 16px 0;
  color: #162018;
  font-size: clamp(4.2rem, 7vw, 6rem);
  line-height: .9;
}

.apk-meter {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 21, 15, .11);
}

.apk-meter span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--apk-copper), var(--apk-green));
  transition: width .25s ease;
}

.apk-decision dl {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
}

.apk-decision dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}

.apk-decision dt {
  font-weight: 900;
}

.apk-decision dd {
  margin: 0;
  color: var(--apk-muted);
}

.apk-flow {
  background: #151a14;
  color: #fff;
}

.apk-flow .apk-section-head p:not(.apk-kicker) {
  color: var(--apk-muted-dark);
}

.apk-flowline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--apk-line-dark);
  border-radius: 8px;
  background: var(--apk-line-dark);
}

.apk-flowline article {
  min-width: 0;
  padding: 24px;
  background: #151a14;
}

.apk-flowline b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e5ba72;
  color: #151a14;
}

.apk-flowline p {
  color: var(--apk-muted-dark);
}

.apk-table-wrap {
  overflow: auto;
  border: 1px solid var(--apk-line);
  border-radius: 8px;
  background: #fff;
}

.apk-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.apk-table-wrap th,
.apk-table-wrap td {
  padding: 17px;
  border-bottom: 1px solid var(--apk-line);
  text-align: left;
  vertical-align: top;
}

.apk-table-wrap th {
  background: var(--apk-panel);
  color: #fff;
}

.apk-table-wrap tr:last-child td {
  border-bottom: 0;
}

.apk-code-grid {
  grid-template-columns: minmax(0, .75fr) minmax(380px, 1fr);
}

.apk-code a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.apk-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.apk-list li {
  padding: 12px 14px;
  border-left: 4px solid var(--apk-copper);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, .58);
}

.apk-code pre {
  border-radius: 8px;
  background: #10140f;
  box-shadow: 0 22px 70px rgba(18, 21, 15, .2);
}

.apk-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.apk-faq-grid summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.05rem;
}

.apk-cta {
  padding: clamp(56px, 7vw, 84px) 0;
  background: linear-gradient(135deg, #10140f, #253023);
  color: #fff;
  text-align: center;
}

.apk-cta h2 {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 1.04;
  text-wrap: balance;
}

.apk-cta p {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--apk-muted-dark);
  font-size: 1.08rem;
  line-height: 1.65;
}

.apk-cta .apk-actions {
  justify-content: center;
}

@keyframes apk-drift {
  to { transform: rotate(342deg); }
}

@media (max-width: 1100px) {
  .apk-hero-grid,
  .apk-demo-grid,
  .apk-code-grid {
    grid-template-columns: 1fr;
  }

  .apk-terminal {
    justify-self: stretch;
    max-width: none;
  }

  .apk-radar-grid,
  .apk-flowline,
  .apk-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apk-flowline {
    gap: 10px;
    border: 0;
    background: transparent;
  }

  .apk-flowline article {
    border: 1px solid var(--apk-line-dark);
    border-radius: 8px;
  }
}

@media (max-width: 700px) {
  .apk-shell {
    width: min(92vw, 1440px);
  }

  .apk-hero-grid {
    padding: 32px 0 46px;
  }

  .apk-hero h1 {
    font-size: clamp(2.12rem, 9vw, 3.45rem);
    line-height: 1.08;
  }

  .apk-lead {
    font-size: 1rem;
  }

  .apk-proofbar,
  .apk-radar-grid,
  .apk-flowline,
  .apk-card-grid,
  .apk-controls,
  .apk-faq-grid {
    grid-template-columns: 1fr;
  }

  .apk-strip-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .apk-section {
    padding: 54px 0;
  }

  .apk-section h2 {
    font-size: clamp(1.68rem, 7.6vw, 2.35rem);
    line-height: 1.12;
  }

  .apk-decision {
    padding: 22px;
  }

  .apk-decision dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .apk-table-wrap table {
    min-width: 640px;
  }

  .apk-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .apk-terminal pre,
  .apk-code pre {
    max-height: 420px;
    padding: 18px;
  }

  .apk-orbit span:nth-child(n+2) {
    display: none;
  }
}
