:root {
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.45);
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-2: #1a1a26;
  --border: #252536;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --discord: #5865f2;
  --discord-green: #248046;
  --discord-embed: #2b2d31;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

/* Background */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orb-float 18s ease-in-out infinite;
}

.orb-1 {
  width: 480px;
  height: 480px;
  background: #6366f1;
  top: -10%;
  left: -5%;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: #4f46e5;
  bottom: 10%;
  right: -5%;
  animation-delay: -6s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: #7c3aed;
  top: 40%;
  left: 40%;
  animation-delay: -12s;
  opacity: 0.25;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -20px) scale(1.08);
  }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.65);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.35);
  transition: transform 0.25s var(--ease);
}

.brand:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: none;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.nav-links a i {
  font-size: 0.75rem;
  opacity: 0.7;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover i {
  opacity: 1;
  color: var(--accent-2);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 40px var(--accent-glow);
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(18, 18, 26, 0.8);
}

.btn-ghost:hover {
  border-color: #3f3f55;
}

.btn-lg {
  padding: 0.8rem 1.35rem;
  font-size: 0.95rem;
}

.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
  0%,
  70%,
  100% {
    transform: translateX(-100%);
  }
  85% {
    transform: translateX(100%);
  }
}

/* Hero */
.hero {
  padding: 7rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-2);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #a5b4fc, #6366f1, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 18, 26, 0.65);
  backdrop-filter: blur(8px);
  min-width: 5.5rem;
  transition: border-color 0.25s, transform 0.25s;
}

.stat:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero preview */
.hero-preview {
  position: relative;
}

.preview-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.browser-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
}

.float-slow {
  animation: float-slow 6s ease-in-out infinite;
}

.float-delay {
  animation: float-slow 6s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #0d0d12;
  border-bottom: 1px solid var(--border);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f3f4a;
}

.browser-bar span:nth-child(1) {
  background: #ef4444;
}
.browser-bar span:nth-child(2) {
  background: #eab308;
}
.browser-bar span:nth-child(3) {
  background: #22c55e;
}

.browser-url {
  flex: 1;
  margin-left: 8px;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--bg);
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.panel-mock {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 280px;
}

.panel-sidebar {
  padding: 12px;
  border-right: 1px solid var(--border);
  background: #0e0e14;
}

.panel-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.panel-logo img {
  border-radius: 6px;
}

.panel-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--muted);
}

.panel-sidebar a.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-2);
}

.panel-main {
  padding: 14px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.panel-header h4 {
  margin: 0;
  font-size: 0.9rem;
}

.pill {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.pill.ok {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mini-card {
  padding: 10px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.65rem;
}

.mini-card i {
  color: var(--accent-2);
  margin-bottom: 4px;
  display: block;
}

.mini-card strong {
  display: block;
  font-size: 0.95rem;
}

.mini-card span {
  color: var(--muted);
}

.slide-in {
  animation: slide-in 0.6s var(--ease) backwards;
  animation-delay: calc(var(--i) * 0.12s + 0.3s);
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.embed-preview-mini {
  padding: 12px;
  border-radius: 10px;
  background: var(--discord-embed);
  border-left: 4px solid var(--accent);
  font-size: 0.72rem;
}

.embed-title {
  margin: 0 0 4px;
  font-weight: 600;
  color: #fff;
}

.embed-desc {
  margin: 0 0 10px;
  color: #b5bac1;
}

.discord-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background: var(--discord);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: default;
}

.discord-btn.full {
  width: 100%;
  margin-top: 8px;
}

.discord-btn.green {
  background: var(--discord-green);
}

.discord-float {
  position: absolute;
  bottom: -20px;
  left: -24px;
  width: min(260px, 90%);
}

.discord-msg {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.discord-msg .avatar img {
  border-radius: 50%;
}

.discord-msg .name {
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 6px;
}

.discord-msg .tag {
  font-size: 0.6rem;
  background: var(--discord);
  padding: 1px 4px;
  border-radius: 3px;
  vertical-align: middle;
}

.discord-msg p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #dbdee1;
}

/* Trust */
.trust {
  padding: 1.5rem 0;
  border-block: 1px solid var(--border);
  background: rgba(18, 18, 26, 0.6);
  backdrop-filter: blur(8px);
}

.trust-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.trust-item i {
  color: var(--accent-2);
}

.trust-item strong {
  color: var(--text);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.bg-alt {
  background: rgba(18, 18, 26, 0.5);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Pillars */
.pillars {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pillar {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.pillar:hover .pillar-icon {
  transform: scale(1.08) rotate(-3deg);
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.pillar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Showcase */
.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}

.tab:hover {
  color: var(--text);
  border-color: #3f3f55;
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.showcase-stage {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 320px;
}

@media (max-width: 768px) {
  .showcase-stage {
    grid-template-columns: 1fr;
  }
  .stage-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

.stage-panel,
.stage-discord {
  padding: 1rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: opacity 0.4s, transform 0.4s;
}

.stage-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.stage-arrow {
  display: flex;
  align-items: center;
  color: var(--accent-2);
  font-size: 1.25rem;
  animation: arrow-pulse 2s ease infinite;
}

@keyframes arrow-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

.tab-panel[hidden] {
  display: none !important;
}

.ticket-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  margin-bottom: 6px;
  background: var(--surface);
}

.ticket-row.open {
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
}

.dot.closed {
  background: var(--muted-2);
}

.badge-sm {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.badge-sm.muted {
  background: rgba(113, 113, 122, 0.2);
  color: var(--muted);
}

.chat-preview {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.75rem;
}

.chat-line .user {
  color: var(--accent-2);
  font-weight: 600;
  margin-right: 6px;
}

.chat-line.typing {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.chat-line.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s ease infinite;
}

.chat-line.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.chat-line.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.dc-embed {
  position: relative;
  padding: 12px 12px 12px 16px;
  border-radius: 4px;
  background: var(--discord-embed);
  font-size: 0.8rem;
}

.dc-embed-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
}

.dc-embed-title {
  margin: 0 0 6px;
  font-weight: 600;
  color: #fff;
}

.dc-embed-body {
  margin: 0;
  color: #b5bac1;
}

.dc-embed.live {
  animation: embed-pop 0.5s var(--ease);
}

@keyframes embed-pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

.editor-mock label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.fake-input {
  height: 28px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  padding: 0 10px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  color: var(--text);
}

.fake-input.tall {
  height: 48px;
  align-items: flex-start;
  padding-top: 8px;
}

.color-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}

.color-pick span {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.module-toggles .toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}

.switch {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #3f3f4a;
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.25s;
}

.switch.on {
  background: var(--accent);
}

.switch.on::after {
  transform: translateX(16px);
}

/* Feature blocks */
.feature-block {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-block:last-child {
  margin-bottom: 0;
}

@media (min-width: 800px) {
  .feature-block {
    grid-template-columns: 1fr 1fr;
  }
  .feature-block.reverse .feature-content {
    order: 2;
  }
  .feature-block.reverse .feature-mock {
    order: 1;
  }
}

.feature-content .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

.feature-content h3 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
}

.feature-content p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.feature-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-content li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-content code {
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
}

.tilt-card {
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s;
  transform-style: preserve-3d;
}

.mock-ticket-channel {
  font-size: 0.8rem;
  color: var(--muted);
}

.mock-ticket-channel .hash {
  color: var(--muted-2);
}

.mock-msgs {
  margin-top: 12px;
}

.mock-msgs .m {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.mock-msgs .m.bot img {
  border-radius: 50%;
}

.embed-sm {
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  background: var(--discord-embed);
  border-radius: 0 4px 4px 0;
  font-size: 0.75rem;
}

.bubble-user {
  padding: 8px 12px;
  background: var(--accent);
  border-radius: 12px;
  font-size: 0.78rem;
}

.split-mock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.split-editor .line {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  margin-bottom: 8px;
}

.split-editor .line.w80 {
  width: 80%;
}
.split-editor .line.w60 {
  width: 60%;
}
.split-editor .line.w90 {
  width: 90%;
}
.split-editor .line.accent {
  background: var(--accent);
  opacity: 0.5;
}

.split-editor .label,
.split-preview .label {
  font-size: 0.65rem;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.dc-embed.compact {
  font-size: 0.72rem;
}

.welcome-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.5rem 0.5rem;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}

.flow-step.active {
  opacity: 1;
  color: var(--accent-2);
}

.flow-step i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step.active i {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.15);
  animation: step-glow 2s ease infinite;
}

@keyframes step-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 20px var(--accent-glow);
  }
}

.flow-line {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--border));
  animation: flow-line 2s ease infinite;
}

@keyframes flow-line {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.marketplace-mock {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  transition: transform 0.25s, border-color 0.25s;
}

.mp-card:hover {
  transform: translateX(4px);
  border-color: rgba(99, 102, 241, 0.4);
}

.mp-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  flex-shrink: 0;
}

.mp-thumb.alt {
  background: linear-gradient(135deg, #7c3aed, var(--accent));
}

.mp-card strong {
  display: block;
}

.mp-card span {
  color: var(--muted);
  font-size: 0.7rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.step h3 {
  margin: 0 0 0.5rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* CTA */
.cta-block {
  position: relative;
  padding: 3.5rem 2rem;
  border-radius: 24px;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.35);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 60%);
  animation: glow-pulse 4s ease infinite;
}

.cta-block h2,
.cta-block p,
.cta-actions {
  position: relative;
  z-index: 1;
}

.cta-block h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.cta-block p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.08s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}

.fade-cycle {
  animation: fade-cycle 8s ease-in-out infinite;
}

@keyframes fade-cycle {
  0%,
  45%,
  100% {
    opacity: 1;
  }
  55%,
  90% {
    opacity: 0.85;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* —— Finitions design —— */
::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.section-head h2 {
  position: relative;
  display: inline-block;
}

.pillar,
.showcase-stage,
.cta-block,
.browser-frame {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 48px rgba(0, 0, 0, 0.28);
}

.showcase-stage {
  background: linear-gradient(165deg, rgba(18, 18, 26, 0.95), rgba(10, 10, 15, 0.88));
}

.feature-content .tag {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.feature-block {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(37, 37, 54, 0.6);
}

.feature-block:last-child {
  border-bottom: none;
}

.panel-sidebar a.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.mini-card {
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.3);
}

@media (max-width: 767px) {
  .nav-cta .btn-ghost {
    display: none;
  }

  .hero {
    padding-top: 6rem;
    min-height: auto;
  }

  .hero-preview {
    margin-top: 1rem;
  }

  .discord-float {
    display: none;
  }
}
