:root {
  --bg: #040d18;
  --panel: rgba(8, 22, 38, 0.55);
  --panel-solid: #0a1626;
  --border: rgba(96, 199, 255, 0.14);
  --border-hot: rgba(96, 199, 255, 0.5);
  --text: #ecf5fd;
  --text-2: #9db4cc;
  --text-3: #5d7a94;
  --purple: #38bdf8;
  --purple-deep: #0369a1;
  --teal: #34d399;
  --amber: #f5b84d;
  --red: #ff6b6b;
  --pink: #ed93b1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #000;
  color: var(--text);
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
h1, h2, h3, .stat-num, .m-num, .kpi-num, .bento-stat { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

.liquid-glass, .glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
}
.glass { background: rgba(4, 12, 22, 0.42); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 20px; }
.liquid-glass::before, .glass::before, .btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass::before { background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.07) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.07) 80%,
    rgba(255, 255, 255, 0.22) 100%); }
.bw { display: inline-block; will-change: filter, transform, opacity; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(96, 199, 255, 0.35); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #23233a; border-radius: 5px; }

/* ---------- ambient layers ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.blob-a { width: 55vw; height: 55vw; background: radial-gradient(circle, #155e94 0%, transparent 65%); top: -20vw; left: -12vw; animation: drift-a 26s ease-in-out infinite alternate; }
.blob-b { width: 45vw; height: 45vw; background: radial-gradient(circle, #113c4e 0%, transparent 65%); bottom: -15vw; right: -10vw; animation: drift-b 32s ease-in-out infinite alternate; }
.blob-c { width: 30vw; height: 30vw; background: radial-gradient(circle, #0d5c4a 0%, transparent 65%); top: 42%; left: 58%; opacity: 0.32; animation: drift-c 38s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(9vw, 7vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-7vw, -9vh) scale(1.1); } }
@keyframes drift-c { to { transform: translate(-10vw, 6vh) scale(0.85); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E"); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0;
  z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  transition: opacity 0.4s, transform 0.4s;
}
.nav.hidden { opacity: 0; transform: translateY(-140%); pointer-events: none; }
.nav-logo { width: 48px; height: 48px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; }
.nav-logo-glyph { font-family: "Instrument Serif", serif; font-style: italic; font-size: 24px; color: #fff; line-height: 1; }
.nav-pill { display: flex; align-items: center; gap: 2px; border-radius: 9999px; padding: 6px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-link { padding: 8px 14px; border-radius: 9999px; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.85); transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.12); }
.btn-white { display: flex; align-items: center; gap: 7px; background: #fff; color: #000; border-radius: 9999px; padding: 11px 20px; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: transform 0.18s; }
.btn-white:hover { transform: translateY(-2px); }
.btn-white svg { width: 15px; height: 15px; margin: 0; }

/* ---------- pages ---------- */
.page { position: relative; z-index: 2; display: none; min-height: 100vh; }
.page.active { display: block; }
.page-inner { max-width: 1120px; margin: 0 auto; padding: 130px 32px 90px; }
.page-title { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.01em; }
.page-title.sm { font-size: 24px; }
.page-sub { color: var(--text-2); margin: 6px 0 26px; }
.section-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; text-align: center; }
.section-sub { color: var(--text-2); text-align: center; margin: 8px 0 36px; }

.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(16px);
}

/* ---------- buttons & pills ---------- */
.btn-primary {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px);
  color: #fff; font-weight: 500; font-size: 14.5px;
  padding: 12px 26px; border-radius: 9999px;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  transition: transform 0.18s, background 0.18s;
}
.btn-primary:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.07); }
.btn-primary:active { transform: scale(0.97); }
.btn-text { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 500; }
.btn-text svg { width: 15px; height: 15px; fill: #fff; }
.btn-ghost { border: none; color: rgba(255, 255, 255, 0.85); padding: 11px 22px; border-radius: 9999px; font-size: 14px; transition: background 0.2s, color 0.2s; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-outline-purple { border: 1px solid var(--purple-deep); color: #9fdcff; padding: 9px 16px; border-radius: 10px; font-size: 13px; background: rgba(14, 116, 144, 0.12); }
.btn-danger { background: rgba(255, 107, 107, 0.14); border: 1px solid rgba(255, 107, 107, 0.4); color: #ffb3b3; padding: 9px 16px; border-radius: 10px; font-size: 13px; }
.sm { padding: 8px 14px; font-size: 13px; }
.full { width: 100%; margin-top: 6px; }
.right { margin-left: auto; }
.pill { display: inline-block; font-size: 12.5px; padding: 6px 14px; border-radius: 99px; }
.pill-purple { background: rgba(14, 116, 144, 0.25); color: #9fdcff; border: 1px solid rgba(96, 199, 255, 0.35); }
.badge { font-size: 11.5px; padding: 4px 11px; border-radius: 99px; font-weight: 500; }
.badge-teal { background: rgba(93, 202, 165, 0.14); color: var(--teal); border: 1px solid rgba(93, 202, 165, 0.35); }
.badge-amber { background: rgba(242, 166, 35, 0.13); color: var(--amber); border: 1px solid rgba(242, 166, 35, 0.35); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 350px; padding: 34px 32px; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.login-logo { text-align: center; margin-bottom: 6px; }
.login-title { text-align: center; font-size: 26px; font-weight: 700; }
.login-sub { text-align: center; color: var(--text-2); font-size: 13.5px; margin: 4px 0 24px; }
.login-card label { display: block; font-size: 12.5px; color: var(--text-2); margin: 0 0 6px; }
.login-card input {
  width: 100%; background: rgba(7, 7, 14, 0.6); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px; color: var(--text); font-size: 14px;
  margin-bottom: 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.login-card input:focus { border-color: var(--border-hot); box-shadow: 0 0 0 4px rgba(96, 199, 255, 0.12); }
.turnstile { display: flex; align-items: center; gap: 9px; background: rgba(7, 7, 14, 0.6); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; font-size: 12.5px; color: var(--text-2); margin-bottom: 18px; }
.ts-check { width: 20px; height: 20px; border-radius: 6px; background: rgba(93, 202, 165, 0.18); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ts-cf { margin-left: auto; font-size: 9.5px; letter-spacing: 0.14em; color: var(--text-3); }
#btn-login { width: 100%; }
.login-hint { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 3; text-align: center; max-width: 780px; padding: 0 24px; }
.hero-title {
  font-size: clamp(44px, 7.2vw, 92px); line-height: 0.9; letter-spacing: -0.035em;
  margin: 26px 0 20px; color: #fff; max-width: 760px; margin-left: auto; margin-right: auto;
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.26em; row-gap: 0.08em;
}
.hero-badge { display: inline-flex; align-items: center; gap: 10px; border-radius: 9999px; padding: 5px 16px 5px 5px; font-size: 13px; color: rgba(255, 255, 255, 0.9); }
.badge-chip { background: #fff; color: #000; border-radius: 9999px; padding: 4px 12px; font-size: 11.5px; font-weight: 600; }
.hero-sub { color: rgba(255, 255, 255, 0.85); font-size: clamp(15px, 1.6vw, 17px); font-weight: 300; line-height: 1.5; }
.hero-cta { display: flex; gap: 22px; justify-content: center; align-items: center; margin-top: 28px; }
.hero-stats { display: flex; gap: 16px; justify-content: center; margin-top: 34px; }
.hero-stats .stat { width: 225px; border-radius: 1.25rem; padding: 18px 20px; text-align: left; }
.hero-stats .stat > svg { width: 26px; height: 26px; color: #fff; margin-bottom: 26px; }
.hero-stats .stat-num { display: block; font-size: 38px; letter-spacing: -1px; line-height: 1; color: #fff; }
.hero-stats .stat-label { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.85); margin-top: 8px; font-weight: 300; line-height: 1.4; }
.hero-partners { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.partners-chip { border-radius: 9999px; padding: 6px 15px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.partners-row { display: flex; gap: clamp(18px, 3.4vw, 44px); flex-wrap: wrap; justify-content: center; }
.partners-row span { font-family: "Instrument Serif", serif; font-style: italic; font-size: clamp(17px, 2vw, 24px); color: #fff; letter-spacing: -0.02em; }

/* ---------- sections ---------- */
.section { position: relative; z-index: 2; padding: 110px 32px; max-width: 1120px; margin: 0 auto; }
.kicker { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); margin-bottom: 18px; font-weight: 400; }
.caps-title { font-size: clamp(52px, 7vw, 96px); line-height: 0.9; letter-spacing: -0.03em; color: #fff; display: flex; flex-wrap: wrap; column-gap: 0.26em; }
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.caps-card { border-radius: 1.25rem; padding: 24px; min-height: 360px; display: flex; flex-direction: column; }
.caps-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.caps-icon { width: 44px; height: 44px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.caps-icon svg { width: 21px; height: 21px; color: #fff; }
.caps-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 70%; }
.caps-tag { border-radius: 9999px; padding: 4px 12px; font-size: 11px; color: rgba(255, 255, 255, 0.9); white-space: nowrap; font-weight: 400; }
.caps-spacer { flex: 1; }
.caps-card h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -1px; line-height: 1; color: #fff; margin-top: 24px; }
.caps-card p { margin-top: 12px; font-size: 13.5px; color: rgba(255, 255, 255, 0.9); font-weight: 300; line-height: 1.45; max-width: 34ch; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); border-radius: 20px;
  padding: 30px; transition: transform 0.25s, border-color 0.25s;
  backdrop-filter: blur(14px); cursor: pointer;
}
.bento-stat { display: block; font-family: "Sora", sans-serif; font-size: 30px; font-weight: 800; color: var(--teal); margin: 10px 0 2px; }
.bento-stat-label { font-size: 12px; color: var(--text-3); }
.bento-card:hover { transform: translateY(-5px); border-color: var(--border-hot); }
.bento-card.wide { grid-column: span 2; }
.bento-card.accent { background: linear-gradient(140deg, rgba(14, 116, 144, 0.3), rgba(23, 23, 36, 0.5)); }
.bento-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 199, 255, 0.14), transparent 45%);
  transition: opacity 0.3s; pointer-events: none;
}
.bento-card:hover::before { opacity: 1; }
.bento-icon { font-size: 26px; margin-bottom: 12px; }
.bento-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.bento-card p { font-size: 13.5px; color: var(--text-2); }
.bento-count { display: inline-block; margin-top: 14px; font-size: 13px; color: #9fdcff; }

/* ---------- gallery ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.pill-filter { border: 1px solid var(--border); color: var(--text-2); padding: 8px 17px; border-radius: 99px; font-size: 13px; transition: all 0.2s; background: rgba(255,255,255,0.02); }
.pill-filter:hover { color: var(--text); border-color: var(--border-hot); }
.pill-filter.active { background: linear-gradient(135deg, #0ea5e9, #2dd4bf); color: #0b0b14; border-color: transparent; font-weight: 500; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.demo-card {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px; backdrop-filter: blur(14px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; cursor: pointer;
}
.demo-card:hover { transform: translateY(-5px); border-color: var(--border-hot); box-shadow: 0 18px 44px rgba(14, 116, 144, 0.22); }
.dc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dc-icon { font-size: 22px; }
.demo-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 5px; }
.demo-card p { font-size: 13px; color: var(--text-2); margin-bottom: 13px; }
.dc-run { font-size: 13px; color: #9fdcff; }
.badge-impact { background: rgba(52, 211, 153, 0.13); color: var(--teal); border: 1px solid rgba(52, 211, 153, 0.35); }
.dc-bottom { display: flex; justify-content: space-between; align-items: center; }
.dc-ind { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

/* ---------- demo page ---------- */
.demo-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; align-items: stretch; }
.panel { padding: 22px; }
.panel-label { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 500; }
.panel-top { display: flex; align-items: center; justify-content: space-between; }
.beam { align-self: center; margin: 0 -1px; z-index: 3; }
.dropzone { border: 1.5px dashed rgba(96, 199, 255, 0.35); border-radius: 14px; padding: 22px; text-align: center; margin-bottom: 18px; transition: border-color 0.25s, background 0.25s; }
.dropzone:hover { border-color: var(--border-hot); background: rgba(96, 199, 255, 0.05); }
.dz-icon { font-size: 26px; }
.dz-name { font-size: 13.5px; margin-top: 8px; }
.dz-meta { font-size: 12px; color: var(--text-3); }
.mini-label { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { font-size: 12px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); color: var(--text-3); cursor: pointer; transition: all 0.2s; }
.chip.on { background: rgba(14, 116, 144, 0.28); color: #9fdcff; border-color: rgba(96, 199, 255, 0.4); }
.out-idle { color: var(--text-3); font-size: 14px; padding: 40px 0; text-align: center; }
.out-body { display: none; }
.out-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 18px; font-family: "JetBrains Mono", monospace; }
.out-table td { padding: 9px 4px; border-bottom: 1px solid rgba(96, 199, 255, 0.09); }
.out-table td:first-child { color: var(--text-3); width: 38%; }
.orow { opacity: 0; }
.done-tag { font-size: 12px; color: var(--teal); opacity: 0; transition: opacity 0.4s; }
.done-tag.on { opacity: 1; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi-row.two { grid-template-columns: repeat(2, 1fr); margin: 12px 0; }
.kpi { background: rgba(7, 7, 14, 0.55); border-radius: 12px; padding: 13px 14px; }
.kpi-label { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 3px; }
.kpi-num { font-size: 19px; font-weight: 700; }
.teal { color: var(--teal); }
.amber { color: var(--amber); }
.red { color: var(--red); }
.dim { color: var(--text-3); }
.out-actions { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- present ---------- */
.present-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.live-badge { display: flex; align-items: center; gap: 7px; background: rgba(255, 107, 107, 0.13); border: 1px solid rgba(255, 107, 107, 0.4); color: #ffb3b3; font-size: 12.5px; font-weight: 500; padding: 6px 14px; border-radius: 99px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.55); } 50% { box-shadow: 0 0 0 7px rgba(255, 107, 107, 0); } }
.present-title { font-size: 15px; font-weight: 500; }
.watchers { margin-left: auto; display: flex; align-items: center; }
.w-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; border: 2px solid var(--bg); margin-left: -8px; }
.w-avatar.a { background: #0369a1; margin-left: 0; }
.w-avatar.b { background: #0f6e56; }
.w-avatar.c { background: #854f0b; }
.w-count { font-size: 12.5px; color: var(--text-2); margin-left: 10px; }
.present-stage { margin-bottom: 14px; }
.streaming { font-size: 12px; color: #9fdcff; }
.cursor { animation: blink 1s steps(1) infinite; color: var(--purple); }
@keyframes blink { 50% { opacity: 0; } }
#ticket-feed { min-height: 150px; margin-bottom: 16px; }
.ticket { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid rgba(96, 199, 255, 0.09); font-size: 13px; }
.ticket q { color: var(--text-2); font-style: normal; }
.t-tags { display: flex; gap: 7px; align-items: center; flex-shrink: 0; }
.t-tag { font-size: 11px; padding: 3px 9px; border-radius: 99px; }
.t-urgent { background: rgba(255, 107, 107, 0.15); color: #ffb3b3; }
.t-howto { background: rgba(14, 116, 144, 0.25); color: #9fdcff; }
.t-bug { background: rgba(93, 202, 165, 0.14); color: var(--teal); }
.present-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
.room-link { margin-left: auto; font-size: 12.5px; color: var(--text-3); font-family: "JetBrains Mono", monospace; }
.footnote { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 18px; }

/* ---------- admin ---------- */
.admin-layout { display: grid; grid-template-columns: 210px 1fr; gap: 20px; max-width: 1100px; margin: 0 auto; padding: 110px 28px 70px; }
.admin-side { padding: 20px 12px; height: fit-content; }
.admin-brand { font-family: "Sora", sans-serif; font-weight: 700; font-size: 14px; padding: 0 10px 14px; }
.side-link { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; color: var(--text-2); transition: background 0.2s, color 0.2s; }
.side-link:hover { color: var(--text); background: rgba(96, 199, 255, 0.07); }
.side-link.active { background: rgba(14, 116, 144, 0.25); color: #c2ecff; }
.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.metric { padding: 16px 18px; }
.m-label { display: block; font-size: 12px; color: var(--text-3); }
.m-num { display: block; font-size: 26px; font-weight: 700; margin: 2px 0; }
.m-num.sm { font-size: 16px; margin-top: 8px; }
.m-delta { font-size: 12px; color: var(--text-3); }
.m-delta.teal { color: var(--teal); }
.chart-panel { margin-bottom: 16px; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 120px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #0e7490, #164e63); height: 0; }
.bar.hot { background: linear-gradient(180deg, #2dd4bf, #0369a1); box-shadow: 0 0 22px rgba(96, 199, 255, 0.4); }
.bar-col span { font-size: 11px; color: var(--text-3); }
.bar-col span.hl { color: #9fdcff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table td { padding: 10px 4px; border-bottom: 1px solid rgba(96, 199, 255, 0.09); }
.admin-table .right { text-align: right; }

/* ---------- creator ---------- */
.stepper { display: flex; align-items: center; gap: 10px; margin: 4px 0 22px; flex-wrap: wrap; }
.step { font-size: 12px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border); color: var(--text-3); }
.step.done { background: rgba(14, 116, 144, 0.22); color: #9fdcff; border-color: rgba(96, 199, 255, 0.3); }
.step.current { background: linear-gradient(135deg, #0ea5e9, #2dd4bf); color: #0b0b14; font-weight: 500; border-color: transparent; }
.step-dash { width: 18px; height: 1px; background: var(--border-hot); }
.prompt-box { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.prompt-text { font-size: 14.5px; color: var(--text); flex: 1; min-width: 260px; font-style: italic; }
.creator-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.code {
  font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 1.75;
  color: var(--text-2); white-space: pre-wrap; margin-bottom: 14px; min-height: 230px;
}
.code .k { color: #9fdcff; }
.code .s { color: var(--teal); }
.sandbox { border-color: rgba(96, 199, 255, 0.35); }
.sandbox-inner { background: rgba(7, 7, 14, 0.55); border-radius: 14px; padding: 16px; }
.sm-text { font-size: 12.5px; color: var(--text-2); }
.creator-actions { display: flex; gap: 10px; margin-top: 16px; }
.creator-actions .btn-primary { flex: 1; }
.creator-actions .btn-ghost { flex: 1; }

/* ---------- icons & logo ---------- */
.logo-mark { width: 22px; height: 22px; filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.7)); }
.logo-mark.big { width: 42px; height: 42px; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.icon-tile svg { width: 21px; height: 21px; }
.icon-tile.sm { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 0; }
.icon-tile.sm svg { width: 18px; height: 18px; }
.tile-cyan { background: rgba(56, 189, 248, 0.13); color: #7dd3fc; }
.tile-coral { background: rgba(251, 113, 133, 0.13); color: #fda4af; }
.tile-gold { background: rgba(245, 184, 77, 0.13); color: #fcd34d; }
.tile-sky { background: rgba(125, 211, 252, 0.13); color: #bae6fd; }
.tile-green { background: rgba(52, 211, 153, 0.13); color: #6ee7b7; }
.tile-violet { background: rgba(167, 139, 250, 0.15); color: #c4b5fd; }
.btn-primary svg, .btn-ghost svg, .btn-outline-purple svg, .btn-danger svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 7px; }
.hero-cta .btn-primary svg { margin: 0 0 0 8px; }
.side-link svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 8px; }
.page-title.ic svg { width: 26px; height: 26px; vertical-align: -3px; margin-right: 10px; color: #7dd3fc; }
.room-link svg { width: 13px; height: 13px; vertical-align: -2px; }
.dz-icon svg { width: 26px; height: 26px; color: #7dd3fc; }

/* ---------- agent pipeline ---------- */
.pipeline-wrap { padding: 16px 20px 18px; margin-bottom: 16px; }
.pipeline { display: flex; align-items: center; overflow-x: auto; padding-top: 4px; }
.p-stage { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(3, 12, 22, 0.5); white-space: nowrap; opacity: 0.5; transition: border-color 0.25s, box-shadow 0.25s, opacity 0.25s; flex-shrink: 0; }
.p-stage.active { opacity: 1; border-color: var(--stage, #38bdf8); box-shadow: 0 0 20px -6px var(--stage, #38bdf8); }
.p-icon { color: var(--stage, #38bdf8); display: flex; }
.p-icon svg { width: 16px; height: 16px; }
.p-name { font-size: 12.5px; color: var(--text-2); }
.p-stage.active .p-name { color: var(--text); }
.p-dot { width: 7px; height: 7px; border-radius: 50%; background: #24384c; transition: background 0.25s, box-shadow 0.25s; }
.p-stage.done .p-dot { background: #34d399; box-shadow: 0 0 9px rgba(52, 211, 153, 0.9); }
.p-link { flex: 1; min-width: 28px; height: 1px; background: rgba(96, 199, 255, 0.18); position: relative; margin: 0 6px; }
.p-pulse { position: absolute; top: -2.5px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #bae6fd; box-shadow: 0 0 12px #38bdf8; opacity: 0; }

.tile-indigo { background: rgba(129, 140, 248, 0.15); color: #a5b4fc; }
.badge-indigo { background: rgba(129, 140, 248, 0.13); color: #a5b4fc; border: 1px solid rgba(129, 140, 248, 0.35); }

/* ---------- info chips ---------- */
.info-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; }
.info-chip { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 13px 16px; backdrop-filter: blur(12px); }
.info-chip b { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 4px; }
.info-chip span { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }

/* ---------- mainframe page ---------- */
.mf-scene { position: relative; margin-bottom: 16px; overflow: hidden; }
#mf3d { display: block; width: 100%; height: 300px; }
.mf-caption { position: absolute; left: 18px; bottom: 12px; font-size: 11.5px; color: var(--text-3); letter-spacing: 0.06em; }
.mf-module { padding: 22px; margin-bottom: 16px; }
.code-split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; margin: 14px 0 18px; }
.code-pane { background: rgba(2, 8, 15, 0.75); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; min-height: 260px; }
.code-title { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.code-pane .cline, .code-pane .jline { font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 1.85; white-space: pre; }
.cobol .cline { color: #86e29b; opacity: 0.3; transition: opacity 0.2s, background 0.2s; border-radius: 4px; padding: 0 6px; }
.cobol .cline.on { opacity: 0.95; }
.cobol .cline.hl { background: rgba(56, 189, 248, 0.14); opacity: 1; }
.java .jline { color: #cbe7ff; opacity: 0; padding: 0 6px; }
.code-arrow { display: flex; align-items: center; color: #38bdf8; }
.code-arrow svg { width: 20px; height: 20px; filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8)); }
.ask-box { display: flex; align-items: center; gap: 12px; background: rgba(2, 8, 15, 0.75); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; margin: 12px 0 16px; }
.ask-box svg { width: 17px; height: 17px; color: #a5b4fc; flex-shrink: 0; }
.ask-prompt { flex: 1; font-size: 14px; color: var(--text); font-style: italic; min-width: 200px; }
.sql-block { font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 1.8; background: rgba(2, 8, 15, 0.75); border: 1px solid rgba(129, 140, 248, 0.25); border-left: 3px solid #818cf8; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; color: #a5b4fc; }
.sqline { opacity: 0; }
.ask-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 14px; }
.arow { opacity: 0; }
.month-bars { display: flex; align-items: flex-end; gap: 10px; background: rgba(2, 8, 15, 0.5); border-radius: 10px; padding: 14px 14px 10px; }
.mb-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 150px; justify-content: flex-end; }
.mbar { width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #0e7490, #164e63); height: 0; }
.mbar.hot { background: linear-gradient(180deg, #2dd4bf, #0e7490); box-shadow: 0 0 18px rgba(45, 212, 191, 0.35); }
.mb-col span { font-size: 10.5px; color: var(--text-3); }
.mb-col span.hl { color: #99f6e4; }
.ask-result .kpi-row { margin-top: 2px; }

/* ---------- custom cursor ---------- */
#cursor { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
#cursor-dot { position: fixed; width: 6px; height: 6px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); left: 0; top: 0; }
#cursor-ring { position: fixed; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0); transform: translate(-50%, -50%); left: 0; top: 0; transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s; }
#cursor-ring.hot { width: 58px; height: 58px; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.7); }
@media (pointer: fine) { body.cursor-on, body.cursor-on * { cursor: none !important; } }
@media (pointer: coarse) { #cursor { display: none; } }

/* ---------- page veil transition ---------- */
#veil { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: linear-gradient(180deg, rgba(5, 12, 24, 0.92), rgba(2, 6, 14, 0.98)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(-101%); }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.marquee-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: "Instrument Serif", serif; font-style: italic; font-size: clamp(20px, 2.4vw, 28px); color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.marquee-track em { color: #34d399; font-size: 11px; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- agent activity feed ---------- */
.agent-feed { position: absolute; right: 28px; bottom: 110px; z-index: 4; display: flex; flex-direction: column; gap: 9px; width: 285px; align-items: flex-end; }
.agent-toast { border-radius: 14px; padding: 10px 14px; font-size: 12px; color: rgba(255, 255, 255, 0.92); width: 100%; display: flex; align-items: flex-start; gap: 9px; }
.agent-toast .at-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.9); margin-top: 4px; flex-shrink: 0; }
.agent-toast b { font-weight: 600; color: #fff; }
.agent-toast .at-time { margin-left: auto; color: rgba(255, 255, 255, 0.5); font-size: 11px; flex-shrink: 0; }
@media (max-width: 1150px) { .agent-feed { display: none; } }

/* ---------- closing CTA ---------- */
.cta-section { text-align: center; padding-bottom: 60px; }
.cta-title { font-size: clamp(48px, 7vw, 92px); line-height: 0.9; letter-spacing: -0.03em; color: #fff; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.26em; }
.cta-sub { color: rgba(255, 255, 255, 0.8); font-size: 16px; font-weight: 300; margin: 18px 0 30px; }
.btn-white.big { padding: 16px 30px; font-size: 15px; margin: 0 auto; }
.footer-line { margin-top: 100px; font-size: 12px; color: var(--text-3); }

/* ---------- tilt glare ---------- */
.tilt { transform-style: preserve-3d; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.1), transparent 55%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.tilt:hover::after { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
  .demo-split { grid-template-columns: 1fr; }
  .beam { display: none; }
  .creator-split { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .nav-pill { display: none; }
  .agent-feed { display: none; }
  .info-chips { grid-template-columns: 1fr; }
  .code-split { grid-template-columns: 1fr; }
  .code-arrow { transform: rotate(90deg); justify-content: center; }
  .ask-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation: none !important; transition: none !important; }
}
