/* Cisco Toolbox — shared landing + topbar. Mirrors the dark Cisco theme used by the bundled tool pages. */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --bg: #0A0F1E;
  --surf: #111827;
  --surf2: #1A2236;
  --surf3: #222E44;
  --br: #2A3A56;
  --br2: #344562;
  --blue: #00BCEB;
  --blue2: #0095C8;
  --bdim: rgba(0, 188, 235, 0.13);
  --green: #22C997;
  --amber: #F59E0B;
  --red: #EF4444;
  --purple: #A78BFA;
  --teal: #14B8A6;
  --text: #F1F5F9;
  --text2: #94A3B8;
  --text3: #64748B;
  --r: 8px;
  --rl: 12px;
  --rxl: 16px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
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;
}
h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; line-height: 1.25; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue2); }

/* ── Topbar ───────────────────────────────────────────────────────────── */
.topbar {
  background: var(--surf);
  border-bottom: 1px solid var(--br);
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-md);
}
.tb-l { display: flex; align-items: center; gap: 12px; }
.tb-badge {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 9px; font-weight: 500;
  color: #001A2E;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}
.tb-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); }
.tb-sub { font-size: 10px; color: var(--text3); margin-top: 1px; }
.tb-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.tb-nav a {
  color: var(--text2);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}
.tb-nav a:hover { background: var(--surf2); color: var(--text); }
.tb-nav a.act {
  background: var(--bdim);
  color: var(--blue);
  border: 1px solid rgba(0, 188, 235, 0.2);
}
.tb-nav .home-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px;
  color: var(--text3);
  padding: 6px 10px;
  border-radius: 6px;
}
.tb-nav .home-link:hover, .tb-nav .home-link.act { background: var(--surf2); color: var(--text); }

/* ── Landing ──────────────────────────────────────────────────────────── */
.landing {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 28px 32px;
}
.hero { text-align: center; margin-bottom: 48px; }
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--text) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.hero-sub { color: var(--text2); font-size: 16px; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.tool-card {
  --accent: var(--blue);
  background: var(--surf);
  border: 1px solid var(--br);
  border-radius: var(--rl);
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: var(--text);
  transition: all 0.18s;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.tool-card:hover {
  border-color: var(--accent);
  background: var(--surf2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.tool-icon {
  width: 52px; height: 52px;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.tool-body { min-width: 0; }
.tool-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.tool-tagline {
  color: var(--text2);
  font-size: 12px;
  line-height: 1.5;
}
.tool-go {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.tool-card:hover .tool-go {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.landing-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  padding-top: 24px;
  border-top: 1px solid var(--br);
}
.landing-footer a { color: var(--text2); }
.landing-footer a:hover { color: var(--blue); }

/* ── Generic small-screen ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .topbar { height: auto; padding: 12px 16px; flex-direction: column; gap: 12px; align-items: flex-start; }
  .tb-nav { width: 100%; }
  .hero h1 { font-size: 36px; }
}
