/* css/style.css */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a56db;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary: #059669;
    --secondary-light: #10b981;
    --accent: #0ea5e9;
    --danger: #dc2626;
    --danger-light: #fecaca;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --success: #16a34a;
    --success-light: #dcfce7;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.92);
    --text: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2.8rem; letter-spacing: -0.03em; }
h2 { font-size: 2rem; letter-spacing: -0.02em; }
h3 { font-size: 1.4rem; letter-spacing: -0.01em; }

p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 70ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img { max-width: 100%; height: auto; display: block; }

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
}

.nav-logo .logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(26, 86, 219, 0.08);
    color: var(--primary);
}

.nav-links a.active { font-weight: 600; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO SECTION ===== */
.hero {
    padding: 10rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at center top, rgba(26, 86, 219, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at right, rgba(14, 165, 233, 0.04) 0%, transparent 50%);
    z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(26, 86, 219, 0.08);
    border: 1px solid rgba(26, 86, 219, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    margin: 0 auto 3rem;
    max-width: 600px;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(26, 86, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 86, 219, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ef4444);
    color: var(--text-white);
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.15rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 { margin-bottom: 1rem; }

.section-header p {
    margin: 0 auto;
    font-size: 1.15rem;
}

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

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.card-icon.blue { background: rgba(26, 86, 219, 0.1); color: var(--primary); }
.card-icon.green { background: rgba(5, 150, 105, 0.1); color: var(--secondary); }
.card-icon.sky { background: rgba(14, 165, 233, 0.1); color: var(--accent); }
.card-icon.amber { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.card-icon.red { background: rgba(220, 38, 38, 0.1); color: var(--danger); }

.card h3 { margin-bottom: 0.8rem; }
.card p { font-size: 1rem; line-height: 1.6; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.card-link:hover { gap: 0.7rem; }

/* ===== FEATURE CARDS (Home) ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-card .icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.feature-card h3 { margin-bottom: 0.8rem; font-size: 1.25rem; }
.feature-card p { font-size: 0.95rem; margin: 0 auto; text-align: center; }

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 8rem 0 3rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 86, 219, 0.04) 0%, transparent 100%);
}

.page-header h1 { margin-bottom: 1rem; font-size: 2.5rem; }
.page-header p { margin: 0 auto; font-size: 1.2rem; }

/* ===== CONTENT BLOCKS ===== */
.content-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 2rem;
}

.content-block h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-block h3 { font-size: 1.2rem; margin: 1.5rem 0 0.8rem; }
.content-block p { margin-bottom: 1rem; }

.content-block ul, .content-block ol { margin: 1rem 0 1.5rem 1.5rem; }

.content-block li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ===== EXAMPLE BLOCKS ===== */
.example-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.example-header {
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.example-header.phishing {
    background: var(--danger-light);
    color: var(--danger);
    border-bottom: 2px solid var(--danger);
}

.example-header.warning {
    background: var(--warning-light);
    color: #92400e;
    border-bottom: 2px solid var(--warning);
}

.example-content { padding: 2rem; }

.fake-email {
    background: #fafbfc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.fake-email-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.fake-email-header .field { display: flex; gap: 0.5rem; margin-bottom: 0.3rem; }
.fake-email-header .label { font-weight: 600; color: var(--text); min-width: 50px; }
.fake-email-header .value { color: var(--text-light); }

.fake-email-header .suspicious {
    color: var(--danger);
    font-weight: 600;
    text-decoration: underline wavy var(--danger);
}

.fake-email-body { padding: 1.5rem; font-size: 1rem; line-height: 1.7; }

.fake-email-body .fake-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: help;
}

.fake-email-body .fake-button {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: var(--danger);
    color: white;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    font-weight: 600;
    cursor: not-allowed;
}

.annotation {
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.annotation strong { color: #92400e; }

.annotation-danger {
    background: var(--danger-light);
    border-left: 4px solid var(--danger);
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.annotation-danger strong { color: var(--danger); }

.annotation-success {
    background: var(--success-light);
    border-left: 4px solid var(--success);
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.annotation-success strong { color: var(--success); }

/* ===== QUIZ / DEMO ===== */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    transition: var(--transition);
}

.quiz-card.correct {
    border-color: var(--success);
    background: rgba(22, 163, 74, 0.03);
}

.quiz-card.incorrect {
    border-color: var(--danger);
    background: rgba(220, 38, 38, 0.03);
}

.quiz-question {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.quiz-scenario {
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.05rem;
    font-family: var(--font);
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 1;
}

.quiz-option:hover {
    border-color: var(--primary-light);
    background: rgba(26, 86, 219, 0.04);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(26, 86, 219, 0.06);
}

.quiz-option.correct-answer {
    border-color: var(--success);
    background: var(--success-light);
}

.quiz-option.wrong-answer {
    border-color: var(--danger);
    background: var(--danger-light);
}

.quiz-option.disabled {
    pointer-events: none;
    opacity: 0.7;
    cursor: default;
}

.quiz-option .radio-dot {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition);
}

.quiz-option.selected .radio-dot {
    border-color: var(--primary);
}

.quiz-option.selected .radio-dot::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.quiz-option.correct-answer .radio-dot {
    border-color: var(--success);
}

.quiz-option.correct-answer .radio-dot::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
}

.quiz-feedback {
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    font-size: 1rem;
    display: none;
    line-height: 1.6;
}

.quiz-feedback.show { display: block; }

.quiz-feedback.feedback-correct {
    background: var(--success-light);
    border: 1px solid var(--success);
    color: #166534;
    display: block;
}

.quiz-feedback.feedback-incorrect {
    background: var(--danger-light);
    border: 1px solid var(--danger);
    color: #991b1b;
    display: block;
}

.quiz-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.quiz-progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.quiz-score {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    display: none;
}

.quiz-score.show { display: block; }

.quiz-score .score-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-score h2 { margin: 1rem 0 0.5rem; }

/* ===== TIPS ===== */
.tip-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition);
}

.tip-card:hover { box-shadow: var(--shadow-md); }

.tip-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.tip-content h3 { margin-bottom: 0.5rem; }
.tip-content p { font-size: 1rem; }

/* ===== CHECKLIST ===== */
.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
}

.checklist li:last-child { border-bottom: none; }

.checklist .check-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-top: 0.1rem;
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 0;
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label { font-size: 0.95rem; color: var(--text-light); }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-xl);
    padding: 4rem;
    text-align: center;
    margin: 3rem 0;
    color: white;
}

.cta-section h2 { color: white; margin-bottom: 1rem; }

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 2rem;
    font-size: 1.15rem;
}

.cta-section .btn {
    background: white;
    color: var(--primary);
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== ABOUT PAGE ===== */
.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.value-card { text-align: center; padding: 2rem; }

.value-card .icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
    background: rgba(26, 86, 219, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.footer p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.5); max-width: 350px; }
.footer h4 { color: white; font-size: 1rem; margin-bottom: 1rem; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== LINK CHECKER ===== */
.link-checker {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
}

.link-input-group {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.link-input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
}

.link-input-group input:focus { border-color: var(--primary); }

.link-result {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: none;
    font-size: 1rem;
    line-height: 1.6;
}

.link-result.show { display: block; }

.link-result.safe {
    background: var(--success-light);
    border: 1px solid var(--success);
    color: #166534;
}

.link-result.danger {
    background: var(--danger-light);
    border: 1px solid var(--danger);
    color: #991b1b;
}

/* ===== SANFTE EINBLEND-ANIMATION (ersetzt reveal) ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .about-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html { font-size: 16px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: stretch;
        padding: 6rem 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        gap: 0.3rem;
    }

    .nav-links.open { right: 0; }

    .nav-links a {
        padding: 1rem 1.2rem;
        font-size: 1.1rem;
        border-radius: var(--radius-md);
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    .nav-overlay.show { display: block; }

    .hero { padding: 8rem 0 3rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .feature-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; gap: 1.5rem; }
    .content-block { padding: 2rem; }

    .cta-section {
        padding: 3rem 2rem;
        border-radius: var(--radius-lg);
    }

    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .about-values { grid-template-columns: 1fr; }
    .tip-card { flex-direction: column; gap: 1rem; }
    .quiz-card { padding: 1.5rem; }
    .example-content { padding: 1.5rem; }

    .link-input-group { flex-direction: column; }
}

@media (max-width: 480px) {
    .container, .container-narrow { padding: 0 1.2rem; }
    .hero h1 { font-size: 1.8rem; }
    .btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }



.hamburger {
    position: relative;
    z-index: 99999 !important;
    pointer-events: auto;
}

.navbar {
    z-index: 99999;
}