/* ============================================
   MEDINA — Anti-Quantum Encryption
   Design: Bright, transparent, professional
   ============================================ */

:root {
    --bg: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-dark: #f8f9fc;
    --bg-accent: #f0f4ff;
    --bg-glass: rgba(255, 255, 255, 0.6);
    --text: #2d3748;
    --text-muted: #718096;
    --text-bright: #1a202c;
    --accent: #2563eb;
    --accent-dim: #1d4ed8;
    --accent-light: #dbeafe;
    --accent-glow: rgba(37, 99, 235, 0.08);
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --success: #059669;
    --success-light: #ecfdf5;
    --gold: #b8860b;
    --gold-light: #fef9e7;
    --border: #e2e8f0;
    --border-light: #edf2f7;
    --radius: 12px;
    --radius-lg: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.08);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Language Switcher ---- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}

.lang-btn {
    padding: 4px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 6px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.lang-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.lang-btn:hover:not(.active) {
    color: var(--text-bright);
    background: var(--border-light);
}

/* ---- Nav ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-bright);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
}

.logo-icon {
    color: var(--accent);
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-btn {
    padding: 6px 16px !important;
    border: 1px solid var(--accent) !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
    transition: all 0.2s !important;
}

.nav-btn:hover {
    background: var(--accent) !important;
    color: #fff !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 500px at 50% 0%, rgba(37, 99, 235, 0.06), transparent),
        radial-gradient(ellipse 400px 300px at 80% 20%, rgba(37, 99, 235, 0.03), transparent),
        radial-gradient(ellipse 600px 400px at 20% 40%, rgba(184, 134, 11, 0.03), transparent);
    pointer-events: none;
}

.hero-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-bright);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.text-danger {
    color: var(--danger);
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--accent-dim);
    border-color: var(--accent-dim);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.hero-badge {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.badge {
    color: var(--accent);
    font-weight: 700;
}

/* ---- Dedication Banner ---- */
.dedication-banner {
    background: linear-gradient(135deg, var(--accent-light), #f0fdf4, var(--gold-light));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.dedication-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(5, 150, 105, 0.03), rgba(184, 134, 11, 0.03));
    pointer-events: none;
}

.dedication-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.dedication-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.dedication-text {
    font-size: 15px;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---- Sections ---- */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-dark);
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 48px;
    line-height: 1.8;
}

/* ---- Problem Grid ---- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.problem-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    font-size: 24px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.problem-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- Stats Bar ---- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--danger);
    font-family: var(--mono);
    margin-bottom: 6px;
}

.stat-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- Pillars ---- */
.pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.pillar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.pillar:hover {
    box-shadow: var(--shadow-lg);
}

.pillar-header {
    padding: 32px 28px 20px;
    border-bottom: 1px solid var(--border);
}

.pillar-num {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
}

.pillar-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-bright);
    margin: 8px 0 4px;
}

.pillar-subtitle {
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
}

.pillar-visual {
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-dark);
}

/* Matryoshka visual */
.doll {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    border-radius: 50%;
    transition: border-color 0.3s;
}

.doll-1 {
    width: 140px;
    height: 140px;
    border-color: rgba(37, 99, 235, 0.15);
}

.doll-2 {
    width: 100px;
    height: 100px;
    border-color: rgba(37, 99, 235, 0.25);
}

.doll-3 {
    width: 64px;
    height: 64px;
    border-color: rgba(37, 99, 235, 0.4);
}

.doll-4 {
    width: 36px;
    height: 36px;
    border-color: var(--accent);
    background: var(--accent-light);
}

.doll-core {
    color: var(--accent);
    font-size: 12px;
}

/* Maze visual */
.maze-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.maze-node {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.maze-node.active {
    background: var(--accent-light);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
}

.pillar-body {
    padding: 28px;
}

.pillar-body p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.code-block {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    overflow-x: auto;
}

.pillar-features {
    list-style: none;
    margin-top: 16px;
}

.pillar-features li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.pillar-features li::before {
    content: "\2022";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Combined box */
.combined-box {
    background: linear-gradient(135deg, var(--accent-light), #f0f7ff);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow);
}

.combined-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.combined-box p {
    font-size: 15px;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---- Implications Grid ---- */
.impl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.impl-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.impl-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.impl-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.impl-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.impl-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- Open Source ---- */
.oss-block {
    max-width: 700px;
}

.oss-text {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.8;
}

.oss-principles {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oss-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text);
}

.oss-check {
    color: var(--success);
    font-weight: 700;
    font-size: 16px;
}

/* ---- Timeline ---- */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
}

.timeline-item.active .timeline-marker {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.3);
}

.timeline-phase {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- Honest Grid ---- */
.honest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.honest-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--danger);
    box-shadow: var(--shadow);
}

.honest-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.honest-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- Royal Tribute ---- */
.tribute-section {
    background: linear-gradient(135deg, #fef9e7 0%, #fff7ed 50%, #fef2f2 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tribute-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.tribute-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow);
}

.tribute-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.tribute-card .tribute-arabic {
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 12px;
    direction: rtl;
}

.tribute-card .tribute-role {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tribute-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- CTA ---- */
.cta-section {
    text-align: center;
    padding: 120px 0;
}

.cta-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ---- Contact ---- */
.contact-section {
    text-align: center;
    padding: 80px 0;
    background: var(--bg-dark);
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 18px;
    color: var(--accent);
    text-decoration: none;
    padding: 16px 32px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    font-weight: 600;
}

.contact-email:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ---- Marrakech ---- */
.marrakech-section {
    text-align: center;
    padding: 60px 24px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, #fffbf5 0%, #fff8f0 100%);
}

.marrakech-title {
    font-family: var(--mono);
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.marrakech-arabic {
    font-size: 1.8rem;
    color: #a07050;
    margin-bottom: 16px;
    direction: rtl;
    opacity: 0.7;
}

.marrakech-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto 8px;
    line-height: 1.7;
}

.marrakech-est {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg);
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-bright);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
}

.footer-credit {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

/* ---- Comparison Table ---- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 0.78rem;
    min-width: 800px;
}

.comparison-table thead tr {
    border-bottom: 2px solid var(--border);
}

.comparison-table th {
    padding: 12px 10px;
    font-weight: 600;
}

.comparison-table td {
    padding: 10px;
    text-align: center;
    color: var(--text-muted);
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-light);
}

.comparison-table .label-col {
    text-align: left;
    color: var(--text-bright);
    font-weight: 500;
}

.t-broken { color: var(--danger) !important; font-weight: 600; }
.t-warn { color: #d97706 !important; }
.t-safe { color: #3b82f6 !important; }
.t-medina { color: var(--success) !important; font-weight: 700; }

/* ---- Giants Table ---- */
.giants-grid {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.giant-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    border-bottom: 1px solid var(--border-light);
}

.giant-row:last-child {
    border-bottom: none;
}

.giant-year {
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 0.7rem;
    padding: 20px 0;
    font-weight: 600;
}

.giant-year.ancient { color: var(--gold); }
.giant-year.modern { color: #d97706; }

.giant-content {
    padding: 24px;
}

.giant-content h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text-bright);
}

.giant-author {
    font-family: var(--mono);
    font-size: 0.75rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.giant-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
        gap: 16px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .problem-grid,
    .impl-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pillars {
        grid-template-columns: 1fr;
    }

    .honest-grid {
        grid-template-columns: 1fr;
    }

    .tribute-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 64px 0;
    }

    .lang-switcher {
        margin-right: 8px;
    }
}

/* ---- Subtle animations ---- */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.4); }
}

.timeline-item.active .timeline-marker {
    animation: pulse-glow 3s ease-in-out infinite;
}

.doll:hover {
    border-color: var(--accent);
}

.maze-node:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

/* Challenge cards on index */
.challenge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.challenge-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.challenge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.challenge-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--mono);
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 1px;
}

.challenge-badge.crackable {
    color: var(--success);
    border: 1px solid var(--success);
    background: var(--success-light);
}

.challenge-badge.impossible {
    color: var(--danger);
    border: 1px solid var(--danger);
    background: var(--danger-light);
}

.challenge-card h3 {
    font-family: var(--mono);
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-bright);
}

.challenge-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.challenge-specs {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.7;
}

/* Comparison side-by-side */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.compare-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.compare-card h3 {
    font-family: var(--mono);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.compare-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Giants closing */
.giants-closing {
    text-align: center;
    margin-top: 32px;
    padding: 24px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.giants-closing p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .challenge-grid,
    .compare-grid {
        grid-template-columns: 1fr;
    }
}
