/* ==========================================================================
   ORBIT — main.css
   Design tokens, typography, layout, landing page, dashboard, forms
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens (inherited from observium.io)
   -------------------------------------------------------------------------- */
:root {
  --bg:              #1F1633;
  --bg-card:         #2a1d4a;
  --bg-nav:          #120a24;
  --bg-input:        #1a0f35;
  --bg-soft:         #251643;
  --primary:         #8b5cf6;
  --primary-dark:    #5c3e74;
  --primary-mid:     #563275;
  --primary-light:   #8d5494;
  --primary-glow:    rgba(139, 92, 246, 0.25);
  --accent-lavender: #c3afff;
  --accent-text:     #362d59;
  --status-up:       #34d399;
  --status-down:     #f43f5e;
  --status-warn:     #f59e0b;
  --status-info:     #22d3ee;
  --status-unknown:  #6b7280;
  --text:            #ffffff;
  --text-muted:      #c3afff;
  --text-soft:       rgba(195, 175, 255, 0.7);
  --border:          rgba(139, 92, 246, 0.2);
  --border-soft:     rgba(139, 92, 246, 0.12);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.35);
  --shadow-pop:  0 18px 48px rgba(0, 0, 0, 0.55);
  --transition: 0.2s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-lavender); }

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Public Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
}

p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; }

/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */
.navigation--wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 10, 36, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 1.75rem;
  height: 64px;
  gap: 1rem;
}

.nav-wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
  text-transform: uppercase;
  flex-shrink: 0;
}
.nav-wordmark:hover { color: var(--accent-lavender); }
.wordmark-text { color: inherit; }

/* Orbit Mark: planet + ring */
.orbit-mark {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.orbit-mark-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  transform: rotate(-25deg) scaleY(0.45);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.45);
  animation: orbit-spin 6s linear infinite;
}
.orbit-mark-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}
@keyframes orbit-spin {
  from { transform: rotate(-25deg) scaleY(0.45); }
  to   { transform: rotate(335deg) scaleY(0.45); }
}

.nav-beta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 4px;
  padding: 2px 5px;
  line-height: 1;
  align-self: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1.5rem;
  flex: 1;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.1);
}
.nav-link.is-active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.18);
}

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
  border: 1.5px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.nav-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .nav-user-email { display: none; }
  .nav-links { margin-left: 0.75rem; }
  .nav-link { padding: 0.4rem 0.65rem; font-size: 0.78rem; }
}
@media (max-width: 600px) {
  .nav-signin-label { display: none; }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 0 20px var(--primary-glow); }

.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { background: rgba(139, 92, 246, 0.1); color: var(--text); border-color: var(--primary); }

.btn-danger { background: transparent; color: var(--status-down); border-color: rgba(244, 63, 94, 0.35); }
.btn-danger:hover { background: rgba(244, 63, 94, 0.12); border-color: var(--status-down); }

.btn-success { background: var(--status-up); color: #0f1f17; border-color: var(--status-up); }
.btn-success:hover { background: #6ee7b7; border-color: #6ee7b7; color: #0f1f17; }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.72rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 0.9rem; }
.btn-icon { padding: 0.55rem 0.65rem; }

/* --------------------------------------------------------------------------
   5. Forms
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-lavender);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Public Sans', sans-serif;
  font-size: 1rem;
  padding: 0.65rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-control::placeholder { color: rgba(195, 175, 255, 0.35); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control.is-invalid { border-color: var(--status-down); }

textarea.form-control { resize: vertical; min-height: 96px; font-family: inherit; }

.field-error { font-size: 0.8rem; color: var(--status-down); margin-top: 4px; font-weight: 500; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); opacity: 0.7; margin-top: 4px; }

.form-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   6. Cards & Flash
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.flash-wrapper {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 1.75rem;
}
.flash-wrapper:empty { display: none; }
.flash-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.flash-success { background: rgba(52, 211, 153, 0.1); border-left: 3px solid var(--status-up);   color: var(--status-up); }
.flash-error   { background: rgba(244, 63, 94, 0.1);  border-left: 3px solid var(--status-down); color: var(--status-down); }
.flash-warning { background: rgba(245, 158, 11, 0.1); border-left: 3px solid var(--status-warn); color: var(--status-warn); }

/* --------------------------------------------------------------------------
   7. Landing — Hero
   -------------------------------------------------------------------------- */
.head--wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  background: radial-gradient(70.11% 86.93% at 78% 20%, #8d5494 0%, #563275 52.26%, #1F1633 100%);
}

/* Starfield (decorative, hero only) */
.space {
  position: absolute;
  top: 50%; left: 50%;
  height: 1px; width: 1px;
  background-color: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: opacity;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  contain: strict;
  box-shadow:
    24vw 9vh 1px 0px #fff, 12vw -24vh 0px 1px #fff, -45vw -22vh 0px 0px #fff,
    -37vw -40vh 0px 1px #fff, 29vw 19vh 0px 1px #fff, 4vw -8vh 0px 1px #fff,
    -5vw 21vh 1px 1px #fff, -27vw 26vh 1px 1px #fff, -47vw -3vh 1px 1px #fff,
    -28vw -30vh 0px 1px #fff, -43vw -27vh 0px 1px #fff, 4vw 22vh 1px 1px #fff,
    36vw 23vh 0px 0px #fff, -21vw 24vh 1px 1px #fff, -16vw 2vh 1px 0px #fff,
    -16vw -6vh 0px 0px #fff, 5vw 26vh 0px 0px #fff, -34vw 41vh 0px 0px #fff,
    1vw 42vh 1px 1px #fff, 11vw -13vh 1px 1px #fff, 48vw -8vh 1px 0px #fff,
    22vw -15vh 0px 0px #fff, 45vw 49vh 0px 0px #fff, 43vw -27vh 1px 1px #fff,
    20vw -2vh 0px 0px #fff, 8vw 22vh 0px 1px #fff, 39vw 48vh 1px 1px #fff,
    -21vw -11vh 0px 1px #fff, -40vw 45vh 0px 1px #fff, 11vw -30vh 1px 0px #fff,
    26vw 30vh 1px 0px #fff, 45vw -29vh 0px 1px #fff, -2vw 18vh 0px 0px #fff,
    -29vw -45vh 1px 0px #fff, -7vw -27vh 1px 1px #fff, 42vw 24vh 0px 0px #fff,
    45vw -48vh 1px 0px #fff, -36vw -18vh 0px 0px #fff, -44vw 13vh 0px 1px #fff,
    36vw 16vh 0px 1px #fff, 40vw 24vh 0px 0px #fff, 18vw 11vh 0px 0px #fff,
    -15vw -23vh 1px 0px #fff, -24vw 48vh 0px 1px #fff, 27vw -45vh 1px 0px #fff,
    -2vw -24vh 0px 1px #fff, -15vw -28vh 0px 0px #fff, -43vw 13vh 1px 0px #fff,
    7vw 27vh 1px 0px #fff, 47vw 5vh 0px 0px #fff, -45vw 15vh 1px 1px #fff;
  animation: star-twinkle 4s ease-in-out infinite;
}
@keyframes star-twinkle {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 0.3;  }
}
@media (prefers-reduced-motion: reduce) {
  .space { animation: none; opacity: 0.6; }
}

/* Glow ball */
.glow-container {
  position: absolute;
  bottom: 0;
  left: -150px;
  width: 800px;
  height: 120%;
  transform: rotateY(180deg);
  overflow: visible;
  opacity: 0.16;
  filter: blur(80px) brightness(0.7);
  pointer-events: none;
  z-index: 0;
}
.ball {
  --size: 0.4;
  aspect-ratio: 1;
  width: calc(150% * var(--size));
  background: linear-gradient(259.53deg, #ffffff 6.53%, #7C57FA 95.34%);
  filter: blur(20vw);
  border-radius: 50%;
  position: absolute;
  top: 0; left: 0;
  transform-origin: 50% 50%;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 3.5rem;
  width: 100%;
}

.hero-topline {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-lavender);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1.25rem;
  max-width: 760px;
  letter-spacing: -0.02em;
}
.hero-title span { color: var(--primary); }
.hero-highlight {
  color: #a78bfa;
  background: rgba(10, 6, 20, 0.75);
  padding: 2px 10px;
  margin: 0 0 0 -10px;
  border-radius: 8px;
  display: inline;
  line-height: 1.6;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-usps { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-usp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.875rem 0.35rem 0.7rem;
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(195, 175, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.usp-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   8. Sections
   -------------------------------------------------------------------------- */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
  width: 100%;
}

.section-topline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--primary-glow);
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}
.feature-title { font-size: 1.0625rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* How it works */
.how-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.how-step { padding: 2.25rem 1.75rem; border-right: 1px solid var(--border); position: relative; }
.how-step:last-child { border-right: none; }
.how-step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(139, 92, 246, 0.2);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.how-step-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.4rem; }
.how-step-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner .section-title { color: #fff; margin-bottom: 0.5rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0 auto 1.75rem; max-width: 480px; }
.cta-banner .hero-ctas { justify-content: center; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   9. Auth pages
   -------------------------------------------------------------------------- */
.auth-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  min-height: calc(100vh - 64px);
  background: radial-gradient(70% 60% at 70% 20%, rgba(141, 84, 148, 0.35) 0%, rgba(86, 50, 117, 0.25) 50%, rgba(31, 22, 51, 0) 100%);
  overflow: hidden;
}
.auth-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 20% 80%, rgba(124, 87, 250, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.auth-wrapper > * { position: relative; z-index: 1; }
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}
.auth-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem; text-align: center; }
.auth-sub { font-size: 0.875rem; color: var(--text-muted); text-align: center; margin-bottom: 1.75rem; }
.auth-link { text-align: center; font-size: 0.875rem; color: var(--text-muted); margin-top: 1.5rem; }
.auth-link a { color: var(--primary); font-weight: 600; }

/* --------------------------------------------------------------------------
   10. Dashboard
   -------------------------------------------------------------------------- */
.page-wrap {
  flex: 1;
  padding: 2.5rem 1.75rem 4rem;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.page-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.page-title-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.1em;
}
.page-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; font-weight: 400; }

/* Boards grid */
.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.board-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  min-height: 170px;
}
.board-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow);
  color: inherit;
}
.board-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--board-color, var(--primary));
  border-radius: 4px 0 0 4px;
}
.board-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.board-name { font-family: 'Inter', sans-serif; font-size: 1.0625rem; font-weight: 700; color: var(--text); line-height: 1.3; word-break: break-word; letter-spacing: -0.01em; }
.board-role-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
}
.board-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.board-stat { display: flex; align-items: center; gap: 5px; }
.board-stat svg { opacity: 0.6; flex-shrink: 0; }
.board-stat-num { font-weight: 600; color: var(--text); font-family: 'JetBrains Mono', monospace; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.empty-state-icon { margin: 0 auto 1rem; color: var(--primary); opacity: 0.4; }
.empty-state-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.empty-state-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.75rem; }

/* --------------------------------------------------------------------------
   11. Today view
   -------------------------------------------------------------------------- */
.today-groups { display: flex; flex-direction: column; gap: 2rem; }
.today-group-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.today-group-title .badge-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 7px;
  color: var(--primary);
}

.today-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.today-card {
  display: grid;
  grid-template-columns: 4px 1fr auto auto;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem 0.85rem 0;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), background var(--transition);
  overflow: hidden;
}
.today-card:hover { background: var(--bg-soft); border-color: var(--primary); color: inherit; }
.today-strip { align-self: stretch; background: var(--strip, var(--status-unknown)); }
.today-main { min-width: 0; padding-left: 1rem; }
.today-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.today-board-chip { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; opacity: 0.7; }
.today-due {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.today-due--overdue { color: var(--status-down); }
.today-due--today   { color: var(--status-warn); }
.today-due--soon    { color: var(--accent-lavender); }
.today-due--later   { color: var(--text-muted); opacity: 0.7; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-nav);
}
.footer-inner { max-width: 1480px; margin: 0 auto; padding: 2.5rem 1.75rem 2rem; }
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.footer-wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
}
.footer-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.footer-tagline { font-size: 0.78rem; color: rgba(195, 175, 255, 0.4); margin: 0; }
.footer-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.8rem; color: rgba(195, 175, 255, 0.5); font-weight: 500; transition: color var(--transition); }
.footer-nav a:hover { color: var(--accent-lavender); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-copy { font-size: 0.75rem; color: rgba(195, 175, 255, 0.35); }
.footer-copy a { color: rgba(195, 175, 255, 0.55); font-weight: 500; }
.footer-copy a:hover { color: var(--accent-lavender); }
.footer-copy-right { font-size: 0.7rem; color: rgba(195, 175, 255, 0.25); letter-spacing: 0.05em; text-transform: uppercase; }

/* Scroll-to-top */
#scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(26, 15, 53, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(195, 175, 255, 0.75);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s, color 0.2s;
  pointer-events: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scroll-top:hover { background: rgba(139, 92, 246, 0.18); color: #fff; }

/* --------------------------------------------------------------------------
   13. Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   14. Avatars (reused everywhere)
   -------------------------------------------------------------------------- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.avatar-sm { width: 22px; height: 22px; font-size: 0.58rem; }
.avatar-lg { width: 36px; height: 36px; font-size: 0.78rem; }

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 1.25rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .page-wrap { padding: 2rem 1.25rem 3rem; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 1rem; height: 58px; }
  .nav-wordmark { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .how-step { border-right: none; border-bottom: 1px solid var(--border); }
  .how-step:last-child { border-bottom: none; }
  .hero-content { padding: 3rem 1.25rem 2.5rem; }
  .section { padding: 3rem 1.25rem; }
  .auth-card { padding: 2rem 1.5rem; }
  .page-wrap { padding: 1.5rem 1rem 3rem; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .boards-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 1.25rem; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .cta-banner { padding: 2.5rem 1.25rem; }
  .cta-banner .hero-ctas { flex-direction: column; }
  .cta-banner .hero-ctas .btn { width: 100%; }
}
