:root {
  --bg: #000;
  --text: #fff;
  --text-2: #a1a1a1;
  --text-3: #6b6b6b;
  --gray: #7c7c7c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  /* top-lit surface: fill + a border that is brighter at the top edge */
  --surface:
    linear-gradient(180deg, #131313 0%, #0a0a0a 100%) padding-box,
    linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.03) 100%) border-box;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1140px;
  --sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: #fff; color: #000; }
.mono { font-family: var(--mono); }

main { position: relative; }
/* faint vertical guides at the content edges */
.guides { position: absolute; inset: 0; pointer-events: none; z-index: 0; display: flex; justify-content: center; }
.guides span {
  width: calc(var(--wrap) + 2px); max-width: calc(100% - 32px);
  border-left: 1px solid rgba(255,255,255,0.04); border-right: 1px solid rgba(255,255,255,0.04);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}
.guides span + span { display: none; }

/* ---------- Nav ---------- */
.nav-shell {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 16px;
  pointer-events: none;
  opacity: 0; transform: translateY(-14px);
  transition: opacity 1s var(--ease) 0.1s, transform 1s var(--ease) 0.1s;
}
.loaded .nav-shell { opacity: 1; transform: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 22px;
  height: 54px; padding: 0 7px 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #151515, #0b0b0b) padding-box,
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06)) border-box;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.9);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  position: relative; padding: 7px 12px;
  font-size: 14.5px; font-weight: 500; color: #b0b0b0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px;
  background: #fff; transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-login { font-size: 14.5px; font-weight: 600; color: #e5e5e5; padding: 7px 4px; transition: color 0.3s; }
.nav-login:hover { color: #fff; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 17px; border-radius: 999px;
  background: #fff; color: #000; font-size: 14px; font-weight: 700;
  transition: background-color 0.3s;
}
.nav-cta svg { width: 17px; height: 17px; }
.nav-cta:hover { background: #e4e4e4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}
.btn:active { transform: scale(0.97); }
.b-icon { width: 19px; height: 19px; flex: none; }
.btn-primary { background: #fff; color: #000; padding-right: 6px; }
.btn-primary:hover { background: #e2e2e2; }
.b-arrow {
  display: grid; place-items: center; width: 40px; height: 40px; margin-left: 6px;
  border-radius: 50%; background: #000; color: #fff;
}
.b-arrow svg { width: 17px; height: 17px; transition: transform 0.4s var(--ease); }
.btn-primary:hover .b-arrow svg { transform: translateX(3px); }
.btn-ghost {
  color: #fff; border: 1px solid transparent;
  background:
    linear-gradient(180deg, #1a1a1a, #0d0d0d) padding-box,
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08)) border-box;
}
.btn-ghost:hover {
  background:
    linear-gradient(180deg, #262626, #161616) padding-box,
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.12)) border-box;
}
.ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 140px 24px 150px;
}
/* light from the top edge that follows the cursor sideways */
.topshine { position: absolute; top: 0; left: 0; right: 0; height: 640px; pointer-events: none; z-index: 0; }
.topshine .beam, .topshine .edge { position: absolute; top: 0; left: 0; will-change: transform; }
.topshine .beam {
  width: 1100px; height: 640px; margin-left: -550px;
  background:
    radial-gradient(38% 70% at 50% 0%, rgba(255,255,255,0.13), transparent 70%),
    radial-gradient(18% 40% at 50% 0%, rgba(255,255,255,0.08), transparent 70%);
}
.topshine .edge {
  width: 700px; height: 1px; margin-left: -350px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
}
.topshine { opacity: 0; transition: opacity 1.6s ease 0.2s; }
.loaded .topshine { opacity: 1; }

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 960px; will-change: transform, opacity; }
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 16px 6px 7px; border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #171717, #0c0c0c) padding-box,
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06)) border-box;
  font-size: 14px; font-weight: 500; color: #cfcfcf;
}
.tag img { border-radius: 5px; }

.hero-title {
  margin-top: 26px;
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.035em;
}
.hero-title .line { display: block; }
.hero-title .g { color: var(--gray); }

.hero-sub { margin: 24px auto 0; max-width: 540px; font-size: 18.5px; line-height: 1.6; color: var(--text-2); font-weight: 500; }
.hero .ctas { margin-top: 38px; }

.intro { opacity: 0; transform: translateY(22px); }
.loaded .intro {
  opacity: 1; transform: none;
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--d) * 110ms + 150ms);
}

.ribbon { position: absolute; left: -4%; width: 108%; pointer-events: none; animation: drift 16s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { from { transform: translate3d(-2%, 0, 0); } to { transform: translate3d(2%, -14px, 0); } }
.ribbon-hero { bottom: 0; height: 48%; z-index: 1; opacity: 0; transition: opacity 2.4s ease 0.5s; }
.loaded .ribbon-hero { opacity: 1; }

/* ---------- Big marquee ---------- */
.big-marquee {
  position: relative; z-index: 1;
  padding: 26px 0; overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, #050505, #000);
}
.bm-row { overflow: hidden; }
.bm-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.bm-track span {
  font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2;
  white-space: nowrap; padding: 0 0.22em; color: #e6e6e6;
}
.bm-track span.o { color: #6a6a6a; }
.bm-track i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: #fff; opacity: 0.35; transform: rotate(45deg); margin: 0 0.6em; }
.bm-row + .bm-row .bm-track span { color: #383838; }
.bm-row + .bm-row .bm-track span.o { color: #262626; }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 150px 24px 0; }
.head { margin-bottom: 56px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
}
.kicker::before { content: ""; width: 20px; height: 1px; background: var(--text-3); }
h2 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
}
h2 .g { color: var(--gray); }
.head-sub { margin-top: 20px; max-width: 480px; font-size: 18px; color: var(--text-2); font-weight: 500; }

[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* word-by-word heading reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.03em 0.18em; margin: 0 -0.03em -0.18em; }
.wi { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split-in .wi { transform: none; }

/* ---------- Features grid ---------- */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-card {
  position: relative;
  border-radius: 28px; overflow: hidden;
  border: 1px solid transparent;
  background: var(--surface);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), box-shadow 0.4s;
}
.f-card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
}
.f-vis {
  position: relative; height: 350px; padding: 26px 26px 0;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(255,255,255,0.06), transparent 60%),
    #070707;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.f-vis::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
/* fade the bottom of the panel into the card (cheaper than a mask) */
.f-vis::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; pointer-events: none; z-index: 2;
  background: linear-gradient(to bottom, transparent, #0b0b0b);
}
.f-body { padding: 26px 30px 30px; }
.f-top { display: flex; align-items: center; justify-content: space-between; }
.f-num { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.f-ic {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #232323, #121212) padding-box,
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06)) border-box;
}
.f-ic svg { width: 20px; height: 20px; }
.f-body h3 { margin-top: 18px; font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.f-body p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); font-weight: 500; max-width: 450px; }
.f-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.f-list li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: #c8c8c8;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.02);
}
.f-list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: 0.6; }

/* mini panel shared by all four visuals */
.panel {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column;
  border-radius: 18px 18px 0 0;
  border: 1px solid transparent; border-bottom: 0;
  background:
    linear-gradient(180deg, #131313, #0d0d0d) padding-box,
    linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.04)) border-box;
  box-shadow: 0 -10px 40px -10px rgba(0,0,0,0.8);
  overflow: hidden;
}
.p-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; background: rgba(255,255,255,0.015);
}
.p-title { font-weight: 700; letter-spacing: -0.01em; }
.hash { color: var(--text-3); margin-right: 3px; font-weight: 500; }
.p-status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: #cfcfcf;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
}
.p-status i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.25; } }
.p-body { position: relative; flex: 1; min-height: 0; padding: 12px 14px; overflow: hidden; }
/* soft fade at the top of scrolling feeds (overlay, not a mask) */
.chat::before, .logs::after {
  content: ""; position: absolute; left: 0; right: 0; height: 46px; z-index: 2; pointer-events: none;
}
.chat::before { top: 0; background: linear-gradient(#0d0d0d, transparent); }
.logs::after { bottom: 0; background: linear-gradient(transparent, #0d0d0d); }

/* Discord-style default avatar, in gray */
.dav {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c, #6e6e6e); color: #fff;
}
.dav svg { width: 58%; height: 58%; }
.bot-av { flex: none; width: 32px; height: 32px; border-radius: 50%; }
.bot-tag {
  display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 4px;
  background: #fff; color: #000; font-size: 9.5px; font-weight: 800; letter-spacing: 0.02em; vertical-align: 1px;
}

/* 1: chat with AutoMod */
.chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.msg {
  position: relative; flex: none;
  display: flex; gap: 11px; align-items: flex-start;
  padding: 7px 8px; border-radius: 10px;
  animation: rowIn 0.55s var(--ease) both;
  transition: opacity 0.4s ease, transform 0.45s var(--ease), background-color 0.3s;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
.msg-body { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.msg-name { font-size: 13px; font-weight: 700; line-height: 1.4; }
.msg-name time { margin-left: 7px; font-size: 10.5px; font-weight: 500; color: var(--text-3); }
.msg-text { position: relative; font-size: 13.5px; line-height: 1.45; color: #d2d2d2; }
.msg-text::after {
  content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 1.5px; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.msg.flag { background: rgba(255,255,255,0.04); }
.msg.flag .msg-text { color: var(--text-3); }
.msg.flag .msg-text::after { transform: scaleX(1); }
.msg.gone { opacity: 0; transform: translateX(26px); }
.bot { background: transparent; }
.embed {
  margin-top: 5px; padding: 9px 12px; border-radius: 8px;
  background: #171717; border: 1px solid var(--line); border-left: 3px solid #fff;
  min-width: 220px;
}
.e-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; }
.e-title svg { width: 14px; height: 14px; }
.e-fields { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 18px; margin-top: 6px; }
.e-fields span { font-size: 10.5px; color: var(--text-3); }
.e-fields b { display: block; font-size: 12px; font-weight: 600; color: #e6e6e6; }

/* 2: leaderboard + level-up */
.lb { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.board { display: flex; flex-direction: column; gap: 5px; list-style: none; padding: 0; margin: 0; }
.board li {
  display: grid; grid-template-columns: 16px 28px 1fr auto 46px; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 10px; font-size: 13px;
  transition: background-color 0.4s;
}
.board .dav { width: 28px; height: 28px; }
.board li.me { background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.rank { font-size: 11.5px; color: var(--text-3); text-align: center; }
.b-name { font-weight: 700; }
.b-role { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: #bdbdbd; transition: background-color 0.4s, color 0.4s; }
.b-role.new { background: #fff; color: #000; border-color: #fff; }
.b-xp { font-size: 11.5px; color: var(--text-2); text-align: right; }
.bot-msg { display: flex; gap: 11px; padding: 4px 8px; }
.bot-main { flex: 1; min-width: 0; }
.bot-name { font-size: 13px; font-weight: 700; }
.levelup .embed { padding: 11px 12px; }
.lu-row { display: flex; align-items: center; gap: 13px; }
.lu-ring { position: relative; flex: none; width: 50px; height: 50px; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 16; }
.ring-bg { stroke: #2a2a2a; }
.ring-fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 540.35; stroke-dashoffset: 540.35; }
.lu-num { position: relative; font-size: 16px; font-weight: 700; }
.lu-num.bump { animation: bump 0.7s var(--ease); }
@keyframes bump { 35% { transform: scale(1.3); } }
.lu-text { flex: 1; min-width: 0; }
.lu-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xpbar { height: 5px; margin-top: 7px; border-radius: 4px; background: #2a2a2a; overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 100%; background: #fff; border-radius: 4px; transform-origin: left; transform: scaleX(0); }
.lu-meta { margin-top: 5px; font-size: 10.5px; color: var(--text-3); }

/* 3: logs as stacked mini embeds */
.logs { display: flex; flex-direction: column; gap: 6px; }
.log {
  flex: none; display: flex; align-items: center; gap: 11px;
  padding: 8px 12px 8px 10px; border-radius: 10px;
  background: #121212; border: 1px solid var(--line); border-left: 3px solid #3a3a3a;
  animation: logIn 0.5s var(--ease) both;
}
.log.hot { border-left-color: #fff; }
.log:first-child { background: #181818; }
@keyframes logIn { from { opacity: 0; transform: translateY(-10px); } }
.log-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #222; color: #fff; }
.log.hot .log-ic { background: #fff; color: #000; }
.log-ic svg { width: 14px; height: 14px; }
.log-main { flex: 1; min-width: 0; }
.log-title { font-size: 12.5px; font-weight: 700; }
.log-meta { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log time { flex: none; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }

/* 4: welcome card */
.welcome { display: flex; flex-direction: column; gap: 14px; padding: 14px; }
.w-card {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #151515; border: 1px solid var(--line-2);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}
.w-card.swap { opacity: 0; transform: translateY(6px) scale(0.99); }
.w-banner {
  position: relative; height: 62px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 10px),
    linear-gradient(120deg, #3a3a3a, #161616 70%);
}
.w-banner img { position: absolute; right: 14px; top: 12px; width: 22px; height: 22px; opacity: 0.85; border-radius: 6px; }
.w-av { position: absolute; left: 14px; top: 34px; width: 54px; height: 54px; box-shadow: 0 0 0 4px #151515; }
.w-info { padding: 32px 14px 14px; }
.w-hi { font-size: 15px; font-weight: 500; }
.w-hi b { font-weight: 800; }
.w-sub { margin-top: 1px; font-size: 11.5px; color: var(--text-3); }
.w-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.w-chip { padding: 5px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: #d0d0d0; background: #1f1f1f; border: 1px solid var(--line); }
.w-chip.on { background: #fff; color: #000; border-color: #fff; }
.w-chip.role { margin-left: auto; border-style: dashed; border-color: rgba(255,255,255,0.25); background: transparent; }
.recent { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
.recent-lbl { font-size: 11.5px; color: var(--text-3); }
.faces { display: flex; align-items: center; }
.faces .dav { width: 26px; height: 26px; margin-left: -7px; box-shadow: 0 0 0 2px #0d0d0d; animation: faceIn 0.45s var(--ease) both; }
.faces .dav:first-child { margin-left: 0; }
@keyframes faceIn { from { opacity: 0; transform: scale(0.5); } }

/* ---------- Feature card light (follows the cursor) ---------- */
.f-card { isolation: isolate; --cx: 50%; --cy: 0%; --reach: 0; }
.f-spot, .f-rim { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.25s ease-out; }
.f-spot {
  z-index: 3;
  background: radial-gradient(120% 120% at var(--cx) var(--cy), rgba(255,255,255, calc(0.1 + var(--reach) * 0.2)) 0, rgba(255,255,255,0.04) 35%, transparent 62%);
  -webkit-mask-image: radial-gradient(70% 70% at var(--cx) var(--cy), #000 0, rgba(0,0,0,0.5) 40%, transparent 75%), radial-gradient(circle at center, #000 0.6px, transparent 1.3px);
  mask-image: radial-gradient(70% 70% at var(--cx) var(--cy), #000 0, rgba(0,0,0,0.5) 40%, transparent 75%), radial-gradient(circle at center, #000 0.6px, transparent 1.3px);
  -webkit-mask-size: 100% 100%, 10px 10px; mask-size: 100% 100%, 10px 10px;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mix-blend-mode: screen;
}
.f-rim {
  z-index: 4; padding: 1px;
  background:
    radial-gradient(2.5rem 2.5rem at var(--cx) var(--cy), rgba(255,255,255, calc(0.55 + var(--reach) * 0.45)) 0, rgba(255,255,255, calc(0.55 + var(--reach) * 0.45)) 55%, transparent 100%),
    radial-gradient(60% 60% at var(--cx) var(--cy), rgba(255,255,255, calc(0.3 + var(--reach) * 0.4)) 0, rgba(255,255,255,0.08) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.f-card:hover .f-spot, .f-card:hover .f-rim { opacity: 1; }
@media (hover: none) { .f-spot, .f-rim { display: none; } }

/* ---------- Integrations ---------- */
.integrations { padding-bottom: 0; }
.integrations .head { margin-bottom: 0; }
.i-rows { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; margin-top: 64px; overflow-x: clip; }
.i-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.i-track { display: flex; width: max-content; animation: iScroll 60s linear infinite; will-change: transform; }
.i-marquee.rev .i-track { animation-direction: reverse; animation-duration: 66s; }
.i-marquee:hover .i-track { animation-play-state: paused; }
@keyframes iScroll { to { transform: translate3d(-50%, 0, 0); } }
.i-group { display: flex; gap: 20px; padding-right: 20px; }
.i-card {
  position: relative; flex: none; overflow: hidden;
  width: 460px; min-height: 210px; padding: 30px;
  border-radius: 36px;
  border: 1px solid transparent;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255,255,255,0.07), transparent 55%) padding-box,
    linear-gradient(180deg, #111, #090909) padding-box,
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)) border-box;
  transition: background 0.4s;
}
.i-card:hover {
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255,255,255,0.11), transparent 55%) padding-box,
    linear-gradient(180deg, #151515, #0b0b0b) padding-box,
    linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.06)) border-box;
}
.i-water { position: absolute; right: -40px; bottom: -50px; width: 220px; height: 220px; color: #fff; opacity: 0.045; transform: rotate(-12deg); }
.i-head { position: relative; display: flex; align-items: center; gap: 14px; }
.i-tile {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; flex: none;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #252525, #131313) padding-box,
    linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.06)) border-box;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.025), 0 10px 20px -10px rgba(0,0,0,0.9);
  color: #fff;
}
.i-tile svg { width: 27px; height: 27px; }
.i-head h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.i-desc { position: relative; margin-top: 24px; font-size: 16.5px; line-height: 1.7; font-weight: 500; color: rgba(255,255,255,0.55); }
.i-desc b { color: #fff; font-weight: 700; }
@media (max-width: 680px) {
  .i-rows { margin-top: 40px; gap: 12px; }
  .i-group { gap: 12px; padding-right: 12px; }
  .i-card { width: 290px; min-height: 160px; padding: 20px; border-radius: 26px; }
  .i-tile { width: 46px; height: 46px; border-radius: 14px; }
  .i-tile svg { width: 21px; height: 21px; }
  .i-head h3 { font-size: 18px; }
  .i-desc { margin-top: 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .i-track { animation: none; } }

/* ---------- Commands ---------- */
.cmd-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.cmd-layout .head { margin-bottom: 0; }
.cmd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.cmd-chips span {
  padding: 7px 13px; border-radius: 10px; font-family: var(--mono); font-size: 13.5px; color: #d6d6d6;
  background: #0e0e0e; border: 1px solid var(--line-2);
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.cmd-chips span:hover { background: #fff; color: #000; transform: translateY(-2px); }
.console {
  border-radius: 26px; overflow: hidden;
  border: 1px solid transparent;
  background: var(--surface);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,1);
}
.console-bar { display: flex; align-items: center; gap: 7px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.console-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }
.console-bar em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--text-3); }
.console-body { padding: 24px; min-height: 260px; }
.prompt {
  display: flex; align-items: center; gap: 11px;
  height: 54px; padding: 0 18px; border-radius: 15px;
  background: #050505; border: 1px solid var(--line-2);
}
.prompt svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.typed { font-size: 15px; white-space: nowrap; overflow: hidden; }
.typed .arg { color: var(--text-3); }
.caret { width: 2px; height: 20px; background: #fff; animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.reply {
  display: flex; gap: 14px; margin-top: 20px; padding: 18px; border-radius: 18px;
  background: #0d0d0d; border: 1px solid var(--line);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reply.show { opacity: 1; transform: none; }
.reply img { border-radius: 9px; flex: none; width: 30px; height: 30px; }
.reply-who { font-size: 15px; font-weight: 800; }
.reply-who span { margin-left: 6px; padding: 2px 6px; border-radius: 5px; background: #fff; color: #000; font-size: 10.5px; font-weight: 800; vertical-align: 2px; }
.reply-text { margin-top: 3px; font-size: 15.5px; color: #dcdcdc; }
.reply-meta { margin-top: 6px; font-size: 12.5px; color: var(--text-3); }

/* ---------- CTA ---------- */
.cta-wrap { position: relative; z-index: 1; padding: 220px 24px 0; }
.ribbon-cta { top: 40px; height: 380px; }
.cta {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto;
  padding: 96px 32px; text-align: center;
  border-radius: 36px;
  border: 1px solid transparent;
  background:
    radial-gradient(60% 80% at 50% -10%, rgba(255,255,255,0.09), transparent 60%) padding-box,
    linear-gradient(180deg, #151515, #090909) padding-box,
    linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.03)) border-box;
  box-shadow: 0 50px 100px -50px rgba(0,0,0,1);
  overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 55% 70% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 50% 40%, #000, transparent 75%);
}
.cta > * { position: relative; z-index: 1; }
.cta-mark { margin: 0 auto; border-radius: 15px; width: 52px; height: 52px; }
.cta h2 { margin-top: 28px; font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.cta .ctas { margin-top: 40px; }

/* ---------- Footer ---------- */
.footer-wrap { position: relative; z-index: 1; padding: 70px 24px 24px; }
.footer {
  position: relative; overflow: hidden;
  max-width: calc(var(--wrap) + 40px); margin: 0 auto;
  padding: 48px 44px 30px;
  border-radius: 32px;
  border: 1px solid transparent;
  background: var(--surface);
}
.wordmark {
  position: absolute; left: 50%; bottom: -0.3em; transform: translateX(-50%);
  font-size: clamp(8rem, 22vw, 18rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  color: rgba(255,255,255,0.03); pointer-events: none; user-select: none; white-space: nowrap;
}
.foot-top { position: relative; display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot-brand .brand { font-size: 22px; }
.foot-brand p { margin-top: 14px; max-width: 320px; font-size: 15.5px; color: var(--text-2); font-weight: 500; }
.foot-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.foot-cols h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.foot-cols a { display: block; padding: 4px 0; font-size: 15px; color: var(--text-2); font-weight: 500; transition: color 0.25s; }
.foot-cols a:hover { color: #fff; }
.foot-base {
  position: relative; margin-top: 90px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cmd-layout { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { gap: 12px; height: 52px; padding-left: 12px; }
  .nav-links { display: none; }
  .nav-cta span { display: none; }
  .nav-cta { width: 40px; padding: 0; justify-content: center; }
  .hero { padding: 120px 18px 140px; }
  .hero-sub { font-size: 17px; }
  .btn { height: 50px; padding: 0 20px; font-size: 15px; }
  .btn-primary { padding-right: 5px; }
  .section { padding: 110px 18px 0; }
  .head { margin-bottom: 40px; }
  .fgrid { grid-template-columns: 1fr; gap: 14px; }
  .f-vis { padding: 18px 14px 0; }
  .f-body { padding: 22px 22px 26px; }
  .f-vis { height: 340px; }
  .board li { grid-template-columns: 16px 28px 1fr 46px; }
  .b-role { display: none; }
  .e-fields { grid-template-columns: repeat(2, auto); }
  .embed { min-width: 0; }
  .console-body { padding: 16px; }
  .typed { font-size: 13.5px; }
  .cta-wrap { padding: 150px 14px 0; }
  .cta { padding: 70px 20px; border-radius: 28px; }
  .footer-wrap { padding: 46px 12px 14px; }
  .footer { padding: 32px 24px 24px; border-radius: 26px; }
  .foot-cols { gap: 40px; }
  .foot-base { margin-top: 60px; }
  .guides { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .intro, [data-reveal], .nav-shell, .wi { opacity: 1 !important; transform: none !important; }
}

/* ---------- Modules (built from the catalog) ---------- */
.head.center { text-align: center; }
.head.center .kicker { justify-content: center; }
.head.center .head-sub { margin-left: auto; margin-right: auto; }
.mod-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mcat { padding: 22px; border-radius: 22px; border: 1px solid transparent; background: var(--surface); transition: transform 0.4s var(--ease); }
.mcat:hover { transform: translateY(-3px); }
.mcat-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mcat-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(160deg, #262626, #121212); border: 1px solid var(--line-2); }
.mcat-ic svg { width: 19px; height: 19px; }
.mcat h3 { flex: 1; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.mcat em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.mcat ul { display: flex; flex-wrap: wrap; gap: 6px; }
.mcat li { padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); font-size: 12.5px; color: #cfcfcf; cursor: default; transition: background-color 0.2s, color 0.2s; }
.mcat li:hover { background: #fff; color: #000; }
.mcat.is-plus .mcat-ic { background: #fff; color: #000; border-color: #fff; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; margin: 0 auto; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 28px; border: 1px solid transparent; background: var(--surface); overflow: hidden; }
.price-card.plus { background: linear-gradient(180deg, #181818 0%, #0b0b0b 100%) padding-box, linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.1) 40%, rgba(255,255,255,0.05)) border-box; }
.pc-glow { position: absolute; top: -120px; right: -80px; width: 380px; height: 300px; background: radial-gradient(closest-side, rgba(255,255,255,0.09), transparent); pointer-events: none; }
.pc-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pc-top h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.pc-top h3 svg { width: 22px; height: 22px; }
.pc-price { text-align: right; }
.pc-price b { display: block; font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.pc-price span { font-size: 13px; color: var(--text-3); }
.pc-sub { position: relative; margin-top: 14px; font-size: 15px; color: var(--text-2); }
.pc-list { position: relative; display: grid; gap: 12px; margin: 22px 0 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.pc-list li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: #d2d2d2; }
.pc-list li b { color: #fff; }
.pc-list svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #fff; }
.pc-btn { position: relative; margin-top: auto; justify-content: center; }

@media (max-width: 1000px) { .mod-cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .mod-cats, .price-grid { grid-template-columns: 1fr; }
  .price-card { padding: 24px; }
}
.pc-btn.is-soon { cursor: default; padding-right: 18px; }
.pc-btn.is-soon:hover { background: #fff; }
.pc-note { position: relative; margin-top: 12px; text-align: center; font-size: 13px; color: var(--text-3); }
.pc-note a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 3px; }
