:root {
  color-scheme: dark;
  --ink: #0b0a14;
  --ink-2: #13111f;
  --ink-3: #1b1830;
  --line: #2a2742;
  --text: #ece9f8;
  --dim: #a5a1c2;
  --gem: #8f7bff;
  --gem-deep: #5a46d6;
  --ice: #62e6d8;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; min-width: 320px; background: var(--ink); color: var(--text);
  font: 400 17px/1.6 var(--body); text-rendering: optimizeLegibility;
  background-image: radial-gradient(900px 520px at 78% -6%, rgba(143,123,255,.20), transparent 70%);
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ice); color: #04110f; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(20px, 5vw, 64px); background: rgba(11,10,20,.78); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--display); letter-spacing: -.03em; }
.logo b { color: var(--gem); font-weight: 800; }
.logo-gem { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; color: var(--dim); font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; margin-left: auto; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px;
  border-radius: 10px; font: 700 15px/1.2 var(--body); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn-solid { background: var(--gem); color: #0d0a24; }
.btn-solid:hover { background: #a393ff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: var(--ink-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--gem); }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 12px; }

/* HERO */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 5vw, 80px);
  max-width: 1240px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 110px);
}
.status { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink-2); color: var(--dim); font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #e7b86f; box-shadow: 0 0 10px #e7b86f88; }
.status.online .dot { background: #3ddc84; box-shadow: 0 0 10px #3ddc8499; }
h1 { margin-top: 22px; font-size: clamp(40px, 6vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.lead { max-width: 54ch; margin-top: 22px; color: var(--dim); font-size: clamp(17px, 1.6vw, 19px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; color: #7f7ba0; font-size: 14px; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 460px; perspective: 900px; }
.gem { width: min(100%, 400px); filter: drop-shadow(0 30px 60px rgba(90,70,214,.45)); transform-style: preserve-3d; transition: transform .25s ease-out; }
.facet-glow { animation: glint 5.5s ease-in-out infinite; }
@keyframes glint { 0%, 70%, 100% { opacity: 1; } 82% { opacity: .62; } }

.msg {
  position: absolute; width: min(280px, 72%); padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(19,17,31,.92); backdrop-filter: blur(8px); box-shadow: 0 18px 40px rgba(0,0,0,.45); font-size: 14px;
}
.msg-ticket { right: -4%; bottom: 8%; }
.msg-welcome { left: -4%; top: 12%; }
.msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.msg-avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gem-deep); font: 800 13px var(--display); }
.msg-head em { padding: 1px 5px; border-radius: 4px; background: #5865f2; font: 700 10px var(--body); font-style: normal; }
.embed { padding: 9px 11px; border-left: 3px solid var(--ice); border-radius: 4px; background: var(--ink); }
.embed strong { display: block; margin-bottom: 2px; }
.embed p { color: var(--dim); font-size: 13px; line-height: 1.45; }
.embed-btn { display: inline-block; margin-top: 9px; padding: 5px 12px; border-radius: 6px; background: #5865f2; font-weight: 700; font-size: 13px; }
.mention { padding: 0 3px; border-radius: 4px; background: rgba(88,101,242,.3); color: #c9cdfb; }

/* SECTIONS */
.section, .cta { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--dim); }

.feature-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); transition: border-color .2s; }
.feature:hover { border-color: var(--gem); }
.feature-big h3 { margin-top: 36px; font-size: 26px; font-weight: 700; }
.feature p { margin-top: 10px; color: var(--dim); font-size: 16px; }
.ficon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(143,123,255,.16); color: var(--gem); font-size: 22px; }

.module-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin: 34px 0 0; padding: 0; list-style: none; }
.module-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.module-list span { width: 30px; color: var(--ice); font-size: 20px; text-align: center; }
.module-list b { display: block; font-weight: 700; }
.module-list small { color: var(--dim); font-size: 14px; }

.section-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.section-split .section-head { margin: 0; }
.terminal { border: 1px solid var(--line); border-radius: 16px; background: #090812; overflow: hidden; }
.cmd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 18px 22px; border-top: 1px solid var(--line); }
.cmd:first-child { border-top: 0; }
.cmd code { color: var(--ice); font: 500 16px var(--mono); }
.cmd span { color: var(--dim); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 70px 26px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--ink-2); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; top: 22px; left: 26px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gem); color: #0d0a24; font: 800 16px var(--display); }
.steps b { font: 700 20px/1.2 var(--display); }
.steps p { margin-top: 10px; color: var(--dim); font-size: 16px; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(32px, 5vw, 58px); font-weight: 800; }
.cta .hero-cta { justify-content: center; }

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; max-width: 1240px; margin: 0 auto; padding: 28px clamp(20px, 5vw, 64px) 40px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.footer a:last-child { margin-left: auto; }
.footer a:last-child:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 400px; order: -1; }
  .feature-trio, .steps { grid-template-columns: 1fr; }
  .module-list { grid-template-columns: repeat(2, 1fr); }
  .section-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links, #nav-dashboard { display: none; }
  .module-list { grid-template-columns: 1fr; }
  .msg-welcome { left: 0; }
  .msg-ticket { right: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .facet-glow { animation: none; }
  .gem, .btn { transition: none; }
}
