/* ============================================================
   InfoSecPanda — Stylesheet
   Theme: Exact match to dashboards.infosecpanda.com
   Font:  Inter (same as dashboards)
   Colors: #0B1120 bg, #1a2744 cards, #06b6d4 cyan, #e2e8f0 text
   ============================================================ */

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Exact colors from dashboards.infosecpanda.com source */
  --bg:       #0B1120;        /* main page background */
  --bg2:      #1a2744;        /* card background */
  --bg3:      #0c1a2e;        /* darker card / inputs */
  --bg4:      #0f1a2e;        /* deepest bg */
  --cyan:     #06b6d4;        /* main accent — exact from source */
  --cyan2:    #0891b2;        /* darker cyan */
  --cyan-dim: rgba(6,182,212,0.08);
  --white:    #e2e8f0;        /* main text — exact from source */
  --muted:    #64748b;        /* dimmed text */
  --muted2:   #94a3b8;        /* mid text */
  --muted3:   #c8d0dc;        /* lighter muted */
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(6,182,212,0.3);

  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;

  --radius:    10px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(11,17,32,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted2);
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--cyan); border-bottom: 2px solid var(--cyan); border-radius: 0; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
  border: none;
}

/* Primary: dark with cyan border — matches dashboards */
.btn-primary {
  background: var(--bg2);
  color: var(--white);
  border: 1px solid var(--cyan);
}
.btn-primary:hover { background: var(--cyan); color: var(--bg); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--muted3);
}
.btn-outline:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }

.btn-ghost {
  background: transparent;
  color: var(--muted2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--white); border-color: var(--border2); }

/* Filled cyan — for primary hero CTAs */
.btn-cta {
  background: var(--cyan);
  color: var(--bg);
  border: none;
  font-weight: 600;
}
.btn-cta:hover { background: #22d3ee; transform: translateY(-1px); }

.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ── LAYOUT ── */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.section { position: relative; z-index: 1; padding: 80px 0; }

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.section-sub {
  font-size: 16px;
  color: var(--muted2);
  max-width: 560px;
  font-weight: 400;
  line-height: 1.75;
}

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(6,182,212,0.25); }

/* ── TAGS ── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.tag-live    { background: rgba(6,182,212,0.1);  color: var(--cyan);  border: 1px solid rgba(6,182,212,0.25); }
.tag-soon    { background: rgba(251,191,36,0.08); color: #fbbf24;      border: 1px solid rgba(251,191,36,0.2); }
.tag-planned { background: rgba(167,139,250,0.08);color: #a78bfa;      border: 1px solid rgba(167,139,250,0.2); }

/* ── BADGES ── */
.fw-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted3);
  background: var(--bg2);
  letter-spacing: 0.04em;
}

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted3);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); }
.form-input:focus,
.form-textarea:focus { border-color: rgba(6,182,212,0.4); }
.form-textarea { resize: vertical; min-height: 110px; }

.form-section-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.7;
  margin-top: 14px;
  font-weight: 400;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: var(--muted2);
  transition: color 0.15s;
  font-weight: 400;
}
.footer-col ul a:hover { color: var(--cyan); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { font-size: 13px; color: var(--muted); }

.footer-bottom-links { display: flex; gap: 20px; list-style: none; }
.footer-bottom-links a { font-size: 13px; color: var(--muted); transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--cyan); }

/* ── HERO GLOW ── */
.hero-glow {
  position: absolute;
  top: 10%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(6,182,212,0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* ── HERO ACTIONS ── */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.anim-1 { animation: fadeUp 0.5s ease both; }
.anim-2 { animation: fadeUp 0.5s ease 0.08s both; }
.anim-3 { animation: fadeUp 0.5s ease 0.16s both; }
.anim-4 { animation: fadeUp 0.5s ease 0.24s both; }

/* ── DASHBOARD PREVIEW CSS ── */
.dp { background: #0c1424; border-bottom: 1px solid rgba(255,255,255,0.07); overflow: hidden; user-select: none; }
.dp-top-border { height: 3px; width: 100%; }
.dp-nav { display: flex; gap: 4px; padding: 8px 12px; background: #0c1424; border-bottom: 1px solid rgba(255,255,255,0.06); }
.dp-nav-tab { padding: 4px 10px; font-family: var(--font-mono); font-size: 9px; color: rgba(148,163,184,0.5); border-radius: 4px; letter-spacing: 0.04em; }
.dp-nav-tab.active { background: rgba(6,182,212,0.12); color: var(--cyan); border: 1px solid rgba(6,182,212,0.25); }
.dp-stats { display: grid; gap: 1px; background: rgba(255,255,255,0.04); }
.dp-stat { background: var(--bg2); padding: 10px 12px; }
.dp-stat-num { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 2px; }
.dp-stat-num.cyan { color: var(--cyan); }
.dp-stat-num.amber { color: #f59e0b; }
.dp-stat-num.purple { color: #a78bfa; }
.dp-stat-label { font-family: var(--font-mono); font-size: 8px; color: rgba(100,116,139,0.9); text-transform: uppercase; letter-spacing: 0.07em; }
.dp-body { padding: 10px 12px; background: #0c1424; }
.dp-section-title { font-family: var(--font-mono); font-size: 8px; color: rgba(100,116,139,0.8); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.dp-bar-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.dp-bar-label { font-family: var(--font-mono); font-size: 8px; color: rgba(148,163,184,0.7); width: 72px; flex-shrink: 0; white-space: nowrap; }
.dp-bar-track { flex: 1; height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.dp-bar-fill { height: 100%; border-radius: 3px; }
.dp-bar-count { font-family: var(--font-mono); font-size: 8px; color: rgba(100,116,139,0.8); width: 24px; text-align: right; flex-shrink: 0; }
.dp-table-header { display: grid; font-family: var(--font-mono); font-size: 7px; color: rgba(100,116,139,0.7); text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 6px; }
.dp-table-row { display: grid; font-size: 8px; color: rgba(148,163,184,0.7); padding: 3px 0; gap: 8px; }
.dp-table-cell-bold { font-weight: 600; color: var(--white); }
.dp-donut-row { display: flex; align-items: center; gap: 10px; }
.dp-donut { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.dp-legend { display: flex; flex-direction: column; gap: 4px; }
.dp-legend-item { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 8px; color: rgba(148,163,184,0.7); }
.dp-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ── MOBILE NAV ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--muted3);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 290;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.nav-mobile-overlay.open { opacity: 1; pointer-events: auto; }

.nav-mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 300;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-mobile-drawer.open { right: 0; }

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-drawer-close {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted3);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-drawer-close:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-drawer-links { list-style: none; padding: 12px 0; flex: 1; }

.nav-drawer-links li a {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--muted3);
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.nav-drawer-links li a:hover,
.nav-drawer-links li a.active {
  color: var(--white);
  background: rgba(255,255,255,0.04);
  border-left-color: var(--cyan);
}

.nav-drawer-cta { padding: 20px; border-top: 1px solid var(--border); flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .wrap { padding: 0 20px; }
  .section { padding: 60px 0; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dash-grid { grid-template-columns: 1fr !important; }
  .faq-grid { grid-template-columns: 1fr !important; }
  .implement-grid { grid-template-columns: 1fr !important; }
  .dp-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .dp-body { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:1.5fr 1fr"],
  [style*="grid-template-columns:auto 1fr auto"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="gap:64px"] { gap: 32px !important; }
  [style*="gap:48px"] { gap: 24px !important; }
  [style*="padding:32px 36px"] { padding: 20px !important; }
  [style*="padding:28px 32px"] { padding: 20px !important; }
  .blog-listing-item { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .wrap { padding: 0 14px; }
  .btn-lg { padding: 12px 22px; font-size: 14px; }
  .hero-actions,
  .hero-actions { flex-direction: column !important; align-items: stretch !important; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  [style*="padding:80px 24px"] { padding: 48px 16px 40px !important; }
}
