/* Modern reset & base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0f0f12;
    --surface: #18181c;
    --surface-hover: #222228;
    --text: #e8e8ed;
    --text-muted: #9898a4;
    --accent: #ec4899;
    --accent-hover: #f472b6;
    --color-red: #ef4444;
    --color-yellow: #eab308;
    --color-orange: #f97316;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: var(--font-sans);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent);
}

nav a[href="/"] {
    color: var(--text);
    font-weight: 600;
}

/* Main content */
main {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
    width: 100%;
}

main>h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Homepage hero title – more noticeable */
main>h1.hero-title {
    font-size: clamp(2.25rem, 6vw, 3.25rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--accent), var(--color-red)) 1;
    background: linear-gradient(135deg, #f472b6 0%, var(--accent) 30%, var(--color-red) 60%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.35));
}

main>p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Sections */
section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

section:hover {
    border-color: rgba(236, 72, 153, 0.2);
    box-shadow: var(--shadow);
}

section h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

section p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Website */
.app {
    background: #fff;
    width: 90%;
    max-width: 600px;
    /**margin: 100px auto 0; */
    border-radius: 10px;
    padding: 30px;
}

.app h1 {
    font-size: 25px;
    color: #001e4d;
    font-weight: 600;
    border-bottom: 1px solid #333;
}

.quiz {
    padding: 20px 0;
}

.quiz h2 {
    font-size: 18px;
    color: #001e4d;
    font-weight: 600;
}

.btn {
    background: #555555;
    color: #ffffff;
    font-weight: 500;
    width: 100%;
    border: 1px solid #222;
    margin: 10px 0;
    padding: 10px;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#next-btn {
    background: #001e4d;
    color: #fff;
    font-weight: 500;
    width: 150px;
    border: 0;
    padding: 10px;
    margin: 20px auto 0;
    border-radius: 4px;
    cursor: pointer;
    display: none;
}

.btn:hover:not([disabled]) {
    background: #222;
    color: #fff;
}

.btn:disabled {
    cursor: no-drop;
}

.correct {
    background: #9aeabc;
}

.incorrect {
    background: #ff9393;
}

/* Buttons */
button {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    background: var(--accent);
    border: 1px solid rgba(236, 72, 153, 0.4);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.35rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
}

button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
}

button:active {
    transform: translateY(1px);
}

/* Password Protector */
.input-box {
    width: 400px;
    max-width: 90%;
    position: relative;
}

.input-box input {
    width: 100%;
    height: 60px;
    padding: 0 20 px;
    border: 1px solid #ccc;
    outline: none;
    color: #fff;
    background: transparent;

}

.container {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.25rem;
}

.container h2 {
    color: #fff;
    margin-bottom: 15px;
}

.input-field {
    position: relative;
}

input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border-radius: 8px;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 15px;
}

input::placeholder {
    color: #eee;
}

.toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    user-select: none;
}

.strength-meter {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: 0.4s;
}

#strengthText {
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
}

/* Article page (e.g. MFA) */
.article-page {
    max-width: 1100px;
}

.article-page .lead,
.mfa-kid .lead {
    color: var(--text-muted);
}

.article-page .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.app {
    background: #2e2e2e;
    width: 90%;
    max-width: 600px;
    /*margin: 100px auto 0; */
    border-radius: 10px;
    padding: 30px;
}

/* Graphic placeholders */
.graphic {
    margin: 1.5rem 0;
}

.graphic-placeholder {
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 2rem;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-hero .graphic-placeholder {
    min-height: 200px;
    font-size: 1rem;
}

.graphic-inline .graphic-placeholder,
.graphic-wide .graphic-placeholder {
    margin-top: 1rem;
}

.graphic-inline .graphic-placeholder {
    min-height: 100px;
}

.graphic-wide .graphic-placeholder {
    min-height: 160px;
}

.graphic img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

/* Accent sections – colored left border */
.section-accent {
    border-left: 4px solid var(--accent);
}

.section-purple {
    border-left-color: var(--accent);
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.06) 0%, transparent 40%);
}

.section-teal {
    border-left-color: var(--color-red);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.06) 0%, transparent 40%);
}

.section-teal:hover {
    border-color: rgba(239, 68, 68, 0.3);
}

.section-amber {
    border-left-color: var(--color-yellow);
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.06) 0%, transparent 40%);
}

.section-amber:hover {
    border-color: rgba(234, 179, 8, 0.3);
}

.section-purple h2 {
    color: #f472b6;
}

.section-teal h2 {
    color: #f87171;
}

.section-amber h2 {
    color: #facc15;
}

/* Nested list indentation */
ul ul {
    margin-left: 1.5rem;
    padding-left: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Callout section */
.section-callout {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(249, 115, 22, 0.08) 100%);
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.section-callout h2 {
    color: #f9a8d4;
}

.section-callout p {
    color: var(--text);
}

/* MFA kid-friendly page – more visual space, easier to read */
.mfa-kid .lead {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.mfa-kid .mfa-section {
    padding: 2rem 2.25rem;
    margin-bottom: 2rem;
}

.mfa-kid .mfa-factors {
    margin-bottom: 2.5rem;
}

.mfa-kid .mfa-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.mfa-kid .mfa-section p+.mfa-list {
    margin-top: 1rem;
}

.mfa-kid .mfa-list {
    font-size: 1.05rem;
    line-height: 1.7;
    padding-left: 1.5rem;
    margin: 0;
}

.mfa-kid .mfa-list li {
    margin-bottom: 0.5rem;
}

.mfa-kid .mfa-factors h2 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.mfa-kid .factor-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mfa-kid .factor-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.mfa-kid .factor-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.mfa-kid .factor-card.factor-know {
    border-color: rgba(236, 72, 153, 0.4);
}

.mfa-kid .factor-card.factor-have {
    border-color: rgba(239, 68, 68, 0.4);
}

.mfa-kid .factor-card.factor-are {
    border-color: rgba(234, 179, 8, 0.4);
}

.mfa-kid .factor-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.mfa-kid .factor-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.mfa-kid .factor-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .mfa-kid .factor-cards {
        grid-template-columns: 1fr;
    }
}

/* Password strength text (form) */
form .text {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: -10px;
}

form .text.weak {
    color: #ff4757;
}

form .text.medium {
    color: rgb(255, 120, 248);
}

form .text.strong {
    color: #23ad5c;
}

/* Phishing activity – interactive example email */
.phishing-activity .phishing-example {
    margin-bottom: 2rem;
}

.phishing-activity .phishing-example:last-child {
    margin-bottom: 0;
}

.phishing-activity .email-example-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 1.5rem 0 0.5rem;
}

.phishing-activity .phishing-example:first-child .email-example-label {
    margin-top: 0;
}

.phishing-activity .email-mockup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1.25rem 0;
    max-width: 100%;
}

.phishing-activity .email-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.phishing-activity .email-meta {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.phishing-activity .email-meta:last-child {
    margin-bottom: 0;
}

.phishing-activity .email-meta strong {
    color: var(--text-muted);
    margin-right: 0.35rem;
}

.phishing-activity .email-body {
    padding: 1.25rem 1.25rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}

.phishing-activity .email-body p {
    margin-bottom: 1rem;
    color: inherit;
}

.phishing-activity .email-body p:last-child {
    margin-bottom: 0;
}

.phishing-activity .phish-spot {
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.phishing-activity .phish-spot--found {
    background-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5);
}

.phishing-activity .email-fake-btn {
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    background: rgba(236, 72, 153, 0.25);
    border: 1px solid rgba(236, 72, 153, 0.5);
}

.phishing-activity .email-fake-btn:hover {
    background: rgba(236, 72, 153, 0.35);
}

.phishing-activity .hint-list {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius);
}

.phishing-activity .phish-counter {
    font-weight: 700;
    color: #f87171;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.phishing-activity .hint-list-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.phishing-activity .hint-list ul {
    margin: 0;
    padding-left: 1.25rem;
}

.phishing-activity .hint-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.phishing-activity .hint-list li strong {
    color: #f87171;
}

.phishing-activity .hint-list-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}


/* Malware comparison table */
.comparison-intro {
    margin-bottom: 1.25rem;
}

.comparison-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.comparison-table thead th {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    font-weight: 600;
    border-bottom: 2px solid rgba(239, 68, 68, 0.35);
}

.comparison-table tbody th {
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 600;
    width: 10rem;
}

.comparison-table tbody td {
    background: var(--surface);
    color: var(--text);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.875rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.75rem;
    }

    .comparison-table tbody th {
        width: 7rem;
    }
}

/* Malware page – fake “misplaced” ad (educational) */
.malware-page .fake-ad-wrap {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 160px;
}

.malware-page .fake-ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 0.75rem;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    color: #92400e;
    font-family: var(--font-sans);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.malware-page .fake-ad:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}

.malware-page .fake-ad-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #b45309;
    margin-bottom: 0.35rem;
}

.malware-page .fake-ad-headline {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.malware-page .fake-ad-sub {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.malware-page .fake-ad-cta {
    font-size: 0.8rem;
    font-weight: 800;
    color: #b45309;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .malware-page .fake-ad-wrap {
        right: 0.75rem;
        width: 140px;
    }

    .malware-page .fake-ad-headline {
        font-size: 0.9rem;
    }
}

/* Fake ad warning modal */
.fake-ad-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.fake-ad-modal[hidden] {
    display: none;
}

.fake-ad-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.fake-ad-modal-box {
    position: relative;
    max-width: 420px;
    width: 100%;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.fake-ad-modal-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-orange);
}

.fake-ad-modal-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.fake-ad-modal-close {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease;
}

.fake-ad-modal-close:hover {
    background: var(--accent-hover);
}

/* Certificate / celebration page */
.cert-celebration .lead {
    text-align: center;
    margin-bottom: 2.5rem;
}

.cert-hero {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f472b6 0%, var(--accent) 35%, var(--color-red) 70%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.certificate-card {
    background: var(--surface);
    border: 2px solid rgba(236, 72, 153, 0.35);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.certificate-inner {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.certificate-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.certificate-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.certificate-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.certificate-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.cert-page .cert-summary h2 {
    margin-bottom: 0.75rem;
}

.cert-actions {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.cert-actions h2 {
    margin-bottom: 0.5rem;
}

.cert-actions p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 1.5rem;
    text-align: center;
}

footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

a:link{
    color:#ffffff;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
