/**
 * Nix Discord Bot - Application Stylesheet
 * Catppuccin Mocha + Material Design 3
 */


/* ============================================================
   Base & Resets
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--ctp-base);
  color: var(--ctp-text);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ctp-base);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(74, 205, 230, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(116, 199, 236, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(180, 190, 254, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: clip;
  padding-bottom: 70px; /* Space for mobile bottom bar */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ctp-crust);
}

::-webkit-scrollbar-thumb {
  background: var(--ctp-surface1);
  border-radius: var(--m3-shape-full);
  border: 2px solid var(--ctp-crust);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ctp-surface2);
}

/* Command explorer scrollbars */
html.commands-page {
  scrollbar-width: thin;
  scrollbar-color: var(--ctp-mauve) var(--ctp-crust);
}

html.commands-page::-webkit-scrollbar {
  width: 12px;
}

html.commands-page::-webkit-scrollbar-thumb {
  background: var(--ctp-mauve);
  border: 3px solid var(--ctp-crust);
  border-radius: 999px;
}

html.commands-page::-webkit-scrollbar-thumb:hover {
  background: var(--ctp-lavender);
}

.chips-scroll-container {
  scrollbar-color: var(--ctp-mauve) var(--ctp-surface0);
}

.chips-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.chips-scroll-container::-webkit-scrollbar-track {
  background: var(--ctp-surface0);
  border-radius: 999px;
}

.chips-scroll-container::-webkit-scrollbar-thumb {
  background: var(--ctp-mauve);
  border: 2px solid var(--ctp-surface0);
  border-radius: 999px;
}

code, pre, .mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   M3 Entry Animations
   ============================================================ */
@keyframes m3-entry {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-entry {
  animation: m3-entry 650ms var(--m3-easing-emphasized) forwards;
  animation-delay: calc(var(--stagger, 0) * 80ms);
  opacity: 0; /* starts hidden until animation begins */
}

/* ============================================================
   Top App Bar (Desktop & Tablet)
   ============================================================ */
.m3-top-app-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  background-color: rgba(24, 24, 37, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(69, 71, 90, 0.4);
  transition: all var(--m3-dur-medium) var(--m3-easing-standard);
}

.m3-top-app-bar.scrolled {
  background-color: rgba(24, 24, 37, 0.96);
  border-bottom-color: rgba(74, 205, 230, 0.25);
  box-shadow: var(--m3-elevation-2);
}

.top-bar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ctp-text);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--m3-shape-md);
  box-shadow: 0 0 16px rgba(74, 205, 230, 0.3);
  transition: transform var(--m3-dur-short) var(--m3-easing-emphasized);
}

.brand:hover .brand-logo {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ctp-text);
}

.brand-text span {
  color: var(--ctp-mauve);
}

/* Nav Pills (Desktop) */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
  background-color: var(--ctp-surface0);
  padding: 4px;
  border-radius: var(--m3-shape-full);
  border: 1px solid rgba(88, 91, 112, 0.35);
}

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

.nav-link {
  position: relative;
  padding: 8px 18px;
  border-radius: var(--m3-shape-full);
  color: var(--ctp-subtext0);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--m3-dur-short) var(--m3-easing-standard);
}

.nav-link:hover {
  color: var(--ctp-text);
  background-color: rgba(205, 214, 244, 0.06);
}

.nav-link.active {
  background-color: var(--ctp-mauve);
  color: var(--ctp-crust);
  box-shadow: var(--m3-elevation-1);
}

/* Top Bar Actions */
.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--m3-shape-full);
  background-color: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  color: var(--ctp-subtext1);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--m3-dur-short) var(--m3-easing-standard);
}

.support-pill:hover {
  border-color: var(--ctp-sapphire);
  color: var(--ctp-sapphire);
  background-color: rgba(116, 199, 236, 0.1);
  transform: translateY(-1px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ctp-green);
  box-shadow: 0 0 8px var(--ctp-green);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ============================================================
   M3 Mobile Bottom Navigation Bar
   ============================================================ */
.m3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background-color: var(--ctp-mantle);
  border-top: 1px solid var(--ctp-surface0);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0 8px;
  box-shadow: 0 -4px 16px rgba(17, 17, 27, 0.4);
}

@media (min-width: 769px) {
  .m3-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ctp-subtext0);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  gap: 4px;
  flex: 1;
  padding: 6px 0;
  transition: color var(--m3-dur-short) var(--m3-easing-standard);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-pill {
  width: 54px;
  height: 28px;
  border-radius: var(--m3-shape-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--m3-dur-short) var(--m3-easing-emphasized);
}

.bottom-nav-pill svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bottom-nav-item.active {
  color: var(--ctp-mauve);
}

.bottom-nav-item.active .bottom-nav-pill {
  background-color: var(--ctp-mauve);
  color: var(--ctp-crust);
}

/* ============================================================
   Floating Action Button (Support Server Link)
   ============================================================ */
.support-fab {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--ctp-surface0), var(--ctp-mantle));
  border: 1px solid var(--ctp-surface1);
  border-radius: var(--m3-shape-full);
  box-shadow: var(--m3-elevation-3);
  color: var(--ctp-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--m3-dur-medium) var(--m3-easing-emphasized);
}

@media (min-width: 769px) {
  .support-fab {
    bottom: 32px;
    right: 32px;
  }
}

.support-fab:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--ctp-mauve);
  box-shadow: var(--m3-elevation-5), 0 0 20px rgba(74, 205, 230, 0.25);
  color: var(--ctp-mauve);
}

.support-fab svg {
  width: 22px;
  height: 22px;
  fill: var(--ctp-mauve);
}

/* ============================================================
   Add Bot Landing Section
   ============================================================ */
.add-bot-section {
  min-height: calc(85vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.add-bot-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.add-bot-card {
  width: 100%;
  max-width: 460px;
  background-color: var(--ctp-mantle);
  border: 1px solid var(--ctp-surface0);
  border-radius: 28px;
  padding: 44px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 16px 40px rgba(17, 17, 27, 0.45);
  position: relative;
  overflow: hidden;
}

.add-bot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ctp-mauve), var(--ctp-sapphire));
}

.bot-avatar-container {
  width: 120px;
  height: 120px;
  position: relative;
  margin-bottom: 4px;
}

.bot-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ctp-surface1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.add-bot-card:hover .bot-avatar {
  transform: scale(1.04);
}

.bot-header-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bot-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ctp-text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}

.discord-bot-badge {
  background-color: #5865F2;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.bot-subtext {
  color: var(--ctp-subtext0);
  font-size: 1rem;
}

.bot-details-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}

.bot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--m3-shape-full);
  background-color: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  font-size: 0.85rem;
  color: var(--ctp-subtext1);
  text-decoration: none;
  transition: all 0.2s ease;
}

.bot-chip code {
  color: var(--ctp-mauve);
  font-weight: 700;
}

.bot-chip.chip-interactive:hover {
  border-color: var(--ctp-mauve);
  color: var(--ctp-text);
  transform: translateY(-1px);
}

.bot-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  margin-top: 10px;
}

.btn-add-discord {
  height: 52px;
  font-size: 1.05rem;
  font-weight: 700;
  gap: 10px;
  background-color: #5865F2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
  border-radius: var(--m3-shape-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-add-discord:hover {
  background-color: #4752c4 !important;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.55);
  transform: translateY(-1px);
}

.discord-btn-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn-support {
  height: 48px;
  font-size: 0.95rem;
  border-color: var(--ctp-surface1);
  color: var(--ctp-text);
  border-radius: var(--m3-shape-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-support:hover {
  border-color: var(--ctp-sapphire);
  color: var(--ctp-sapphire);
  transform: translateY(-1px);
}

/* Base Section Shared (for Commands/Terms/Privacy) */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--ctp-text);
  margin-bottom: 10px;
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--ctp-subtext0);
}

/* ============================================================
   Commands Section
   ============================================================ */
.commands-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.chips-scroll-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 2px 14px;
}

.chips-scroll-container .m3-chip {
  flex: 0 0 auto;
  min-height: 44px;
}

.commands-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--ctp-subtext0);
  padding: 0 4px;
}

.commands-count-highlight {
  color: var(--ctp-mauve);
  font-weight: 700;
}

.commands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .commands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .commands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.command-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.command-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.command-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ctp-mauve);
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}

.command-desc {
  font-size: 0.92rem;
  color: var(--ctp-subtext1);
  line-height: 1.5;
  flex: 1;
}

.command-usage-box {
  background-color: var(--ctp-mantle);
  border: 1px solid var(--ctp-surface1);
  border-radius: var(--m3-shape-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: all var(--m3-dur-short) var(--m3-easing-standard);
}

.command-usage-box:hover {
  border-color: var(--ctp-mauve);
  background-color: rgba(74, 205, 230, 0.08);
}

.usage-code {
  font-size: 0.85rem;
  color: var(--ctp-sapphire);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.usage-copy-icon {
  width: 16px;
  height: 16px;
  fill: var(--ctp-overlay1);
  flex-shrink: 0;
  transition: fill var(--m3-dur-short) ease;
}

.command-usage-box:hover .usage-copy-icon {
  fill: var(--ctp-mauve);
}

.command-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(88, 91, 112, 0.25);
  font-size: 0.78rem;
}

.perm-pill {
  padding: 3px 8px;
  border-radius: var(--m3-shape-xs);
  background-color: rgba(243, 139, 168, 0.12);
  color: var(--ctp-red);
  font-weight: 600;
}

.alias-pill {
  color: var(--ctp-overlay1);
  font-family: 'JetBrains Mono', monospace;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--m3-shape-full);
  background-color: var(--ctp-surface0);
  border: 1px solid var(--ctp-surface1);
  color: var(--ctp-text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--m3-dur-short) ease;
}

.page-btn:hover:not(:disabled) {
  background-color: var(--ctp-surface1);
  border-color: var(--ctp-mauve);
}

.page-btn.active {
  background-color: var(--ctp-mauve);
  color: var(--ctp-crust);
  border-color: var(--ctp-mauve);
  box-shadow: var(--m3-elevation-1);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ============================================================
   Terms of Service & Privacy Policy Documents
   ============================================================ */
.legal-container {
  max-width: 900px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ctp-surface1);
}

.legal-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  color: var(--ctp-text);
}

.legal-meta {
  font-size: 0.92rem;
  color: var(--ctp-subtext0);
}

.legal-card {
  padding: 32px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ctp-mauve);
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ctp-sapphire);
  margin-top: 10px;
}

.legal-card p, .legal-card ul {
  font-size: 0.98rem;
  color: var(--ctp-subtext1);
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-highlight-box {
  background-color: rgba(74, 205, 230, 0.08);
  border-left: 4px solid var(--ctp-mauve);
  padding: 16px 20px;
  border-radius: 0 var(--m3-shape-lg) var(--m3-shape-lg) 0;
  margin: 12px 0;
}

.legal-highlight-box p {
  color: var(--ctp-text);
  font-weight: 500;
}

/* ============================================================
   Footer
   ============================================================ */
.app-footer {
  background-color: var(--ctp-crust);
  border-top: 1px solid var(--ctp-surface0);
  padding: 30px 0;
  margin-top: 40px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--ctp-overlay0);
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ctp-subtext0);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--m3-dur-short) ease;
}

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

/* A softer, glass-layered Catppuccin expression */
body { background: #161622; background-image: radial-gradient(ellipse at 72% 5%, rgba(25,145,180,.2), transparent 34%), radial-gradient(ellipse at 8% 42%, rgba(100,111,173,.12), transparent 34%); }
.container { max-width: 1200px; }
.m3-top-app-bar { height: 80px; background: rgba(22,22,34,.68); border-bottom: 1px solid rgba(205,214,244,.08); }
.brand-logo { width: 38px; height: 38px; border-radius: 13px; box-shadow: none; }
.brand-text { font-size: 1.3rem; letter-spacing: -.06em; }
.desktop-nav { background: transparent; border: 0; gap: 3px; }
.nav-link { font-size: .85rem; color: var(--ctp-subtext0); }
.nav-link.active { background: rgba(74,205,230,.12); color: var(--ctp-mauve); box-shadow: none; }
.top-bar-actions .m3-btn { background: rgba(74,205,230,.13); color: var(--ctp-mauve); border: 1px solid rgba(74,205,230,.24); box-shadow: none; }
.hero { min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; padding-top: 65px; padding-bottom: 90px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--ctp-mauve); font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ctp-mauve); box-shadow: 0 0 14px var(--ctp-mauve); }
.hero h1, .section-intro h2, .final-cta h2 { color: #f2efff; letter-spacing: -.065em; line-height: 1.04; font-weight: 800; }
.hero h1 { font-size: clamp(3.8rem, 6.8vw, 6.1rem); margin: 25px 0; }
h1 em, h2 em { font-style: normal; color: var(--ctp-mauve); }
.hero-copy > p { max-width: 465px; color: var(--ctp-subtext0); font-size: 1.05rem; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-primary, .hero-secondary { height: 54px; padding: 0 23px; font-size: .9rem; }
.hero-primary { background: var(--ctp-mauve); color: #08232b; box-shadow: 0 8px 30px rgba(74,205,230,.18); }
.hero-primary:hover { background: #91e6f4; transform: translateY(-2px); }
.hero-primary span, .hero-secondary span { font-size: 1.15rem; margin-left: 8px; }
.hero-secondary { color: var(--ctp-text); background: rgba(205,214,244,.05); border: 1px solid rgba(205,214,244,.13); }
.hero-secondary:hover { background: rgba(205,214,244,.1); }
.hero-note { display: flex; align-items: center; gap: 11px; color: var(--ctp-subtext0); font-size: .78rem; margin-top: 38px; }
.hero-note b { color: var(--ctp-mauve); margin-left: 4px; }.mini-avatar img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; display: block; }
.hero-art { position: relative; min-height: 490px; display: grid; place-items: center; }
.hero-art::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(40,160,200,.2); filter: blur(75px); }
.orbit { position: absolute; width: 420px; height: 420px; border: 1px solid rgba(74,205,230,.13); border-radius: 50%; }.orbit-two { width: 490px; height: 490px; border-color: rgba(74,205,230,.06); }
.profile-window { width: min(340px, 90%); z-index: 1; border: 1px solid rgba(226,213,255,.2); border-radius: 28px; background: linear-gradient(145deg,rgba(67,60,87,.8),rgba(31,30,48,.8)); box-shadow: 0 30px 90px rgba(5,5,15,.42), inset 0 1px rgba(255,255,255,.1); backdrop-filter: blur(24px); transform: rotate(3deg); overflow: hidden; }
.window-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 21px; border-bottom: 1px solid rgba(205,214,244,.1); color: var(--ctp-mauve); }.window-top span:first-child { display:flex; gap:5px; }.window-top i { width:6px; height:6px; border-radius:50%; background:rgba(205,214,244,.32); }.window-top small { font-size: .57rem; font-weight: 800; letter-spacing:.14em; color:var(--ctp-subtext0); }
.profile-body { text-align:center; padding: 32px 28px 24px; }.avatar-halo { width: 96px; height: 96px; margin:auto; border-radius: 40px; padding: 7px; background:linear-gradient(140deg,rgba(74,205,230,.55),rgba(137,180,250,.12)); box-shadow:0 10px 40px rgba(74,205,230,.18); }.avatar-halo img { width:100%; height:100%; object-fit:cover; border-radius:33px; }.profile-name { color:#f2efff; font-size:1.6rem; font-weight:800; margin-top:18px; }.profile-name span { vertical-align:middle; background:rgba(74,205,230,.18); color:var(--ctp-mauve); border-radius:6px; font-size:.58rem; letter-spacing:.08em; padding:4px 6px; }.profile-body p { color:var(--ctp-subtext0); font-size:.82rem; margin-top:3px; }.profile-divider { height:1px; background:rgba(205,214,244,.1); margin:26px 0 20px; }.profile-details { display:flex; justify-content:space-between; text-align:left; gap:20px; }.profile-details span { color:var(--ctp-overlay2); font-size:.58rem; font-weight:800; letter-spacing:.1em; }.profile-details strong { display:block; color:var(--ctp-text); font-size:.85rem; letter-spacing:0; margin-top:5px; }
.spark { position:absolute; color:var(--ctp-mauve); font-size:2rem; }.spark-one { top:45px; right:40px; }.spark-two { bottom:95px; left:0; color:var(--ctp-sapphire); }.floating-label { position:absolute; z-index:2; right:0; bottom:55px; display:flex; gap:12px; align-items:center; padding:14px 18px; border:1px solid rgba(205,214,244,.15); border-radius:18px; background:rgba(44,42,62,.85); backdrop-filter:blur(18px); box-shadow:0 15px 40px rgba(0,0,0,.2); }.floating-label > span { color:var(--ctp-mauve); font-size:1.5rem; }.floating-label strong,.floating-label small { display:block; }.floating-label strong { font-size:.77rem; }.floating-label small { color:var(--ctp-subtext0); font-size:.68rem; }
.discover { padding-top:55px; padding-bottom:100px; }.section-intro { display:flex; justify-content:space-between; align-items:end; gap:40px; margin-bottom:32px; }.section-intro h2,.final-cta h2 { font-size:clamp(2.5rem,4vw,3.6rem); margin-top:16px; }.section-intro > p { max-width:320px; color:var(--ctp-subtext0); font-size:.92rem; }.feature-grid { display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:16px; }.feature-card { min-height:270px; position:relative; overflow:hidden; padding:27px; border:1px solid rgba(205,214,244,.1); border-radius:26px; background:linear-gradient(145deg,rgba(60,59,80,.48),rgba(35,35,51,.65)); backdrop-filter:blur(16px); }.feature-large { background:linear-gradient(145deg,rgba(101,74,132,.4),rgba(43,39,59,.7)); }.feature-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:15px; background:rgba(74,205,230,.15); color:var(--ctp-mauve); font-size:1.35rem; margin-bottom:30px; }.feature-icon.blue { color:var(--ctp-sapphire); background:rgba(116,199,236,.12); }.feature-icon.pink { color:var(--ctp-pink); background:rgba(245,194,231,.12); }.feature-number { color:var(--ctp-overlay2); font-size:.59rem; font-weight:800; letter-spacing:.13em; }.feature-card h3 { color:#f2efff; font-size:1.13rem; letter-spacing:-.025em; margin:10px 0; }.feature-card p { color:var(--ctp-subtext0); font-size:.84rem; line-height:1.7; max-width:290px; }.feature-decoration { position:absolute; right:20px; bottom:12px; color:rgba(74,205,230,.08); font-size:4rem; line-height:1; }
.final-cta { margin-bottom:80px; padding:55px 60px; display:flex; justify-content:space-between; align-items:center; gap:30px; border:1px solid rgba(74,205,230,.18); border-radius:30px; background:radial-gradient(circle at 90% 20%,rgba(74,205,230,.15),transparent 35%),rgba(49,47,67,.55); }.final-cta h2 { font-size:clamp(2.2rem,3.5vw,3.2rem); }.final-cta p { color:var(--ctp-subtext0); margin-top:18px; font-size:.9rem; }.final-cta .m3-btn { flex-shrink:0; }
.m3-card, .m3-search-bar { background:rgba(49,50,68,.55); border-color:rgba(205,214,244,.1); backdrop-filter:blur(16px); }.section-title,.legal-title { color:#f2efff; letter-spacing:-.05em; }.section-title { font-size:3rem; }.app-footer { background:rgba(17,17,27,.45); border-color:rgba(205,214,244,.08); }.m3-bottom-nav { background:rgba(24,24,37,.9); backdrop-filter:blur(20px); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ctp-mauve); outline-offset: 3px; }
@media (max-width: 900px) { .hero { gap:10px; }.hero-art { transform:scale(.85); }.feature-grid { grid-template-columns:1fr 1fr; }.feature-large { grid-column:span 2; min-height:220px; } }
@media (max-width: 768px) { .m3-top-app-bar { height:68px; }.hero { grid-template-columns:1fr; padding-top:70px; padding-bottom:40px; gap:15px; }.hero h1 { font-size:clamp(3.5rem,12vw,5rem); }.hero-art { min-height:420px; transform:scale(.85); margin:-10px -20px; }.section-intro { display:block; }.section-intro > p { margin-top:20px; }.discover { padding-top:40px; padding-bottom:60px; }.final-cta { width:calc(100% - 48px); padding:35px 28px; display:block; margin-bottom:50px; }.final-cta .m3-btn { margin-top:25px; }.app-footer { margin-top:0; }.m3-bottom-nav { padding-bottom:env(safe-area-inset-bottom); height:calc(68px + env(safe-area-inset-bottom)); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns:1fr; }.feature-large { grid-column:auto; }.feature-card { min-height:220px; }.orbit { width:350px; height:350px; }.orbit-two { width:420px; height:420px; }.floating-label { right:0; }.hero-actions .m3-btn { flex:1; white-space:nowrap; padding:0 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } }


/* Opening moment and navigation */
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #123442, #161622 65%);
  animation: intro-exit 2s ease forwards;
}
.site-intro-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 24px;
  color: var(--ctp-mauve);
  font-size: clamp(3.5rem, 10vw, 5rem);
  line-height: 1;
  text-shadow: 0 0 30px rgba(74, 205, 230, .5);
  animation: intro-spin 2s cubic-bezier(.2, .65, .3, 1) forwards;
}
@keyframes intro-spin {
  from { transform: rotate(-90deg) scale(.65); opacity: 0; }
  20% { opacity: 1; }
  to { transform: rotate(270deg) scale(1); opacity: 1; }
}
@keyframes intro-exit {
  0%, 82% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
::view-transition-old(root) { animation: page-out 180ms ease both; }
::view-transition-new(root) { animation: page-in 300ms ease both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }
.m3-btn, .m3-chip, .page-btn, .bottom-nav-item, .nav-link {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
@media (hover: hover) {
  .m3-btn:hover, .page-btn:not(:disabled):hover { transform: translateY(-2px); }
  .nav-link:hover, .bottom-nav-item:hover { transform: translateY(-2px); }
}
.m3-btn:active, .nav-link:active, .bottom-nav-item:active { transform: scale(.96); }
.m3-chip:active, .page-btn:not(:disabled):active { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .site-intro { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .m3-btn, .m3-chip, .page-btn, .bottom-nav-item, .nav-link { transition: none; }
}

/* Keep logo images at icon size, even before the rest of the layout settles. */
.brand-logo { display: block; flex: 0 0 38px; width: 38px; height: 38px; object-fit: contain; }
.avatar-halo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-intro { pointer-events: none; }

/* Getting started and command discovery */
.getting-started { padding-top: 10px; padding-bottom: 100px; }
.start-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.start-steps { list-style: none; display: grid; gap: 12px; }
.start-steps li { display: flex; gap: 20px; align-items: flex-start; padding: 22px; border: 1px solid rgba(205,214,244,.1); border-radius: 20px; background: rgba(49,50,68,.36); }
.start-steps li > span { color: var(--ctp-mauve); font: 700 .75rem 'JetBrains Mono', monospace; padding-top: 4px; }
.start-steps h3 { color: #f2efff; font-size: 1rem; }
.start-steps p { color: var(--ctp-subtext0); font-size: .85rem; margin-top: 5px; }
.start-steps code { color: var(--ctp-mauve); }
.start-steps a { color: var(--ctp-mauve); text-underline-offset: 3px; }
.chat-preview { background: #242431; border: 1px solid rgba(205,214,244,.12); border-radius: 24px; overflow: hidden; box-shadow: 0 20px 65px rgba(0,0,0,.18); }
.chat-heading { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid rgba(205,214,244,.1); font-weight: 700; font-size: .86rem; }
.chat-hash { font-size: 1.4rem; color: var(--ctp-overlay1); line-height: 1; }
.chat-example { margin-left: auto; color: var(--ctp-overlay1); font-size: .58rem; letter-spacing: .12em; }
.chat-message { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 0; font-size: .85rem; }
.chat-message > img, .chat-user-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; object-fit: contain; }
.chat-user-avatar { display: grid; place-items: center; background: #6b6792; color: white; font-weight: 700; }
.chat-message strong { color: #f2efff; }.chat-message small { color: var(--ctp-overlay1); font-size: .65rem; }
.chat-message p { color: var(--ctp-subtext1); margin-top: 3px; }
.chat-bot { background: #5865f2; color: white; border-radius: 3px; padding: 2px 4px; font-size: .55rem; }
.chat-embed { margin-top: 10px; padding: 14px 16px; border-left: 3px solid var(--ctp-mauve); border-radius: 4px 12px 12px 4px; background: #1b1b27; }
.chat-embed p { line-height: 1.55; }.chat-embed span { display: block; color: var(--ctp-mauve); font-size: .7rem; margin-top: 12px; }
.chat-caption { color: var(--ctp-overlay1); font-size: .7rem; padding: 22px 20px 18px; }
.chips-scroll-container { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; padding: 10px; margin: -10px -10px 20px; border-radius: 16px; background: rgba(22,22,34,.96); scrollbar-width: thin; }
.command-usage-box { width: 100%; color: inherit; text-align: left; font: inherit; }
.command-usage-box:focus-visible { outline: 2px solid var(--ctp-mauve); outline-offset: 3px; }
@media (hover: hover) { .feature-card { transition: transform .25s ease, border-color .25s ease; } .feature-card:hover { transform: translateY(-5px); border-color: rgba(74,205,230,.35); } }
@media (prefers-reduced-motion: no-preference) { .spark-one { animation: nix-float 4s ease-in-out infinite; } .spark-two { animation: nix-float 5s ease-in-out infinite reverse; } }
@keyframes nix-float { 50% { transform: translateY(-10px) rotate(15deg); } }
@media (max-width: 768px) { .getting-started { padding-bottom: 65px; } .start-layout { grid-template-columns: 1fr; } }

/* Dark, focused presentation */
html, body { background-color: #09090d; }
body { background-image: radial-gradient(ellipse 65% 520px at 50% 0, rgba(25, 145, 180, .15), transparent 75%); }
.m3-top-app-bar { height: 76px; background: rgba(9, 9, 13, .82); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(18px); }
.m3-top-app-bar.scrolled { background: rgba(9, 9, 13, .94); }
.brand-text { color: #f7f5fa; letter-spacing: -.04em; }
.brand-logo { border-radius: 11px; }
.nav-link { color: #9998a4; background: transparent; }
.nav-link:hover, .nav-link.active { color: #fff; background: transparent; box-shadow: none; }
.top-bar-actions .m3-btn { border-radius: 8px; background: #eeeaf5; border-color: #eeeaf5; color: #17131b; font-weight: 700; }
.hero { position: relative; display: flex; justify-content: center; min-height: 620px; padding-top: 115px; padding-bottom: 110px; text-align: center; }
.hero::before { content: ''; pointer-events: none; position: absolute; top: 30px; left: 50%; width: min(680px, 90vw); height: 420px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(30, 150, 190, .14), transparent 70%); filter: blur(28px); }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { padding: 7px 12px; border: 1px solid rgba(74,205,230,.18); border-radius: 999px; background: rgba(74,205,230,.06); font-size: .66rem; letter-spacing: .1em; }
.hero h1, .section-intro h2, .final-cta h2 { color: #f6f5f8; letter-spacing: -.055em; }
.hero h1 { margin: 30px 0 22px; font-size: clamp(3.4rem, 7vw, 6rem); line-height: 1.03; }
.hero h1 em, .section-intro h2 em, .final-cta h2 em { color: #63c9e4; font-style: normal; }
.hero-copy > p { max-width: 590px; color: #a09eaa; font-size: 1rem; line-height: 1.8; }
.hero-actions { justify-content: center; margin-top: 30px; }
.hero-primary, .hero-secondary { height: 48px; border-radius: 8px; }
.hero-primary { background: #4acde6; color: #08232b; box-shadow: none; }
.hero-secondary { background: #17171d; border: 1px solid #303039; color: #e6e4ea; }
.hero-note { margin-top: 43px; color: #8f8d99; }
.discover, .getting-started { border-top: 1px solid rgba(255,255,255,.07); padding-top: 95px; }
.section-intro > p, .feature-card p, .final-cta p { color: #9998a4; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card, .feature-large { min-height: 245px; border-radius: 14px; border-color: rgba(255,255,255,.08); background: linear-gradient(145deg, #17171d, #101014); box-shadow: none; }
.feature-icon, .feature-icon.blue, .feature-icon.pink { color: #4acde6; background: rgba(74,205,230,.1); border-radius: 10px; }
.chat-preview, .final-cta { border-radius: 14px; border-color: rgba(255,255,255,.09); background: #141419; }
.final-cta { background: radial-gradient(ellipse at 100% 0, rgba(30,150,190,.13), transparent 55%), #141419; }
.m3-card, .m3-search-bar { border-color: rgba(255,255,255,.08); }
.chips-scroll-container { background: rgba(9,9,13,.96); }
@media (max-width: 768px) {
  .hero { min-height: 560px; padding-top: 100px; padding-bottom: 80px; }
  .hero h1 { font-size: clamp(3rem, 10vw, 4.5rem); }
  .discover, .getting-started { padding-top: 65px; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* Glass surfaces and embed creator */
body { background-image: radial-gradient(ellipse 55% 600px at 18% 0, rgba(20,145,185,.17), transparent 75%), radial-gradient(ellipse 50% 700px at 85% 28%, rgba(80,91,150,.12), transparent 75%); }
.m3-top-app-bar, .m3-top-app-bar.scrolled { background: rgba(17,16,25,.65); backdrop-filter: blur(24px) saturate(140%); border-bottom: 1px solid rgba(255,255,255,.1); }
.feature-card, .feature-large, .chat-preview, .final-cta, .legal-card, .command-card, .embed-panel { background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 50px rgba(0,0,0,.12); backdrop-filter: blur(20px); }
.embed-page { padding-top: 80px; padding-bottom: 100px; }
.embed-heading { text-align: center; margin-bottom: 50px; }
.embed-heading h1 { font-size: clamp(2.7rem, 5vw, 4.4rem); line-height: 1.1; letter-spacing: -.06em; margin: 14px 0; color: #f8f6fb; }
.embed-heading h1 span { color: var(--ctp-mauve); }
.embed-heading p, .embed-hint { color: #a6a4b1; }
.embed-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1100px; margin: auto; }
.embed-side { display: grid; gap: 20px; position: sticky; top: 96px; }
.embed-panel { border-radius: 18px; padding: 26px; min-width: 0; }
.embed-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.embed-panel h2 { font-size: 1.15rem; color: #f4f2f8; }
.embed-kicker { color: #7acbe0; font-size: .64rem; font-weight: 800; letter-spacing: .12em; }
#embed-form { display: grid; gap: 17px; }
#embed-form label { display: grid; gap: 7px; color: #ccc9d3; font-size: .8rem; font-weight: 600; }
#embed-form input:not([type=checkbox]), #embed-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(8,8,13,.55); color: #f3f0f6; padding: 11px 12px; font: inherit; outline: none; }
#embed-form input:focus, #embed-form textarea:focus { border-color: #63c9e4; }
#embed-form textarea { resize: vertical; }
#embed-form input[type=color] { height: 43px; padding: 4px; cursor: pointer; }
.embed-input-row { display: grid; grid-template-columns: 90px 1fr; gap: 14px; }
.embed-action { border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.06); color: #eeeaf4; padding: 8px 12px; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; }
.embed-action:hover { background: rgba(74,205,230,.16); }
.embed-fields-heading, .field-controls { display: flex; justify-content: space-between; align-items: center; color: #ccc9d3; font-size: .8rem; font-weight: 600; }
#embed-fields { display: grid; gap: 12px; }
.embed-field { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }
#embed-form .embed-check { display: flex; align-items: center; gap: 8px; }
.embed-check input { accent-color: #4acde6; }
.preview-badge { color: #aaa4b7; font-size: .6rem; letter-spacing: .1em; }
.discord-preview { display: flex; align-items: flex-start; gap: 12px; background: #313338; border-radius: 10px; padding: 18px; font-family: Arial, sans-serif; color: #dbdee1; font-size: .9rem; }
.discord-preview > img { border-radius: 50%; flex: 0 0 40px; }
.discord-message { min-width: 0; flex: 1; }
.discord-message strong { color: #fff; }
.discord-message small { color: #949ba4; font-size: .68rem; }
.discord-bot { background: #5865f2; color: white; border-radius: 3px; font-size: .6rem; padding: 2px 4px; }
.preview-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.discord-embed { margin-top: 8px; padding: 12px; border-left: 4px solid #4acde6; border-radius: 4px; background: #2b2d31; overflow: hidden; overflow-wrap: anywhere; }
.preview-author, .preview-title { color: white; font-weight: 700; margin-bottom: 8px; }
.preview-description, .preview-fields { white-space: pre-wrap; }
.preview-fields { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.preview-fields .full { grid-column: 1 / -1; }
.preview-thumbnail { float: right; width: 64px; height: 64px; object-fit: cover; border-radius: 4px; margin-left: 10px; }
.preview-image { display: block; max-width: 100%; max-height: 240px; border-radius: 4px; margin-top: 10px; }
.preview-footer { clear: both; padding-top: 10px; font-size: .7rem; }
#embed-json { max-height: 340px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 9px; padding: 15px; background: rgba(0,0,0,.3); color: #a9dce8; font-size: .75rem; }
.embed-hint { font-size: .75rem; margin-top: 12px; }
@media (max-width: 768px) { .embed-page { padding-top: 55px; } .embed-layout { grid-template-columns: 1fr; } .embed-side { position: static; } .embed-panel { padding: 20px; } }

#embed-script { max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 9px; padding: 15px; background: rgba(0,0,0,.3); color: #a9dce8; font-size: .75rem; }
.preview-author, .preview-footer { display: flex; align-items: center; gap: 8px; }
.preview-icon { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
a.preview-title { display: block; color: #00a8fc; text-decoration: none; }

/* Keep status reachable in the top bar at every screen size. */
@media (min-width: 769px) and (max-width: 1000px) {
  .top-bar-inner { gap: 8px; }
  .nav-link { padding: 8px 9px; }
}
@media (max-width: 768px) {
  .top-bar-inner { gap: 8px; }
  .top-bar-actions { gap: 10px; }
}
@media (max-width: 360px) {
  .brand { gap: 6px; }
  .top-bar-actions { gap: 5px; }
  .top-bar-actions .m3-btn { padding: 0 10px !important; }
}
@media (max-width: 768px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* Liquid glass surfaces */
body {
  background-color: #071018;
  background-image: radial-gradient(ellipse 55% 650px at 18% 0, rgba(20, 145, 185, .23), transparent 75%), radial-gradient(ellipse 50% 700px at 85% 28%, rgba(30, 102, 175, .19), transparent 75%);
}
.m3-top-app-bar, .m3-top-app-bar.scrolled, .m3-bottom-nav {
  background: rgba(9, 24, 34, .68);
  border-color: rgba(183, 236, 255, .18);
  box-shadow: inset 0 1px rgba(255, 255, 255, .14), 0 12px 40px rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}
.feature-card, .feature-large, .chat-preview, .final-cta, .legal-card, .command-card, .embed-panel, .m3-card, .m3-search-bar {
  background: linear-gradient(135deg, rgba(158, 229, 249, .14), rgba(70, 147, 180, .045) 48%, rgba(12, 35, 51, .48));
  border: 1px solid rgba(189, 237, 250, .2);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .2), inset 1px 0 rgba(180, 233, 250, .08), 0 18px 50px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
}
.feature-card { isolation: isolate; }
.feature-card::before {
  content: '';
  position: absolute;
  inset: -60%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(128, 230, 255, .19), transparent 55%);
  transform: translate(-35%, -35%);
  opacity: .55;
}
.m3-btn, .m3-chip, .page-btn {
  box-shadow: inset 0 1px 1px rgba(255,255,255,.24), 0 8px 22px rgba(0,0,0,.16);
}
@media (prefers-reduced-motion: no-preference) {
  .feature-card::before { animation: glass-drift 9s ease-in-out infinite alternate; }
  .feature-card:nth-child(2)::before { animation-delay: -3s; }
  .feature-card:nth-child(3)::before { animation-delay: -6s; }
  @keyframes glass-drift {
    from { transform: translate(-35%, -35%) scale(.9); }
    to { transform: translate(35%, 30%) scale(1.2); }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature-card, .command-card, .embed-panel {
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  }
  .feature-card:hover, .command-card:hover, .embed-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(159, 235, 255, .45);
    box-shadow: inset 0 1px 2px rgba(255,255,255,.3), 0 22px 50px rgba(0,0,0,.24), 0 0 30px rgba(64,190,220,.08);
  }
}

/* Dark, blue-tinted theme */
:root { --ctp-mauve:#79baff; --ctp-pink:#8ac9ff; --ctp-lavender:#91c5fa; --ctp-sapphire:#86caff; --ctp-base:#0b0d12; --ctp-mantle:#10141c; --ctp-crust:#090c12; --ctp-surface0:#19202c; --ctp-surface1:#293342; --ctp-surface2:#3b485b; --ctp-text:#e8edf5; --ctp-subtext0:#9da9b9; --ctp-subtext1:#bdc8d5; --md-sys-color-primary-container:rgba(103,174,245,.15); }
body { font-family:Manrope,system-ui,sans-serif; color:#e8edf5; background-color:#0b0d12; background-image:radial-gradient(ellipse 55% 650px at 12% 0,rgba(40,104,171,.15),transparent 75%),radial-gradient(ellipse 45% 650px at 90% 35%,rgba(39,86,144,.12),transparent 75%); }
h1,h2,h3,.brand-text { font-family:Syne,Manrope,sans-serif; }
.m3-top-app-bar,.m3-top-app-bar.scrolled { top:12px; left:50%; transform:translateX(-50%); width:min(1040px,calc(100% - 32px)); height:auto; border:1px solid rgba(169,202,239,.12); border-radius:18px; background:rgba(12,16,23,.83); box-shadow:0 14px 40px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.04); }
.top-bar-inner { min-height:64px; }
.brand-logo { border-radius:50%; }
.nav-link { border-radius:10px; color:#9ca9b9; }
.nav-link:hover,.nav-link.active { color:#e9f4ff; background:rgba(113,175,242,.12); }
.top-bar-actions .m3-btn { color:#b6dbff; background:rgba(112,176,242,.1); border-color:rgba(112,176,242,.22); }
.hero { min-height:610px; padding-top:145px; }
.hero::before { background:radial-gradient(ellipse,rgba(58,126,206,.15),transparent 70%); }
.hero h1 em,.section-intro h2 em,.final-cta h2 em { color:#86bfff; }
.hero-eyebrow,.eyebrow { color:#8ec5fb; }
.hero-eyebrow { background:rgba(112,176,242,.08); border-color:rgba(112,176,242,.2); }
.hero-primary { background:#88bfff; color:#0a182a; }
.hero-primary:hover { background:#b0d6ff; }
.hero-secondary { background:rgba(255,255,255,.035); border-color:rgba(185,210,240,.15); color:#e8edf5; }
.feature-card,.feature-large,.chat-preview,.final-cta,.legal-card,.command-card,.embed-panel,.m3-card,.m3-search-bar { background:linear-gradient(145deg,rgba(38,48,63,.72),rgba(15,20,29,.78)); border:1px solid rgba(174,201,231,.12); box-shadow:inset 0 1px rgba(255,255,255,.04),0 18px 50px rgba(0,0,0,.16); }
.feature-card::before { background:radial-gradient(ellipse,rgba(92,161,235,.12),transparent 55%); }
.feature-icon,.feature-icon.blue,.feature-icon.pink { color:#8fc6ff; background:rgba(114,176,240,.1); }
.chips-scroll-container { background:rgba(11,15,22,.95); }
.m3-bottom-nav { background:rgba(12,16,23,.9); border-color:rgba(169,202,239,.14); }
.embed-kicker { color:#8ec5fb; }
#embed-form input:focus,#embed-form textarea:focus { border-color:#88bfff; }
.embed-check input { accent-color:#88bfff; }
@media(max-width:768px) { .m3-top-app-bar,.m3-top-app-bar.scrolled { top:8px; width:calc(100% - 20px); border-radius:14px; } .hero { padding-top:125px; } }

/* Center the floating bar within the viewport. */
.m3-top-app-bar,.m3-top-app-bar.scrolled { left:auto; right:auto; transform:none; margin-inline:auto; }

/* Play the opening animation once per tab; keep subsequent navigation immediate. */
.site-intro { animation-duration: 900ms; background: radial-gradient(circle, #142c45, #0b0d12 65%); }
.site-intro-icon { animation-duration: 900ms; }
html.intro-seen .site-intro { display: none; }
@view-transition { navigation: auto; }

/* Keep command category counts consistent with the site's blue accent. */
.chips-scroll-container .m3-badge { color: var(--ctp-mauve); background: rgba(121, 186, 255, .14); }
.chips-scroll-container .m3-chip.active .m3-badge { color: #0b213b; background: rgba(255, 255, 255, .35); }

/* Use one typeface throughout the site. */
body, h1, h2, h3, .brand-text, .start-steps li > span { font-family: Manrope, system-ui, sans-serif; }

/* Bring the homepage content closer to the navigation. */
.hero { padding-top: 50px; }
@media (max-width: 768px) { .hero { padding-top: 30px; } }

/* Align the embed page's opening spacing with the homepage. */
.embed-page { padding-top: 50px; }
@media (max-width: 768px) { .embed-page { padding-top: 30px; } }

/* Button style picker in the embed generator */
.embed-style-field { display: grid; gap: 7px; color: #ccc9d3; font-size: .8rem; font-weight: 600; }
.embed-style-dropdown { position: relative; }
.embed-style-dropdown summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(8,8,13,.55); color: #f3f0f6; cursor: pointer; }
.embed-style-dropdown summary::-webkit-details-marker { display: none; }
.embed-style-dropdown summary:focus-visible, .embed-style-options button:focus-visible { outline: 2px solid #63c9e4; outline-offset: 2px; }
.embed-style-dropdown[open] summary { border-color: #63c9e4; }
.embed-style-current, .embed-style-options button { display: flex; align-items: center; gap: 10px; }
.embed-style-arrow { color: #a6a4b1; font-size: 1rem; line-height: 1; }
.embed-style-dropdown[open] .embed-style-arrow { transform: rotate(180deg); }
.embed-style-options { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; display: grid; gap: 2px; padding: 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #1b1b24; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.embed-style-options button { width: 100%; border: 0; border-radius: 6px; padding: 9px 8px; background: transparent; color: #eeeaf4; font: inherit; text-align: left; cursor: pointer; }
.embed-style-options button:hover, .embed-style-options button[aria-pressed=true] { background: rgba(99,201,228,.13); }
.embed-style-swatch { flex: 0 0 11px; width: 11px; height: 11px; border-radius: 50%; background: #5865f2; }
.embed-style-swatch[data-color=gray], .embed-style-swatch[data-color=link] { background: #888b96; }
.embed-style-swatch[data-color=green] { background: #3ba55d; }
.embed-style-swatch[data-color=red] { background: #ed4245; }
.embed-style-swatch[data-color=link] { border-radius: 3px; }
