/* ========== Kalia Code v2 — Editorial Futurist ========== */
:root {
  --bg-0: #000000;
  --bg-1: #0a0314;
  --bg-2: #14071f;
  --bg-3: #20082e;
  --violet: #20082e;
  --violet-2: #3a1156;
  --violet-3: #5a1d80;
  --green: #65ce21;
  --green-glow: #7df237;
  --green-deep: #4ba516;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.78);
  --ink-3: rgba(255, 255, 255, 0.55);
  --ink-4: rgba(255, 255, 255, 0.32);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-green: rgba(101, 206, 33, 0.30);
  --font-sans: 'Alexandria', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1360px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #000;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(1200px 800px at 80% 0%, rgba(58, 17, 86, 0.5), transparent 60%),
    radial-gradient(1000px 700px at 10% 60%, rgba(32, 8, 46, 0.85), transparent 70%),
    linear-gradient(180deg, #000000 0%, #050108 30%, #14071f 100%);
  background-attachment: fixed;
  min-height: 100vh;
  cursor: none;
}
@media (max-width: 800px) { body { cursor: auto; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; color: inherit; }
@media (max-width: 800px) { button { cursor: pointer; } a { cursor: pointer; } }

::selection { background: var(--green); color: var(--violet); }

/* === Type ramp === */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green);
  display: inline-block;
}
.eyebrow .num { color: var(--ink-3); }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; }

.h-mega {
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.h-display {
  font-size: clamp(44px, 7.2vw, 110px);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.h-section {
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.0;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.h-card {
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.green { color: var(--green); }
.muted { color: var(--ink-2); }
.dim   { color: var(--ink-3); }
.mono  { font-family: var(--font-mono); }

/* === Layout === */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); position: relative; }
.section { padding: clamp(80px, 12vw, 180px) 0; position: relative; }

/* === CTA buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #0a1f00;
  box-shadow: 0 0 0 1px var(--green), 0 8px 30px rgba(101, 206, 33, 0.25);
}
.btn-primary:hover {
  background: var(--green-glow);
  box-shadow: 0 0 0 1px var(--green-glow), 0 12px 40px rgba(101, 206, 33, 0.45);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--ink-3);
  transform: translateY(-1px);
}
.btn .arrow { width: 14px; height: 14px; transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* === Chip === */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(101, 206, 33, 0.06);
  border: 1px solid var(--line-green);
  color: var(--green);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* === Image / video placeholders === */
.placeholder {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px dashed var(--line-2);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 14px, rgba(255,255,255,0.015) 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 0.25s, background 0.25s;
}
.placeholder:hover {
  border-color: var(--green);
  color: var(--green);
}
.placeholder.green-tint {
  background: repeating-linear-gradient(135deg, rgba(101,206,33,0.10) 0 14px, rgba(101,206,33,0.03) 14px 28px);
}
.placeholder svg { opacity: 0.5; }

/* === Reveal on scroll === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* === Sticky section number === */
.section-num {
  position: absolute;
  top: 60px;
  right: var(--pad);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  color: var(--ink-3);
  text-transform: uppercase;
  text-align: right;
}
.section-num span { color: var(--green); }

/* === Twinkle === */
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* === Custom cursor === */
.kc-cursor {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  transform: translate(-50%, -50%);
  transition: width 0.18s, height 0.18s, opacity 0.2s;
  mix-blend-mode: screen;
}
.kc-cursor-ring {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(101, 206, 33, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s, opacity 0.2s;
}
@media (max-width: 800px) { .kc-cursor, .kc-cursor-ring { display: none; } }

/* === Marquee === */
@keyframes kc-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === Helper: chevron motif as bg === */
.chevron-strip {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><path d='M10 10 L40 10 L65 40 L40 70 L10 70 L35 40 Z' fill='%23ffffff'/></svg>");
  background-size: 80px 80px;
}
