/* Purple Squirrel Cyber — site styles (mobile-first) */

:root {
  --accent: #9333EA;
  --accent-soft: rgba(147, 51, 234, 0.35);
  --bg: #100C18;
  --text: #ffffff;
  --text-muted: #a7a1b8;
  --text-faint: #776f8c;
  --border: rgba(255, 255, 255, 0.1);
  --surface: rgba(255, 255, 255, 0.04);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

.bg-glow {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 520px;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 0%, var(--accent-soft) 0%, transparent 100%);
}

.accent { color: var(--accent); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 20px;
  backdrop-filter: blur(10px);
  background: rgba(16, 12, 24, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(0,0,0,0.35); }
.btn-primary { background: #ffffff; color: #14101c; }
.btn-sm { font-size: 13px; padding: 9px 16px; }
.btn-lg { font-size: 16px; padding: 15px 30px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Sections */
section { padding: 56px 20px; max-width: 1180px; margin: 0 auto; }

.eyebrow {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Hero */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 64px;
  padding-bottom: 56px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: #cabdf0;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 720px;
}
.lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
}
.trust-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  max-width: 480px;
}
.trust-line .dot { display: none; }

/* Segments */
.chip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: #e7e2f2;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
}

/* Services */
.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
}
.section-head p {
  margin: 0;
  font-size: 14px;
  color: #948da5;
  max-width: 420px;
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s ease, background .15s ease;
}
.card:hover { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }
.card .icon { width: 24px; height: 24px; stroke: var(--accent); }
.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: #948da5; }

/* Frameworks strip */
.frameworks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  row-gap: 10px;
  flex-wrap: wrap;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: #5f5872;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Book */
.book { padding-top: 40px; padding-bottom: 72px; }
.book-inner { max-width: 560px; margin: 0 auto; }
.book-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 40px 24px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px 20px 40px;
  font-size: 12px;
  color: #5f5872;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Desktop enhancements */
@media (min-width: 900px) {
  .nav { padding: 20px 40px; }
  section { padding: 72px 40px; }

  .hero { padding-top: 90px; padding-bottom: 70px; gap: 26px; }
  .hero h1 { font-size: 56px; max-width: 780px; }
  .lead { font-size: 18px; max-width: 620px; }
  .trust-line { flex-direction: row; gap: 24px; font-size: 13px; max-width: none; }
  .trust-line .dot {
    display: inline-block;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #4a4459;
  }

  .chip { font-size: 15px; padding: 10px 22px; }

  .section-head h2 { font-size: 34px; }
  .section-head p { font-size: 16px; max-width: 520px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .card { padding: 26px; }
  .card h3 { font-size: 17px; }
  .card p { font-size: 14px; }

  .frameworks { gap: 40px; font-size: 15px; }
}
