/* Moved out of features-technical.html so the CSP needs no 'unsafe-inline'. */
  /* ── Reset & Base ──────────────────────────────────────────────── */
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  :root {
    --bg: #0B0F1A;
    --surface: #131926;
    --elevated: #1A2236;
    --border: #1E293B;
    --text: #F1F5F9;
    --text2: #94A3B8;
    --text3: #64748B;
    --primary: #6366F1;
    --primary-glow: rgba(99,102,241,.25);
    --cyan: #06B6D4;
    --emerald: #10B981;
    --amber: #F59E0B;
    --rose: #F43F5E;
    --violet: #8B5CF6;
    --pink: #EC4899;
    --orange: #FB923C;
  }
  html { scroll-behavior: smooth; font-size: 16px; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  a { color: var(--cyan); text-decoration: none; }
  a:hover { text-decoration: underline; }
  ::selection { background: var(--primary); color: #fff; }

  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  .text-gradient {
    background: linear-gradient(135deg, #818CF8, #6366F1, #06B6D4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ── Nav ────────────────────────────────────────────────────────── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    background: rgba(11,15,26,.7); backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,.04);
  }
  nav .inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
  }
  nav .logo {
    font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em;
    display: flex; align-items: center; gap: 10px;
  }
  nav .logo-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, #6366F1, #06B6D4);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; color: #fff;
  }
  nav .links { display: flex; gap: 32px; align-items: center; }
  nav .links a { color: var(--text2); font-size: .875rem; font-weight: 500; transition: color .2s; }
  nav .links a:hover { color: var(--text); text-decoration: none; }
  nav .cta-sm {
    padding: 8px 20px; border-radius: 8px; font-size: .875rem; font-weight: 600;
    background: var(--primary); color: #fff; transition: transform .15s, box-shadow .15s;
  }
  nav .cta-sm:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--primary-glow); text-decoration: none; }

  /* ── Hero ───────────────────────────────────────────────────────── */
  .hero {
    padding: 160px 24px 80px;
    text-align: center;
  }
  .hero .overline {
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 20px;
    animation: fadeUp .8s ease both;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.03em;
    line-height: 1.1; max-width: 900px; margin: 0 auto 24px;
    animation: fadeUp .8s .1s ease both;
  }
  .hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text2);
    max-width: 640px; margin: 0 auto 40px; line-height: 1.6;
    animation: fadeUp .8s .2s ease both;
  }
  .hero-stats {
    display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
    animation: fadeUp .8s .3s ease both;
  }
  .hero-stats .stat { text-align: center; }
  .hero-stats .stat-num { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
  .hero-stats .stat-label { font-size: .8rem; color: var(--text3); margin-top: 4px; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── Search & Filter ───────────────────────────────────────────── */
  .controls {
    max-width: 1200px; margin: 0 auto 40px; padding: 0 24px;
  }
  .search-wrap {
    position: relative; max-width: 600px; margin: 0 auto 32px;
  }
  .search-wrap svg {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text3); width: 20px; height: 20px;
  }
  .search-input {
    width: 100%; padding: 14px 16px 14px 48px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; color: var(--text); font-size: 1rem;
    outline: none; transition: border-color .2s, box-shadow .2s;
  }
  .search-input::placeholder { color: var(--text3); }
  .search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
  }
  .search-count {
    text-align: center; color: var(--text3); font-size: .85rem; margin-bottom: 24px;
  }
  .category-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  }
  .cat-tab {
    padding: 6px 16px; border-radius: 100px; font-size: .78rem; font-weight: 600;
    background: var(--surface); color: var(--text3); border: 1px solid var(--border);
    cursor: pointer; transition: all .2s; white-space: nowrap;
  }
  .cat-tab:hover { color: var(--text); border-color: var(--text3); }
  .cat-tab.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
  }

  /* ── Feature Cards ─────────────────────────────────────────────── */
  .features-grid {
    max-width: 1200px; margin: 0 auto; padding: 0 24px 80px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
    gap: 24px;
  }
  .feature-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px; position: relative;
    transition: transform .2s, border-color .3s, box-shadow .3s;
    opacity: 0; transform: translateY(30px);
  }
  .feature-card.visible {
    opacity: 1; transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease, border-color .3s, box-shadow .3s;
  }
  .feature-card:hover {
    border-color: rgba(99,102,241,.3);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    transform: translateY(-2px);
  }
  .feature-card.visible:hover {
    transform: translateY(-2px);
  }
  .card-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
  }
  .card-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
  }
  .card-title { font-size: 1.15rem; font-weight: 700; }
  .card-cat {
    font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text3); margin-top: 2px;
  }
  .card-method-count {
    display: inline-block; font-size: .75rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 100px;
    background: rgba(99,102,241,.12); color: #818CF8;
    margin-bottom: 14px;
  }
  .card-plain {
    font-size: .92rem; color: var(--text2); line-height: 1.6; margin-bottom: 16px;
  }

  /* ── Collapsible technical section ─────────────────────────────── */
  .card-toggle {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none; color: var(--cyan); font-size: .82rem;
    font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 0;
    transition: color .2s;
  }
  .card-toggle:hover { color: #22D3EE; }
  .card-toggle svg {
    width: 16px; height: 16px; transition: transform .25s ease;
  }
  .card-toggle.open svg { transform: rotate(180deg); }
  .card-detail {
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease, margin .2s ease;
  }
  .card-detail.open {
    max-height: 800px;
    margin-top: 14px;
  }
  .card-technical {
    font-size: .82rem; color: var(--text3); line-height: 1.6;
    padding: 14px; background: var(--elevated); border-radius: 10px;
    border: 1px solid var(--border); margin-bottom: 14px;
  }
  .card-technical strong { color: var(--text2); }
  .methods-list {
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .method-tag {
    font-size: .75rem; font-weight: 500; padding: 4px 10px;
    border-radius: 6px; background: var(--elevated); color: var(--text2);
    border: 1px solid var(--border);
  }

  /* ── No results ────────────────────────────────────────────────── */
  .no-results {
    text-align: center; padding: 80px 24px; color: var(--text3);
    grid-column: 1 / -1;
  }
  .no-results p { font-size: 1.1rem; margin-bottom: 8px; }

  /* ── Footer ────────────────────────────────────────────────────── */
  footer {
    text-align: center; padding: 48px 24px; border-top: 1px solid var(--border);
  }
  footer p { color: var(--text3); font-size: .82rem; }
  footer .foot-links { margin-top: 12px; display: flex; gap: 24px; justify-content: center; }
  footer .foot-links a { color: var(--text3); font-size: .8rem; }
  footer .foot-links a:hover { color: var(--text); }

  /* ── Responsive ────────────────────────────────────────────────── */
  @media (max-width: 860px) {
    .features-grid { grid-template-columns: minmax(0, 1fr); }
    .feature-card { min-width: 0; overflow-wrap: anywhere; }
    nav .links { display: none; }
    .hero-stats { gap: 28px; }
  }
  @media (min-width: 1100px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
  }

.no-results-hint { font-size: .85rem; }
