/* =========================================================
   JWL — security.html page specific styles
   Builds on: style.css + jline.css + system.css + cloud.css + network.css
   ========================================================= */

/* ---------- Hero bg override (red/amber warning tone) ---------- */
.page-security .jp-hero::before {
  background-image: url("../../img/jigyo04-009.jpg");
  opacity: 0.16;
  filter: brightness(0.68) contrast(1.08) saturate(0.85);
}
.page-security .jp-hero::after {
  background:
    radial-gradient(ellipse 70% 50% at 80% 35%, rgba(239,68,68,0.1), transparent 60%),
    radial-gradient(ellipse 60% 60% at 20% 75%, rgba(34,211,238,0.08), transparent 60%),
    linear-gradient(180deg, transparent 55%, rgba(5,7,13,0.95) 100%);
}

/* ---------- Threat section ---------- */
.threat-lead {
  max-width: 820px;
  color: var(--text-2);
  line-height: 1.95;
  margin-bottom: 40px;
  font-size: clamp(14px, 1vw, 15.5px);
}
.threat-lead strong { color: var(--text); font-weight: 600; }

.threat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.threat-stat {
  padding: 26px 26px 28px;
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.22);
  border-radius: 18px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.threat-stat-lbl {
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f87171;
}
.threat-stat-val {
  font-family: var(--font-jp);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
  line-height: 1.45;
  margin: 4px 0;
}
.threat-stat-val strong {
  color: #fca5a5;
  font-weight: 700;
}
.threat-stat-sub {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.75;
}

/* ---------- Wi-Fi Security section ---------- */
.wifi-sec-lead {
  max-width: 860px;
  color: var(--text-2);
  line-height: 1.95;
  margin-bottom: 46px;
  font-size: clamp(14px, 1vw, 15.5px);
}
.wifi-sec-lead strong { color: var(--text); font-weight: 600; }

.wifi-sec-sub {
  font-family: var(--font-jp);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  margin: 40px 0 22px;
  line-height: 1.45;
}
.wifi-sec-sub .grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wifi-sec-sub .threat-text {
  background: linear-gradient(135deg, #f87171, #fca5a5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Wi-Fi threat grid */
.wifi-threat-block { margin-bottom: 60px; }
.wifi-threat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.wifi-threat {
  position: relative;
  padding: 24px 26px 26px;
  background: var(--surface);
  border: 1px solid rgba(239,68,68,0.18);
  border-radius: 16px;
  display: flex; flex-direction: column;
  gap: 10px;
  transition: transform .3s, border-color .3s;
}
.wifi-threat:hover {
  transform: translateY(-3px);
  border-color: rgba(239,68,68,0.4);
}
.wifi-threat-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.22);
  color: #f87171;
  margin-bottom: 2px;
}
.wifi-threat h4 {
  font-family: var(--font-jp);
  font-size: 15.5px;
  font-weight: 700;
  margin: 0;
  line-height: 1.45;
}
.wifi-threat p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.8;
}
.wifi-threat p strong { color: var(--text); font-weight: 600; }

/* Quarantine Network block */
.quar-block {
  margin: 32px 0 48px;
  padding: 38px 40px 40px;
  background: linear-gradient(180deg, rgba(34,211,238,0.06), rgba(20,184,166,0.03) 60%, var(--surface) 100%);
  border: 1px solid rgba(34,211,238,0.22);
  border-radius: 22px;
}
.quar-head { margin-bottom: 30px; }
.quar-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(34,211,238,0.12);
  color: var(--accent-2);
  border: 1px solid rgba(34,211,238,0.3);
  margin-bottom: 12px;
}
.quar-title {
  margin: 8px 0 14px;
}
.quar-desc {
  color: var(--text-2);
  line-height: 1.95;
  font-size: 14px;
  max-width: 960px;
}
.quar-desc strong { color: var(--text); font-weight: 600; }

.quar-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 26px 0 30px;
}
.quar-step {
  position: relative;
  padding: 20px 20px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.quar-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-3);
}
.quar-step h4 {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.quar-step p {
  color: var(--text-2);
  font-size: 12.8px;
  line-height: 1.7;
}
.quar-step p strong { color: var(--text); font-weight: 600; }

.quar-step-quarantine {
  background: rgba(245,158,11,0.07);
  border-color: rgba(245,158,11,0.35);
}
.quar-step-quarantine .quar-step-num { color: #fbbf24; }
.quar-step-allow {
  background: rgba(20,184,166,0.08);
  border-color: rgba(20,184,166,0.35);
}
.quar-step-allow .quar-step-num { color: var(--accent-3); }

.quar-step-arrow {
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent-3);
  font-weight: 700;
}

.quar-benefits {
  padding: 22px 26px;
  background: rgba(5,7,13,0.5);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.quar-benefits h4 {
  font-family: var(--font-jp);
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text);
}
.quar-benefits ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}
.quar-benefits li {
  position: relative;
  padding-left: 22px;
  font-size: 13.2px;
  color: var(--text-2);
  line-height: 1.75;
}
.quar-benefits li::before {
  content: "✓";
  position: absolute;
  left: 2px; top: 0;
  color: var(--accent-3);
  font-weight: 700;
  font-family: var(--font-en);
}
.quar-benefits li strong { color: var(--text); font-weight: 600; }

.wifi-sec-tech-title { margin-top: 48px; }
.wifi-sec-chips { margin-bottom: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .threat-grid { grid-template-columns: repeat(2, 1fr); }
  .wifi-threat-grid { grid-template-columns: repeat(2, 1fr); }
  .quar-flow {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .quar-step-arrow { display: none; }
  .quar-benefits ul { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .quar-block { padding: 28px 24px 30px; }
}
@media (max-width: 640px) {
  .threat-grid { grid-template-columns: 1fr; }
  .wifi-threat-grid { grid-template-columns: 1fr; }
  .quar-flow { grid-template-columns: 1fr; }
}
