/* ============================================================
   Cortex — Public Home
   Champions League palette · Metallic finish · Glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------------- Body/HTML reset (kill DesignPack flex) ---------------- */
html:has(.cx-landing),
body:has(.cx-landing) {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow-x: clip;  /* clip (not hidden) — hidden makes body a scroll container and breaks position:sticky */
  background: #040918 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  /* Modern thin scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
html:has(.cx-landing)::-webkit-scrollbar,
body:has(.cx-landing)::-webkit-scrollbar { width: 8px; height: 8px; }
html:has(.cx-landing)::-webkit-scrollbar-track,
body:has(.cx-landing)::-webkit-scrollbar-track { background: transparent; }
html:has(.cx-landing)::-webkit-scrollbar-thumb,
body:has(.cx-landing)::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  transition: background .2s ease;
}
html:has(.cx-landing)::-webkit-scrollbar-thumb:hover,
body:has(.cx-landing)::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.30); }
html:has(.cx-landing)::-webkit-scrollbar-corner,
body:has(.cx-landing)::-webkit-scrollbar-corner { background: transparent; }

/* ---------------- Landing scope + tokens ---------------- */
.cx-landing {
  /* Champions League navy palette */
  --bg:           #040918;
  --bg-1:         #07112c;
  --bg-2:         #0b1a3e;
  --bg-3:         #122351;
  --surface:      rgba(18, 35, 81, 0.55);
  --surface-2:    rgba(28, 48, 102, 0.62);

  /* Glass + borders */
  --glass:        rgba(12, 26, 62, 0.55);
  --glass-2:      rgba(20, 38, 86, 0.45);
  --border:       rgba(255, 255, 255, 0.08);
  --border-2:     rgba(255, 255, 255, 0.14);
  --border-hot:   rgba(255, 255, 255, 0.22);

  /* Type */
  --text:         #eef2fb;
  --text-dim:     #aab4cf;
  --text-muted:   #6f7a99;
  --text-faint:   #4a536d;

  /* Metallic */
  --silver:       #c8cfe2;
  --silver-2:     #e4e8f3;
  --chrome:       linear-gradient(180deg, #ffffff 0%, #e4e8f3 35%, #b1bad1 75%, #8a93af 100%);
  --chrome-edge:  linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.05) 100%);

  /* Accent (UEFA blue highlight) */
  --accent:       #6a8cff;
  --accent-2:     #9eb3ff;
  --accent-soft:  rgba(106, 140, 255, 0.16);
  --accent-line:  rgba(106, 140, 255, 0.35);

  /* States */
  --ok:           #5dd6a2;
  --warn:         #f2c14e;

  /* Shape */
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;

  /* Shadows */
  --shadow-glass:  0 30px 80px -20px rgba(0, 0, 0, 0.7),
                   0 12px 24px -8px rgba(2, 8, 30, 0.6),
                   inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-chrome: inset 0 1px 0 rgba(255, 255, 255, 0.85),
                   inset 0 -1px 0 rgba(0, 0, 0, 0.10),
                   0 4px 12px rgba(2, 8, 30, 0.45);
  --shadow-chrome-hover: inset 0 1px 0 rgba(255, 255, 255, 1),
                         inset 0 -1px 0 rgba(0, 0, 0, 0.12),
                         0 8px 22px rgba(106, 140, 255, 0.35);

  --font:         "Inter", sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --ease:         cubic-bezier(0.25, 0.8, 0.25, 1);
  --t-fast:       180ms var(--ease);
  --t:            260ms var(--ease);
  --t-slow:       420ms var(--ease);

  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(ellipse 1100px 700px at 50% -10%, var(--bg-2) 0%, transparent 60%),
    radial-gradient(ellipse 800px 600px at 90% 30%, rgba(106, 140, 255, 0.10) 0%, transparent 60%),
    var(--bg);
  width: 100%;
  position: relative;
}

/* Subtle "star field" — tiny white dots, very low opacity */
.cx-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 17% 22%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 83% 12%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 41% 78%, rgba(255,255,255,0.50), transparent),
    radial-gradient(1.2px 1.2px at 67% 55%, rgba(255,255,255,0.40), transparent),
    radial-gradient(1px 1px at 12% 64%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 92% 78%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 27% 38%, rgba(255,255,255,0.30), transparent),
    radial-gradient(1.4px 1.4px at 56% 18%, rgba(255,255,255,0.55), transparent);
  pointer-events: none;
  z-index: 0;
}
.cx-landing > * { position: relative; z-index: 1; }

.cx-landing * { box-sizing: border-box; }
.cx-landing a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
.cx-landing svg { display: block; }

/* ============================================================
   1. NAV — frosted glass + subtle bottom hairline
   ============================================================ */
.cx-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
}
.cx-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}
.cx-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.cx-brand-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--chrome);
  position: relative;
  display: inline-block;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(60, 70, 100, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}
.cx-brand-mark::after {
  /* center 6-point starlet */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, transparent 45%, rgba(4, 9, 24, 0.85) 47%, rgba(4, 9, 24, 0.85) 53%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(4, 9, 24, 0.85) 47%, rgba(4, 9, 24, 0.85) 53%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(4, 9, 24, 0.85) 47%, rgba(4, 9, 24, 0.85) 53%, transparent 55%),
    linear-gradient(90deg, transparent 45%, rgba(4, 9, 24, 0.85) 47%, rgba(4, 9, 24, 0.85) 53%, transparent 55%);
  background-size: 60% 60%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  opacity: 0.45;
}
.cx-brand-text {
  background: linear-gradient(180deg, #ffffff 0%, #c8cfe2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cx-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
.cx-nav-links a {
  font-size: 13.5px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color var(--t-fast);
}
.cx-nav-links a:hover { color: var(--text); }

.cx-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(43, 70, 192, 0.92) 100%);
  border: 1px solid rgba(43, 70, 192, 0.50);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px !important;
  transition: background var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 14px rgba(77, 108, 232, 0.28);
}
.cx-nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.28) 50%, transparent 75%);
  transform: translateX(-150%);
  transition: transform var(--t-slow);
}
.cx-nav-cta:hover {
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  border-color: var(--accent-2);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 10px 22px rgba(77, 108, 232, 0.42);
  color: #ffffff !important;
}
.cx-nav-cta:hover::before { transform: translateX(150%); }
.cx-nav-cta svg { flex-shrink: 0; }

/* ============================================================
   2. HERO
   ============================================================ */
.cx-hero {
  position: relative;
  padding: 96px 28px 56px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.cx-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100%);
  height: 540px;
  background: radial-gradient(ellipse at center, rgba(106, 140, 255, 0.20), transparent 65%);
  z-index: -1;
  pointer-events: none;
}
.cx-hero-inner { position: relative; max-width: 820px; margin: 0 auto; }

.cx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cx-eyebrow .cx-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(93, 214, 162, 0.75);
}
.cx-dim { color: var(--text-muted); }

.cx-hero-title {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #c8cfe2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 16px rgba(106, 140, 255, 0.15));
}
.cx-accent {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(200, 207, 226, 0.25));
}

.cx-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.cx-hero-actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   3. BUTTONS — glass + chrome
   ============================================================ */
.cx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.cx-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-150%);
  transition: transform var(--t-slow);
}
.cx-btn:hover {
  background: rgba(28, 48, 102, 0.70);
  border-color: var(--border-hot);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 8px 22px rgba(2, 8, 30, 0.45);
}
.cx-btn:hover::before { transform: translateX(150%); }

.cx-btn-primary {
  background: linear-gradient(180deg, rgba(50, 78, 165, 0.55) 0%, rgba(18, 35, 81, 0.85) 100%);
  color: #e4e8f3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 22px rgba(2, 8, 30, 0.5);
}
.cx-btn-primary::before {
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.22) 50%, transparent 75%);
}
.cx-btn-primary:hover {
  background: linear-gradient(180deg, rgba(70, 105, 210, 0.65) 0%, rgba(28, 50, 110, 0.92) 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 12px 28px rgba(106, 140, 255, 0.40);
  transform: translateY(-1px);
}

/* ============================================================
   4. PRODUCT MOCKUP — glass surfaces, chrome edges
   ============================================================ */
.cx-product {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 28px 120px;
}
.cx-mockup {
  background: var(--glass);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-glass);
  position: relative;
}
.cx-mockup::before {
  /* top chrome highlight */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}
.cx-mockup::after {
  /* faint inner top-left glow */
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
  pointer-events: none;
}

/* Browser chrome */
.cx-mockup-chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--glass-2);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.cx-chrome-dots { display: inline-flex; gap: 6px; }
.cx-chrome-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
}
.cx-chrome-dots span:nth-child(1) { background: linear-gradient(180deg, #ff7a72, #e25048); }
.cx-chrome-dots span:nth-child(2) { background: linear-gradient(180deg, #ffd266, #f0b22e); }
.cx-chrome-dots span:nth-child(3) { background: linear-gradient(180deg, #4cd577, #27c44a); }

.cx-chrome-url {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(4, 9, 24, 0.55);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  max-width: 420px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
}
.cx-chrome-lock { color: var(--silver); display: inline-flex; }

.cx-chrome-action {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--chrome);
  color: #050b1c;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-chrome);
  transition: transform var(--t-fast);
}
.cx-chrome-action:hover { transform: translateY(-1px); }

/* Mockup body */
.cx-mockup-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 460px;
  background: rgba(4, 9, 24, 0.35);
}

/* Sidebar */
.cx-mockup-side {
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, rgba(20, 38, 86, 0.25), rgba(20, 38, 86, 0.05));
}
.cx-side-ws {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cx-side-ws-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--chrome);
  color: #050b1c;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-chrome);
}
.cx-side-ws-name { font-size: 13px; font-weight: 600; color: var(--text); }
.cx-side-ws-sub { font-size: 10.5px; color: var(--text-muted); font-family: var(--font-mono); }

.cx-side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cx-side-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}
.cx-side-nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.cx-side-nav a.active {
  background: var(--glass-2);
  color: var(--text);
  border: 1px solid var(--border-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cx-side-i { font-family: var(--font-mono); width: 14px; text-align: center; color: var(--text-muted); }
.cx-side-nav a.active .cx-side-i {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cx-pill-num {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}
.cx-side-nav a.active .cx-pill-num {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.cx-side-foot { padding-top: 12px; border-top: 1px solid var(--border); }
.cx-side-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.cx-side-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(93, 214, 162, 0.7);
}

/* Main panel */
.cx-mockup-main { padding: 22px 26px; display: flex; flex-direction: column; gap: 18px; }
.cx-main-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cx-main-head h3 {
  font-size: 18px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff, #c8cfe2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cx-main-sub { font-size: 13px; color: var(--text-muted); margin: 0; }

.cx-main-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}
.cx-main-filter span {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
}
.cx-main-filter span:hover { color: var(--text); }
.cx-main-filter span.active {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.cx-main-list { display: flex; flex-direction: column; gap: 8px; }

.cx-ws-row {
  display: grid;
  grid-template-columns: 38px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(8px);
  animation: cx-row-in .6s var(--ease) forwards;
  animation-delay: var(--d, 0s);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.cx-ws-row:hover {
  border-color: var(--border-hot);
  background: var(--glass-2);
  transform: translateY(-1px);
}
@keyframes cx-row-in {
  to { opacity: 1; transform: translateY(0); }
}

.cx-ws-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #050b1c;
  background: var(--chrome);
  box-shadow: var(--shadow-chrome);
  position: relative;
}
.cx-ws-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 50%);
  pointer-events: none;
}
.cx-ws-mark[data-brand="trendify"]  { background: linear-gradient(180deg, #ffb878, #f89539); color: #2a1500; }
.cx-ws-mark[data-brand="consight"]  { background: linear-gradient(180deg, #6fe8b0, #2dbb6f); color: #003918; }
.cx-ws-mark[data-brand="busybee"]   { background: linear-gradient(180deg, #ffd866, #f0a832); color: #2a1900; }

.cx-ws-info { min-width: 0; }
.cx-ws-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
.cx-ws-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}
.cx-ws-meta span { color: var(--text-faint); margin: 0 4px; }

.cx-ws-spark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}
.cx-ws-spark span {
  width: 3px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--silver), rgba(200, 207, 226, 0.30));
  opacity: 0.55;
}
.cx-ws-spark span:nth-child(1) { height: 30%; }
.cx-ws-spark span:nth-child(2) { height: 55%; }
.cx-ws-spark span:nth-child(3) { height: 45%; }
.cx-ws-spark span:nth-child(4) { height: 70%; }
.cx-ws-spark span:nth-child(5) { height: 60%; opacity: 0.75; }
.cx-ws-spark span:nth-child(6) { height: 85%; opacity: 0.85; }
.cx-ws-spark span:nth-child(7) { height: 75%; opacity: 0.90; }
.cx-ws-spark span:nth-child(8) { height: 100%; opacity: 1; background: var(--chrome); }

.cx-ws-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.2px;
  backdrop-filter: blur(8px);
}
.cx-ws-status-dot { width: 6px; height: 6px; border-radius: 50%; }

.cx-ws-active {
  background: rgba(93, 214, 162, 0.10);
  border: 1px solid rgba(93, 214, 162, 0.30);
  color: var(--ok);
}
.cx-ws-active .cx-ws-status-dot {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(93, 214, 162, 0.7);
}

.cx-ws-paused {
  background: rgba(242, 193, 78, 0.10);
  border: 1px solid rgba(242, 193, 78, 0.30);
  color: var(--warn);
}
.cx-ws-paused .cx-ws-status-dot { background: var(--warn); }

.cx-main-foot {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}
.cx-main-foot code {
  background: var(--glass-2);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--silver-2);
  font-size: 11.5px;
  border: 1px solid var(--border);
}

/* ============================================================
   5. FOOTER
   ============================================================ */
.cx-foot {
  border-top: 1px solid var(--border);
  padding: 24px 28px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
}
.cx-foot-mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--silver); }

/* ============================================================
   6. Reveal hook (JS toggles .in-view)
   ============================================================ */
.cx-landing .reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow), transform var(--t-slow); }
.cx-landing .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   7. Responsive
   ============================================================ */
@media (max-width: 860px) {
  .cx-mockup-body { grid-template-columns: 1fr; }
  .cx-mockup-side { border-right: none; border-bottom: 1px solid var(--border); }
  .cx-side-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .cx-side-foot { display: none; }
  .cx-ws-row { grid-template-columns: 38px 1fr auto; gap: 12px; }
  .cx-ws-spark { display: none; }
}
@media (max-width: 560px) {
  .cx-hero { padding: 64px 20px 40px; }
  .cx-product { padding-left: 16px; padding-right: 16px; }
  .cx-nav-links a:not(.cx-nav-cta) { display: none; }
  .cx-chrome-url { max-width: 160px; font-size: 11px; }
  .cx-chrome-action { display: none; }
}

/* ============================================================
   8. Theme toggle button (nav-level, Home / SignIn / Errors)
   ============================================================ */
.cx-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.cx-theme-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-2);
}

/* Language chip switcher (TR/EN) — nav-level */
.cx-lang {
  display: inline-flex;
  background: var(--glass);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 2px;
  gap: 1px;
  backdrop-filter: blur(8px);
}
.cx-lang a {
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  border-radius: 5px;
  transition: color var(--t-fast), background var(--t-fast);
  line-height: 1;
}
.cx-lang a:hover:not(.is-active) { color: var(--text); }
.cx-lang a.is-active {
  color: var(--accent-2);
  background: var(--accent-soft);
}
[data-theme="light"] .cx-lang a:hover:not(.is-active) { color: var(--text); }

/* ============================================================
   9. LIGHT THEME — overrides .cx-landing tokens + text-gradients
   ============================================================ */
[data-theme="light"] .cx-landing {
  --bg:           #f5f7fb;
  --bg-1:         #ffffff;
  --bg-2:         #eaf0fc;
  --bg-3:         #dde6f5;
  --surface:      rgba(255, 255, 255, 0.65);
  --surface-2:    rgba(255, 255, 255, 0.85);
  --glass:        rgba(255, 255, 255, 0.60);
  --glass-2:      rgba(255, 255, 255, 0.78);
  --border:       rgba(13, 25, 60, 0.08);
  --border-2:     rgba(13, 25, 60, 0.14);
  --border-hot:   rgba(13, 25, 60, 0.22);

  --text:         #0d1530;
  --text-dim:     #4a5578;
  --text-muted:   #7b8499;
  --text-faint:   #b0b6c5;

  --silver:       #5d6889;
  --silver-2:     #2e3554;

  --accent:       #4d6ce8;
  --accent-2:     #2b46c0;
  --accent-soft:  rgba(77, 108, 232, 0.10);
  --accent-line:  rgba(77, 108, 232, 0.32);

  --shadow-glass:  0 30px 80px -20px rgba(20, 30, 80, 0.18),
                   0 12px 24px -8px rgba(20, 30, 80, 0.10),
                   inset 0 1px 0 rgba(255, 255, 255, 0.6);

  background:
    radial-gradient(ellipse 1100px 700px at 50% -10%, rgba(106, 140, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 800px 600px at 90% 30%, rgba(106, 140, 255, 0.06) 0%, transparent 60%),
    var(--bg);
}

/* Body / html bg + scrollbar on light */
[data-theme="light"] html:has(.cx-landing),
[data-theme="light"] body:has(.cx-landing) {
  background: #f5f7fb !important;
  scrollbar-color: rgba(13, 25, 60, 0.18) transparent;
}
[data-theme="light"] html:has(.cx-landing)::-webkit-scrollbar-thumb,
[data-theme="light"] body:has(.cx-landing)::-webkit-scrollbar-thumb { background: rgba(13, 25, 60, 0.16); }
[data-theme="light"] html:has(.cx-landing)::-webkit-scrollbar-thumb:hover,
[data-theme="light"] body:has(.cx-landing)::-webkit-scrollbar-thumb:hover { background: rgba(13, 25, 60, 0.30); }

/* Star field hidden on light (was very low-opacity white dots — invisible on white) */
[data-theme="light"] .cx-landing::before { background-image: none; }

/* Text gradients — readable on light */
[data-theme="light"] .cx-landing .cx-hero-title,
[data-theme="light"] .cx-landing .cx-brand-text,
[data-theme="light"] .cx-landing .cx-main-head h3,
[data-theme="light"] .cx-landing .cx-auth-title {
  background: linear-gradient(180deg, #0d1530 0%, #4a5578 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none;
}

/* Highlighted accent text (.cx-accent — e.g. "kontrol merkezi" in hero) — chrome gradient invisible on light bg */
[data-theme="light"] .cx-landing .cx-accent,
[data-theme="light"] .cx-landing .cx-hero-title .cx-accent {
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 3px rgba(77, 108, 232, 0.18));
}

/* Hero soft glow tone-down on light */
[data-theme="light"] .cx-landing .cx-hero::before {
  background: radial-gradient(ellipse at center, rgba(106, 140, 255, 0.14), transparent 65%);
}

/* Browser-chrome URL bg on light */
[data-theme="light"] .cx-landing .cx-chrome-url {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-dim);
}

/* Sign-in input bg on light */
[data-theme="light"] .cx-landing .cx-input {
  background: rgba(255, 255, 255, 0.78);
}
[data-theme="light"] .cx-landing .cx-input:focus {
  background: rgba(255, 255, 255, 0.98);
}
[data-theme="light"] .cx-landing .cx-input:-webkit-autofill,
[data-theme="light"] .cx-landing .cx-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.95) inset;
  -webkit-text-fill-color: var(--text);
}

/* Theme button hover on light */
[data-theme="light"] .cx-theme-btn:hover {
  background: rgba(13, 25, 60, 0.05);
}

/* Nav text hover on light */
[data-theme="light"] .cx-landing .cx-nav-links a:hover { color: var(--text); }

/* Primary button on light — solid UCL blue (hardcoded dark navy gradient invisible on white) */
[data-theme="light"] .cx-landing .cx-btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #ffffff;
  border-color: rgba(43, 70, 192, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 6px 16px rgba(77, 108, 232, 0.30);
}
[data-theme="light"] .cx-landing .cx-btn-primary::before {
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.30) 50%, transparent 75%);
}
[data-theme="light"] .cx-landing .cx-btn-primary:hover {
  background: linear-gradient(180deg, var(--accent-2) 0%, #1a36b0 100%);
  border-color: var(--accent-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    0 10px 22px rgba(77, 108, 232, 0.42);
  color: #ffffff;
}

/* Product mockup — hardcoded dark navy bgs need light variants */
[data-theme="light"] .cx-landing .cx-mockup-body {
  background: rgba(255, 255, 255, 0.55);
}
[data-theme="light"] .cx-landing .cx-mockup-side {
  background: linear-gradient(180deg, rgba(13, 25, 60, 0.04), rgba(13, 25, 60, 0.01));
}
[data-theme="light"] .cx-landing .cx-mockup-main { color: var(--text); }

/* Mockup browser chrome action (+ Yeni workspace) — chrome silver gradient looks washed on light, use blue */
[data-theme="light"] .cx-landing .cx-chrome-action {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #ffffff;
  border-color: rgba(43, 70, 192, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 4px 12px rgba(77, 108, 232, 0.25);
}

/* Mockup sidebar ws name color + side ws mark stays chrome */
[data-theme="light"] .cx-landing .cx-side-ws-name { color: var(--text); }
[data-theme="light"] .cx-landing .cx-side-ws-sub  { color: var(--text-muted); }

/* Workspace row text colors on light */
[data-theme="light"] .cx-landing .cx-ws-name { color: var(--text); }
[data-theme="light"] .cx-landing .cx-ws-meta { color: var(--text-dim); }
[data-theme="light"] .cx-landing .cx-ws-meta span { color: var(--text-faint); }

/* Sparkline bars darker on light */
[data-theme="light"] .cx-landing .cx-ws-spark span { background: linear-gradient(180deg, var(--silver), rgba(93, 104, 137, 0.30)); }
[data-theme="light"] .cx-landing .cx-ws-spark span:nth-child(8) { background: linear-gradient(180deg, var(--accent), var(--accent-2)); opacity: 1; }
