/* css/security.css */

/* --- Layout --- */
.security-page {
  padding-top: var(--top-gap, 64px);
  padding-bottom: clamp(60px, 8vw, 120px);
}

/* --- Hero Section --- */
.security-hero {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 80px);
  padding-top: clamp(20px, 4vw, 60px);
  border-bottom: 1px solid var(--border-subtle, #262626);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-title {
  font-family: var(--font-ui, sans-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--text-primary, #E0E0E0);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.page-lead {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary, #666);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Pillars Grid --- */
.pillars-section {
  padding: 0 16px; /* Safety padding for mobile */
}

.pillars-grid {
  display: grid;
  /* Responsive columns: At least 280px wide, fill remaining space */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(80px, 10vw, 140px);
}

/* Security Card Style */
.sec-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-subtle, #262626);
  border-radius: 12px;
  padding: 32px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sec-card:hover {
  border-color: var(--border-focus, #444);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.03);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--text-primary, #E0E0E0);
  margin-bottom: 20px;
  opacity: 0.9;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary, #E0E0E0);
  margin-bottom: 16px;
  font-weight: 600;
}

.card-text {
  font-family: var(--font-ui, sans-serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary, #666);
  margin: 0;
}

/* --- Threat Model Section --- */
.threat-section {
  padding: 0 16px;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.threat-block {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle, #262626);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 64px);
}

.section-header {
  font-family: var(--font-ui, sans-serif);
  font-size: clamp(24px, 4vw, 32px);
  color: var(--text-primary, #E0E0E0);
  margin-bottom: 16px;
  text-align: center;
  font-weight: 600;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary, #666);
  margin-bottom: 48px;
  font-size: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.threat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}

.col-title {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle, #262626);
  padding-bottom: 12px;
}

.threat-col.protects .col-title { color: #4ade80; /* Subtle Green */ }
.threat-col.limits .col-title { color: #f87171; /* Subtle Red */ }

.threat-list {
  list-style: none;
  padding: 0;
}

.threat-list li {
  font-size: 15px;
  color: var(--text-secondary, #666);
  margin-bottom: 16px;
  line-height: 1.6;
}

.threat-list strong {
  color: var(--text-primary, #E0E0E0);
  font-weight: 600;
  margin-right: 6px;
}

/* --- Deep Security (Tech Specs & Hygiene) --- */
.deep-sec-section {
  padding: 0 16px;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.deep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 40px);
  max-width: 1000px;
  margin: 0 auto;
}

.deep-card {
  border: 1px solid var(--border-subtle, #262626);
  border-radius: 12px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.005);
  display: flex;
  flex-direction: column;
}

.deep-title {
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary, #E0E0E0);
  margin-bottom: 16px;
  font-weight: 600;
}

.deep-desc {
  font-family: var(--font-ui, sans-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary, #666);
  margin-bottom: 24px;
}

/* Tech Tags Styling */
.tech-tags {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  gap: 12px;
  margin-top: auto;
}

.tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle, #262626);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}

.tag-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-secondary, #666);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.tag-val {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: var(--text-primary, #E0E0E0);
}

/* Checklist Styling */
.check-list {
  list-style: none;
  padding: 0;
  margin-top: auto;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--text-secondary, #666);
  font-size: 15px;
  line-height: 1.6;
}

.check-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 2px;
  font-weight: bold;
  color: #fbbf24; /* Subtle Warning Yellow */
  font-family: var(--font-mono, monospace);
}

.check-list strong {
  color: var(--text-primary, #E0E0E0);
  font-weight: 600;
  display: inline-block;
}

/* --- FOOTER --- */
.site-footer { padding-bottom: var(--s-48); }
.footer-links { display: flex; gap: var(--s-18); flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); opacity: 0.8; }
.footer-links a:hover { color: var(--text-bright); opacity: 1; }
.footer-note { margin-top: 10px; color: var(--text-muted); font-size: 12px; opacity: 0.6; }

/* --- Responsive Adjustments --- */

/* Tablet & Mobile */
@media (max-width: 768px) {
  .threat-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .threat-block {
    padding: 32px 24px;
  }
}

/* Small Mobile */
@media (max-width: 500px) {
  .sec-card {
    padding: 24px;
  }
  
  .deep-card {
    padding: 24px;
  }
  
  .page-title {
    font-size: 32px;
  }
  
  .tech-tags {
    grid-template-columns: 1fr; /* 1 column on small screens */
  }
}