/* =============================================
   WorkerBee — Design System
   Dark industrial theme with amber/gold accents
   ============================================= */

   @import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

   :root {
     --bg-0: #0a0a0c;
     --bg-1: #111116;
     --bg-2: #17171e;
     --bg-3: #1f1f28;
     --bg-4: #27272f;
     --border: rgba(255,255,255,0.07);
     --border-accent: rgba(255,185,0,0.25);

     --gold: #FFB900;
     --gold-dim: #cc9400;
     --gold-faint: rgba(255,185,0,0.08);
     --gold-glow: rgba(255,185,0,0.18);

     --text-0: #f0f0f0;
     --text-1: #b8b8c0;
     --text-2: #707080;
     --text-3: #40404a;

     --discord: #5865F2;
     --telegram: #229ED9;

     --radius: 12px;
     --radius-sm: 6px;
     --radius-lg: 20px;

     --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
     --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   }

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

   html {
     scroll-behavior: smooth;
   }

   body {
     background-color: var(--bg-0);
     color: var(--text-0);
     font-family: 'IBM Plex Mono', monospace;
     font-size: 15px;
     line-height: 1.6;
     -webkit-font-smoothing: antialiased;
     min-height: 100vh;
   }

   h1, h2, h3, h4, h5, h6,
   .font-display {
     font-family: 'Syne', sans-serif;
     letter-spacing: -0.02em;
     line-height: 1.2;
   }

   a {
     color: var(--gold);
     text-decoration: none;
     transition: color var(--transition);
   }
   a:hover { color: #ffd55e; }

   /* ─── SCROLLBAR ─────────────────────────────── */
   ::-webkit-scrollbar { width: 6px; }
   ::-webkit-scrollbar-track { background: var(--bg-1); }
   ::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 99px; }
   ::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

   /* ─── NAVBAR ─────────────────────────────────── */
   .wb-nav {
     position: fixed;
     top: 0; left: 0; right: 0;
     z-index: 1000;
     height: 64px;
     display: flex;
     align-items: center;
     padding: 0 2rem;
     background: rgba(10,10,12,0.82);
     backdrop-filter: blur(16px);
     -webkit-backdrop-filter: blur(16px);
     border-bottom: 1px solid var(--border);
   }

   .wb-nav__brand {
     display: flex;
     align-items: center;
     gap: 10px;
     font-family: 'Syne', sans-serif;
     font-weight: 800;
     font-size: 1.1rem;
     color: var(--text-0);
     text-decoration: none;
   }
   .wb-nav__brand img {
     height: 28px;
     width: auto;
   }
   .wb-nav__brand .brand-dot {
     width: 8px; height: 8px;
     border-radius: 50%;
     background: var(--gold);
     box-shadow: 0 0 10px var(--gold);
     animation: pulse-dot 2.5s ease-in-out infinite;
   }
   @keyframes pulse-dot {
     0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--gold); }
     50% { opacity: 0.6; box-shadow: 0 0 20px var(--gold); }
   }

   .wb-nav__links {
     display: flex;
     align-items: center;
     gap: 0.25rem;
     margin-left: 2rem;
     list-style: none;
   }
   .wb-nav__links a {
     font-family: 'IBM Plex Mono', monospace;
     font-size: 0.8rem;
     color: var(--text-1);
     padding: 6px 12px;
     border-radius: var(--radius-sm);
     transition: all var(--transition);
   }
   .wb-nav__links a:hover {
     color: var(--text-0);
     background: var(--bg-3);
   }

   .wb-nav__actions {
     margin-left: auto;
     display: flex;
     align-items: center;
     gap: 0.5rem;
   }

   /* ─── BUTTONS ────────────────────────────────── */
   .btn {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     padding: 10px 20px;
     border-radius: var(--radius-sm);
     border: none;
     font-family: 'IBM Plex Mono', monospace;
     font-size: 0.8rem;
     font-weight: 500;
     cursor: pointer;
     transition: all var(--transition);
     text-decoration: none;
     white-space: nowrap;
   }

   .btn-primary {
     background: var(--gold);
     color: #0a0a0c;
     font-weight: 700;
   }
   .btn-primary:hover {
     background: #ffd55e;
     color: #0a0a0c;
     transform: translateY(-1px);
     box-shadow: 0 6px 20px rgba(255,185,0,0.35);
   }

   .btn-ghost {
     background: transparent;
     color: var(--text-1);
     border: 1px solid var(--border);
   }
   .btn-ghost:hover {
     border-color: var(--border-accent);
     color: var(--text-0);
     background: var(--gold-faint);
   }

   .btn-danger {
     background: transparent;
     color: #ff6b6b;
     border: 1px solid rgba(255,107,107,0.2);
   }
   .btn-danger:hover {
     background: rgba(255,107,107,0.08);
     border-color: rgba(255,107,107,0.4);
   }

   .d-none { display: none !important; }

   /* ─── HERO ───────────────────────────────────── */
   .wb-hero {
     min-height: 100vh;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     text-align: center;
     padding: 120px 2rem 80px;
     position: relative;
     overflow: hidden;
   }

   .wb-hero__bg {
     position: absolute;
     inset: 0;
     overflow: hidden;
     pointer-events: none;
   }

   /* Honeycomb grid SVG background */
   .wb-hero__hex-grid {
     position: absolute;
     inset: 0;
     opacity: 0.045;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0-6l22-13V19L28 6 6 19v28l22 13z' fill='%23FFB900'/%3E%3C/svg%3E");
     background-size: 56px 100px;
   }

   .wb-hero__glow {
     position: absolute;
     top: 30%;
     left: 50%;
     transform: translate(-50%, -50%);
     width: 600px;
     height: 600px;
     background: radial-gradient(ellipse at center, rgba(255,185,0,0.12) 0%, transparent 70%);
     pointer-events: none;
   }

   .wb-hero__tag {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     padding: 6px 14px;
     border: 1px solid var(--border-accent);
     border-radius: 99px;
     font-size: 0.75rem;
     color: var(--gold);
     background: var(--gold-faint);
     margin-bottom: 1.5rem;
     animation: fade-up 0.6s ease both;
   }

   .wb-hero__title {
     font-family: 'Syne', sans-serif;
     font-size: clamp(3rem, 8vw, 6.5rem);
     font-weight: 800;
     letter-spacing: -0.03em;
     line-height: 1;
     margin-bottom: 1.5rem;
     animation: fade-up 0.6s 0.1s ease both;
   }

   .wb-hero__title .accent { color: var(--gold); }

   .wb-hero__desc {
     max-width: 560px;
     color: var(--text-1);
     font-size: 1rem;
     margin-bottom: 2.5rem;
     animation: fade-up 0.6s 0.2s ease both;
   }

   .wb-hero__cta {
     display: flex;
     gap: 1rem;
     flex-wrap: wrap;
     justify-content: center;
     animation: fade-up 0.6s 0.3s ease both;
   }

   .wb-hero__scroll {
     position: absolute;
     bottom: 2rem;
     left: 50%;
     transform: translateX(-50%);
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 6px;
     color: var(--text-2);
     font-size: 0.7rem;
     animation: fade-up 0.6s 0.5s ease both;
   }
   .wb-hero__scroll-line {
     width: 1px;
     height: 40px;
     background: linear-gradient(to bottom, var(--gold), transparent);
     animation: scroll-line 2s ease-in-out infinite;
   }
   @keyframes scroll-line {
     0% { transform: scaleY(0); transform-origin: top; }
     50% { transform: scaleY(1); transform-origin: top; }
     50.01% { transform: scaleY(1); transform-origin: bottom; }
     100% { transform: scaleY(0); transform-origin: bottom; }
   }

   /* ─── SECTIONS ───────────────────────────────── */
   .wb-section {
     padding: 100px 2rem;
     max-width: 1200px;
     margin: 0 auto;
   }

   .wb-section--full {
     max-width: none;
     padding: 100px 2rem;
   }

   .wb-section__label {
     font-size: 0.7rem;
     text-transform: uppercase;
     letter-spacing: 0.15em;
     color: var(--gold);
     margin-bottom: 0.75rem;
   }

   .wb-section__title {
     font-family: 'Syne', sans-serif;
     font-size: clamp(2rem, 4vw, 3rem);
     font-weight: 800;
     letter-spacing: -0.02em;
     margin-bottom: 1rem;
   }

   .wb-section__desc {
     color: var(--text-1);
     max-width: 500px;
     font-size: 0.95rem;
   }

   /* ─── FEATURE CARDS ──────────────────────────── */
   .wb-features {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 2px;
     border: 2px solid var(--border);
     border-radius: var(--radius-lg);
     overflow: hidden;
     background: var(--border);
   }

   .wb-feature {
     background: var(--bg-1);
     padding: 2.5rem;
     transition: background var(--transition);
     position: relative;
     overflow: hidden;
   }
   .wb-feature::before {
     content: '';
     position: absolute;
     inset: 0;
     background: var(--gold-faint);
     opacity: 0;
     transition: opacity var(--transition);
   }
   .wb-feature:hover::before { opacity: 1; }

   .wb-feature__icon {
     width: 48px; height: 48px;
     border-radius: var(--radius-sm);
     background: var(--bg-3);
     display: flex;
     align-items: center;
     justify-content: center;
     margin-bottom: 1.5rem;
     border: 1px solid var(--border);
   }   .wb-feature__icon svg,
   .wb-feature__icon img {
     width: 24px; height: 24px;
   }

   .wb-feature__title {
     font-family: 'Syne', sans-serif;
     font-size: 1.1rem;
     font-weight: 700;
     margin-bottom: 0.5rem;
   }

   .wb-feature__desc {
     color: var(--text-1);
     font-size: 0.85rem;
     line-height: 1.7;
   }

   .wb-feature__link {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     margin-top: 1.25rem;
     font-size: 0.8rem;
     color: var(--gold);
     font-weight: 500;
     position: relative;
     z-index: 1;
   }
   .wb-feature__link:hover { gap: 10px; }

   /* ─── TEAM ───────────────────────────────────── */
   .wb-team {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 1.5rem;
   }

   .wb-team-card {
     background: var(--bg-1);
     border: 1px solid var(--border);
     border-radius: var(--radius);
     padding: 2rem 1.5rem;
     text-align: center;
     transition: all var(--transition);
     position: relative;
     overflow: hidden;
   }
   .wb-team-card:hover {
     border-color: var(--border-accent);
     transform: translateY(-4px);
     background: var(--bg-2);
   }
   .wb-team-card::after {
     content: '';
     position: absolute;
     bottom: 0; left: 0; right: 0;
     height: 2px;
     background: var(--gold);
     transform: scaleX(0);
     transition: transform var(--transition);
   }
   .wb-team-card:hover::after { transform: scaleX(1); }

   .wb-team-card__avatar {
     width: 72px; height: 72px;
     border-radius: 50%;
     margin: 0 auto 1rem;
     border: 2px solid var(--border);
     object-fit: cover;
     transition: border-color var(--transition);
   }
   .wb-team-card:hover .wb-team-card__avatar { border-color: var(--gold); }

   .wb-team-card__name {
     font-family: 'Syne', sans-serif;
     font-weight: 700;
     font-size: 1rem;
     margin-bottom: 0.25rem;
   }
   .wb-team-card__role {
     font-size: 0.75rem;
     color: var(--text-2);
     margin-bottom: 1rem;
   }

   .wb-team-card__github {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     font-size: 0.75rem;
     color: var(--text-1);
     padding: 5px 12px;
     border: 1px solid var(--border);
     border-radius: var(--radius-sm);
     transition: all var(--transition);
   }
   .wb-team-card__github:hover {
     border-color: var(--gold);
     color: var(--gold);
   }
   .wb-team-card__github img {
     width: 14px; height: 14px;
     filter: invert(1);
     opacity: 0.7;
   }

   /* ─── DIVIDER ────────────────────────────────── */
   .wb-divider {
     border: none;
     height: 1px;
     background: var(--border);
     margin: 0;
   }

   /* ─── FOOTER ─────────────────────────────────── */
   .wb-footer {
     padding: 3rem 2rem;
     max-width: 1200px;
     margin: 0 auto;
     display: flex;
     align-items: center;
     justify-content: space-between;
     flex-wrap: wrap;
     gap: 1.5rem;
   }

   .wb-footer__nav {
     display: flex;
     gap: 1.5rem;
     list-style: none;
     flex-wrap: wrap;
   }
   .wb-footer__nav a {
     font-size: 0.8rem;
     color: var(--text-2);
     transition: color var(--transition);
   }
   .wb-footer__nav a:hover { color: var(--text-0); }

   .wb-footer__copy {
     font-size: 0.75rem;
     color: var(--text-3);
   }

   /* ─── PAGE HEADER ────────────────────────────── */
   .wb-page-header {
     padding: 100px 2rem 40px;
     max-width: 1200px;
     margin: 0 auto;
   }

   .wb-page-header__back {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     font-size: 0.8rem;
     color: var(--text-2);
     margin-bottom: 1.5rem;
     transition: color var(--transition);
   }
   .wb-page-header__back:hover { color: var(--text-0); }

   .wb-page-header__title {
     font-family: 'Syne', sans-serif;
     font-size: clamp(2rem, 5vw, 3.5rem);
     font-weight: 800;
     letter-spacing: -0.03em;
   }

   .wb-page-header__sub {
     color: var(--text-1);
     margin-top: 0.5rem;
     font-size: 0.9rem;
   }

   /* ─── DASHBOARD CARDS ────────────────────────── */
   .wb-dashboard {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 2rem 80px;
   }

   .wb-dash-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 1px;
     border: 1px solid var(--border);
     border-radius: var(--radius-lg);
     overflow: hidden;
     background: var(--border);
   }

   .wb-dash-card {
     background: var(--bg-1);
     padding: 2.5rem;
     display: flex;
     flex-direction: column;
     gap: 1rem;
     transition: background var(--transition);
     cursor: pointer;
     text-decoration: none;
     color: inherit;
     position: relative;
     overflow: hidden;
   }
   .wb-dash-card::before {
     content: '';
     position: absolute;
     top: 0; left: 0; right: 0;
     height: 2px;
     background: linear-gradient(to right, var(--gold), transparent);
     transform: scaleX(0);
     transform-origin: left;
     transition: transform var(--transition);
   }
   .wb-dash-card:hover {
     background: var(--bg-2);
     color: inherit;
   }
   .wb-dash-card:hover::before { transform: scaleX(1); }

   .wb-dash-card__icon {
     width: 52px; height: 52px;
     border-radius: var(--radius);
     background: var(--bg-3);
     border: 1px solid var(--border);
     display: flex;
     align-items: center;
     justify-content: center;
   }
   .wb-dash-card__icon img {
     width: 28px; height: 28px;
     filter: invert(1);
     opacity: 0.7;
   }

   .wb-dash-card__number {
     font-family: 'Syne', sans-serif;
     font-size: 0.65rem;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 0.15em;
     color: var(--gold);
   }

   .wb-dash-card__title {
     font-family: 'Syne', sans-serif;
     font-size: 1.4rem;
     font-weight: 800;
   }

   .wb-dash-card__desc {
     font-size: 0.82rem;
     color: var(--text-1);
     line-height: 1.6;
   }

   .wb-dash-card__arrow {
     margin-top: auto;
     font-size: 0.8rem;
     color: var(--text-2);
     display: flex;
     align-items: center;
     gap: 6px;
     transition: color var(--transition), gap var(--transition);
   }
   .wb-dash-card:hover .wb-dash-card__arrow {
     color: var(--gold);
     gap: 10px;
   }

   /* ─── LOG VIEWER ─────────────────────────────── */
   .wb-log-page {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 2rem 80px;
   }

   .wb-log-toolbar {
     display: flex;
     align-items: center;
     gap: 1rem;
     flex-wrap: wrap;
     margin-bottom: 2rem;
     padding: 1.25rem 1.5rem;
     background: var(--bg-1);
     border: 1px solid var(--border);
     border-radius: var(--radius);
   }

   .wb-search-wrap {
     position: relative;
     flex: 1;
     min-width: 200px;
   }
   .wb-search-wrap input {
     width: 100%;
     background: var(--bg-2);
     border: 1px solid var(--border);
     border-radius: var(--radius-sm);
     padding: 10px 16px 10px 40px;
     color: var(--text-0);
     font-family: 'IBM Plex Mono', monospace;
     font-size: 0.85rem;
     outline: none;
     transition: border-color var(--transition);
   }
   .wb-search-wrap input:focus { border-color: var(--border-accent); }
   .wb-search-wrap input::placeholder { color: var(--text-3); }
   .wb-search-icon {
     position: absolute;
     left: 12px;
     top: 50%;
     transform: translateY(-50%);
     color: var(--text-3);
     pointer-events: none;
   }

   .wb-suggestions {
     position: absolute;
     top: calc(100% + 4px);
     left: 0; right: 0;
     background: var(--bg-2);
     border: 1px solid var(--border);
     border-radius: var(--radius-sm);
     z-index: 100;
     overflow: hidden;
     box-shadow: 0 8px 24px rgba(0,0,0,0.4);
   }
   .wb-suggestions .suggestion-item {
     padding: 10px 16px;
     font-size: 0.85rem;
     cursor: pointer;
     transition: background var(--transition);
     border-bottom: 1px solid var(--border);
     color: var(--text-1);
   }
   .wb-suggestions .suggestion-item:last-child { border-bottom: none; }
   .wb-suggestions .suggestion-item:hover {
     background: var(--bg-3);
     color: var(--text-0);
   }

   .wb-log-container {
     display: flex;
     flex-direction: column;
     gap: 2px;
   }

   .wb-log-container .wb-log-empty {
     text-align: center;
     padding: 4rem 2rem;
     color: var(--text-2);
     font-size: 0.85rem;
     background: var(--bg-1);
     border: 1px solid var(--border);
     border-radius: var(--radius);
   }

   .wb-log-entry {
     background: var(--bg-1);
     border: 1px solid var(--border);
     border-radius: var(--radius-sm);
     padding: 1rem 1.25rem;
     font-size: 0.82rem;
     color: var(--text-1);
     line-height: 1.6;
     transition: all var(--transition);
     display: flex;
     align-items: flex-start;
     gap: 12px;
     animation: log-in 0.3s ease both;
   }
   .wb-log-entry:hover {
     background: var(--bg-2);
     border-color: var(--border-accent);
     color: var(--text-0);
   }

   @keyframes log-in {
     from { opacity: 0; transform: translateX(-8px); }
     to { opacity: 1; transform: translateX(0); }
   }

   .wb-log-entry__dot {
     width: 8px; height: 8px;
     border-radius: 50%;
     margin-top: 5px;
     flex-shrink: 0;
   }
   .dot-gained { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
   .dot-lost { background: #f87171; box-shadow: 0 0 8px #f87171; }
   .dot-joined { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
   .dot-left { background: #f87171; box-shadow: 0 0 8px #f87171; }
   .dot-changed { background: #facc15; box-shadow: 0 0 8px #facc15; }
   .dot-status { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
   .dot-excluded { background: #c084fc; box-shadow: 0 0 8px #c084fc; }
   .dot-default { background: var(--text-3); }

   .wb-log-entry__text { flex: 1; }
   .wb-log-entry__tag {
     color: var(--text-0);
     font-weight: 500;
   }

   /* ─── STATUS CARD (cpostatus single user) ────── */
   .wb-status-card {
     background: var(--bg-1);
     border: 1px solid var(--border-accent);
     border-radius: var(--radius);
     padding: 2rem;
     display: flex;
     flex-direction: column;
     gap: 0.5rem;
     max-width: 480px;
   }
   .wb-status-card__label { font-size: 0.7rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.1em; }
   .wb-status-card__user { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 700; }
   .wb-status-card__days {
     font-size: 2.5rem;
     font-family: 'Syne', sans-serif;
     font-weight: 800;
     color: var(--gold);
     line-height: 1;
   }
   .wb-status-card__sublabel { font-size: 0.8rem; color: var(--text-1); }

   /* ─── INTEGRATION PAGE ───────────────────────── */
   .wb-integration-hero {
     min-height: 45vh;
     display: flex;
     flex-direction: column;
     justify-content: center;
     padding: 120px 2rem 60px;
     max-width: 1200px;
     margin: 0 auto;
     position: relative;
   }

   .wb-integration-icon {
     width: 64px; height: 64px;
     border-radius: var(--radius);
     background: var(--bg-2);
     border: 1px solid var(--border);
     display: flex;
     align-items: center;
     justify-content: center;
     margin-bottom: 2rem;
   }
   .wb-integration-icon img,
   .wb-integration-icon svg {
     width: 32px; height: 32px;
   }

   .wb-feature-list {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
     gap: 1rem;
     margin-top: 3rem;
   }

   .wb-feature-item {
     padding: 1.75rem;
     background: var(--bg-1);
     border: 1px solid var(--border);
     border-radius: var(--radius);
     transition: all var(--transition);
   }
   .wb-feature-item:hover {
     border-color: var(--border-accent);
     background: var(--bg-2);
   }
   .wb-feature-item__title {
     font-family: 'Syne', sans-serif;
     font-weight: 700;
     margin-bottom: 0.5rem;
   }
   .wb-feature-item__desc {
     font-size: 0.82rem;
     color: var(--text-1);
     line-height: 1.7;
   }

   /* ─── LOADING ────────────────────────────────── */
   .wb-spinner {
     display: inline-block;
     width: 20px; height: 20px;
     border: 2px solid var(--border);
     border-top-color: var(--gold);
     border-radius: 50%;
     animation: spin 0.7s linear infinite;
   }
   @keyframes spin { to { transform: rotate(360deg); } }

   .wb-loading {
     display: none;
     align-items: center;
     gap: 10px;
     font-size: 0.8rem;
     color: var(--text-2);
     padding: 2rem;
     justify-content: center;
   }
   .wb-loading.visible { display: flex; }

   /* ─── ANIMATIONS ─────────────────────────────── */
   @keyframes fade-up {
     from { opacity: 0; transform: translateY(20px); }
     to { opacity: 1; transform: translateY(0); }
   }

   .fade-up {
     animation: fade-up 0.5s ease both;
   }

   /* ─── RESPONSIVE ─────────────────────────────── */
   @media (max-width: 768px) {
     .wb-nav__links { display: none; }
     .wb-features { grid-template-columns: 1fr; }
     .wb-footer { flex-direction: column; text-align: center; }
     .wb-dash-grid { grid-template-columns: 1fr; }
     .wb-log-toolbar { flex-direction: column; align-items: stretch; }
   }
