:root {
  --bg: #07101f;
  --band: #0c1628;
  --panel: #141f32;
  --panel2: #101a2c;
  --line: #2d3b54;
  --text: #eef4ff;
  --muted: #aab7cf;
  --blue: #9db9ff;
  --blue2: #4a8cff;
  --teal: #4ee3aa;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.kaf-public-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }

.kaf-nav, main, footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.kaf-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 12px 0;
  background: rgba(7,16,31,.94);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.kaf-brand img {
  width: 180px;
  max-width: 40vw;
  display: block;
  padding: 5px;
  background: #fff;
  border-radius: 8px;
}

.kaf-nav nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 800;
}

.kaf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kaf-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--blue);
  color: #07101f;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.18);
}

.kaf-btn.ghost {
  background: rgba(255,255,255,.04);
  color: var(--text);
}

.kaf-hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  align-items: center;
  gap: 56px;
  padding: 64px 0 76px;
}

.kaf-copy { max-width: 570px; }

.kaf-hero .kaf-copy { order: -1; }

.kaf-copy h1 {
  margin: 18px 0;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.kaf-copy p, details p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.kaf-tag {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--teal);
  border: 1px solid rgba(78,227,170,.28);
  background: rgba(78,227,170,.07);
  font-weight: 900;
}

.kaf-visual {
  display: grid;
  place-items: center;
  min-height: 380px;
}

.kaf-device, .kaf-cards article, details, .kaf-cta {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.kaf-device {
  width: min(430px, 92vw);
  padding: 24px;
  transform: rotate(-3deg);
}

.device-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--teal);
  font-weight: 900;
}

.device-top span {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: url("../../images/kaf-icon-stitch.png") center/cover;
}

.kaf-device label {
  display: block;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 800;
}

.server-select, .device-chips span {
  background: #081120;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.server-select {
  margin: 8px 0 14px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
}

.device-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.device-chips span {
  padding: 13px;
  color: var(--muted);
}

.device-chips b { display: block; color: var(--text); margin-top: 5px; }

.kaf-device button {
  width: 100%;
  margin-top: 24px;
  border: 0;
  border-radius: 8px;
  min-height: 52px;
  background: var(--teal);
  color: #07101f;
  font-weight: 900;
}
