  :root {
    --surface: #23133a;
    --surface2: #2a1647;
    --border: #3a1c63;
    --accent: #883CF0;
    --accent2: #883CF0;
    --accent3: #883CF0;
    --text: #e2eaf4;
    --text-dim: #d6d6d6;
    --text-mid: #d6d6d6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --glow: 0 0 40px #5e309d;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  .delinea-branding-guide {
    background: #191127;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
  }

  /* ─── SCROLLBAR ─── */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: #873cf015; }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 4px; }

  /* ─── BACKGROUND GRID ─── */
  .delinea-branding-guide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,194,199,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,194,199,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  /* ─── SIDEBAR NAV ─── */
  .sidebar {
    position: sticky;
    left: 0; top: 0; bottom: 0;
    width: 260px;
    background: #180f26;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1;
    transition: transform 0.3s ease;
  }

  .sidebar-logo {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-logo .wordmark {
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
  }

  .sidebar-logo .wordmark span {
    color: var(--accent);
  }

  .sidebar-logo .subtitle {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-top: 4px;
    
  }

  .sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
  }

  .nav-section-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 12px 24px 6px;
    margin-top: 8px;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 24px;
    color: var(--text-mid);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
    border-left: 2px solid transparent;
  }

  .nav-item:hover {
    color: var(--text);
    background: #23133a9f;
    border-left-color: #3a1c63;
  }

  .nav-item.active {
    color: var(--accent);
    background: #23133a;
    border-left-color: var(--accent);
  }

  .nav-item .icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    flex-shrink: 0;
  }

  .nav-badge {
    margin-left: auto;
    font-size: 9px;
    background: #1f1232;
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid #3a1c63;
  }

  .sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }

  .progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 6px;
    
  }

  .progress-bar {
    height: 3px;
    background: #282035;
    border-radius: 3px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #c084fc);
    border-radius: 3px;
    transition: width 0.5s ease;
  }

  /* ─── MAIN CONTENT ─── */
  .main {
    /* margin-left: 260px; */
    position: relative;
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    /* z-index: 1; */
  }

  /* ─── HERO ─── */
  .hero {
    padding: 72px 64px 56px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(12, 2, 21, 0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-eyebrow {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--accent);
  }

  .hero h1 {
    font-weight: 800;
    font-size: 52px;
    line-height: 1.05;
    color: var(--text);
    max-width: 700px;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--accent);
  }

  .hero-desc {
    margin-top: 20px;
    font-size: 15px;
    color: var(--text-mid);
    max-width: 560px;
    line-height: 1.7;
    font-weight: 300;
  }

  .hero-tags {
    margin-top: 28px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .tag {
    font-size: 10px;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
  }

  .tag-cyan { background: #23133a; color: var(--accent); border: 1px solid #3a1c63; }
  .tag-blue { background: #1f1232; color: #eaeff4; border: 1px solid #2a1647; }
  .tag-purple { background: rgba(124,58,237,0.1); color: #a78bfa; border: 1px solid rgba(124,58,237,0.2); }

  /* ─── SECTIONS ─── */
  .section {
    display: none;
    padding: 56px 64px;
    animation: fadeIn 0.3s ease;
    min-height: calc(100vh - 80px);
  }

  .section.active { display: block; }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .section-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }

  .section-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
  }

  .icon-bg-cyan { background: #883cf050; border: 1px solid #3a1c63; }
  .icon-bg-blue { background: #3a1c6350; border: 1px solid #5e309d; }
  .icon-bg-purple { background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.2); }
  .icon-bg-green { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.2); }
  .icon-bg-orange { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.2); }

  .section-title-group h2 {
    font-weight: 700;
    font-size: 28px;
    color: var(--text);
  }

  .section-title-group p {
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
  }

  /* ─── CARDS ─── */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
  }

  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
  }

  .card:hover {
    border-color: #5e309d;
    box-shadow: var(--glow);
    transform: translateY(-2px);
  }

  .card-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
  }

  .card h3 {
    
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
  }

  .card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.65;
  }

  /* ─── STEPS ─── */
  .steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .step {
    display: flex;
    gap: 20px;
    position: relative;
  }

  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 44px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.3;
  }

  .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 12px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
  }

  .step-body {
    padding-bottom: 28px;
    flex: 1;
  }

  .step-body h4 {
    
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 6px;
  }

  .step-body p {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.65;
  }

  .step-body .path {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    
    font-size: 11px;
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--accent);
    margin-top: 8px;
  }

  /* ─── NOTE BOXES ─── */
  .note {
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.65;
    margin: 20px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }

  .note-info { background: #1f1232; border: 1px solid #3a1c63; color: var(--text-mid); }
  .note-warn { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2); color: #d4a84b; }
  .note-tip { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.2); color: #4ade80; }
  .note-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

  /* ─── CODE BLOCK ─── */
  .code-block {
    background: #080c11;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
    font-size: 12px;
    color: #ebf2f5;
    margin: 16px 0;
    overflow-x: auto;
    position: relative;
  }

  .code-block .comment { color: #51555c; }
  .code-block .key { color: #c084fc; }
  .code-block .val { color: #34d399; }
  .code-block .str { color: #fbbf24; }

  /* ─── DEMO BOX ─── */
  .demo-box {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin: 24px 0;
  }

  .demo-header {
    background: var(--surface2);
    padding: 10px 16px;
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .demo-header::before {
    content: '◉';
    color: var(--accent);
    font-size: 8px;
  }

  .demo-body {
    padding: 24px;
    background: var(--surface);
  }

  /* ─── COLOR SWATCHES ─── */
  .swatch-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
  }

  .swatch {
    width: 80px;
    text-align: center;
  }

  .swatch-color {
    height: 48px;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid rgba(255,255,255,0.06);
  }

  .swatch-hex {
    
    font-size: 10px;
    color: var(--text-dim);
  }

  .swatch-name {
    font-size: 10px;
    color: var(--text-mid);
    margin-top: 2px;
  }

  /* ─── SPEC TABLE ─── */
  .spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 16px 0;
  }

  .spec-table th {
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 10px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
  }

  .spec-table td {
    padding: 11px 16px;
    border: 1px solid var(--border);
    color: var(--text-mid);
    vertical-align: top;
  }

  .spec-table tr:hover td { background: #1f1232; }

  .spec-table td:first-child {
    
    font-size: 11px;
    color: var(--accent);
    white-space: nowrap;
  }

  /* ─── INTERACTIVE LOGIN PREVIEW ─── */
  .login-preview {
    background: #1f1a2e;
    border-radius: 12px;
    overflow: hidden;
    max-width: 560px;
    margin: 24px auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid #3a1c63;
  }

  .login-banner {
    padding: 20px 30px;
    text-align: center;
    position: relative;
    transition: background 0.4s;
  }

  .login-banner img, .login-banner .logo-placeholder {
    height: 40px;
    display: block;
    margin: 0 auto 8px;
  }

  .login-banner .logo-placeholder {
    height: 40px;
    width: 140px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    text-transform: uppercase;
  }

  .login-org-name {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    transition: color 0.3s;
  }

  .login-form-area {
    padding: 28px 36px 32px;
  }

  .login-field {
    margin-bottom: 14px;
  }

  .login-field label {
    display: block;
    font-size: 11px;
    color: #6b7f96;
    margin-bottom: 6px;
    text-transform: uppercase;
  }

  .login-field input {
    width: 100%;
    background: #111827;
    border: 1px solid #2a3547;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #e2eaf4;
    outline: none;
    
    transition: border-color 0.2s;
  }

  .login-field input:focus { border-color: var(--preview-accent, #00c2c7); }

  .login-btn {
    width: 100%;
    padding: 11px;
    border-radius: 6px;
    border: none;
    
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.2s;
    background: var(--preview-accent, #00c2c7);
    color: #0b0f14;
  }

  .login-btn:hover { opacity: 0.85; transform: translateY(-1px); }

  /* ─── CUSTOMIZER ─── */
  .customizer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-top: 24px;
  }

  .customizer h4 {
    
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .field-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
  }

  .field-group input[type="text"],
  .field-group input[type="color"],
  .field-group select {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text);
    outline: none;
    
    transition: border-color 0.2s;
  }

  .field-group input[type="text"]:focus,
  .field-group select:focus { border-color: var(--accent); }

  .field-group input[type="color"] {
    height: 38px;
    padding: 4px 6px;
    cursor: pointer;
  }

  .color-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
  }

  .color-row .field-group { flex: 1; }

  /* ─── ANNOUNCEMENT BUILDER ─── */
  .announcement-preview {
    border-radius: 10px;
    padding: 20px 24px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
  }

  .announcement-preview .ann-title {
    
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
  }

  .announcement-preview .ann-body {
    font-size: 13px;
    line-height: 1.65;
    opacity: 0.85;
  }

  .announcement-preview .ann-dismiss {
    position: absolute;
    top: 12px; right: 14px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: inherit;
    width: 22px; height: 22px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ─── CHECKLIST ─── */
  .checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.5;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
  }

  .checklist li:hover { border-color: #5e309d; }
  .checklist li.checked { background: #1f1232; border-color:#5e309d; }
  .checklist li.checked .check-icon { color: var(--success); }
  .checklist li.checked .check-text { text-decoration: line-through; color: var(--text-dim); }

  .check-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    transition: all 0.2s;
    margin-top: 1px;
  }

  .checklist li.checked .check-icon {
    background: rgba(16,185,129,0.15);
    border-color: var(--success);
  }

  /* ─── PERMISSION TABLE ─── */
  .perm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 16px 0;
  }

  .perm-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-dim);
  }

  .perm-table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    color: var(--text-mid);
  }

  .perm-table tr:hover td { background:#1f1232; }

  .dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 4px;
  }
  .dot-green { background: var(--success); box-shadow: 0 0 6px var(--success); }
  .dot-yellow { background: var(--warning); }
  .dot-red { background: var(--danger); }

  /* ─── BREADCRUMB ─── */
  .breadcrumb {
    
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .breadcrumb span { color: var(--text-dim); font-size: 10px; }
  .breadcrumb a { color: var(--accent); text-decoration: none; }

  /* ─── TOGGLE ─── */
  .toggle-group {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    flex-wrap: wrap;
  }

  .toggle-btn {
    font-size: 11px;
    text-transform: uppercase;
    padding: 7px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
  }

  .toggle-btn.active, .toggle-btn:hover {
    background: #1f1232;
    border-color: var(--accent);
    color: var(--accent);
  }

  /* ─── DIVIDER ─── */
  .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
  }

  /* ─── H3 STYLE ─── */
  .section h3.sub {
    
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .menu-toggle {
    display: none;
    position: sticky;
    top: 0px; right: 16px;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text);
    font-size: 18px;
  }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 900px) {
    .delinea-branding-guide {
      flex-direction: column;
      }
    .sidebar { position: absolute; top: 30px; transform: translateX(-260px); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .hero, .section { padding: 40px 24px; }
    .hero h1 { font-size: 36px; }
    .field-row { grid-template-columns: 1fr; }
    .menu-toggle { display: flex; }
  }

  

  /* ─── ANIMATED ENTRANCE ─── */
  .hero > * { animation: slideUp 0.5s ease both; }
  .hero > *:nth-child(1) { animation-delay: 0.05s; }
  .hero > *:nth-child(2) { animation-delay: 0.1s; }
  .hero > *:nth-child(3) { animation-delay: 0.15s; }
  .hero > *:nth-child(4) { animation-delay: 0.2s; }

  @keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ─── TWO-COL LAYOUT ─── */
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 20px 0;
  }

  @media (max-width: 700px) {
    .two-col { grid-template-columns: 1fr; }
  }

  /* ─── CALLOUT ─── */
  .callout {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.7;
    margin: 16px 0;
  }

  .callout strong { color: var(--text); }