
  /* ====== Downloads Page ====== */
  .dl-hero {
    background: linear-gradient(135deg, #0a1a0f 0%, #132e1f 50%, #1a4c33 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    margin-top: -4rem;
    position: relative;
    overflow: hidden;
  }
  .dl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 30%, rgba(67,150,156,0.25), transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(78,205,196,0.18), transparent 55%);
    pointer-events: none;
  }
  .dl-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 0;
    text-align: center;
  }
  .dl-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
  }
  .dl-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
  }

  /* Search & filter bar */
  .dl-toolbar {
    max-width: 1200px;
    margin: -2rem auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
  }
  .dl-search-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .dl-search-box svg {
    flex-shrink: 0;
    color: #94a3b8;
  }
  .dl-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: #0f172a;
    background: transparent;
  }
  .dl-search-input::placeholder {
    color: #94a3b8;
  }

  /* Category tabs */
  .dl-tabs {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .dl-tab {
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-weight: 500;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  .dl-tab:hover {
    border-color: #1a4c33;
    color: #1a4c33;
  }
  .dl-tab.active {
    background: #1a4c33;
    border-color: #1a4c33;
    color: #fff;
  }
  .dl-tab .count {
    opacity: 0.7;
    font-size: 0.85em;
    margin-left: 0.4em;
  }

  /* Grid */
  .dl-grid {
    max-width: 1200px;
    margin: 2.5rem auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
  }
  .dl-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
  }
  .dl-card:hover {
    border-color: #1a4c33;
    box-shadow: 0 8px 30px rgba(26,76,51,0.12);
    transform: translateY(-2px);
  }
  .dl-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .dl-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a4c33 0%, #2d7a52 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
  }
  .dl-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  .dl-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem;
    line-height: 1.35;
    letter-spacing: -0.015em;
  }
  .dl-card-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    flex: 1;
  }
  .dl-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
  }
  .dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
  }
  .dl-btn:hover {
    background: #1a4c33;
  }
  .dl-btn svg {
    width: 16px;
    height: 16px;
  }

  .dl-empty {
    grid-column: 1 / -1;
    padding: 4rem 2rem;
    text-align: center;
    color: #94a3b8;
  }
  .dl-empty h3 {
    color: #475569;
    margin: 0 0 0.5rem;
  }

  /* ====== Modal (Lead capture form) ====== */
  .dl-modal {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
  }
  .dl-modal.open {
    display: flex;
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .dl-modal-card {
    background: #fff;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
  }
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .dl-modal-head {
    padding: 1.75rem 2rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
  }
  .dl-modal-head h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.4rem;
  }
  .dl-modal-head p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
  }
  .dl-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.15s;
  }
  .dl-modal-close:hover {
    background: #e2e8f0;
  }
  .dl-form {
    padding: 1.5rem 2rem 2rem;
    display: grid;
    gap: 1rem;
  }
  .dl-field {
    display: grid;
    gap: 0.4rem;
  }
  .dl-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
  }
  .dl-field label .req {
    color: #dc2626;
  }
  .dl-field input,
  .dl-field select,
  .dl-field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: all 0.15s;
  }
  .dl-field input:focus,
  .dl-field select:focus,
  .dl-field textarea:focus {
    border-color: #1a4c33;
    box-shadow: 0 0 0 3px rgba(26,76,51,0.1);
  }
  .dl-field textarea {
    resize: vertical;
    min-height: 70px;
  }
  .dl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  @media (max-width: 520px) {
    .dl-form-row { grid-template-columns: 1fr; }
  }
  .dl-submit {
    margin-top: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: #1a4c33;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }
  .dl-submit:hover {
    background: #0f3622;
  }
  .dl-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  .dl-consent {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .dl-consent input {
    margin-top: 0.2rem;
    flex-shrink: 0;
  }

  /* Thank you screen */
  .dl-thanks {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
  }
  .dl-thanks-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
  }
  .dl-thanks h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
  }
  .dl-thanks p {
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
  }
  .dl-thanks-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: #1a4c33;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
  }
