*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;background:#f8fafc;color:#0f172a;line-height:1.6;-webkit-font-smoothing:antialiased}

/* Nav */
.nav{background:#0f2341;position:sticky;top:0;z-index:100;border-bottom:1px solid rgba(255,255,255,.07)}
.nav-inner{max-width:1080px;margin:0 auto;padding:0 1.5rem;height:58px;display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff}
.logo-img{height:28px;width:auto;display:block}
.logo-sub{font-size:12px;font-weight:500;color:rgba(255,255,255,.4);padding-left:10px;border-left:1px solid rgba(255,255,255,.18);margin-left:2px;text-decoration:none}
.logo-sub:hover{color:rgba(255,255,255,.75)}
.nav-btn{background:#2563eb;color:#fff;text-decoration:none;padding:7px 16px;border-radius:8px;font-size:13px;font-weight:600;transition:background .15s}
.nav-btn:hover{background:#1d4ed8}

/* Hero */
.hero{background:#0f2341;padding:72px 0 64px;text-align:center;position:relative}
.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 90% 60% at 50% 0%,rgba(37,99,235,.28) 0%,transparent 70%);pointer-events:none}
.hero-inner{position:relative;z-index:1;max-width:680px;margin:0 auto;padding:0 1.25rem}
.hero-badge{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:rgba(255,255,255,.7);font-size:.7rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;padding:5px 14px;border-radius:100px;margin-bottom:1.5rem}
.hero-h1{font-size:clamp(2rem,5vw,3.6rem);font-weight:800;line-height:1.1;letter-spacing:-.04em;color:#fff;margin-bottom:.9rem}
.hero-h1 em{font-style:normal;color:#93c5fd}
.hero-sub{font-size:.97rem;color:rgba(255,255,255,.5);max-width:400px;margin:0 auto 2.25rem;line-height:1.7}

/* Search */
.search-wrap{max-width:560px;margin:0 auto;position:relative;z-index:300}
.search-box{position:relative}
.search-box .si{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:18px;height:18px;stroke:rgba(255,255,255,.35);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
input[type=search]{width:100%;padding:15px 46px;font-size:15px;border:1.5px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.1);color:#fff;outline:none;font-family:inherit;-webkit-appearance:none;transition:border-color .15s,background .15s,box-shadow .15s}
input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}
input[type=search]::placeholder{color:rgba(255,255,255,.32)}
input[type=search]:focus{border-color:#60a5fa;background:rgba(255,255,255,.13);box-shadow:0 0 0 4px rgba(96,165,250,.15)}
.clear-btn{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.12);border:none;border-radius:50%;width:23px;height:23px;cursor:pointer;display:none;align-items:center;justify-content:center;color:rgba(255,255,255,.7);font-size:15px;line-height:1;transition:background .12s}
.clear-btn.on{display:flex}
.clear-btn:hover{background:rgba(255,255,255,.2)}
.search-hint{margin-top:10px;font-size:12px;color:rgba(255,255,255,.3)}
.search-hint kbd{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:4px;padding:1px 5px;font-size:11px;font-family:inherit}
.hero-dot{width:6px;height:6px;border-radius:50%;background:#22c55e;flex-shrink:0;display:inline-block}

/* Suggestions dropdown */
.suggestions{position:absolute;top:calc(100% + 5px);left:0;right:0;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 16px 48px rgba(15,35,65,.16),0 4px 16px rgba(15,35,65,.08);overflow:hidden;display:none;z-index:400}
.suggestions.open{display:block;animation:sugIn .14s cubic-bezier(.22,1,.36,1)}
@keyframes sugIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.sug-group-label{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#94a3b8;padding:10px 16px 4px;background:#f8fafc;border-bottom:1px solid #f1f5f9;text-align:left}
.sug-item{display:flex;align-items:center;gap:12px;padding:11px 16px;cursor:pointer;border-bottom:1px solid #f1f5f9;transition:background .1s;text-decoration:none;text-align:left}
.sug-item:last-of-type{border-bottom:none}
.sug-item.active,.sug-item:hover{background:#f0f7ff}
.sug-icon{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;flex-shrink:0}
.sug-icon svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sug-body{flex:1;min-width:0}
.sug-title{font-size:14px;font-weight:600;color:#0f2341;line-height:1.3}
.sug-title mark{background:#fef9c3;font-style:normal;border-radius:2px;padding:0 2px}
.sug-snippet{font-size:12px;color:#64748b;line-height:1.45;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:340px}
.sug-snippet mark{background:#fef9c3;font-style:normal;border-radius:2px;padding:0 2px}
.sug-meta{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex-shrink:0}
.sug-tag{font-size:10px;font-weight:700;background:#dbeafe;color:#1d4ed8;padding:2px 8px;border-radius:100px;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.sug-url{font-size:10px;color:#94a3b8;font-weight:500;white-space:nowrap}
.sug-arrow{color:#cbd5e1;flex-shrink:0;transition:transform .13s,color .13s}
.sug-arrow svg{width:13px;height:13px}
.sug-item.active .sug-arrow,.sug-item:hover .sug-arrow{transform:translateX(2px);color:#2563eb}
.sug-footer{display:flex;align-items:center;justify-content:space-between;padding:9px 16px;background:#f8fafc;border-top:1px solid #e2e8f0}
.sug-footer-q{font-size:12px;font-weight:600;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
.sug-footer-hint{font-size:11px;color:#94a3b8;display:flex;align-items:center;gap:5px;flex-shrink:0}
.sug-kbd{background:#e2e8f0;border:1px solid #cbd5e1;border-radius:4px;padding:1px 5px;font-size:11px;font-family:inherit;color:#475569;line-height:1.4}

/* Main */
.main{padding:48px 0 88px}
.wrap{max-width:1080px;margin:0 auto;padding:0 1.5rem}

/* Results */
#results-section{display:none}
.results-meta{font-size:13px;color:#64748b;margin-bottom:16px}
.results-meta strong{color:#0f172a;font-weight:600}
.r-item{background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:17px 20px;margin-bottom:8px;text-decoration:none;display:flex;align-items:flex-start;gap:13px;transition:border-color .13s,box-shadow .13s,transform .1s}
.r-item:hover{border-color:#bfdbfe;box-shadow:0 4px 14px rgba(15,35,65,.08);transform:translateY(-1px)}
.r-icon{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;flex-shrink:0;margin-top:1px}
.r-icon svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.r-body{flex:1;min-width:0}
.r-title{font-size:15px;font-weight:700;color:#0f2341;margin-bottom:3px}
.r-title mark{background:#fef9c3;border-radius:2px;padding:0 2px;font-style:normal}
.r-url{font-size:11px;color:#2563eb;font-weight:600;margin-bottom:4px}
.r-desc{font-size:13px;color:#64748b;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.r-desc mark{background:#fef9c3;border-radius:2px;padding:0 2px}
.r-tag{font-size:10px;font-weight:700;background:#dbeafe;color:#1d4ed8;padding:2px 9px;border-radius:100px;text-transform:uppercase;letter-spacing:.05em;flex-shrink:0;margin-top:2px}
.r-arrow{color:#cbd5e1;flex-shrink:0;margin-top:4px;transition:transform .13s,color .13s}
.r-arrow svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.r-item:hover .r-arrow{transform:translateX(3px);color:#2563eb}
.no-results{text-align:center;padding:52px 20px;color:#64748b}
.no-results strong{display:block;font-size:17px;color:#0f172a;margin-bottom:6px}

/* Browse */
.sec-label{font-size:.65rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#2563eb;margin-bottom:6px}
.sec-title{font-size:clamp(1.5rem,2.5vw,2rem);font-weight:800;color:#0f2341;letter-spacing:-.04em;margin-bottom:6px}
.sec-desc{font-size:.9rem;color:#64748b;margin-bottom:1.75rem}

/* Pills */
.pills{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:28px}
.pill{display:inline-flex;align-items:center;gap:5px;background:#fff;border:1px solid #e2e8f0;color:#475569;text-decoration:none;padding:6px 13px;border-radius:100px;font-size:13px;font-weight:500;transition:background .12s,color .12s,border-color .12s}
.pill:hover{background:#dbeafe;border-color:#bfdbfe;color:#1d4ed8}
.pill svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}

/* Grid */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.card{background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:22px;text-decoration:none;display:block;position:relative;overflow:hidden;transition:border-color .15s,box-shadow .15s,transform .12s}
.card::after{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#2563eb,#60a5fa);transform:scaleX(0);transform-origin:left;transition:transform .2s}
.card:hover::after{transform:scaleX(1)}
.card:hover{border-color:#bfdbfe;box-shadow:0 6px 18px rgba(15,35,65,.08);transform:translateY(-2px)}
.card-ic{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;margin-bottom:13px}
.card-ic svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.card h3{font-size:14px;font-weight:700;color:#0f2341;margin-bottom:5px}
.card p{font-size:13px;color:#64748b;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card-arr{position:absolute;bottom:14px;right:14px;opacity:0;color:#2563eb;transition:opacity .15s}
.card-arr svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.card:hover .card-arr{opacity:1}

/* Icon tints */
.ic-b{background:#eff6ff;color:#2563eb}.ic-p{background:#f5f3ff;color:#7c3aed}.ic-g{background:#f0fdf4;color:#16a34a}.ic-o{background:#fff7ed;color:#ea580c}.ic-r{background:#fef2f2;color:#dc2626}.ic-t{background:#f0fdfa;color:#0d9488}.ic-pk{background:#fdf4ff;color:#a21caf}.ic-i{background:#eef2ff;color:#4f46e5}.ic-a{background:#fffbeb;color:#d97706}.ic-c{background:#ecfeff;color:#0891b2}.ic-s{background:#f1f5f9;color:#475569}

/* Footer */
.footer{background:#0f2341;border-top:1px solid rgba(255,255,255,.06);padding:26px 24px}
.footer-inner{max-width:1080px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.footer p{font-size:13px;color:rgba(255,255,255,.35)}
.footer-links{display:flex;gap:20px}
.footer-links a{font-size:13px;color:rgba(255,255,255,.35);text-decoration:none;transition:color .13s}
.footer-links a:hover{color:rgba(255,255,255,.75)}

@media(max-width:640px){
  .logo-sub{display:none}
  .hero{padding:52px 0 44px}
  .hero-h1{font-size:2rem}
  .grid{grid-template-columns:1fr}
  .footer-inner{flex-direction:column;text-align:center}
  .footer-links{justify-content:center}
}
