/* DESIGN TOKENS — CyberSec Consultancy (see DESIGN.md) */

:root {
  /* Dark base */
  --bg: #0B0F17;
  --bg-2: #11161F;
  --bg-3: #181F2B;
  --line-dark: #2A3342;

  /* Light surfaces */
  --paper: #F7F8FA;
  --surface: #FFFFFF;
  --line: #D1D5DB;

  /* Text */
  --text: #1F242E;
  --text-muted: #5C6575;
  --text-invert: #F1F3F6;
  --text-dim: #8C95A6;

  /* Accent — calm tech blue */
  --accent: #0EA5E9;
  --accent-dark: #0284C8;
  --accent-soft: rgba(14, 165, 233, 0.12);

  /* Status */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Grades (subtle) */
  --grade-p: #64748B;
  --grade-c: #3B82F6;
  --grade-d: #8B5CF6;
  --grade-hd: #EC4899;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Container */
  --container: 1100px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-invert);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.narrow {
  max-width: 620px;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.25rem; }

.lead {
  font-size: 1.1rem;
  color: var(--text-dim);
}

.muted, .small { color: var(--text-dim); font-size: 0.9rem; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #0B0F17;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.95rem;
}

nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

nav a {
  color: var(--text-invert);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn--accent {
  background: var(--accent);
  color: #0B0F17;
}

.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: var(--text-invert);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
}

.btn--lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, var(--bg) 0%, #0B0F17 100%);
}

.hero-content {
  max-width: 620px;
}

.hero h1 {
  margin: 0.6rem 0 1rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.trust {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--light {
  background: var(--paper);
  color: var(--text);
}

.section--light .muted { color: var(--text-muted); }

.section-head {
  margin-bottom: var(--space-4);
}

.section-head h2 {
  margin-bottom: 0.3rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

.feature h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.feature p {
  color: var(--text-muted);
  margin: 0;
}

/* Grid cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-3);
  color: var(--text);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

input, textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* CTA band */
.cta-band {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--bg-2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--text-invert);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 640px) {
  nav {
    gap: 0.75rem;
    font-size: 0.9rem;
  }
  .cta-row {
    flex-direction: column;
  }
}

/* Learn portal shell styles (light) */
#learn-portal {
  background: var(--paper);
  color: var(--text);
  min-height: 100vh;
}

.portal-header {
  background: var(--bg);
  color: var(--text-invert);
}

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-ontrack { background: #D1FAE5; color: #065F46; }
.status-discuss { background: #FEF3C7; color: #92400E; }
.status-video { background: #FEE2E2; color: #991B1B; }

.grade-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}

.grade-P { background: var(--grade-p); color: white; }
.grade-C { background: var(--grade-c); color: white; }
.grade-D { background: var(--grade-d); color: white; }
.grade-HD { background: var(--grade-hd); color: white; }
