:root { color-scheme: dark; --bg: #120f18; --panel: #1b1625; --line: #362d46; --text: #f4efff; --muted: #b8acc9; --accent: #b38cff; --accent-strong: #8d62dc; --ok: #61d394; }
    * { box-sizing: border-box; }
    body { margin: 0; min-height: 100vh; background: url("/assets/nika-background.png") center / cover fixed no-repeat, var(--bg); color: var(--text); font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
    header { display: flex; align-items: center; gap: 18px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #171121; }
    .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
    .brand-mark { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; background: #3d2569; border: 1px solid var(--accent-strong); }
    h1 { margin: 0; font-size: 18px; }
    nav { display: flex; gap: 8px; align-items: center; }
    a { color: var(--accent); text-decoration: none; }
    .nav-item { min-height: 34px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); padding: 7px 12px; display: inline-flex; align-items: center; }
    .nav-item.active { background: #2a2140; color: var(--text); border-color: #7450b8; }
    .login-link, .button-link { min-height: 36px; border: 1px solid var(--accent-strong); border-radius: 6px; color: var(--text); padding: 8px 13px; display: inline-flex; align-items: center; background: #3d2569; font-weight: 700; }
    .button-link.secondary { background: #211a2d; border-color: var(--line); color: var(--muted); }
    button { min-height: 34px; border: 1px solid var(--line); border-radius: 6px; background: #241d2e; color: var(--text); padding: 0 12px; cursor: pointer; }
    .account-user { display: flex; align-items: center; gap: 8px; color: var(--text); min-height: 34px; }
    .account-avatar { width: 28px; height: 28px; border-radius: 50%; background: #2a2336; flex: 0 0 auto; }
    .spacer { flex: 1; }
    main { width: min(1120px, calc(100vw - 36px)); margin: 0 auto; padding: 28px 0 42px; }
    .hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 18px; align-items: stretch; }
    .panel { background: rgba(27, 22, 37, 0.92); border: 1px solid var(--line); border-radius: 8px; padding: 20px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24); }
    .hero-copy { position: relative; overflow: hidden; }
    .hero-copy::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-top: 3px solid var(--accent); opacity: 0.7; }
    .landing-kicker { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
    .hero-copy h2 { margin: 0 0 12px; font-size: 38px; line-height: 1.08; letter-spacing: 0; }
    .hero-copy p { margin: 0 0 14px; color: var(--muted); font-size: 16px; max-width: 760px; }
    .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
    .feature-grid, .command-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
    .feature, .command { background: rgba(24, 18, 32, 0.94); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
    .feature strong, .command strong { display: block; margin-bottom: 5px; color: var(--text); }
    .feature p, .command p, .muted { margin: 0; color: var(--muted); }
    .command p + p { margin-top: 8px; }
    .command-meta { color: var(--muted); font-size: 13px; }
    .home-hero { grid-template-columns: 1fr; }
    .bot-setup { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr); gap: 18px; margin-top: 18px; align-items: stretch; }
    .setup-steps { counter-reset: setup; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
    .setup-steps li { counter-increment: setup; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; color: var(--muted); }
    .setup-steps li::before { content: counter(setup); display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--accent-strong); border-radius: 50%; color: var(--text); background: #3d2569; font-weight: 800; }
    .setup-steps strong { display: block; margin-bottom: 2px; color: var(--text); }
    .discord-example { display: grid; gap: 10px; margin: 0; }
    .discord-example img { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #2b2d31; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28); }
    .discord-example figcaption { color: var(--muted); font-size: 13px; }
    .note-list { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: var(--muted); }
    .stat { display: grid; gap: 12px; }
    .stat-row { display: grid; gap: 3px; border-bottom: 1px solid var(--line); padding-bottom: 11px; }
    .stat-row:last-child { border-bottom: 0; padding-bottom: 0; }
    .stat-row span { color: var(--muted); font-size: 12px; text-transform: uppercase; }
    .stat-row strong { font-size: 17px; }
    .stat-note { margin-top: auto; border: 1px solid #4b3a67; border-radius: 8px; padding: 12px; background: #211a2d; color: var(--muted); }
    code { color: var(--ok); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
    .invite-bubble { position: fixed; left: 18px; bottom: 18px; z-index: 30; display: grid; grid-template-columns: 81px minmax(0, 315px); gap: 15px; align-items: center; max-width: calc(100vw - 36px); color: var(--text); text-decoration: none; }
    .invite-avatar { width: 81px; height: 81px; border-radius: 50%; object-fit: cover; background: #2a2140; border: 3px solid var(--accent-strong); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), 0 0 0 rgba(179, 140, 255, 0); animation: invite-glow 3.8s ease-in-out infinite; }
    .invite-message { position: relative; display: block; width: 315px; max-width: 100%; min-height: 63px; padding: 15px 20px; border: 1px solid var(--accent-strong); border-radius: 8px; background: rgba(29, 22, 41, 0.96); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), 0 0 0 rgba(179, 140, 255, 0); font-size: 18px; font-weight: 700; animation: invite-glow 3.8s ease-in-out infinite; }
    .invite-message::before { content: ""; position: absolute; left: -9px; top: 26px; width: 16px; height: 16px; background: rgba(29, 22, 41, 0.96); border-left: 1px solid var(--accent-strong); border-bottom: 1px solid var(--accent-strong); transform: rotate(45deg); }
    .invite-text { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--accent); animation: invite-type 1.8s steps(27, end) 0.35s forwards, invite-caret 0.85s step-end 0.35s 4; }
    .invite-seen .invite-text { animation: none; max-width: none; border-right: 0; }
    @keyframes invite-type { to { max-width: 27ch; } }
    @keyframes invite-caret { 50% { border-color: transparent; } }
    @keyframes invite-glow { 0%, 100% { box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), 0 0 0 rgba(179, 140, 255, 0); } 50% { box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), 0 0 18px rgba(179, 140, 255, 0.36); } }
    @media (prefers-reduced-motion: reduce) { .invite-avatar, .invite-message, .invite-text { animation: none; } .invite-text { max-width: none; border-right: 0; } }
    @media (max-width: 780px) { body { background-position: right center; } header { padding: 12px 14px; align-items: stretch; flex-direction: column; } nav { flex-wrap: wrap; } main { width: calc(100vw - 20px); padding-top: 16px; padding-bottom: 118px; } .hero, .bot-setup { grid-template-columns: 1fr; } .hero-copy h2 { font-size: 30px; } .invite-bubble { left: 10px; bottom: 10px; grid-template-columns: 64px minmax(0, 250px); gap: 12px; } .invite-avatar { width: 64px; height: 64px; } .invite-message { width: 250px; min-height: 54px; padding: 12px 16px; font-size: 16px; } }

    header {
      position: sticky;
      top: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      gap: 18px;
      min-height: 63px;
      padding: 14px 24px;
      border-bottom: 1px solid var(--line);
      background: rgba(23, 17, 33, 0.96);
      backdrop-filter: blur(8px);
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 170px;
      color: var(--text);
      text-decoration: none;
    }
    .brand-mark {
      width: 28px;
      height: 28px;
      border-radius: 7px;
      object-fit: cover;
      background: #3d2569;
      border: 1px solid #8d62dc;
      flex: 0 0 auto;
    }
    h1 {
      margin: 0;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.2;
      white-space: nowrap;
    }
    nav {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
      min-width: 0;
    }
    .nav-item {
      min-height: 34px;
      border: 1px solid var(--line);
      border-radius: 6px;
      color: var(--muted);
      padding: 7px 12px;
      display: inline-flex;
      align-items: center;
      text-decoration: none;
      white-space: nowrap;
    }
    .nav-item.active {
      background: #2a2140;
      color: var(--text);
      border-color: #7450b8;
    }
    .nav-item:hover {
      border-color: #7b6a98;
      color: var(--text);
    }
    .login-link {
      min-height: 36px;
      border: 1px solid #8d62dc;
      border-radius: 6px;
      color: var(--text);
      padding: 8px 13px;
      display: inline-flex;
      align-items: center;
      background: #3d2569;
      font-weight: 700;
      white-space: nowrap;
    }
    .account {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--muted);
      min-height: 36px;
    }
    .account-user {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--text);
      min-height: 34px;
      min-width: 0;
    }
    .account-user strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 180px;
    }
    .account-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #2a2336;
      flex: 0 0 auto;
    }
    .spacer { flex: 1; }
    main {
      width: min(1180px, calc(100vw - 36px));
      margin: 0 auto;
      padding: 22px 0 42px;
    }
    @media (max-width: 820px) {
      header {
        min-height: 0;
        padding: 12px 14px;
        align-items: stretch;
        flex-direction: column;
      }
      .brand { min-width: 0; }
      nav { width: 100%; }
      .nav-item {
        flex: 1 1 auto;
        justify-content: center;
      }
      .account {
        align-self: stretch;
        justify-content: space-between;
      }
      main {
        width: calc(100vw - 20px);
        padding-top: 14px;
        padding-bottom: 118px;
      }
    }
