/* ============================================================
   KKEEY Master Fluid & Liquid Glass System
   CV_IT_KKEEY · Exact Master Styling from CV_KKEEY
   ============================================================ */

/* ── ROOT / DARK MODE (DEFAULT) ─────────────────────────────── */
:root {
  --accent-1:         #7C6AF7;
  --accent-2:         #00D4AA;
  --accent-bright:    #9D8FFF;
  --accent-1-rgb:     124, 106, 247;
  --accent-2-rgb:     0, 212, 170;

  --kk-bg:            #07070F;
  --kk-text:          #BDBDD8;
  --kk-text-bright:   #EAEAFA;
  --kk-text-dim:      rgba(189, 189, 218, 0.50);
  --kk-text-muted:    rgba(189, 189, 218, 0.55);
  --kk-card:          linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  --kk-border:        rgba(255, 255, 255, 0.09);
  --kk-border-hi:     rgba(255, 255, 255, 0.065);
  --kk-nav:           rgba(7, 7, 15, 0.92);
  --kk-input:         rgba(255, 255, 255, 0.038);
  --kk-shadow:        rgba(0, 0, 0, 0.28);
  --kk-inset:         rgba(255, 255, 255, 0.11);

  --lo-status-active: #00D4AA;
  --lo-font-body:     'Space Grotesk', system-ui, -apple-system, sans-serif;
  --lo-font-code:     'JetBrains Mono', 'Fira Code', monospace;
  --lo-radius-card:   16px;
  --lo-radius-pill:   999px;
  --lo-radius-btn:    10px;
  --lo-radius-sm:     8px;
  --lo-max-w:         1160px;
  --lo-max-w-prose:   860px;
}

/* ── COLOR THEME: LIQUID ORANGE ─────────────────────────────── */
[data-color-theme="orange"] {
  --accent-1:         #FF7A00;
  --accent-2:         #00E5FF;
  --accent-bright:    #FFA64D;
  --accent-1-rgb:     255, 122, 0;
  --accent-2-rgb:     0, 229, 255;
  --kk-border-hi:     rgba(255, 122, 0, 0.25);
}

/* ── LIGHT MODE ──────────────────────────────────────────────── */
[data-theme="light"] {
  --kk-bg:            #EEEEE8;
  --kk-text:          #3A3A5C;
  --kk-text-bright:   #0F0F28;
  --kk-text-dim:      rgba(58, 58, 92, 0.65);
  --kk-text-muted:    rgba(58, 58, 92, 0.62);
  --kk-card:          linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.62) 100%);
  --kk-border:        rgba(0, 0, 30, 0.10);
  --kk-border-hi:     rgba(0, 0, 30, 0.08);
  --kk-nav:           rgba(238, 238, 248, 0.94);
  --kk-input:         rgba(255, 255, 255, 0.88);
  --kk-shadow:        rgba(0, 0, 40, 0.10);
  --kk-inset:         rgba(255, 255, 255, 0.60);
}

/* ── Base Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--kk-bg);
  color: var(--kk-text);
  font-family: var(--lo-font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-bright); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
}

img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--kk-bg); }
::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-1-rgb), 0.5);
  border-radius: 2px;
}

::selection {
  background: rgba(var(--accent-1-rgb), 0.35);
  color: #fff;
}

/* ── Skip Link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  padding: 10px 16px;
  background: var(--accent-1);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--lo-radius-sm);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* ── Keyframes & Animations ─────────────────────────────────── */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-2-rgb), 0.45); } 50% { box-shadow: 0 0 0 6px rgba(var(--accent-2-rgb), 0); } }
@keyframes scanlines { from { background-position: 0 0; } to { background-position: 0 4px; } }
@keyframes glitchShift { 0% { transform: translateX(0); } 4% { transform: translateX(-3px); } 8% { transform: translateX(3px); } 12% { transform: translateX(0); } 100% { transform: translateX(0); } }

/* ── Canvas BG & Scanlines (Exact Master) ────────────────────── */
#lo-bg {
  position: fixed;
  top: 0; left: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.11) 3px,
    rgba(0, 0, 0, 0.11) 4px
  );
  animation: scanlines 0.18s linear infinite;
  opacity: 0.48;
}

/* ── Containers & Sections ──────────────────────────────────── */
.container {
  max-width: var(--lo-max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.container--prose { max-width: var(--lo-max-w-prose); }

section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}
.section-alt {
  background: rgba(255, 255, 255, 0.015);
  border-top:    1px solid var(--kk-border);
  border-bottom: 1px solid var(--kk-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* ── Headings ───────────────────────────────────────────────── */
.section-label {
  font-family: var(--lo-font-code);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label--centered {
  justify-content: center;
  margin-bottom: 8px;
}
.section-label--mb {
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent-1);
  opacity: 0.7;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--kk-text-bright);
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 15.5px;
  color: var(--kk-text-muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 56px;
}

/* ── Liquid Glass Card Base (Master Trüb/Milchig) ──────────── */
.glass-card {
  background: var(--kk-card);
  border: 1px solid var(--kk-border);
  border-radius: var(--lo-radius-card);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 8px 32px var(--kk-shadow), inset 0 1px 1px var(--kk-inset);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-1-rgb), 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.glass-card:hover {
  border-color: rgba(var(--accent-1-rgb), 0.35);
  box-shadow: 0 12px 40px var(--kk-shadow), 0 0 28px rgba(var(--accent-1-rgb), 0.18), inset 0 1px 1px var(--kk-inset);
  transform: translateY(-4px);
}

.card-accent-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-bright), transparent);
}

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: transparent;
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  transition: background 0.4s, border-color 0.4s;
}
.nav.scrolled {
  background: var(--kk-nav);
  border-bottom-color: var(--kk-border);
}
.nav-inner {
  max-width: var(--lo-max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img {
  height: 38px;
  width: 38px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(var(--accent-1-rgb), 0.35);
}
.nav-logo-mark {
  font-family: var(--lo-font-code);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-1);
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--kk-text-dim);
  padding: 6px 12px;
  border-radius: 6px;
  position: relative;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--kk-text-bright);
  background: rgba(var(--accent-1-rgb), 0.08);
}
.nav-links a.active {
  color: var(--accent-1);
  background: rgba(var(--accent-1-rgb), 0.12);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12px; right: 12px;
  height: 2px;
  background: var(--accent-1);
  border-radius: 1px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.available-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(var(--accent-2-rgb), 0.07);
  border: 1px solid rgba(var(--accent-2-rgb), 0.22);
  border-radius: 20px;
  padding: 5px 12px;
  animation: pulseDot 2.8s ease infinite;
  white-space: nowrap;
}
.available-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-1-rgb), 0.07);
  border: 1px solid rgba(var(--accent-1-rgb), 0.22);
  border-radius: 8px;
  color: var(--accent-1);
  font-family: var(--lo-font-code);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 11px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.nav-btn:hover { background: rgba(var(--accent-1-rgb), 0.18); }
.nav-btn-icon { width: 32px; height: 32px; padding: 0; }

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-1);
  display: block;
  box-shadow: 0 0 6px var(--accent-1);
  transition: background 0.3s, box-shadow 0.3s;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--kk-text-bright);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 100px;
  position: relative;
  z-index: 2;
}
.hero-inner {
  max-width: 860px;
  width: 100%;
  text-align: center;
}

.hero-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}

.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--lo-font-code);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--lo-radius-pill);
  border: 1px solid;
}
.badge--online {
  color: var(--accent-2);
  border-color: rgba(var(--accent-2-rgb), 0.25);
  background: rgba(var(--accent-2-rgb), 0.07);
}
.badge--system {
  color: var(--accent-1);
  border-color: rgba(var(--accent-1-rgb), 0.25);
  background: rgba(var(--accent-1-rgb), 0.07);
}
.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 2.4s ease infinite;
}

/* Hero Avatar (Master Frame) */
.hero-avatar-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 32px rgba(var(--accent-1-rgb), 0.35), 0 0 64px rgba(var(--accent-2-rgb), 0.15);
  margin: 0 auto 24px;
  animation: fadeInUp 0.7s ease both;
}
.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--kk-bg);
}
.hero-avatar-status {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lo-status-active);
  border: 3px solid var(--kk-bg);
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.7);
  animation: pulseDot 2.2s ease infinite;
}

.hero-label {
  font-family: var(--lo-font-code);
  font-size: 11px;
  color: var(--accent-1);
  letter-spacing: 4.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-name {
  font-size: clamp(52px, 9.5vw, 100px);
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 0.95;
  margin-bottom: 24px;
  background: linear-gradient(140deg, var(--kk-text-bright) 10%, var(--accent-bright) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.7s ease 0.2s both, glitchShift 9s steps(1) 2s infinite;
}

/* Typewriter Ticker */
.hero-typed-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-bottom: 28px;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--kk-text-bright);
  animation: fadeInUp 0.7s ease 0.25s both;
}
.hero-typed-text {
  font-family: var(--lo-font-code);
  color: var(--accent-1);
  letter-spacing: 0.5px;
}
.hero-cursor {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: var(--accent-1);
  margin-left: 6px;
  animation: blink 0.9s infinite;
}
.hero-typed-text.glitch { animation: glitchShift 0.3s ease; }

/* Capabilities */
.hero-caps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 38px;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.cap-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--lo-font-code);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--kk-text-dim);
  background: var(--kk-input);
  border: 1px solid var(--kk-border);
  border-radius: var(--lo-radius-pill);
  padding: 7px 14px;
  transition: all 0.2s;
}
.cap-pill:hover {
  color: var(--accent-1);
  border-color: rgba(var(--accent-1-rgb), 0.4);
  background: rgba(var(--accent-1-rgb), 0.10);
}
.cap-pill-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0.8;
}

/* Buttons */
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.35s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--lo-radius-btn);
  padding: 13px 26px;
  font-family: var(--lo-font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-bright));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(var(--accent-1-rgb), 0.4);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(var(--accent-1-rgb), 0.6);
  transform: translateY(-2px);
  color: #fff;
}
[data-color-theme="orange"] .btn-primary { color: #000; }
[data-color-theme="orange"] .btn-primary:hover { color: #000; }

.btn-outline {
  background: transparent;
  color: var(--accent-1);
  border-color: rgba(var(--accent-1-rgb), 0.4);
}
.btn-outline:hover {
  background: rgba(var(--accent-1-rgb), 0.12);
  border-color: var(--accent-1);
  transform: translateY(-2px);
  color: var(--accent-bright);
}

.btn-ghost {
  background: var(--kk-input);
  color: var(--kk-text);
  border-color: var(--kk-border);
}
.btn-ghost:hover {
  background: rgba(var(--accent-1-rgb), 0.08);
  border-color: rgba(var(--accent-1-rgb), 0.3);
  color: var(--kk-text-bright);
  transform: translateY(-1px);
}

.hero-note {
  font-family: var(--lo-font-code);
  font-size: 10.5px;
  color: var(--kk-text-muted);
  margin-top: 18px;
  letter-spacing: 0.3px;
  animation: fadeInUp 0.7s ease 0.4s both;
  opacity: 0.85;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--kk-text-muted);
  animation: fadeInUp 0.7s ease 0.6s both;
}
.hero-scroll-hint span {
  font-family: var(--lo-font-code);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--accent-1) 0%, transparent 100%);
  opacity: 0.5;
  animation: blink 2s ease-in-out infinite;
}

/* ── DOMAIN GRID ────────────────────────────────────────────── */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.domain-card { padding: 28px 24px; }
.domain-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(var(--accent-1-rgb), 0.12);
  border: 1px solid rgba(var(--accent-1-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.25s;
}
.domain-card:hover .domain-icon {
  background: rgba(var(--accent-1-rgb), 0.22);
  box-shadow: 0 0 16px rgba(var(--accent-1-rgb), 0.35);
}
.domain-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-1);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.domain-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--kk-text-bright);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.domain-sub {
  font-family: var(--lo-font-code);
  font-size: 10.5px;
  color: var(--accent-1);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.domain-desc {
  font-size: 13px;
  color: var(--kk-text-muted);
  line-height: 1.7;
}

/* ── SYSTEMS ────────────────────────────────────────────────── */
.systems-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.tier-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tier-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--kk-card);
  border: 1px solid var(--kk-border);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.tier-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent-1);
  opacity: 0;
  transition: opacity 0.2s;
}
.tier-item:hover {
  border-color: rgba(var(--accent-1-rgb), 0.35);
  transform: translateX(4px);
}
.tier-item:hover::before { opacity: 1; }
.tier-label {
  font-family: var(--lo-font-code);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 75px;
  flex-shrink: 0;
}
.tier-tech {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kk-text-bright);
}
.tier-detail {
  font-size: 11.5px;
  color: var(--kk-text-muted);
  margin-left: auto;
  white-space: nowrap;
}
.systems-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sys-card { padding: 22px 22px; }
.sys-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--kk-text-bright);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.sys-card-desc {
  font-size: 13px;
  color: var(--kk-text-muted);
  line-height: 1.7;
}
.sys-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.sys-tag {
  font-family: var(--lo-font-code);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-1);
  background: rgba(var(--accent-1-rgb), 0.08);
  border: 1px solid rgba(var(--accent-1-rgb), 0.20);
  border-radius: 5px;
  padding: 3px 9px;
}

/* ── AUTOMATION ─────────────────────────────────────────────── */
.pipeline-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.pipeline-stage {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: var(--kk-card);
  border: 1px solid var(--kk-border);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.22s;
}
.pipeline-stage.stage--active {
  border-color: rgba(var(--accent-1-rgb), 0.4);
  background: rgba(var(--accent-1-rgb), 0.06);
}
.pipeline-stage.stage--active::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-1), transparent);
  animation: blink 2s ease-in-out infinite;
}
.stage-num {
  font-family: var(--lo-font-code);
  font-size: 11px;
  font-weight: 700;
  color: var(--kk-text-muted);
  min-width: 24px;
  text-align: center;
}
.stage--active .stage-num { color: var(--accent-1); }
.stage-content { flex: 1; }
.stage-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--kk-text-bright);
  margin-bottom: 2px;
}
.stage-desc {
  font-size: 12.5px;
  color: var(--kk-text-muted);
}
.stage-status {
  font-family: var(--lo-font-code);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--lo-radius-pill);
  flex-shrink: 0;
}
.status--running {
  color: var(--accent-1);
  background: rgba(var(--accent-1-rgb), 0.12);
  border: 1px solid rgba(var(--accent-1-rgb), 0.3);
}
.status--done {
  color: var(--accent-2);
  background: rgba(var(--accent-2-rgb), 0.08);
  border: 1px solid rgba(var(--accent-2-rgb), 0.25);
}
.status--queued {
  color: var(--kk-text-muted);
  background: var(--kk-input);
  border: 1px solid var(--kk-border);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.agent-card { padding: 20px 18px; text-align: center; }
.agent-icon { font-size: 28px; margin-bottom: 10px; line-height: 1; }
.agent-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--kk-text-bright);
  margin-bottom: 4px;
}
.agent-desc {
  font-size: 12px;
  color: var(--kk-text-muted);
  line-height: 1.6;
}

/* ── COMPLIANCE ─────────────────────────────────────────────── */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.compliance-card { padding: 26px 24px; }
.comp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.comp-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--kk-text-bright);
  letter-spacing: -0.3px;
}
.comp-status {
  font-family: var(--lo-font-code);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--lo-radius-pill);
}
.comp-status--verified {
  color: var(--accent-2);
  background: rgba(var(--accent-2-rgb), 0.08);
  border: 1px solid rgba(var(--accent-2-rgb), 0.25);
}
.comp-status--active {
  color: var(--accent-1);
  background: rgba(var(--accent-1-rgb), 0.10);
  border: 1px solid rgba(var(--accent-1-rgb), 0.25);
}
.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--kk-text-muted);
  line-height: 1.5;
}
.comp-list li::before {
  content: '▸';
  color: var(--accent-1);
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── IMPACT ─────────────────────────────────────────────────── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.impact-card {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.impact-metric {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.metric-value {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent-1);
  letter-spacing: -2px;
  line-height: 1;
}
.metric-unit {
  font-family: var(--lo-font-code);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
}
.impact-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--kk-text-bright);
  letter-spacing: -0.3px;
}
.impact-desc {
  font-size: 13px;
  color: var(--kk-text-muted);
  line-height: 1.72;
  flex: 1;
}
.impact-tag {
  font-family: var(--lo-font-code);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-1);
}

/* ── CAREER ─────────────────────────────────────────────────── */
.career-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.career-item {
  padding: 26px 28px;
  position: relative;
}
.career-item.is-active {
  border-color: rgba(var(--accent-1-rgb), 0.35);
}
.career-item.is-active .card-accent-top {
  background: linear-gradient(90deg, var(--accent-2), rgba(var(--accent-2-rgb), 0.3), transparent);
}
.career-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 10px;
}
.career-role {
  font-size: 19px;
  font-weight: 800;
  color: var(--kk-text-bright);
  letter-spacing: -0.5px;
}
.career-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-1);
}
.career-period {
  margin-left: auto;
  font-family: var(--lo-font-code);
  font-size: 11px;
  font-weight: 600;
  color: var(--kk-text-muted);
  white-space: nowrap;
}
.career-period.is-active { color: var(--accent-2); }
.career-desc {
  font-size: 14px;
  color: var(--kk-text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.career-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.career-tags span {
  font-family: var(--lo-font-code);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-1);
  background: rgba(var(--accent-1-rgb), 0.08);
  border: 1px solid rgba(var(--accent-1-rgb), 0.20);
  border-radius: 5px;
  padding: 3px 9px;
}

/* ── SKILLS ─────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.skill-card { padding: 24px 22px; }
.skill-group-label {
  font-family: var(--lo-font-code);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 16px;
}
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-chips span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--kk-text);
  background: var(--kk-input);
  border: 1px solid var(--kk-border);
  border-radius: 7px;
  padding: 5px 11px;
  transition: all 0.18s;
}
.skill-chips span:hover {
  color: var(--accent-1);
  border-color: rgba(var(--accent-1-rgb), 0.35);
  background: rgba(var(--accent-1-rgb), 0.10);
}

/* ── TOOLS ──────────────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tool-card { padding: 26px 24px; }
.tool-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--kk-text-bright);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.tool-card-sub {
  font-family: var(--lo-font-code);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-1);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}
.tool-card-desc {
  font-size: 13px;
  color: var(--kk-text-muted);
  line-height: 1.75;
}

/* ── SIDE PROJECTS ──────────────────────────────────────────── */
.side-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.side-card { padding: 20px 20px; }
.side-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--kk-text-bright);
  margin-bottom: 6px;
}
.side-card-desc {
  font-size: 12.5px;
  color: var(--kk-text-muted);
  line-height: 1.65;
}
.side-more {
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 600;
}
.side-more a { color: var(--accent-1); }
.side-more a:hover { color: var(--accent-bright); }

/* ── CONTACT ────────────────────────────────────────────────── */
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 36px;
}
.contact-input {
  background: var(--kk-input);
  border: 1px solid var(--kk-border);
  border-radius: var(--lo-radius-sm);
  padding: 14px 18px;
  color: var(--kk-text-bright);
  font-family: var(--lo-font-body);
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-input:focus {
  border-color: rgba(var(--accent-1-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--accent-1-rgb), 0.15);
}
.contact-input::placeholder { color: var(--kk-text-muted); }
textarea.contact-input { resize: vertical; min-height: 130px; }

.contact-submit {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-bright));
  color: #fff;
  border: none;
  border-radius: var(--lo-radius-btn);
  padding: 15px 28px;
  font-family: var(--lo-font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: 0 4px 20px rgba(var(--accent-1-rgb), 0.35);
}
.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--accent-1-rgb), 0.5);
}
[data-color-theme="orange"] .contact-submit { color: #000; }
.contact-submit:disabled { opacity: 0.6; cursor: wait; }

.contact-sent {
  display: none;
  font-family: var(--lo-font-code);
  font-size: 12.5px;
  color: var(--accent-2);
  letter-spacing: 0.3px;
  padding: 6px 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid var(--kk-border);
  padding-top: 28px;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kk-text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.18s;
}
.contact-links a:hover { color: var(--accent-1); text-decoration: none; }
.contact-links svg { width: 16px; height: 16px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--kk-border);
  padding: 28px 28px;
  text-align: center;
  background: var(--kk-bg);
}
.footer p {
  font-family: var(--lo-font-code);
  font-size: 10.5px;
  color: var(--kk-text-muted);
  letter-spacing: 0.3px;
}
.footer-legal { margin-top: 8px; }
.footer-legal a {
  color: var(--kk-text-dim);
  margin: 0 8px;
  font-size: 11px;
  transition: color 0.18s;
}
.footer-legal a:hover { color: var(--accent-1); text-decoration: none; }
.footer-cross { margin-top: 8px; }
.footer-cross a {
  color: var(--accent-1);
  font-weight: 600;
  transition: color 0.18s;
}
.footer-cross a:hover { color: var(--accent-bright); text-decoration: none; }
.footer-system-tag {
  font-family: var(--lo-font-code);
  font-size: 9.5px;
  color: rgba(189, 189, 218, 0.45);
  margin-top: 12px;
  letter-spacing: 1px;
}

/* ── REVEAL ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .domain-grid     { grid-template-columns: repeat(2, 1fr); }
  .systems-layout  { grid-template-columns: 1fr; }
  .impact-grid     { grid-template-columns: repeat(2, 1fr); }
  .skills-grid     { grid-template-columns: repeat(2, 1fr); }
  .tools-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--kk-nav);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--kk-border);
  }
  .hamburger { display: flex; }
  .available-badge { display: none; }

  section { padding: 72px 0; }
  .hero { padding: 96px 20px 80px; }
  .hero-name { letter-spacing: -2.5px; }
  .hero-caps { gap: 6px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .domain-grid     { grid-template-columns: 1fr; }
  .systems-layout  { grid-template-columns: 1fr; }
  .compliance-grid { grid-template-columns: 1fr; }
  .impact-grid     { grid-template-columns: 1fr; }
  .agent-grid      { grid-template-columns: repeat(2, 1fr); }
  .skills-grid     { grid-template-columns: 1fr; }
  .tools-grid      { grid-template-columns: 1fr; }
  .side-row        { grid-template-columns: 1fr; }
  .career-period   { margin-left: 0; width: 100%; }

  .section-title { letter-spacing: -1px; }
  .container { padding: 0 20px; }
}

/* ── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scanlines { animation: none; }
  .available-dot,
  .badge-dot,
  .hero-cursor { animation: none; }
  .btn, .btn:hover { transform: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ── Print Styles ────────────────────────────────────────────── */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }
  :root {
    --kk-bg: #ffffff;
    --kk-text-bright: #000000;
    --kk-text: #333333;
    --kk-text-muted: #555555;
    --kk-border: #cccccc;
    --accent-1: #000000;
  }
  #lo-bg, .scanlines, .nav, .hero-scroll-hint,
  #darkToggle, #colorToggle, #langToggle, #hamburger,
  .available-badge { display: none !important; }

  .hero { min-height: 0; padding: 20px 0; }
  section { padding: 20px 0 !important; page-break-inside: avoid; }
  .glass-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  h1, h2, h3, .section-title { color: #000 !important; page-break-after: avoid; }
  .container { max-width: 100% !important; padding: 0 !important; }
}
