@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Geist:wght@100..900&display=swap');

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

:root {
    /* Brand Strategy Colors: Black, White, and Amber Accent (#f2994a) */
    /* Dark Mode Foundations */
    --navy:      #0a0a0c;          /* Deep Black Base */
    --navy-mid:  #121215;          /* Charcoal Midground */
    --navy-card: #18181c;          /* Muted Surface Card */
    --navy-light:#222227;          /* High-contrast Structural Surface */
    
    /* Hero Amber Accents */
    --gold:      #f2994a;          /* Signature Tech Accent */
    --gold-light:#ffb366;          /* Bright Highlight Amber */
    --gold-dim:  rgba(242,153,74,0.12);
    --gold-glow: rgba(242,153,74,0.25);
    
    /* Typography System */
    --text:      #f5f5f7;          /* Stark White Off-text */
    --text-dim:  #a0a0aa;          /* Muted Structural Grey */
    --text-muted:#606067;          /* Dimmed Border and Label text */
    
    /* Structural Elements */
    --border:    rgba(242,153,74,0.20);
    --border-subtle: rgba(255,255,255,0.06);
    --cream:     #f5f0e8;
    --cream-dim: #ede8df;
    
    /* System Feedback States */
    --danger:    #df4738;
    --danger-dim:rgba(223,71,56,0.15);
    --success:   #1ea26d;
    --success-dim:rgba(30,162,109,0.15);
    --warning:   #f2994a;
    --warning-dim:rgba(242,153,74,0.15);
    
    /* Structural Dimensions */
    --sidebar-w: 260px;
    --radius:    6px;
    --shadow:    0 8px 32px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════
   PUBLIC NAV (Unauthenticated Landing Viewports)
   ══════════════════════════════════════════════════════════════════════════ */
.public-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    background: linear-gradient(to bottom, rgba(10,10,12,0.96), rgba(10,10,12,0.0));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.public-nav + .main {
    padding-top: 0;
}
.nav-brand {
    font-family: 'Geist';
    font-size: 40px;          
    font-weight: 800;         
    color: var(--text);
    letter-spacing: -0.03em;  
    text-decoration: none;
    transition: color 0.2s;
}
.nav-brand span {
    color: var(--gold);
}
.nav-links { display: flex; gap: 12px; align-items: center; }
.nav-btn {
    padding: 9px 22px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
}
.nav-btn-ghost { color: var(--text-dim); border: 1px solid transparent; }
.nav-btn-ghost:hover { color: var(--text); border-color: var(--border); background: rgba(255,255,255,0.03); }
.nav-btn-gold {
    background: var(--gold);
    color: #000000;
    border: 1px solid var(--gold);
    font-weight: 600;
}
.nav-btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--gold-glow);
}
.nav-btn-ghost:hover { color: var(--text); border-color: var(--border); background: rgba(255,255,255,0.03); }
.nav-features-link {
    color: var(--text-dim);
    font-size: 0.82rem;
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.15s;
}
.nav-features-link:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════════════
   SIDEBAR (Authenticated Panel Workspace Architecture)
   ══════════════════════════════════════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--navy-mid);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    z-index: 101; /* Bumped slightly above topbar layer shadow rules */
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-brand {
    padding: 20px 18px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}
.sidebar-brand-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sidebar-brand-text { overflow: hidden; }
.sidebar-brand-name {
    font-family: 'Geist', 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.sidebar-brand-name span { color: var(--gold); }
.sidebar-brand-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 3px;
    white-space: nowrap;
}
.sidebar-brand-icon {
    display: none;
    font-size: 1.3rem;
    color: var(--gold);
    flex-shrink: 0;
}
#sidebar-toggle {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 10px;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.15s ease;
    line-height: 1;
}
#sidebar-toggle:hover { color: var(--gold); border-color: var(--gold); background: rgba(255,255,255,0.03); }

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.nav-section-label {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 16px 24px 6px;
    white-space: nowrap;
    overflow: hidden;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}
.nav-link:hover { color: var(--text); background: var(--border-subtle); }
.nav-link.active {
    color: var(--gold);
    border-left-color: var(--gold);
    background: var(--gold-dim);
    font-weight: 500;
}
.nav-link .icon { font-size: 1rem; width: 18px; text-align: center; opacity: 0.8; flex-shrink: 0; }
.nav-link .nav-label { overflow: hidden; }

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-family: 'DM Mono', monospace;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Document Submenu Navigation */
.doc-submenu {
    display: none;
    background: rgba(0,0,0,0.2);
    border-left: 2px solid var(--border-subtle);
    overflow: hidden;
}
.doc-submenu.open { display: block; }
.doc-submenu .nav-link {
    padding: 8px 16px 8px 36px;
    font-size: 0.82rem;
    border-left: none;
}
.doc-submenu .nav-link.active {
    color: var(--gold);
    background: var(--gold-dim);
}
.doc-submenu .nav-link:hover { background: rgba(255,255,255,0.04); }

.nav-link-parent { cursor: pointer; user-select: none; }
.nav-arrow {
    margin-left: auto;
    font-size: 0.62rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.nav-arrow.open { transform: rotate(180deg); }

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}
.sidebar-footer a { color: var(--text-dim); text-decoration: none; }
.sidebar-footer a:hover { color: var(--gold); }

/* Collapsed Sidebar Rules Layout */
body.sidebar-collapsed .sidebar { width: 64px; }
body.sidebar-collapsed .sidebar-brand-text,
body.sidebar-collapsed .nav-section-label,
body.sidebar-collapsed .nav-arrow,
body.sidebar-collapsed .nav-badge,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .sidebar-footer { display: none; }
body.sidebar-collapsed .sidebar-brand-icon { display: block; }
body.sidebar-collapsed .sidebar-brand { padding: 16px 12px; }
body.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 14px 0;
    border-left: 3px solid transparent;
    gap: 0;
}
body.sidebar-collapsed .nav-link.active { border-left-color: var(--gold); }
body.sidebar-collapsed .nav-link .icon  { width: auto; font-size: 1.15rem; opacity: 1; }
body.sidebar-collapsed .doc-submenu     { display: none !important; }
body.sidebar-collapsed #sidebar-toggle  { transform: scaleX(-1); }

body.sidebar-collapsed .sidebar-nav { overflow: visible; }
body.sidebar-collapsed .nav-link    { overflow: visible; }
body.sidebar-collapsed .nav-link::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy-mid);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 6px 12px;
    font-size: 0.8rem;
    color: var(--text);
    white-space: nowrap;
    z-index: 200;
    pointer-events: none;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity 0.15s ease;
}
body.sidebar-collapsed .nav-link:hover::after { opacity: 1; }

/* Mobile Menu Backdrop Mask Layer overlay click area */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
}
body.sidebar-open .sidebar-overlay { display: block; }

/* ══════════════════════════════════════════════════════════════════════════
   MAIN CONTAINER WORKSPACE
   ══════════════════════════════════════════════════════════════════════════ */
.main {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
body.has-sidebar .main {
    margin-left: var(--sidebar-w);
}
body.has-sidebar.sidebar-collapsed .main {
    margin-left: 64px;
}

.topbar {
    background: var(--navy-mid);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-left-wrapper { display: flex; align-items: center; gap: 12px; }
.mobile-menu-trigger {
    display: none;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text);
    border-radius: var(--radius);
    padding: 6px;
    cursor: pointer;
}
.mobile-menu-trigger:hover { color: var(--gold); border-color: var(--gold); }

.topbar-title {
    font-family: 'Geist', 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}
.topbar-actions { display: flex; align-items: center; gap: 16px; }

.content { padding: 32px; flex: 1; }
body:not(.has-sidebar) .content { padding: 0; }

#bg-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.noise { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════════════════
   CARDS & DATA CONTAINERS
   ══════════════════════════════════════════════════════════════════════════ */
.card { background: var(--navy-mid); border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; }
.card-header { padding: 16px 24px; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; }
.card-title  { font-family: 'Geist', 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.card-body   { padding: 24px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--navy-card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 20px 22px; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); }
.stat-card.danger::before  { background: var(--danger); }
.stat-card.success::before { background: var(--success); }
.stat-card.warning::before { background: var(--warning); }
.stat-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.stat-value { font-family: 'DM Mono', monospace; font-size: 2rem; font-weight: 500; color: var(--text); line-height: 1; }
.stat-sub   { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }

/* ══════════════════════════════════════════════════════════════════════════
   INTERACTIVE BUTTONS SYSTEM
   ══════════════════════════════════════════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: var(--radius); font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 500; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: all 0.15s ease; white-space: nowrap; }
.btn-primary { background: var(--gold); color: #000000; border-color: var(--gold); font-weight: 600; }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold-dim); }
.btn-ghost   { background: transparent; color: var(--text-dim); border-color: var(--border-subtle); }
.btn-ghost:hover { color: var(--text); background: var(--border-subtle); }
.btn-danger  { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { opacity: 0.9; }
.btn-warning { background: var(--warning-dim); color: var(--gold); border-color: rgba(242,153,74,0.3); }
.btn-warning:hover { background: rgba(242,153,74,0.25); }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; }

/* ══════════════════════════════════════════════════════════════════════════
   BADGES & LABELS
   ══════════════════════════════════════════════════════════════════════════ */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; font-family: 'DM Mono', monospace; }
.badge-gold    { background: var(--gold-dim);    color: var(--gold); border: 1px solid rgba(242,153,74,0.3); }
.badge-danger  { background: var(--danger-dim);  color: #ff8888;           border: 1px solid rgba(223,71,56,0.3); }
.badge-success { background: var(--success-dim); color: #6cdb9f;           border: 1px solid rgba(30,162,109,0.3); }
.badge-warning { background: var(--warning-dim); color: var(--gold); border: 1px solid rgba(242,153,74,0.3); }
.badge-muted   { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border-subtle); }

/* ══════════════════════════════════════════════════════════════════════════
   DATA TABLES FRAMEWORK
   ══════════════════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
thead th { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border-subtle); transition: background 0.12s ease; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody tr:last-child { border-bottom: none; }
td { padding: 14px 16px; font-size: 0.88rem; vertical-align: middle; }

/* ══════════════════════════════════════════════════════════════════════════
   INPUT INTERFACE FORMS
   ══════════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
input, select, textarea { width: 100%; background: var(--navy-card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 10px 14px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; transition: border-color 0.15s ease, box-shadow 0.15s ease; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
textarea { resize: vertical; min-height: 100px; }
select { appearance: none; cursor: pointer; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: #ff8888; font-size: 0.78rem; margin-top: 5px; }
.form-help  { color: var(--text-muted); font-size: 0.75rem; margin-top: 5px; }

/* ══════════════════════════════════════════════════════════════════════════
   ALERTS SYSTEM FEEDBACK
   ══════════════════════════════════════════════════════════════════════════ */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 0.88rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: var(--success-dim); border: 1px solid rgba(30,162,109,0.3);  color: #6cdb9f; }
.alert-error   { background: var(--danger-dim);  border: 1px solid rgba(223,71,56,0.3);  color: #ff8888; }
.alert-info    { background: var(--gold-dim);    border: 1px solid rgba(242,153,74,0.3); color: var(--gold); }
.alert-warning { background: var(--warning-dim); border: 1px solid rgba(242,153,74,0.3); color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════════════
   UTILITY HELPER CLASSES
   ══════════════════════════════════════════════════════════════════════════ */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.page-header h1 { font-family: 'Geist', 'DM Sans', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.page-header p  { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.divider        { height: 1px; background: var(--border-subtle); margin: 24px 0; }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-danger  { color: #ff8888; }
.text-success { color: #6cdb9f; }
.mono { font-family: 'DM Mono', monospace; }
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 0.9rem; }

.priority-dot    { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.priority-urgent { background: var(--danger); }
.priority-high   { background: #fb8c00; }
.priority-medium { background: var(--gold); }
.priority-low    { background: var(--text-muted); }

.search-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.search-input-wrap { position: relative; flex: 1; min-width: 220px; }
.search-input-wrap input { padding-left: 36px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; }

/* ══════════════════════════════════════════════════════════════════════════
   LIVE NOTIFICATION ROW ITEMS
   ══════════════════════════════════════════════════════════════════════════ */
.notif-item { padding: 14px 20px; border-bottom: 1px solid var(--border-subtle); display: flex; gap: 14px; align-items: flex-start; transition: background 0.12s ease; }
.notif-item:hover { background: var(--border-subtle); }
.notif-item.unread { border-left: 3px solid var(--gold); background: rgba(242,153,74,0.02); }
.notif-item.read   { border-left: 3px solid transparent; opacity: 0.6; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 6px; flex-shrink: 0; }
.notif-dot.read { background: transparent; border: 1px solid var(--text-muted); }
.notif-body { flex: 1; font-size: 0.85rem; }
.notif-case { font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--gold); margin-bottom: 3px; }
.notif-msg  { color: var(--text-dim); line-height: 1.5; }
.notif-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.notif-actions { display: flex; gap: 8px; flex-shrink: 0; }

.hearing-item { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.hearing-date-block { text-align: center; background: var(--navy); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 8px 14px; min-width: 60px; flex-shrink: 0; }
.hearing-date-day { font-family: 'DM Mono', monospace; font-size: 1.4rem; color: var(--gold); line-height: 1; }
.hearing-date-mon { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════════════════
   LANDING SITE ARCHACTIVE HERO
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    text-align: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.1s forwards;
}
.hero-eyebrow-line { height: 1px; width: 36px; background: var(--gold); opacity: 0.6; }

.hero-title {
    font-family: 'Geist', 'DM Sans', sans-serif;
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--text);
    max-width: 820px;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.25s forwards;
}
.hero-title em { font-style: italic; color: var(--text); position: relative; }
.hero-title em::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.7;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 44px;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 72px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.55s forwards;
}
.btn-cta {
    padding: 14px 36px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.22s ease;
    letter-spacing: 0.04em;
}
.btn-cta-primary { background: var(--gold); color: #000000; border: 1px solid var(--gold); }
.btn-cta-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 32px var(--gold-glow); }
.btn-cta-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-cta-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* Dashboard Interactive Workspace Layout Engine Preview */
.preview-wrap { position: relative; width: 100%; max-width: 980px; margin: 0 auto; opacity: 0; animation: fadeUp 1s ease 0.7s forwards; }
.preview-glow { position: absolute; inset: -40px; background: radial-gradient(circle at 50% 50%, rgba(242,153,74,0.08) 0%, transparent 70%); pointer-events: none; }
.preview-frame { border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.preview-bar { background: #121215; border-bottom: 1px solid var(--border-subtle); padding: 12px 20px; display: flex; align-items: center; gap: 8px; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.preview-url { margin-left: 16px; background: rgba(255,255,255,0.04); border-radius: 4px; padding: 4px 14px; font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--text-muted); flex: 1; max-width: 360px; }
.preview-content { background: #121215; display: grid; grid-template-columns: 190px 1fr; min-height: 380px; }
.preview-sidebar { background: #0a0a0c; border-right: 1px solid var(--border-subtle); padding: 20px 0; }
.ps-brand { padding: 0 18px 16px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 12px; font-family: 'Geist', 'DM Sans', sans-serif; font-size: 1rem; color: var(--gold); letter-spacing: -0.01em; }
.ps-label { padding: 8px 18px 4px; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.ps-item { padding: 7px 18px; font-size: 0.73rem; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.ps-item.active { color: var(--gold); background: var(--gold-dim); border-left: 2px solid var(--gold); }
.ps-item.new-item::after { content: 'NEW'; font-size: 0.48rem; letter-spacing: 0.1em; background: var(--gold-dim); color: var(--gold); padding: 1px 5px; border-radius: 3px; margin-left: auto; }
.preview-main { padding: 20px; }
.pm-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.pm-stat { background: #18181c; border: 1px solid var(--border-subtle); border-radius: 6px; padding: 10px 12px; }
.pm-stat-label { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 5px; }
.pm-stat-val { font-family: 'DM Mono', monospace; font-size: 1.2rem; color: var(--text); }
.pm-stat-val.gold   { color: var(--gold); }
.pm-stat-val.danger { color: #ff8888; }
.pm-stat-val.warn   { color: var(--gold); }
.pm-table-head { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; padding: 5px 10px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 2px; }
.pm-th { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.pm-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.02); border-radius: 4px; opacity: 0; animation: rowIn 0.4s ease forwards; }
.pm-row:nth-child(1) { animation-delay: 1.2s; }
.pm-row:nth-child(2) { animation-delay: 1.35s; }
.pm-row:nth-child(3) { animation-delay: 1.5s; }
.pm-row:nth-child(4) { animation-delay: 1.65s; }
.pm-cell { font-size: 0.7rem; color: var(--text-dim); display: flex; align-items: center; }
.pm-cell.title { color: var(--text); font-weight: 500; }
.badge-sm { font-size: 0.58rem; padding: 2px 7px; border-radius: 12px; font-family: 'DM Mono', monospace; }
.badge-progress { background: var(--gold-dim); color: var(--gold); }
.badge-urgent   { background: var(--danger-dim);  color: #ff8888; }
.badge-hearing  { background: var(--success-dim);  color: #6cdb9f; }
.badge-adjourned{ background: rgba(255,255,255,0.05); color: var(--text-dim); }

.ticker-strip { background: var(--navy-card); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: 16px 0; overflow: hidden; position: relative; z-index: 2; }
.ticker-track { display: flex; animation: ticker 28s linear infinite; width: max-content; }
.ticker-item { display: flex; align-items: center; gap: 10px; padding: 0 40px; font-size: 0.78rem; white-space: nowrap; color: var(--text-dim); border-right: 1px solid var(--border-subtle); }
.ticker-item strong { color: var(--gold); font-family: 'DM Mono', monospace; }
.ticker-item .new-badge { font-size: 0.55rem; background: var(--gold-dim); color: var(--gold); padding: 1px 6px; border-radius: 3px; letter-spacing: 0.08em; }

section { position: relative; z-index: 2; }
.section-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.section-eyebrow-line { height: 1px; width: 40px; background: var(--gold); opacity: 0.5; }
.section-eyebrow-text { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.section-title { font-family: 'Geist', 'DM Sans', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; max-width: 560px; letter-spacing: -0.02em; }
.section-sub { font-size: 0.95rem; color: var(--text-dim); line-height: 1.8; max-width: 480px; font-weight: 300; margin-bottom: 60px; }

.features-section { padding: 120px 48px; max-width: 1200px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--navy-card); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 30px 26px; transition: all 0.25s ease; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, transparent, var(--gold), transparent); opacity: 0; transition: opacity 0.3s; }
.feature-card:hover { border-color: rgba(242,153,74,0.4); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-card.is-new { border-color: var(--border); }
.feature-card.is-new::after { content: 'NEW'; position: absolute; top: 14px; right: 14px; font-size: 0.55rem; letter-spacing: 0.12em; background: var(--gold-dim); color: var(--gold); padding: 2px 8px; border-radius: 3px; border: 1px solid var(--border); font-family: 'DM Mono', monospace; }
.feature-icon-wrap { width: 46px; height: 46px; background: var(--gold-dim); border: 1px solid rgba(242,153,74,0.25); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 18px; color: var(--gold); }
.feature-title { font-family: 'Geist', 'DM Sans', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-desc { font-size: 0.83rem; color: var(--text-dim); line-height: 1.75; font-weight: 300; }

.new-features-section { padding: 100px 48px; background: linear-gradient(135deg, rgba(242,153,74,0.02) 0%, transparent 60%); border-top: 1px solid var(--border-subtle); }
.new-features-inner { max-width: 1200px; margin: 0 auto; }
.new-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 60px; }
.new-feature-block { background: var(--navy-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 32px; transition: all 0.25s ease; }
.new-feature-block:hover { border-color: rgba(242,153,74,0.35); box-shadow: var(--shadow); }
.nfb-badge { display: inline-block; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; margin-bottom: 16px; font-family: 'DM Mono', monospace; }
.nfb-badge.new      { background: var(--gold-dim); color: var(--gold);  border: 1px solid rgba(242,153,74,0.25); }
.nfb-badge.improved { background: var(--success-dim);  color: #6cdb9f;      border: 1px solid rgba(30,162,109,0.25); }
.nfb-title { font-family: 'Geist', 'DM Sans', sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: -0.01em; }
.nfb-desc  { font-size: 0.85rem; color: var(--text-dim); line-height: 1.75; font-weight: 300; margin-bottom: 20px; }
.nfb-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.nfb-chip  { font-size: 0.7rem; padding: 4px 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); border-radius: 20px; color: var(--text-dim); font-family: 'DM Mono', monospace; }

.calendar-preview-section { padding: 100px 48px; border-top: 1px solid var(--border-subtle); }
.cal-preview-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.cal-mock { background: var(--navy-card); border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.cal-mock-header { background: #121215; border-bottom: 1px solid var(--border-subtle); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.cal-mock-title { font-family: 'Geist', 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--text); letter-spacing: -0.01em; }
.cal-mock-toggle { display: flex; border: 1px solid var(--border-subtle); border-radius: 4px; overflow: hidden; }
.cal-mock-toggle span { font-size: 0.65rem; padding: 4px 10px; color: var(--text-muted); font-family: 'DM Mono', monospace; }
.cal-mock-toggle span.active { background: var(--gold); color: #000; font-weight: 600; }
.cal-mock-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 16px; gap: 4px; }
.cal-mock-dow { text-align: center; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding-bottom: 8px; font-family: 'DM Mono', monospace; }
.cal-mock-day { aspect-ratio: 1; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 4px 3px; font-size: 0.62rem; color: var(--text-muted); font-family: 'DM Mono', monospace; position: relative; min-height: 36px; }
.cal-mock-day.today { background: var(--gold-dim); border: 1px solid var(--border); color: var(--gold); }
.cal-mock-day.has-events::after { content: ''; position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; }
.cal-mock-day.ev-hearing::after  { background: var(--gold); }
.cal-mock-day.ev-deadline::after { background: var(--danger); }
.cal-mock-day.ev-adj::after      { background: var(--text-muted); }

.team-section { padding: 100px 48px; background: var(--navy-card); border-top: 1px solid var(--border-subtle); }
.team-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.team-mock { background: var(--navy-mid); border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; }
.team-mock-header { background: #121215; border-bottom: 1px solid var(--border-subtle); padding: 14px 20px; font-family: 'Geist', 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text); letter-spacing: -0.01em; }
.team-member { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.02); }
.tm-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; flex-shrink: 0; border: 1px solid var(--border-subtle); background: var(--navy-card); color: var(--gold); }
.tm-info { flex: 1; }
.tm-name { font-size: 0.82rem; color: var(--text); font-weight: 500; }
.tm-role { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; font-family: 'DM Mono', monospace; }

/* AI Document Layout Preview Elements */
.ai-section { padding: 100px 48px; background: linear-gradient(135deg, rgba(242,153,74,0.03) 0%, transparent 60%); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.ai-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ai-doc-preview { background: var(--navy-card); border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.ai-doc-header { background: #121215; border-bottom: 1px solid var(--border-subtle); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.ai-doc-title { font-family: 'Geist', 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text); letter-spacing: -0.01em; }
.ai-doc-badge { font-size: 0.65rem; padding: 3px 10px; background: var(--gold-dim); border: 1px solid var(--border); border-radius: 20px; color: var(--gold); font-family: 'DM Mono', monospace; }
.ai-doc-body { padding: 24px; }
.ai-doc-line { height: 10px; border-radius: 4px; margin-bottom: 10px; background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 100%); background-size: 200% 100%; animation: shimmer 2.5s ease infinite; }
.ai-doc-line.w-full { width: 100%; } .ai-doc-line.w-90 { width: 90%; } .ai-doc-line.w-75 { width: 75%; }
.ai-doc-line.w-60 { width: 60%; }   .ai-doc-line.w-85 { width: 85%; } .ai-doc-line.w-45 { width: 45%; }
.ai-doc-line.gold { background: linear-gradient(90deg, rgba(242,153,74,0.08) 0%, rgba(242,153,74,0.2) 50%, rgba(242,153,74,0.08) 100%); background-size: 200% 100%; height: 12px; animation: shimmer 2s ease infinite; }
.ai-doc-line.thin { height: 7px; opacity: 0.6; }
.ai-doc-line.gap  { margin-top: 20px; }
.ai-doc-line:nth-child(2) { animation-delay: 0.2s; }
.ai-doc-line:nth-child(3) { animation-delay: 0.4s; }
.ai-doc-line:nth-child(4) { animation-delay: 0.6s; }
.ai-template-row { border-top: 1px solid var(--border-subtle); padding: 12px 20px; display: flex; align-items: center; gap: 10px; }
.ai-tmpl-icon { width: 28px; height: 28px; background: var(--gold-dim); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; color: var(--gold); }
.ai-tmpl-info { flex: 1; }
.ai-tmpl-name { font-size: 0.75rem; color: var(--text); }
.ai-tmpl-vars { font-size: 0.62rem; color: var(--text-muted); font-family: 'DM Mono', monospace; margin-top: 2px; }
.ai-tmpl-scope { font-size: 0.58rem; padding: 2px 7px; border-radius: 3px; font-family: 'DM Mono', monospace; }
.ai-tmpl-scope.global { background: var(--gold-dim); color: var(--gold); }
.ai-tmpl-scope.firm   { background: rgba(255,255,255,0.06); color: var(--text-dim); }
.ai-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ai-type-chip { font-size: 0.72rem; padding: 5px 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); border-radius: 20px; color: var(--text-dim); font-family: 'DM Mono', monospace; transition: all 0.2s; cursor: default; }
.ai-type-chip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

.notif-section { padding: 100px 48px; border-top: 1px solid var(--border-subtle); }
.notif-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.notif-mock { background: var(--navy-card); border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; }
.notif-mock-header { background: #121215; border-bottom: 1px solid var(--border-subtle); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.notif-mock-title { font-size: 0.85rem; color: var(--text); font-weight: 500; }
.notif-count { background: var(--danger); color: white; font-size: 0.62rem; padding: 2px 7px; border-radius: 10px; font-family: 'DM Mono', monospace; }

.quote-section { padding: 100px 48px; text-align: center; border-top: 1px solid var(--border-subtle); }
.quote-inner { max-width: 720px; margin: 0 auto; }
.quote-mark { font-family: 'Geist', 'DM Sans', sans-serif; font-size: 5rem; color: var(--gold); opacity: 0.3; line-height: 0.8; margin-bottom: 24px; }
.quote-text { font-family: 'Geist', 'DM Sans', sans-serif; font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-style: italic; color: var(--text); line-height: 1.6; margin-bottom: 28px; letter-spacing: -0.01em; }
.quote-attr { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; }
.quote-divider { width: 40px; height: 1px; background: var(--gold); opacity: 0.4; margin: 16px auto; }

.cta-section { padding: 100px 48px; background: var(--navy-card); border-top: 1px solid var(--border-subtle); text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; width: 800px; height: 800px; background: radial-gradient(circle, rgba(242,153,74,0.04) 0%, transparent 65%); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.cta-title { font-family: 'Geist', 'DM Sans', sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px; position: relative; letter-spacing: -0.02em; }
.cta-sub    { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 40px; font-weight: 300; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; position: relative; flex-wrap: wrap; }

footer { background: var(--navy); border-top: 1px solid var(--border-subtle); padding: 32px 48px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.footer-brand { font-family: 'Geist', 'DM Sans', sans-serif; font-size: 1.1rem; color: var(--text); letter-spacing: -0.01em; }
.footer-brand span { color: var(--gold); }
.footer-copy  { font-size: 0.75rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.75rem; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

.tmpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.tmpl-card { background: var(--navy-mid); border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; transition: border-color 0.15s ease, transform 0.15s ease; display: flex; flex-direction: column; }
.tmpl-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.tmpl-top  { padding: 18px 20px 14px; flex: 1; }
.tmpl-type { font-size: 0.68rem; font-family: 'DM Mono', monospace; color: var(--text-muted); margin-bottom: 8px; }
.tmpl-title { font-family: 'Geist', 'DM Sans', sans-serif; font-size: 1rem; color: var(--text); font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.tmpl-desc  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.tmpl-vars  { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tmpl-var   { font-family: 'DM Mono', monospace; font-size: 0.66rem; color: var(--gold); background: var(--gold-dim); border: 1px solid rgba(242,153,74,0.25); padding: 2px 8px; border-radius: 4px; }
.tmpl-footer { padding: 12px 20px; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; background: rgba(0,0,0,0.1); }
.tmpl-meta  { font-size: 0.72rem; color: var(--text-muted); }
.tmpl-actions { display: flex; gap: 6px; }
.scope-badge-firm     { background: rgba(255,255,255,0.06);   color: var(--text-dim);       border: 1px solid var(--border-subtle); }
.scope-badge-global   { background: var(--gold-dim);    color: var(--gold);           border: 1px solid rgba(242,153,74,0.25); }
.scope-badge-personal { background: rgba(255,255,255,0.03); color: var(--text-muted); border: 1px solid var(--border-subtle); }
.tmpl-section-label { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0.04em; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT ENGINES SYSTEM ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeUp  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rowIn  { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes ticker  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes fadeIn  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.fade-in         { animation: fadeIn 0.3s ease both; }
.fade-in-delay   { animation: fadeIn 0.3s ease 0.1s both; }

/* ══════════════════════════════════════════════════════════════════════════
   THEME ACCESSIBILITY TOGGLE SLIDER
   ══════════════════════════════════════════════════════════════════════════ */
.theme-toggle-wrap { display: flex; align-items: center; gap: 7px; flex-shrink: 0; cursor: pointer; }
.theme-toggle-icon { font-size: 0.75rem; color: var(--text-muted); line-height: 1; user-select: none; transition: color 0.2s ease; }
.theme-toggle-track { position: relative; width: 44px; height: 24px; border-radius: 12px; background: var(--navy-card); border: 1px solid var(--border-subtle); cursor: pointer; transition: all 0.25s ease; flex-shrink: 0; }
.theme-toggle-track:hover { border-color: var(--gold); }
.theme-toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; font-size: 0.6rem; box-shadow: 0 1px 3px rgba(0,0,0,0.35); }
.theme-toggle-star { position: absolute; border-radius: 50%; background: rgba(242,153,74,0.45); transition: opacity 0.2s ease; pointer-events: none; }
.ts1 { width: 2px; height: 2px; top: 5px;  right: 9px;  }
.ts2 { width: 2px; height: 2px; top: 10px; right: 6px;  }

[data-theme="light"] .theme-toggle-thumb { transform: translateX(20px); background: #000; }
[data-theme="light"] .theme-toggle-star  { opacity: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   LIGHT MODE ENVIRONMENT (Variables Ecosystem Overwrite — Pure Canvas #ffffff)
   ══════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
    /* Pure Minimalistic Absolute White Canvas Engine Elements */
    --navy:          #ffffff;          /* Pure Canvas White Base Surface */
    --navy-mid:      #ffffff;          /* Pure Canvas White Secondary Area */
    --navy-card:     #ffffff;          /* Pure Canvas White Inner Interface Blocks */
    --navy-light:    #ffffff;          /* Pure Canvas White Focus Highlight Modules */
    --navy-dark:     #ffffff;          /* Pure Canvas White Utility Slots */
    
    /* Elegant High-Contrast Amber Light Accents */
    --gold:          #d4761a;          /* Rich Deepened Amber for Typography Safety */
    --gold-light:    #f2994a;          /* Standard Brand Accent Placement */
    --gold-dim:      rgba(212,118,26,0.08);
    --gold-glow:     rgba(212,118,26,0.15);
    
    /* Readable High-Contrast Slate Typography System */
    --text:          #111115;          /* Off-Black Text */
    --text-dim:      #3e3e47;          /* Standard Body Paragraph Text */
    --text-muted:    #72727e;          /* Muted Secondary Inactive text */
    
    /* Subtle Architectural Outlines */
    --border:        rgba(212,118,26,0.22);
    --border-subtle: rgba(0,0,0,0.08);
    
    /* Soft Overrides for Alert States */
    --danger-dim:    rgba(223,71,56,0.08);
    --success-dim:   rgba(30,162,109,0.08);
    --warning-dim:   rgba(242,153,74,0.08);
}

[data-theme="light"] body   { background: var(--navy); color: var(--text); }
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--navy-mid); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--gold); }

[data-theme="light"] .sidebar          { background: var(--navy-mid); border-right-color: var(--border-subtle); }
[data-theme="light"] .nav-link         { color: var(--text-dim); }
[data-theme="light"] .nav-link:hover   { background: rgba(0,0,0,0.03); color: var(--text); }
[data-theme="light"] .nav-link.active  { color: var(--gold); background: var(--gold-dim); }
[data-theme="light"] .nav-section-label{ color: var(--text-muted); }
[data-theme="light"] .sidebar-brand-name { color: var(--text); }

[data-theme="light"] .topbar           { background: var(--navy); border-bottom-color: var(--border-subtle); }
[data-theme="light"] .card             { background: #ffffff; border-color: var(--border-subtle); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
[data-theme="light"] .card-header      { background: var(--navy-mid); border-bottom-color: var(--border-subtle); }

[data-theme="light"] .btn-primary      { background: var(--gold-light); color: #ffffff; border-color: var(--gold-light); }
[data-theme="light"] .btn-primary:hover { background: var(--gold); border-color: var(--gold); }
[data-theme="light"] .btn-ghost:hover  { background: rgba(0,0,0,0.03); color: var(--text); }

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea           { background: #ffffff; border-color: var(--border-subtle); color: var(--text); }
[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus     { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }

[data-theme="light"] table              { background: #ffffff; }
[data-theme="light"] thead              { background: var(--navy-mid); }
[data-theme="light"] td                 { border-bottom-color: var(--border-subtle); color: var(--text-dim); }
[data-theme="light"] tbody tr:hover     { background: rgba(0,0,0,0.01); }

[data-theme="light"] .stat-card         { background: #ffffff; border-color: var(--border-subtle); box-shadow: 0 4px 16px rgba(0,0,0,0.02); }
[data-theme="light"] .notif-item.unread { background: var(--gold-dim); }
[data-theme="light"] .mono, [data-theme="light"] code { color: var(--gold); }

[data-theme="light"] .preview-content,
[data-theme="light"] .preview-bar,
[data-theme="light"] .preview-sidebar,
[data-theme="light"] .preview-main     { background: #ffffff; }
[data-theme="light"] .preview-sidebar  { background: var(--navy-mid); }
[data-theme="light"] .pm-stat          { background: var(--navy-mid); border-color: var(--border-subtle); }
[data-theme="light"] .preview-frame    { box-shadow: 0 20px 50px rgba(0,0,0,0.06); border-color: var(--border-subtle); }

[data-theme="light"] .cal-mock,
[data-theme="light"] .cal-mock-header,
[data-theme="light"] .team-mock,
[data-theme="light"] .team-mock-header,
[data-theme="light"] .ai-doc-preview,
[data-theme="light"] .ai-doc-header,
[data-theme="light"] .notif-mock,
[data-theme="light"] .notif-mock-header { 
    background: #ffffff;
    border-color: var(--border-subtle);
}
[data-theme="light"] .cal-mock-header,
[data-theme="light"] .team-mock-header,
[data-theme="light"] .ai-doc-header,
[data-theme="light"] .notif-mock-header {
    background: var(--navy-mid);
}

body,
.sidebar, .topbar, .card, .card-header, .stat-card,
input, select, textarea, table, thead, th, td,
.btn-primary, .btn-outline, .btn-ghost, .btn-danger {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* ══════════════════════════════════════════════════════════════════════════
   GLOBAL MOBILE RESPONSIVENESS ARCHITECTURE OVERHAUL
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .public-nav { padding: 16px 24px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-inner, .cal-preview-inner, .team-inner, .notif-inner, .new-features-grid { grid-template-columns: 1fr; gap: 40px; }
    .preview-content { grid-template-columns: 1fr; }
    .preview-sidebar { display: none; }
    .pm-stats { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Critical Fix: Sidebar Responsive Flow Mechanics */
    body.has-sidebar .main { margin-left: 0 !important; }
    body.has-sidebar.sidebar-collapsed .main { margin-left: 0 !important; }
    
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-w) !important; /* Lock structural width on mobile screen drawer view ports */
        box-shadow: none;
    }
    
    /* Triggers menu presentation layer cleanly over top interfaces */
    body.sidebar-open .sidebar {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.4);
    }
    
    /* Ensure the dynamic collapse variables reset properly in mobile drawers */
    body.sidebar-open .sidebar-brand-text,
    body.sidebar-open .nav-section-label,
    body.sidebar-open .nav-arrow,
    body.sidebar-open .nav-badge,
    body.sidebar-open .nav-label,
    body.sidebar-open .sidebar-footer { 
        display: block !important; 
    }
    
    body.sidebar-open .nav-link {
        justify-content: flex-start !important;
        padding: 11px 24px !important;
        gap: 12px !important;
    }
    
    body.sidebar-open .sidebar-brand-icon { display: none !important; }
    
    .topbar { padding: 0 16px; }
    .mobile-menu-trigger { display: block; } /* Reveal mobile toggle switch engine */
    
    /* Adapt core workspace grid layout items for small viewports */
    .fade-in-delay {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

@media (max-width: 600px) {
    /* Critical Fix: Public Landing Nav Stack Fix */
    .public-nav {
        padding: 14px 20px;
        flex-direction: row;
        justify-content: space-between;
    }
    .nav-links { gap: 6px; }
    .nav-btn { padding: 6px 14px; font-size: 0.8rem; }
    
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    
    .features-section, .ai-section, .quote-section, .cta-section,
    .new-features-section, .calendar-preview-section, .team-section,
    .notif-section { padding: 60px 16px; }
    
    footer { flex-direction: column; gap: 16px; text-align: center; padding: 32px 20px; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
    
    .nav-features-link { display: none; }
    .content { padding: 20px 14px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .search-bar { flex-direction: column; align-items: stretch; }
    .search-input-wrap { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════════
   BRAND LOGO COMPONENT SYSTEM
   ══════════════════════════════════════════════════════════════════════════ */
.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    user-select: none;
}

/* Icon Mark Dimensions */
.brand-mark {
    display: flex;
    align-items: flex-end;
    height: 28px;
    flex-shrink: 0;
}

.bar-orange {
    width: 6px;
    height: 28px;
    background-color: var(--gold);
    margin-right: 3px;
    border-radius: 1px;
}

.mark-l {
    width: 16px;
    height: 28px;
    position: relative;
    margin-right: 1px;
}

.mark-l::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 28px;
    background-color: var(--text);
    border-radius: 1px;
}

.mark-l::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 16px;
    height: 6px;
    background-color: var(--text);
    border-radius: 1px;
}

/* Vertical Line Divider */
.brand-divider {
    width: 1.5px;
    height: 32px;
    background-color: var(--text);
    margin: 0 10px;
    opacity: 0.8;
}

/* Right Text Layout */
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text);
    font-family: 'Geist', sans-serif;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.brand-text .top {
    font-size: 15px;
}

.brand-text .bottom {
    font-size: 13.5px;
    margin-top: 1px;
    transform: scaleX(0.92);
    transform-origin: left;
}

/* Collapsed Sidebar Rules */
body.sidebar-collapsed .brand-divider,
body.sidebar-collapsed .brand-text {
    display: none !important;
}

body.sidebar-collapsed .brand-logo-wrap {
    justify-content: center;
    width: 100%;
}