/* DDoS Protection page - loaded after index.css (shared hero, buttons, nav, footer) */
.dd-section { padding: 90px 0; }
.dd-section p { text-transform: none; }
.dd-section h3 { font-family: var(--font-fancy); color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .5px; line-height: 1.35; }
.dd-section a:not(.btn) { color: var(--primary-light); }

/* ---- cards / grids ---- */
.dd-grid { display: grid; gap: 22px; max-width: 1100px; margin: 0 auto; }
.dd-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.dd-included { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.dd-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 34px 26px 28px; background: rgba(15, 23, 42, .3); border: 1px solid var(--glass-border); clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%); }
.dd-card::before { content: ""; position: absolute; top: 0; left: 0; width: 80px; height: 8px; background: var(--primary); clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%); }
.dd-card p { color: var(--text-dim); font-size: .85rem; line-height: 1.7; margin: 0; }
.dd-num { font-family: var(--font-fancy); font-size: 2rem; font-weight: 800; line-height: 1; color: var(--primary); }

.dd-about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; }
.dd-about-text p { color: var(--text-dim); font-size: .92rem; line-height: 1.85; margin: 0 0 18px; }
.dd-about-text .dd-source { font-size: .75rem; margin: 0; }
.dd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dd-fact { display: flex; flex-direction: column; gap: 6px; padding: 20px 14px; background: rgba(15, 23, 42, .4); border: 1px solid var(--glass-border); border-radius: 4px; min-width: 0; }
.dd-fact-value { font-family: var(--font-fancy); font-size: clamp(1.05rem, 5vw, 1.5rem); font-weight: 800; color: #fff; overflow-wrap: normal; word-break: normal; }
.dd-fact-label { font-size: .7rem; letter-spacing: 1.2px; color: var(--text-dim); }

.dd-about-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
@media (min-width: 901px) { .dd-about-rev .dd-facts { order: -1; } }
@media (max-width: 900px) {
    .dd-about, .dd-about-rev { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 768px) {
    .dd-section { padding: 52px 0; }
    .dd-card { padding: 30px 20px 24px; }
}


/* ---- single explanation section ---- */
.dd-single { max-width: 820px; margin: 0 auto; }
.dd-single h2 { font-family: var(--font-fancy); color: #fff; font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0 0 26px; text-align: center; }
.dd-single h2 span { color: var(--primary); }
.dd-single p { color: var(--text-dim); font-size: .92rem; line-height: 1.9; margin: 0 0 18px; }
.dd-single .dd-source { font-size: .75rem; }

/* ---- traffic flow row ---- */
.dd-flow { display: flex; align-items: center; max-width: 1000px; margin: 48px auto 0; }
.dd-node { flex: 0 0 auto; padding: 13px 16px; background: #0b1b45; border: 1px solid #1e3a8a; color: #fff; font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.3; }
.dd-node-atk { background: #1a0d1f; border-color: #7a2330; color: #ff4d5e; }
.dd-node-shield { border-color: var(--primary); box-shadow: 0 0 22px rgba(16, 120, 240, .45); }
.dd-node-srv { background: var(--primary); border-color: var(--primary); }
.dd-link { position: relative; flex: 1 1 24px; min-width: 24px; height: 0; border-top: 2px dashed #ff4d5e; }
.dd-link-ok { border-top: 2px solid var(--primary); }
.dd-link i { position: absolute; top: -5px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; opacity: 0; animation: dd-run-x 2.4s linear infinite; }
.dd-link i:nth-child(2) { animation-delay: 1.2s; }
.dd-link-ok i { background: var(--primary); }
@keyframes dd-run-x { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes dd-run-y { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
.dd-note { text-align: center; font-size: .7rem; color: var(--text-dim); margin: 18px 0 0; }

@media (max-width: 768px) {
    .dd-flow { flex-direction: column; margin-top: 36px; }
    .dd-node { width: 100%; max-width: 280px; }
    .dd-link { flex: 0 0 38px; width: 0; min-width: 0; height: 38px; border-top: 0; border-left: 2px dashed #ff4d5e; }
    .dd-link-ok { border-left: 2px solid var(--primary); }
    .dd-link i { top: 0; left: -5px; animation-name: dd-run-y; }
}
@media (prefers-reduced-motion: reduce) { .dd-link i { animation: none; opacity: 1; left: 50%; } }
.dd-single .dd-layers { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.dd-single .dd-layers li { color: var(--text-dim); font-size: .92rem; line-height: 1.8; padding: 14px 18px; border: 1px solid rgba(16,120,240,.35); border-left: 3px solid var(--primary); border-radius: 6px; background: none; text-transform: none; letter-spacing: normal; font-family: inherit; }
.dd-single .dd-layers strong { color: #fff; }
