:root {
  /* High-Tech Ice & Cyan Theme */
  --bg: #e2e8f0; 
  --surface: rgba(255, 255, 255, 0.75); 
  --card: rgba(255, 255, 255, 0.85); 
  --card2: rgba(241, 245, 249, 0.8);
  --border: rgba(14, 165, 233, 0.3); /* Electric Blue Tech Borders */
  --border2: rgba(14, 165, 233, 0.15);
  --border-glow: rgba(14, 165, 233, 0.6);
  --text: #0f172a; 
  --muted: #334155; 
  --muted2: #475569;
  
  /* Brand Accents */
  --c1: #0ea5e9; /* Tech Cyan */
  --c2: #6366f1; /* Digital Indigo */
  --c3: #10b981; /* Success Green */
  --c4: #f97316;
  --c5: #ec4899; --c6: #eab308; --c7: #06b6d4; --c8: #84cc16;
  --r: 10px; /* Slightly sharper edges for a hardware/IT feel */
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated IT Data Grid Background */
body::before {
  content: '';
  position: fixed;
  inset: -100% 0 0 -100%;
  width: 300%;
  height: 300%;
  background-image: 
    linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(50deg) translateY(-100px) translateZ(-200px);
  animation: gridDataFlow 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Soft glowing orb in the background */
body::after {
  content: '';
  position: fixed;
  top: -20%; left: 20%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  animation: pulseOrb 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT ── */
.page { position: relative; z-index: 1; max-width: 1500px; margin: 0 auto; padding: 0 16px 80px; }

/* ── HEADER ── */
.site-header { text-align: center; padding: 44px 16px 36px; animation: fadeDown .7s ease both; }
.site-logo { display: inline-flex; align-items: center; gap: 8px; font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c2); text-decoration: none; margin-bottom: 14px; }
.hbadge { display: inline-flex; align-items: center; gap: 6px; background: rgba(14, 165, 233, 0.1); border: 1px solid var(--border-glow); border-radius: 4px; padding: 4px 14px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c1); margin-bottom: 14px; box-shadow: 0 0 10px rgba(14, 165, 233, 0.2); }

/* Animated Gradient Title */
h1 { font-family: 'Syne', sans-serif; font-size: clamp(28px, 4.5vw, 54px); font-weight: 800; line-height: 1.07; letter-spacing: -.03em; margin-bottom: 12px; background: linear-gradient(270deg, var(--c1), var(--c2), var(--c1)); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: textStream 5s linear infinite; }
h1 em { font-style: normal; color: var(--text); -webkit-text-fill-color: var(--text); }
.subtitle { color: var(--muted); font-size: 15px; font-weight: 500; max-width: 560px; margin: 0 auto 8px; }
.meta-line { font-size: 12px; color: var(--muted2); margin-top: 6px; font-family: monospace; }
.meta-line a { color: var(--c1); text-decoration: none; }

/* ── STATS ROW ── */
.stats-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 18px 0 32px; }
.stat { text-align: center; background: var(--surface); padding: 12px 24px; border-radius: var(--r); border: 1px solid var(--border); backdrop-filter: blur(10px); box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s; }
.stat:hover { transform: translateY(-3px); border-color: var(--c1); box-shadow: 0 8px 25px rgba(14, 165, 233, 0.2); }
.stat-n { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: var(--c1); }
.stat-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* ── TABS ── */
.tabs-nav { display: flex; justify-content: center; gap: 8px; margin: 0 0 24px; flex-wrap: wrap; }
.tab-btn { display: flex; align-items: center; gap: 7px; padding: 10px 22px; border-radius: 4px; border: 1px solid var(--border); background: var(--card2); color: var(--muted); font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; text-transform: uppercase; letter-spacing: 0.05em; backdrop-filter: blur(8px); }
.tab-btn:hover { border-color: var(--c1); color: var(--c1); box-shadow: inset 0 0 10px rgba(14, 165, 233, 0.1); }
.tab-btn.active { background: rgba(14, 165, 233, 0.1); border-color: var(--c1); color: var(--c1); box-shadow: 0 0 15px rgba(14, 165, 233, 0.3); }
.tab-pane { display: none; animation: fadeUp .4s ease both; }
.tab-pane.active { display: block; }

/* ── SEARCH + FILTER BAR ── */
.controls-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; padding: 14px 16px; background: var(--surface); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--r); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05); }
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .6; pointer-events: none; stroke: var(--c1); }
.search-input { width: 100%; background: #ffffff; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 13px; padding: 8px 12px 8px 36px; outline: none; transition: all .3s; }
.search-input:focus { border-color: var(--c1); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2); }
.search-input::placeholder { color: var(--muted2); font-family: monospace; }

/* ── CATEGORY FILTERS ── */
.cat-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.cf { display: flex; align-items: center; gap: 5px; padding: 5px 13px; border-radius: 4px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-size: 11.5px; font-weight: 700; cursor: pointer; transition: all .2s; white-space: nowrap; font-family: monospace; }
.cf:hover { border-color: var(--c1); color: var(--c1); background: rgba(14, 165, 233, 0.05); }
.cf.active { background: var(--c1); border-color: var(--c1); color: #ffffff; box-shadow: 0 0 12px rgba(14, 165, 233, 0.4); }
.cf-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffffff; flex-shrink: 0; opacity: 0.9; }

/* ── TOOL GRID ── */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }

/* ── TOOL CARD (Tech Scan Effect) ── */
.tc { background: var(--card); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; position: relative; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); }
.tc:hover { transform: translateY(-4px); border-color: var(--c1); box-shadow: 0 10px 40px rgba(14, 165, 233, 0.2); }

/* The Holographic Scanning Beam */
.tc::after { content: ''; position: absolute; top: -100%; left: -50%; width: 200%; height: 30px; background: linear-gradient(to bottom, transparent, rgba(14, 165, 233, 0.5), transparent); transform: rotate(15deg); opacity: 0; pointer-events: none; z-index: 10; }
.tc:hover::after { opacity: 1; animation: cyberScan 1.5s ease-in-out infinite; }

.tc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; position: relative; z-index: 2; }
/* Pulsing Tech Icons */
.tc-icon { width: 42px; height: 42px; border-radius: 8px; background: #ffffff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; box-shadow: 0 0 15px rgba(14, 165, 233, 0.1); animation: iconPulse 3s infinite alternate; }
.tc-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: 0.02em; }
.tc-sub { font-size: 12px; color: var(--muted); margin-top: 1px; font-family: monospace; }
.tool-list { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 2; }

/* ── TOOL ITEM ── */
.ti { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--border2); text-decoration: none; color: inherit; transition: all .2s; }
.ti:hover { background: #ffffff; border-color: var(--c1); transform: translateX(6px); box-shadow: -4px 0 0 var(--c1), 0 4px 12px rgba(14, 165, 233, 0.1); }
.ti-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c1); flex-shrink: 0; margin-top: 6px; box-shadow: 0 0 8px var(--c1); }
.ti-b { flex: 1; min-width: 0; }
.ti-name { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ti-tag { font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 3px; background: rgba(14, 165, 233, 0.1); color: var(--c1); border: 1px solid rgba(14, 165, 233, 0.3); text-transform: uppercase; font-family: monospace; }
.ti-use { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.ti-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ti-cp { font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 3px; background: var(--card2); border: 1px solid var(--border); color: var(--muted); font-family: monospace; }

/* ── RESULTS COUNT ── */
.rcount { font-size: 12px; color: var(--c1); text-align: center; margin-bottom: 12px; font-weight: 700; font-family: monospace; text-transform: uppercase; letter-spacing: 1px; }
.no-res { text-align: center; padding: 50px 20px; color: var(--muted); font-size: 14px; display: none; font-family: monospace; }

/* ── MODELS TAB & TABLES ── */
.model-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.ctrl-group { display: flex; align-items: center; gap: 7px; }
.ctrl-label { font-size: 10.5px; font-weight: 800; color: var(--c1); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; font-family: monospace; }
select { background: #ffffff; border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-family: monospace; font-size: 12px; padding: 7px 28px 7px 10px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230ea5e9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; min-width: 130px; transition: all .2s; outline: none; font-weight: bold; }
select:focus { border-color: var(--c1); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2); }

.tbl-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--border); background: var(--card); backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead tr { background: rgba(14, 165, 233, 0.05); border-bottom: 2px solid var(--border); }
th { padding: 12px 14px; text-align: left; font-family: monospace; font-size: 11px; font-weight: 800; color: var(--text); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; cursor: default; }
th.sortable { cursor: pointer; transition: color 0.2s; }
th.sortable:hover { color: var(--c1); }
th .sa::after { content: '↕'; font-size: 10px; margin-left: 4px; opacity: .4; }
th.sorted-asc .sa::after { content: '↑'; opacity: 1; color: var(--c1); }
th.sorted-desc .sa::after { content: '↓'; opacity: 1; color: var(--c1); }
tbody tr { border-bottom: 1px solid var(--border2); transition: background .15s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.9); box-shadow: inset 4px 0 0 var(--c1); }
td { padding: 12px 14px; vertical-align: middle; }
.mn { font-family: 'Syne', sans-serif; font-weight: 800; color: var(--text); font-size: 14px; }
.mm { font-size: 11px; color: var(--muted); margin-top: 2px; font-family: monospace; }

/* ── PILLS AND BADGES ── */
.badge { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: 10.5px; font-weight: 800; white-space: nowrap; line-height: 1.4; font-family: monospace; text-transform: uppercase; }
.bg { background: rgba(16, 185, 129, 0.15); color: #059669; border: 1px solid rgba(16, 185, 129, 0.4); }
.bb { background: rgba(14, 165, 233, 0.15); color: var(--c1); border: 1px solid var(--border); }
.by { background: rgba(234, 179, 8, 0.15); color: #ca8a04; border: 1px solid rgba(234, 179, 8, 0.4); }
.br { background: rgba(244, 63, 94, 0.15); color: #e11d48; border: 1px solid rgba(244, 63, 94, 0.4); }
.bp { background: rgba(99, 102, 241, 0.15); color: var(--c2); border: 1px solid rgba(99, 102, 241, 0.4); }
.rb { display: flex; align-items: center; gap: 6px; }
.rb-n { font-size: 11.5px; color: var(--text); font-weight: 800; min-width: 44px; font-family: monospace; }
.bt { flex: 1; height: 6px; border-radius: 3px; background: var(--border2); min-width: 50px; overflow: hidden; }
.bf { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.stars { color: var(--c6); letter-spacing: 1px; font-size: 12px; }
.use-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.up { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; background: #ffffff; border: 1px solid var(--border); color: var(--muted); font-family: monospace; }

/* ── TOP NAV ── */
.top-nav { position: sticky; top: 0; z-index: 100; background: rgba(241, 245, 249, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 0 24px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.top-nav-inner { max-width: 1500px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 8px; }
.nav-brand { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--text); white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.nav-brand::before { content: '>'; color: var(--c1); font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-link { display: inline-flex; align-items: center; min-height: 38px; font-family: monospace; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 8px 16px; border-radius: 4px; transition: all .2s; white-space: nowrap; border: 1px solid transparent; text-transform: uppercase; }
.nav-link:hover { color: var(--c1); background: rgba(255, 255, 255, 0.9); border-color: var(--border); }
.nav-link.active { color: var(--c1); background: rgba(14, 165, 233, 0.1); border: 1px solid var(--c1); box-shadow: 0 0 10px rgba(14, 165, 233, 0.2); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; border: none; background: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .2s; }

@media(max-width: 700px) {
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border); padding: 12px 16px; gap: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 16px; width: 100%; border-radius: 4px; }
  .nav-hamburger { display: flex; }
}

/* ── SECTIONS & CARDS ── */
.seo-strip, .faq-section, .network-section { background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--r); padding: 24px 28px; margin: 0 0 24px; box-shadow: 0 8px 30px rgba(0,0,0,0.03); }
.seo-strip h2, .faq-section h2, .guide-card h2, .guide-card h3, .network-section h2 { font-family: 'Syne', sans-serif; color: var(--text); letter-spacing: -.02em; font-weight: 800; }
.seo-strip h2, .faq-section h2, .network-section h2 { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.2; margin-bottom: 12px; }
.seo-strip p, .faq-item p, .guide-card p, .network-intro { color: var(--muted); font-size: 14px; }

.network-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.network-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r); background: #ffffff; border: 1px solid var(--border); text-decoration: none; transition: all .3s; min-height: 158px; position: relative; overflow: hidden; }
.network-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(14, 165, 233, 0.15); border-color: var(--c1); }
.network-card strong { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800; line-height: 1.2; color: var(--text); }
.network-card span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.network-card .network-label { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c1); font-family: monospace; }
@media(max-width: 1100px) { .network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.guide-card { background: var(--surface); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.03); transition: transform 0.3s, border-color 0.3s; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--c1); }
.guide-card::before { content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--c1), var(--c2), transparent); }
.guide-card h2, .guide-card h3 { font-size: 18px; margin-bottom: 10px; }
.guide-kicker { font-size: 11.5px; font-weight: 800; color: var(--c1); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; font-family: monospace; }

.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.faq-item { background: #ffffff; border: 1px solid var(--border); border-radius: 6px; padding: 0 16px; transition: all 0.2s; border-left: 4px solid transparent; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 0; font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 800; color: var(--text); }
.faq-item p { padding: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.faq-item[open] { border-left-color: var(--c1); background: rgba(14, 165, 233, 0.02); }

/* ── ANIMATIONS ── */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-24px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gridDataFlow { 0% { transform: perspective(600px) rotateX(50deg) translateY(0) translateZ(-200px); } 100% { transform: perspective(600px) rotateX(50deg) translateY(60px) translateZ(-200px); } }
@keyframes cyberScan { 0% { top: -50%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 150%; opacity: 0; } }
@keyframes iconPulse { 0% { box-shadow: 0 0 5px rgba(14, 165, 233, 0.1); border-color: var(--border); } 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.4); border-color: var(--c1); } }
@keyframes textStream { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }
@keyframes pulseOrb { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.2); opacity: 1; } }

/* Staggered entry */
.tool-grid > .tc { animation: fadeUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) backwards; }
.tool-grid > .tc:nth-child(1) { animation-delay: 0.05s; }
.tool-grid > .tc:nth-child(2) { animation-delay: 0.10s; }
.tool-grid > .tc:nth-child(3) { animation-delay: 0.15s; }
.tool-grid > .tc:nth-child(4) { animation-delay: 0.20s; }

@media(max-width: 640px) {
  .stats-row { gap: 14px; }
  .model-controls { flex-direction: column; align-items: stretch; }
  .ctrl-group { flex-wrap: wrap; }
  select { min-width: 100%; }
  .tool-grid, .network-grid, .guide-grid { grid-template-columns: 1fr; }
  .seo-strip, .faq-section, .network-section { padding: 20px 18px; }
}