
/* =========================================================
   CYBERSECURITY LIFE — CRYPTOGRAPHY PAGE
   Full stylesheet with animated cyber grid
   ========================================================= */

.cryptography-page {
    --crypto-bg: #020711;
    --crypto-bg-soft: #071323;
    --crypto-panel: rgba(6, 20, 36, 0.92);
    --crypto-cyan: #58e9ff;
    --crypto-blue: #208cff;
    --crypto-green: #55ffb0;
    --crypto-purple: #a56dff;
    --crypto-yellow: #ffd166;
    --crypto-red: #ff6b81;
    --crypto-text: #f5fbff;
    --crypto-muted: #b5c9d7;
    --crypto-border: rgba(88, 233, 255, 0.18);
    --crypto-shadow: 0 0 34px rgba(32, 140, 255, 0.12), 0 22px 55px rgba(0, 0, 0, 0.42);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--crypto-text);
    background:
        radial-gradient(circle at 14% 12%, rgba(32, 140, 255, 0.14), transparent 28%),
        radial-gradient(circle at 84% 20%, rgba(165, 109, 255, 0.11), transparent 26%),
        radial-gradient(circle at 52% 72%, rgba(85, 255, 176, 0.07), transparent 34%),
        linear-gradient(180deg, #020711 0%, #071323 50%, #020711 100%);
}

.cryptography-page *,
.cryptography-page *::before,
.cryptography-page *::after {
    box-sizing: border-box;
}

.cryptography-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(88, 233, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 233, 255, 0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    animation: cryptoGridMove 18s linear infinite;
}

.cryptography-page::after {
    content: "";
    position: fixed;
    inset: -40%;
    z-index: -3;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            130deg,
            transparent 0,
            transparent 95px,
            rgba(165, 109, 255, 0.026) 96px,
            transparent 97px
        );
    animation: cryptoDataSweep 28s linear infinite;
}

.crypto-introduction,
.crypto-security-goals,
.crypto-encryption-types,
.crypto-comparison-section,
.crypto-digital-signatures,
.crypto-pki-section,
.crypto-real-world,
.crypto-threat-section,
.crypto-best-practices,
.crypto-knowledge-check {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 96px 0;
}

.crypto-introduction + section,
.crypto-security-goals + section,
.crypto-encryption-types + section,
.crypto-comparison-section + section,
.crypto-digital-signatures + section,
.crypto-pki-section + section,
.crypto-real-world + section,
.crypto-threat-section + section,
.crypto-best-practices + section {
    border-top: 1px solid rgba(88, 233, 255, 0.07);
}

.crypto-section-heading {
    max-width: 860px;
    margin: 0 auto 48px;
    text-align: center;
}

.crypto-section-label {
    margin: 0 0 10px;
    color: var(--crypto-green);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.crypto-section-heading h2,
.crypto-signature-content h2,
.crypto-practices-content h2,
.crypto-quiz-card h2,
.crypto-continue-content h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4.7vw, 3.7rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    color: transparent;
    background: linear-gradient(90deg, #fff, var(--crypto-cyan) 52%, var(--crypto-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.crypto-section-heading > p:last-child,
.crypto-signature-content > p,
.crypto-practices-content > p,
.crypto-continue-content > p {
    color: var(--crypto-muted);
    line-height: 1.82;
}

/* HERO */

.crypto-hero {
    position: relative;
    min-height: 820px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    align-items: center;
    gap: 72px;
    padding: 130px max(28px, calc((100vw - 1180px) / 2)) 110px;
    overflow: hidden;
    border-bottom: 1px solid rgba(88, 233, 255, 0.12);
}

.crypto-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(88, 233, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(165, 109, 255, 0.065) 1px, transparent 1px);
    background-size: 58px 58px;
    transform: perspective(780px) rotateX(63deg) scale(1.55) translateY(31%);
    transform-origin: bottom;
    opacity: 0.85;
    animation: cryptoHeroGrid 13s linear infinite;
}

.crypto-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--crypto-blue), var(--crypto-cyan), var(--crypto-purple), transparent);
    box-shadow: 0 0 18px rgba(32, 140, 255, 0.8), 0 0 34px rgba(165, 109, 255, 0.4);
    animation: cryptoDividerPulse 3.5s ease-in-out infinite;
}

.crypto-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 22% 38%, rgba(32, 140, 255, 0.16), transparent 35%),
        radial-gradient(circle at 78% 46%, rgba(165, 109, 255, 0.12), transparent 31%);
    animation: cryptoHeroGlow 8s ease-in-out infinite;
}

.crypto-hero-content {
    position: relative;
    z-index: 3;
    min-width: 0;
    animation: cryptoFadeUp 0.9s ease both;
}

.crypto-status-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 15px;
    border: 1px solid rgba(85, 255, 176, 0.34);
    border-radius: 999px;
    color: var(--crypto-green);
    background: rgba(85, 255, 176, 0.055);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    animation: cryptoBadgeFloat 4s ease-in-out infinite;
}

.crypto-status-dot,
.crypto-card-status span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--crypto-green);
    box-shadow: 0 0 0 0 rgba(85, 255, 176, 0.72);
    animation: cryptoStatusPulse 1.8s ease-out infinite;
}

.crypto-eyebrow {
    margin: 0 0 14px;
    color: var(--crypto-cyan);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.crypto-hero h1 {
    margin: 0;
    padding: 8px 22px 10px 0;
    font-size: clamp(3.2rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    color: transparent;
    background: linear-gradient(90deg, #fff 0%, var(--crypto-cyan) 45%, var(--crypto-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.crypto-hero h1 span {
    display: block;
    background: linear-gradient(90deg, var(--crypto-purple), var(--crypto-cyan), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.crypto-hero-description {
    max-width: 690px;
    margin: 27px 0 0;
    color: #bfd0dd;
    font-size: clamp(1rem, 1.65vw, 1.15rem);
    line-height: 1.82;
}

.crypto-hero-buttons,
.crypto-continue-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 32px;
}

.crypto-primary-button,
.crypto-secondary-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 23px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 900;
    transition: 0.25s ease;
}

.crypto-primary-button {
    color: #00131c;
    background: linear-gradient(135deg, var(--crypto-cyan), var(--crypto-purple));
    box-shadow: 0 0 28px rgba(32, 140, 255, 0.3);
}

.crypto-secondary-button {
    color: #e2f8ff;
    border: 1px solid rgba(88, 233, 255, 0.45);
    background: rgba(3, 15, 26, 0.75);
}

.crypto-primary-button:hover,
.crypto-secondary-button:hover {
    transform: translateY(-4px);
}

/* CRYPTO VISUAL */

.crypto-visual {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.crypto-lock-core {
    position: relative;
    z-index: 4;
    width: 170px;
    height: 170px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 1px solid rgba(88, 233, 255, 0.34);
    border-radius: 42px;
    background:
        radial-gradient(circle, rgba(88, 233, 255, 0.16), transparent 65%),
        rgba(4, 17, 31, 0.94);
    box-shadow: 0 0 48px rgba(32, 140, 255, 0.22), inset 0 0 32px rgba(165, 109, 255, 0.08);
    animation: cryptoCoreFloat 4.5s ease-in-out infinite;
}

.crypto-lock-icon {
    font-size: 4.2rem;
}

.crypto-core-label {
    color: var(--crypto-green);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.crypto-orbit {
    position: absolute;
    border: 1px solid rgba(88, 233, 255, 0.18);
    border-radius: 50%;
}

.crypto-orbit-one {
    width: 250px;
    height: 250px;
    animation: cryptoOrbitSpin 8s linear infinite;
}

.crypto-orbit-two {
    width: 350px;
    height: 350px;
    border-color: rgba(165, 109, 255, 0.18);
    animation: cryptoOrbitSpinReverse 12s linear infinite;
}

.crypto-orbit-three {
    width: 450px;
    height: 450px;
    border-color: rgba(85, 255, 176, 0.12);
    animation: cryptoOrbitSpin 17s linear infinite;
}

.crypto-code-line {
    position: absolute;
    z-index: 5;
    padding: 9px 12px;
    border: 1px solid rgba(88, 233, 255, 0.18);
    border-radius: 8px;
    color: var(--crypto-cyan);
    background: rgba(4, 18, 31, 0.88);
    font-family: "Courier New", monospace;
    font-size: 0.75rem;
    box-shadow: 0 0 18px rgba(32, 140, 255, 0.1);
}

.crypto-code-one { top: 10%; left: 8%; animation: cryptoCodeFloat 4s ease-in-out infinite; }
.crypto-code-two { top: 20%; right: 3%; animation: cryptoCodeFloat 4.5s ease-in-out infinite 0.7s; }
.crypto-code-three { bottom: 18%; left: 2%; animation: cryptoCodeFloat 5s ease-in-out infinite 1.1s; }
.crypto-code-four { bottom: 8%; right: 10%; animation: cryptoCodeFloat 4.8s ease-in-out infinite 1.5s; }

/* SHARED CARD STYLES */

.crypto-process-panel,
.crypto-goals-grid,
.crypto-types-grid,
.crypto-pki-grid,
.crypto-uses-grid,
.crypto-threat-grid {
    display: grid;
    gap: 22px;
}

.crypto-process-panel {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
}

.crypto-goals-grid,
.crypto-pki-grid {
    grid-template-columns: repeat(4, 1fr);
}

.crypto-types-grid {
    grid-template-columns: repeat(3, 1fr);
}

.crypto-uses-grid {
    grid-template-columns: repeat(4, 1fr);
}

.crypto-threat-grid {
    grid-template-columns: repeat(2, 1fr);
}

.crypto-process-item,
.crypto-goal-card,
.crypto-type-card,
.crypto-pki-card,
.crypto-use-card,
.crypto-threat-card,
.crypto-signature-step,
.crypto-practice-item,
.crypto-quiz-card,
.crypto-key-vault,
.crypto-signature-terminal,
.crypto-browser-demo,
.crypto-comparison-table-wrapper {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 233, 255, 0.17);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(8, 28, 48, 0.9), rgba(3, 13, 24, 0.96));
    box-shadow: var(--crypto-shadow);
}

.crypto-process-item,
.crypto-goal-card,
.crypto-type-card,
.crypto-pki-card,
.crypto-use-card {
    padding: 28px;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.crypto-process-item:hover,
.crypto-goal-card:hover,
.crypto-type-card:hover,
.crypto-pki-card:hover,
.crypto-use-card:hover {
    transform: translateY(-8px);
    border-color: rgba(165, 109, 255, 0.46);
    box-shadow: 0 0 34px rgba(165, 109, 255, 0.11), 0 18px 42px rgba(0, 0, 0, 0.35);
}

.crypto-process-number,
.crypto-type-number {
    color: rgba(88, 233, 255, 0.42);
    font-weight: 900;
    letter-spacing: 0.09em;
}

.crypto-process-icon,
.crypto-card-icon,
.crypto-type-icon,
.crypto-pki-icon,
.crypto-quiz-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 18px 0;
    border: 1px solid rgba(165, 109, 255, 0.28);
    border-radius: 16px;
    background: rgba(165, 109, 255, 0.06);
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(165, 109, 255, 0.09);
    animation: cryptoIconPulse 3s ease-in-out infinite;
}

.crypto-process-item h3,
.crypto-goal-card h3,
.crypto-type-card h3,
.crypto-pki-card h3,
.crypto-use-card h3,
.crypto-threat-card h3 {
    margin: 0 0 10px;
}

.crypto-process-item p,
.crypto-goal-card p,
.crypto-type-card p,
.crypto-pki-card p,
.crypto-use-card p,
.crypto-threat-card p {
    color: var(--crypto-muted);
    line-height: 1.72;
}

.crypto-process-arrow {
    text-align: center;
    color: var(--crypto-cyan);
}

.crypto-process-arrow span,
.crypto-process-arrow small {
    display: block;
}

.crypto-process-arrow span {
    font-size: 1.8rem;
    animation: cryptoArrowMove 2s ease-in-out infinite;
}

.featured-process {
    border-color: rgba(85, 255, 176, 0.28);
}

.crypto-card-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--crypto-green);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

/* TYPE CARDS */

.crypto-type-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.crypto-type-top .crypto-type-icon {
    margin: 0;
    flex: 0 0 auto;
}

.crypto-key-diagram,
.crypto-key-pair,
.crypto-hash-example {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
}

.crypto-diagram-box,
.crypto-public-key,
.crypto-private-key,
.crypto-hash-input,
.crypto-hash-output {
    padding: 14px;
    text-align: center;
    border: 1px solid rgba(88, 233, 255, 0.15);
    border-radius: 10px;
    background: rgba(4, 18, 31, 0.68);
}

.crypto-public-key span,
.crypto-public-key strong,
.crypto-public-key small,
.crypto-private-key span,
.crypto-private-key strong,
.crypto-private-key small {
    display: block;
}

.crypto-key-connection {
    color: var(--crypto-cyan);
    font-size: 1.5rem;
    animation: cryptoArrowMove 2s ease-in-out infinite;
}

.crypto-hash-input,
.crypto-hash-output {
    font-family: "Courier New", monospace;
    font-size: 0.78rem;
}

.crypto-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crypto-tag-list span {
    padding: 7px 10px;
    border: 1px solid rgba(85, 255, 176, 0.2);
    border-radius: 999px;
    color: var(--crypto-green);
    background: rgba(85, 255, 176, 0.05);
    font-size: 0.7rem;
}

.crypto-use-case {
    margin-top: 18px;
    padding: 15px;
    border-left: 3px solid var(--crypto-purple);
    border-radius: 0 9px 9px 0;
    color: #c8d7e0;
    background: rgba(165, 109, 255, 0.05);
    line-height: 1.65;
}

/* COMPARISON TABLE */

.crypto-comparison-table-wrapper {
    overflow-x: auto;
}

.crypto-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.crypto-comparison-table th,
.crypto-comparison-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid rgba(88, 233, 255, 0.1);
}

.crypto-comparison-table th {
    color: var(--crypto-cyan);
    background: rgba(32, 140, 255, 0.07);
    font-size: 0.78rem;
    letter-spacing: 0.07em;
}

.crypto-comparison-table tr:hover td {
    background: rgba(88, 233, 255, 0.035);
}

/* DIGITAL SIGNATURES */

.crypto-digital-signatures,
.crypto-best-practices {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 34px;
    align-items: center;
}

.crypto-signature-steps,
.crypto-practice-list {
    display: grid;
    gap: 15px;
    margin-top: 26px;
}

.crypto-signature-step,
.crypto-practice-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 15px;
    align-items: start;
    padding: 18px;
}

.crypto-signature-step > span,
.crypto-practice-item > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(85, 255, 176, 0.28);
    border-radius: 50%;
    color: var(--crypto-green);
    background: rgba(85, 255, 176, 0.05);
    font-weight: 900;
}

.crypto-signature-step h3 {
    margin: 0 0 7px;
}

.crypto-signature-step p,
.crypto-practice-item p {
    margin: 0;
    color: var(--crypto-muted);
    line-height: 1.67;
}

.crypto-signature-terminal {
    min-height: 430px;
    animation: cryptoTerminalFloat 5s ease-in-out infinite;
}

.crypto-terminal-header {
    min-height: 56px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 15px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(88, 233, 255, 0.12);
    background: rgba(3, 14, 25, 0.9);
}

.crypto-terminal-dots {
    display: flex;
    gap: 7px;
}

.crypto-terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.crypto-terminal-dots span:nth-child(1) { background: var(--crypto-red); }
.crypto-terminal-dots span:nth-child(2) { background: var(--crypto-yellow); }
.crypto-terminal-dots span:nth-child(3) { background: var(--crypto-green); }

.crypto-terminal-header p {
    margin: 0;
    color: #cbdde7;
    font-family: "Courier New", monospace;
    font-size: 0.76rem;
}

.crypto-terminal-body {
    padding: 28px;
    font-family: "Courier New", monospace;
}

.crypto-terminal-body p {
    color: #c5d6df;
    line-height: 1.7;
}

.terminal-command {
    color: var(--crypto-cyan);
}

.crypto-terminal-body .terminal-success {
    color: var(--crypto-green);
}

.terminal-cursor {
    display: inline-block;
    width: 9px;
    height: 17px;
    background: var(--crypto-green);
    animation: cryptoCursorBlink 0.9s steps(1) infinite;
}

/* PKI */

.crypto-browser-demo {
    margin-top: 28px;
}

.crypto-browser-top {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(88, 233, 255, 0.1);
    background: rgba(3, 14, 25, 0.9);
}

.crypto-browser-controls {
    display: flex;
    gap: 7px;
}

.crypto-browser-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.crypto-browser-controls span:nth-child(1) { background: var(--crypto-red); }
.crypto-browser-controls span:nth-child(2) { background: var(--crypto-yellow); }
.crypto-browser-controls span:nth-child(3) { background: var(--crypto-green); }

.crypto-address-bar {
    flex: 1;
    padding: 10px 13px;
    border: 1px solid rgba(88, 233, 255, 0.12);
    border-radius: 8px;
    color: #cfe1e9;
    background: rgba(4, 18, 31, 0.72);
    font-size: 0.82rem;
}

.crypto-browser-content {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 22px;
    padding: 28px;
}

.crypto-certificate-shield {
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(85, 255, 176, 0.28);
    border-radius: 24px;
    background: rgba(85, 255, 176, 0.055);
    font-size: 2.6rem;
    animation: cryptoIconPulse 3s ease-in-out infinite;
}

.crypto-certificate-status {
    color: var(--crypto-green);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

/* REAL WORLD USES */

.crypto-use-card > span {
    display: block;
    margin-bottom: 14px;
    font-size: 2rem;
}

/* THREATS */

.crypto-threat-card {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
    align-items: start;
    padding: 22px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.crypto-threat-card:hover {
    transform: translateX(7px);
    border-color: rgba(255, 107, 129, 0.42);
}

.crypto-threat-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 107, 129, 0.25);
    border-radius: 14px;
    background: rgba(255, 107, 129, 0.05);
    font-size: 1.4rem;
}

/* KEY VAULT */

.crypto-key-vault {
    padding: 28px;
    animation: cryptoVaultFloat 5s ease-in-out infinite;
}

.crypto-vault-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(88, 233, 255, 0.1);
    color: var(--crypto-cyan);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.crypto-vault-online {
    color: var(--crypto-green);
}

.crypto-vault-lock {
    display: grid;
    place-items: center;
    padding: 34px 0;
}

.crypto-vault-ring {
    width: 140px;
    height: 140px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(165, 109, 255, 0.28);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 109, 255, 0.12), transparent 70%);
    animation: cryptoOrbitSpin 10s linear infinite;
}

.crypto-vault-ring span {
    font-size: 3.6rem;
    animation: cryptoOrbitSpinReverse 10s linear infinite;
}

.crypto-vault-data {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.crypto-vault-data div {
    padding: 14px;
    border: 1px solid rgba(88, 233, 255, 0.1);
    border-radius: 10px;
    background: rgba(4, 18, 31, 0.67);
}

.crypto-vault-data span,
.crypto-vault-data strong {
    display: block;
}

.crypto-vault-data span {
    color: var(--crypto-muted);
    font-size: 0.74rem;
}

.crypto-vault-data strong {
    margin-top: 5px;
    color: var(--crypto-green);
}

/* QUIZ */

.crypto-quiz-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 52px;
    text-align: center;
}

.crypto-quiz-icon {
    margin: 0 auto 18px;
}

.crypto-question {
    max-width: 700px;
    margin: 22px auto;
    color: #d5e5ec;
    font-size: 1.08rem;
    line-height: 1.7;
}

.crypto-answer-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
    margin-top: 24px;
}

.crypto-answer-button {
    min-height: 52px;
    padding: 13px 16px;
    border: 1px solid rgba(88, 233, 255, 0.18);
    border-radius: 10px;
    color: #dcebf1;
    background: rgba(4, 18, 31, 0.72);
    cursor: pointer;
    transition: 0.25s ease;
}

.crypto-answer-button:hover {
    transform: translateY(-3px);
    border-color: rgba(165, 109, 255, 0.42);
}

.correct-answer {
    border-color: rgba(85, 255, 176, 0.35);
}

.crypto-answer-note {
    margin-top: 18px;
    color: var(--crypto-green);
    line-height: 1.65;
}

/* CONTINUE LEARNING */

.crypto-continue-learning {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    margin: 20px auto 0;
    padding: 88px 70px;
    display: grid;
    grid-template-columns: 1fr 280px;
    align-items: center;
    gap: 40px;
    overflow: hidden;
    border: 1px solid rgba(88, 233, 255, 0.2);
    border-radius: 24px;
    background:
        radial-gradient(circle at 82% 50%, rgba(165, 109, 255, 0.13), transparent 30%),
        linear-gradient(145deg, rgba(7, 27, 47, 0.95), rgba(3, 13, 24, 0.98));
    box-shadow: var(--crypto-shadow);
}

.crypto-continue-glow {
    position: absolute;
    right: 3%;
    top: 50%;
    width: 280px;
    height: 280px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 233, 255, 0.14), transparent 70%);
    animation: cryptoContinueGlow 5s ease-in-out infinite;
}

.crypto-continue-content,
.crypto-continue-symbol {
    position: relative;
    z-index: 2;
}

.crypto-continue-symbol {
    display: grid;
    place-items: center;
}

.crypto-continue-symbol span {
    font-size: 7rem;
    filter: drop-shadow(0 0 28px rgba(165, 109, 255, 0.35));
    animation: cryptoCoreFloat 4.5s ease-in-out infinite;
}

/* ANIMATIONS */

@keyframes cryptoGridMove {
    to { background-position: 46px 46px, 46px 46px; }
}

@keyframes cryptoDataSweep {
    from { transform: translate3d(-8%, -8%, 0) rotate(0deg); }
    to { transform: translate3d(8%, 8%, 0) rotate(3deg); }
}

@keyframes cryptoHeroGrid {
    to { background-position: 0 58px, 58px 0; }
}

@keyframes cryptoDividerPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes cryptoHeroGlow {
    0%, 100% { opacity: 0.72; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes cryptoFadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cryptoBadgeFloat,
cryptoCodeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes cryptoCodeFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes cryptoStatusPulse {
    0% { box-shadow: 0 0 0 0 rgba(85, 255, 176, 0.72); }
    70% { box-shadow: 0 0 0 11px rgba(85, 255, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(85, 255, 176, 0); }
}

@keyframes cryptoCoreFloat {
    0%, 100% { transform: translateY(0) rotate(-0.5deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes cryptoOrbitSpin {
    to { transform: rotate(360deg); }
}

@keyframes cryptoOrbitSpinReverse {
    to { transform: rotate(-360deg); }
}

@keyframes cryptoIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes cryptoArrowMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes cryptoTerminalFloat,
cryptoVaultFloat {
    0%, 100% { transform: translateY(0) rotate(-0.2deg); }
    50% { transform: translateY(-10px) rotate(0.2deg); }
}

@keyframes cryptoCursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes cryptoContinueGlow {
    0%, 100% { opacity: 0.55; transform: translateY(-50%) scale(0.92); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.08); }
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .crypto-hero,
    .crypto-digital-signatures,
    .crypto-best-practices,
    .crypto-continue-learning {
        grid-template-columns: 1fr;
    }

    .crypto-hero {
        text-align: center;
    }

    .crypto-status-badge,
    .crypto-hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .crypto-hero-buttons,
    .crypto-continue-buttons {
        justify-content: center;
    }

    .crypto-visual {
        min-height: 500px;
    }

    .crypto-process-panel {
        grid-template-columns: 1fr;
    }

    .crypto-process-arrow {
        transform: rotate(90deg);
    }

    .crypto-goals-grid,
    .crypto-pki-grid,
    .crypto-uses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .crypto-types-grid {
        grid-template-columns: 1fr;
    }

    .crypto-signature-terminal,
    .crypto-key-vault {
        width: min(680px, 100%);
        margin: 0 auto;
    }

    .crypto-continue-content {
        text-align: center;
    }
}

@media (max-width: 760px) {
    .crypto-introduction,
    .crypto-security-goals,
    .crypto-encryption-types,
    .crypto-comparison-section,
    .crypto-digital-signatures,
    .crypto-pki-section,
    .crypto-real-world,
    .crypto-threat-section,
    .crypto-best-practices,
    .crypto-knowledge-check {
        width: min(100% - 28px, 1180px);
        padding: 76px 0;
    }

    .crypto-hero {
        min-height: auto;
        padding: 100px 18px 82px;
    }

    .crypto-hero h1 {
        font-size: clamp(3rem, 15vw, 5rem);
        line-height: 1.02;
    }

    .crypto-primary-button,
    .crypto-secondary-button {
        width: 100%;
    }

    .crypto-hero-buttons,
    .crypto-continue-buttons {
        flex-direction: column;
    }

    .crypto-goals-grid,
    .crypto-pki-grid,
    .crypto-uses-grid,
    .crypto-threat-grid,
    .crypto-answer-options {
        grid-template-columns: 1fr;
    }

    .crypto-key-diagram,
    .crypto-key-pair,
    .crypto-hash-example {
        grid-template-columns: 1fr;
    }

    .crypto-browser-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .crypto-certificate-shield {
        margin: 0 auto;
    }

    .crypto-continue-learning {
        width: min(100% - 28px, 1180px);
        padding: 70px 28px;
    }

    .crypto-continue-symbol span {
        font-size: 5.5rem;
    }
}

@media (max-width: 500px) {
    .crypto-process-item,
    .crypto-goal-card,
    .crypto-type-card,
    .crypto-pki-card,
    .crypto-use-card,
    .crypto-threat-card,
    .crypto-quiz-card,
    .crypto-key-vault,
    .crypto-signature-terminal {
        padding: 22px;
    }

    .crypto-vault-data {
        grid-template-columns: 1fr;
    }

    .crypto-threat-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .crypto-threat-icon {
        margin: 0 auto;
    }

    .crypto-visual {
        transform: scale(0.82);
        margin: -45px 0;
    }

    .crypto-address-bar {
        font-size: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cryptography-page *,
    .cryptography-page *::before,
    .cryptography-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
