/* ============================================================
   GRC Tools — TheAdminStack
   Design System v1.0 — ported from osint.theadminstack.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ============================================================
   Tokens — Light mode
   ============================================================ */
:root {
  --bg:        #f9fafb;
  --bg-2:      #f3f4f6;
  --bg-3:      #e5e7eb;

  --surface:   #ffffff;
  --surface-2: rgba(0,0,0,0.025);
  --surface-3: rgba(0,0,0,0.05);

  --border:    rgba(0,0,0,0.07);
  --border-2:  rgba(0,0,0,0.12);
  --border-3:  rgba(0,0,0,0.22);

  --accent:     #111827;
  --accent-2:   #374151;
  --accent-dim: rgba(0,0,0,0.06);

  --green:      #16a34a;
  --green-bg:   #dcfce7;
  --red:        #dc2626;
  --red-bg:     #fee2e2;
  --orange:     #d97706;
  --orange-bg:  #fef3c7;
  --blue:       #2563eb;
  --blue-bg:    #dbeafe;

  --text:   #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --text-4: #d1d5db;

  --font-display: 'IBM Plex Sans', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Fira Code', monospace;

  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 7rem;

  --container: 1240px;
  --nav-h: 72px;

  --r-xs:   2px;
  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   8px;
  --r-xl:   12px;
  --r-pill: 999px;

  --t-fast: 120ms ease;
  --t-mid:  220ms ease;
  --t-slow: 380ms ease;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
}

/* ── Dark mode — pure charcoal, no blue tint ─────────────── */
html.dark {
  --bg:        #0c0c0c;
  --bg-2:      #141414;
  --bg-3:      #1c1c1c;
  --surface:   #111111;
  --surface-2: rgba(255,255,255,0.03);
  --surface-3: rgba(255,255,255,0.06);

  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.13);
  --border-3:  rgba(255,255,255,0.22);

  --accent:     #ebebeb;
  --accent-2:   #a0a0a0;
  --accent-dim: rgba(255,255,255,0.06);

  --green-bg:  rgba(22,163,74,0.15);
  --red-bg:    rgba(220,38,38,0.15);
  --orange-bg: rgba(217,119,6,0.15);
  --blue-bg:   rgba(37,99,235,0.15);

  --text:   #f0f0f0;
  --text-2: #a0a0a0;
  --text-3: #555555;
  --text-4: #333333;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3),  0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.2);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-mid);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.nav-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: opacity var(--t-fast);
}
html.dark .nav-brand-icon { background: var(--accent); color: var(--bg-2); }
.nav-brand:hover .nav-brand-icon { opacity: 0.85; }

.nav-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-brand-accent { color: var(--text-3); }
.nav-brand-role {
  font-size: 0.7rem;
  color: var(--text-3);
  margin-left: 2px;
  display: none;
}
@media (min-width: 900px) { .nav-brand-role { display: inline; } }

/* Pill nav */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px;
  flex: 1;
}
.nav-pill a {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.nav-pill a:hover { color: var(--text); background: var(--surface-3); }
.nav-pill a.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.nav-pill a.coming-soon {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* Nav right */
.nav-right { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; }

.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.theme-toggle:hover { background: var(--accent-dim); color: var(--text); }

.btn-nav {
  padding: 7px 16px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity var(--t-fast);
}
html.dark .btn-nav { color: var(--bg-2); }
.btn-nav:hover { opacity: 0.85; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--text-2);
}
.nav-hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-mid), opacity var(--t-mid);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-md) var(--space-xl);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.nav-mobile a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .coming-soon { opacity: 0.5; }

.tag-cs {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xs);
  padding: 1px 5px;
}

@media (max-width: 960px) {
  .nav-pill     { display: none; }
  .btn-nav      { display: none; }
  .nav-hamburger{ display: flex; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t-fast);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1.5px solid var(--accent);
}
html.dark .btn-primary { color: var(--bg-2); }
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn-secondary:hover { border-color: var(--border-3); background: var(--bg-2); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border);
  padding: 7px 14px;
  font-size: 0.8rem;
}
.btn-ghost:hover { background: var(--accent-dim); color: var(--text); border-color: var(--border-2); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--accent-dim);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--space-lg);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--space-lg);
}
.hero h1 em {
  font-style: normal;
  color: var(--text-3);
}
.hero-sub {
  font-size: clamp(0.975rem, 2vw, 1.125rem);
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats strip */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border-2);
}

/* ============================================================
   Tools section
   ============================================================ */
.tools-section {
  padding: var(--space-3xl) 0;
}
.tools-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--space-xl);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* Tool card */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: box-shadow var(--t-mid), border-color var(--t-mid), transform var(--t-mid);
}
.tool-card:not(.tool-card--soon):hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.tool-card--soon {
  opacity: 0.55;
  cursor: default;
}

.tool-card-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
}
.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}
.tool-card-meta { flex: 1; }
.tool-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2px;
}
.tool-card-status {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  padding: 2px 7px;
  display: inline-block;
}
.status-live {
  color: #166534;
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.2);
}
html.dark .status-live {
  color: #4ade80;
  background: rgba(74,222,128,0.1);
  border-color: rgba(74,222,128,0.2);
}
.status-soon {
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
}
.tool-card-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}
.tool-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.tag {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 2px 9px;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-3);
}
.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}
.tool-card-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ============================================================
   About strip
   ============================================================ */
.about-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3xl) 0;
}
.about-strip-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  text-align: center;
}
.about-strip h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--space-md);
}
.about-strip p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.about-strip p:last-of-type { margin-bottom: var(--space-xl); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.footer-logo-accent { color: var(--text-3); }
.footer-tagline { font-size: 0.85rem; color: var(--text-3); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-2);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--text); }
.footer-legal {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 680px;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-4);
}

/* ============================================================
   Utility
   ============================================================ */
.text-2  { color: var(--text-2); }
.text-3  { color: var(--text-3); }
.text-mono { font-family: var(--font-mono); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .container { padding: 0 var(--space-md); }
  .hero { padding: var(--space-3xl) 0 var(--space-2xl); }
  .tools-section { padding: var(--space-2xl) 0; }
  .about-strip  { padding: var(--space-2xl) 0; }
  .hero-stats { gap: var(--space-lg); }
  .stat-sep { display: none; }
}
