/* Security page. Loaded after home.css. New rules use the sec- prefix. */

.nav-links a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: var(--text);
}

/* Hero. Stays dark via .theme-dark, like the Contact hero. */

.sec-hero {
  background: var(--bg);
}

.sec-hero .hero-inner {
  padding: 170px 24px 88px;
}

.sec-hero .hero-copy {
  flex: 1 1 100%;
  max-width: 820px;
}

.sec-hero .hero-lead {
  max-width: 40em;
}

/* How a connection works, the facts, and the report cards. */

.sec-how,
.sec-report {
  padding: 96px 24px;
}

.sec-how .h2,
.sec-scam .h2 {
  max-width: 16em;
}

.sec-diagram-card {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 20px;
}

.sec-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.sec-end,
.sec-server {
  text-align: center;
}

.sec-server {
  border: 1.5px dashed rgba(var(--accent-rgb), 0.7);
  border-radius: 16px;
  padding: 18px 16px;
}

.sec-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  color: var(--icon);
}

.sec-name {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sec-note {
  margin: 6px auto 0;
  max-width: 28em;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: balance;
}

.sec-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sec-dash {
  width: 2px;
  height: 36px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--jade) 0 7px,
    transparent 7px 14px
  );
  background-size: 2px 14px;
  animation: secDashY 2.4s linear infinite;
}

.sec-flow-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.sec-lock {
  width: 14px;
  height: 14px;
  flex: none;
}

.sec-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.sec-fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.sec-fact h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sec-fact p,
.sec-source {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.sec-source {
  margin-top: 22px;
  font-size: 14px;
}

.sec-scam {
  background: var(--security-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  --sec-danger: #FF8B8B;
}

.sec-scam-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.sec-scam-lead {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.sec-never {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sec-never li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.sec-never p {
  margin: 0;
}

.sec-mark {
  flex: none;
  width: 1.1em;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.sec-mark-no {
  color: var(--sec-danger);
}

.sec-mark-yes {
  color: var(--jade);
}

.sec-yes,
.sec-yes a {
  color: var(--muted);
}

.sec-yes a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sec-reports {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.sec-report-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
}

.sec-report-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.sec-report-card > p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
}

.sec-points,
.sec-follow {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.sec-points {
  padding-left: 1.2em;
}

.sec-points li + li {
  margin-top: 8px;
}

.sec-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
}

.sec-docs a {
  font-size: 15px;
  font-weight: 500;
}

@keyframes secDash {
  to { background-position: 16px 0; }
}

@keyframes secDashY {
  to { background-position: 0 14px; }
}

@media (min-width: 768px) {
  .sec-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sec-scam-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px 64px;
  }

  .sec-reports {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .sec-diagram {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .sec-end {
    flex: 0 0 180px;
    width: auto;
    padding-top: 2px;
  }

  .sec-server {
    flex: 1 1 260px;
    width: auto;
    min-width: 0;
  }

  .sec-flow {
    flex: 1 1 120px;
    width: auto;
    min-width: 120px;
    padding-top: 15px;
  }

  .sec-dash {
    width: 100%;
    height: 2px;
    background-image: repeating-linear-gradient(
      to right,
      var(--jade) 0 8px,
      transparent 8px 16px
    );
    background-size: 16px 2px;
    animation-name: secDash;
  }

  .sec-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .sec-hero .hero-inner {
    padding: 148px 16px 64px;
  }

  .sec-how,
  .sec-report {
    padding: 64px 16px;
  }

  .sec-diagram-card {
    padding: 22px 16px;
  }

  .sec-scam-inner {
    padding: 56px 16px;
  }

  .sec-fact,
  .sec-report-card {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sec-dash {
    animation: none;
  }
}
