/* Vector Threat Labs — Dark + red color schema */

:root {
  --bg-deep: #0a0a0c;
  --bg-main: #0f0f12;
  --bg-card: #141418;
  --bg-elevated: #1a1a1f;
  --border: #2a2528;
  --border-focus: #4a2a2e;
  --text: #e8e6e9;
  --text-muted: #9a959c;
  --red-primary: #c41e3a;
  --red-bright: #e63950;
  --red-dim: #8b1525;
  --red-glow: rgba(196, 30, 58, 0.25);
  --red-bg: rgba(196, 30, 58, 0.08);
  --danger: #dc3545;
  --success: #2d8a5e;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
}

.logo {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 1.25rem;
  opacity: 0.9;
}

.tagline {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--red-bright);
  background: var(--red-bg);
}

.nav-link.active {
  color: var(--red-bright);
  background: var(--red-bg);
}

/* Main */
.main {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  width: 100%;
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.section-desc {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Dashboard */
.section-dashboard .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow);
}

.card-highlight {
  border-color: var(--red-dim);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--red-bg) 100%);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.card p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-link {
  color: var(--red-bright);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.frameworks {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.frameworks h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.frameworks ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.frameworks li {
  margin-bottom: 0.5rem;
}

/* OWASP list */
.owasp-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.owasp-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red-primary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}

.owasp-item:hover {
  border-left-color: var(--red-bright);
}

.owasp-item h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.owasp-item .id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red-bright);
  margin-bottom: 0.25rem;
}

.owasp-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Playbooks */
.playbooks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.playbook {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.playbook-header {
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.playbook-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.playbook-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--red-bg);
  color: var(--red-bright);
  font-family: var(--font-mono);
}

.playbook-body {
  padding: 1rem 1.25rem;
}

.playbook-body p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.playbook-payload {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.75rem;
}

.playbook-actions {
  display: flex;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--red-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-bright);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

/* Test runner */
.runner-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.runner-controls label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.runner-controls select {
  max-width: 240px;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.runner-controls textarea {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  resize: vertical;
}

.runner-controls textarea:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 2px var(--red-glow);
}

.runner-actions {
  display: flex;
  gap: 0.5rem;
}

.runner-tests {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.runner-test-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.runner-test-item:hover {
  border-color: var(--border-focus);
  background: var(--bg-elevated);
}

.runner-test-item .tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--red-bg);
  color: var(--red-bright);
  font-family: var(--font-mono);
}

.runner-test-item .label {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.pricing-card-featured {
  border-color: var(--red-primary);
  box-shadow: 0 0 0 1px var(--red-bg), var(--shadow);
}

.pricing-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.pricing-price {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-price span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--red-bright);
}

.pricing-features {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-features li {
  margin-bottom: 0.3rem;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-copy p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-copy ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-note {
  font-size: 0.85rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 2px var(--red-glow);
}

.contact-form textarea {
  resize: vertical;
}

.contact-disclaimer {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Resources */
.resources-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.resources-list a {
  color: var(--red-bright);
  text-decoration: none;
}

.resources-list a:hover {
  text-decoration: underline;
}

.resources-list li {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1rem 1.5rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Copy feedback */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.6rem 1.2rem;
  background: var(--red-primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  z-index: 200;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
