/* ============================================================
   KING CANDY — BASE v1 (Dark)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--kc-header-h);
  background: var(--kc-bg-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--kc-font-body);
  font-size: var(--kc-fs-base);
  line-height: var(--kc-lh-normal);
  color: var(--kc-text);
  background: var(--kc-bg);
  background-image:
    radial-gradient(ellipse at top left, rgba(157, 78, 255, 0.10), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(255, 31, 143, 0.08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--kc-dur) var(--kc-ease);
}
a:hover { color: var(--kc-cyan); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--kc-cyan);
  outline-offset: 3px;
  border-radius: var(--kc-radius-sm);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

p {
  margin: 0 0 var(--kc-space-4);
  color: var(--kc-text-2);
  line-height: var(--kc-lh-relaxed);
}
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--kc-space-4);
  font-family: var(--kc-font-display);
  font-weight: var(--kc-fw-bold);
  line-height: var(--kc-lh-tight);
  letter-spacing: var(--kc-tracking-tight);
  color: var(--kc-text);
  text-wrap: balance;
}

h1 { font-size: clamp(var(--kc-fs-3xl), 5.5vw, var(--kc-fs-5xl)); }
h2 { font-size: clamp(var(--kc-fs-2xl), 4vw, var(--kc-fs-4xl)); }
h3 { font-size: clamp(var(--kc-fs-xl), 2.4vw, var(--kc-fs-2xl)); }
h4 { font-size: var(--kc-fs-lg); }
h5 { font-size: var(--kc-fs-md); }
h6 { font-size: var(--kc-fs-base); }

::selection {
  background: var(--kc-magenta);
  color: var(--kc-text);
}

/* ---------- Layout ---------- */
.kc-container {
  width: 100%;
  max-width: var(--kc-container);
  margin-inline: auto;
  padding-inline: var(--kc-gutter);
}
.kc-container--narrow { max-width: var(--kc-container-narrow); }

.kc-section {
  padding-block: clamp(var(--kc-space-8), 8vw, var(--kc-space-12));
  position: relative;
}
.kc-section--tight   { padding-block: clamp(var(--kc-space-6), 5vw, var(--kc-space-9)); }
.kc-section--dark    { background: var(--kc-bg-deep); }
.kc-section--surface { background: var(--kc-surface); }

.kc-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--kc-space-2);
  font-size: var(--kc-fs-xs);
  font-weight: var(--kc-fw-semi);
  letter-spacing: var(--kc-tracking-widest);
  text-transform: uppercase;
  color: var(--kc-cyan);
  margin-bottom: var(--kc-space-4);
}
.kc-section-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
}
.kc-section-eyebrow.eyebrow-magenta { color: var(--kc-magenta); }

.kc-section-title {
  font-size: clamp(var(--kc-fs-2xl), 4.5vw, var(--kc-fs-4xl));
  margin-bottom: var(--kc-space-3);
}
.kc-section-sub {
  font-size: var(--kc-fs-md);
  color: var(--kc-text-3);
  max-width: 56ch;
  line-height: var(--kc-lh-relaxed);
}

.kc-text-grad {
  background: var(--kc-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.kc-text-grad-2 {
  background: var(--kc-grad-text-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: var(--kc-fs-lg);
  line-height: var(--kc-lh-relaxed);
  color: var(--kc-text-2);
}
.muted { color: var(--kc-text-3); }

.kc-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kc-skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--kc-magenta);
  color: var(--kc-text);
  padding: 12px 20px;
  border-radius: var(--kc-radius-md);
  font-weight: var(--kc-fw-semi);
  z-index: 200;
  transition: top var(--kc-dur) var(--kc-ease);
}
.kc-skip:focus { top: 16px; }

.kc-placeholder {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 230, 0, 0.18);
  border: 1px dashed var(--kc-yellow);
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--kc-yellow-soft);
  font-style: italic;
}
