/* ============================================================
   DATA SECURITY KNOWLEDGE - Psychologically Optimized Design

   Design Principles Used:
   - Color Psychology: Red=danger, Green=safe, Blue=trust, Orange=warning
   - Von Restorff Effect: Important elements visually distinct
   - Progressive Disclosure: Expandable sections
   - Protection Motivation Theory: Threat + Solution pairing
   - Gestalt Principles: Proximity, similarity, closure
   - F-Pattern / Z-Pattern Layout
   - Contrast & Visual Hierarchy
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2035;
    --bg-card-hover: #1f2a45;
    --bg-glass: rgba(26, 32, 53, 0.7);

    --text-primary: #e8eaf0;
    --text-secondary: #9ca3b4;
    --text-muted: #6b7280;

    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.3);
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.3);
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.3);
    --accent-orange: #f59e0b;
    --accent-orange-glow: rgba(245, 158, 11, 0.3);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.3);

    --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #1a1040 50%, #0a0e1a 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-safe: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-info: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-warn: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(59, 130, 246, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.15);
    --shadow-glow-red: 0 0 30px rgba(239, 68, 68, 0.15);
    --shadow-glow-green: 0 0 30px rgba(16, 185, 129, 0.15);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* === ANIMATED BACKGROUND === */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.floating-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 20s ease-in-out infinite;
}

.floating-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.floating-orb.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-purple);
    bottom: -50px;
    left: -50px;
    animation-delay: -7s;
}

.floating-orb.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-cyan);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.03); }
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 2rem;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo .shield-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-info);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow-blue);
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 1px;
}

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

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* === MAIN CONTAINER === */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: 70px;
}

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

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

/* === HERO SECTIONS === */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    animation: fadeInUp 0.6s ease 0.1s both;
    letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

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

/* === STAT COUNTERS (Social Proof / Anchoring) === */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-number.danger { color: var(--accent-red); }
.stat-number.safe { color: var(--accent-green); }
.stat-number.warn { color: var(--accent-orange); }

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* === SECTION HEADERS === */
.section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
}

.section-tag.danger { color: var(--accent-red); }
.section-tag.safe { color: var(--accent-green); }
.section-tag.warn { color: var(--accent-orange); }
.section-tag.purple { color: var(--accent-purple); }

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 640px;
}

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

.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-info);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card), var(--shadow-glow-blue);
}

.card:hover::before {
    opacity: 1;
}

.card.card-danger::before { background: var(--gradient-danger); }
.card.card-danger:hover { box-shadow: var(--shadow-card), var(--shadow-glow-red); border-color: rgba(239, 68, 68, 0.15); }

.card.card-safe::before { background: var(--gradient-safe); }
.card.card-safe:hover { box-shadow: var(--shadow-card), var(--shadow-glow-green); border-color: rgba(16, 185, 129, 0.15); }

.card.card-warn::before { background: var(--gradient-warn); }
.card.card-warn:hover { border-color: rgba(245, 158, 11, 0.15); }

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.card-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.15);
}

.card-icon.safe {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.15);
}

.card-icon.warn {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.15);
}

.card-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.15);
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* === FEATURE CARDS (larger with numbering) === */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(59, 130, 246, 0.15);
    line-height: 1;
    flex-shrink: 0;
    width: 50px;
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === ALERT BOXES (Fear Appeal with Efficacy) === */
.alert-box {
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid;
}

.alert-box.alert-danger {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-box.alert-warning {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.2);
}

.alert-box.alert-success {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-box.alert-info {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.2);
}

.alert-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-box h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.alert-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === CODE / TERMINAL BLOCKS === */
.terminal-block {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    margin: 1.25rem 0;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.terminal-body {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #e6edf3;
    overflow-x: auto;
}

.terminal-body .prompt {
    color: var(--accent-green);
}

.terminal-body .comment {
    color: #6e7681;
}

.terminal-body .command {
    color: #e6edf3;
}

.terminal-body .output {
    color: var(--text-muted);
}

.terminal-body .highlight {
    color: var(--accent-orange);
}

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

.terminal-body .error {
    color: var(--accent-red);
}

/* === STEP/PROCESS INDICATOR === */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-green));
    border-radius: 1px;
}

.step {
    display: flex;
    gap: 1.25rem;
    position: relative;
}

.step-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
    color: var(--accent-blue);
}

.step-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === ACCORDION / EXPANDABLE === */
.accordion {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 0.75rem 0;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
    border: none;
    width: 100%;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
}

.accordion-header:hover {
    background: var(--bg-card-hover);
}

.accordion-chevron {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.accordion.open .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(17, 24, 39, 0.5);
}

.accordion.open .accordion-body {
    max-height: 2000px;
}

.accordion-content {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === TABLE / COMPARISON === */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.comparison-table thead th {
    background: var(--bg-card);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-table tbody td {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

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

.comparison-table tbody tr {
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.badge-orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

/* === CHECK / X LIST === */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.check-list li .icon-check {
    color: var(--accent-green);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.check-list li .icon-x {
    color: var(--accent-red);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.check-list li .icon-warn {
    color: var(--accent-orange);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* === PROGRESS BAR === */
.progress-container {
    margin: 1rem 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1.5s ease;
    background: var(--gradient-info);
}

.progress-fill.danger { background: var(--gradient-danger); }
.progress-fill.safe { background: var(--gradient-safe); }
.progress-fill.warn { background: var(--gradient-warn); }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-info);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--accent-blue);
    z-index: 1;
}

.timeline-dot.danger { border-color: var(--accent-red); }
.timeline-dot.safe { border-color: var(--accent-green); }
.timeline-dot.warn { border-color: var(--accent-orange); }

.timeline-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.timeline-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-item .time-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* === TABS === */
.tabs-container {
    margin: 1.5rem 0;
}

.tab-buttons {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 1rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.tab-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === TOOLTIP === */
.tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dashed var(--text-muted);
}

.tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    margin-bottom: 6px;
    z-index: 100;
}

/* === ICON FEATURE (horizontal layout) === */
.icon-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 1rem 0;
}

.icon-feature .if-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.icon-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.icon-feature p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* === CALLOUT BOX === */
.callout {
    border-left: 4px solid var(--accent-blue);
    padding: 1.25rem 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.5rem 0;
}

.callout.callout-danger { border-color: var(--accent-red); background: rgba(239, 68, 68, 0.05); }
.callout.callout-safe { border-color: var(--accent-green); background: rgba(16, 185, 129, 0.05); }
.callout.callout-warn { border-color: var(--accent-orange); background: rgba(245, 158, 11, 0.05); }

.callout h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.callout p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === FOOTER === */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === MATRIX RAIN CANVAS (Landing page) === */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.04;
    pointer-events: none;
}

/* === INTERACTIVE DEMO === */
.demo-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 1.5rem 0;
}

.demo-container h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.password-meter {
    margin: 1rem 0;
}

.password-input {
    width: 100%;
    padding: 12px 16px;
    background: #0d1117;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.password-input:focus {
    border-color: var(--accent-blue);
}

.strength-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 100px;
    transition: all 0.4s ease;
    width: 0%;
}

.strength-text {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* === PAGE-SPECIFIC HERO VARIANTS === */
.hero-compact {
    padding: 4rem 0 2.5rem;
}

.page-hero {
    padding: 5rem 0 3rem;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

/* === FILE SCANNER ANIMATION === */
.scanner-animation {
    position: relative;
    background: #0d1117;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    overflow: hidden;
    margin: 1.5rem 0;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
    animation: scanDown 3s ease-in-out infinite;
}

@keyframes scanDown {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0.3; }
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.file-item:last-child {
    border-bottom: none;
}

.file-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.file-status.clean { background: var(--accent-green); }
.file-status.suspicious { background: var(--accent-orange); }
.file-status.infected { background: var(--accent-red); animation: blink 1s ease-in-out infinite; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* === TWO COLUMN LAYOUT === */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* === SHIELD ANIMATION === */
.shield-anim {
    width: 120px;
    height: 140px;
    margin: 0 auto 2rem;
    position: relative;
}

.shield-anim svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

.shield-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.15);
    animation: shieldPulse 2s ease-out infinite;
}

@keyframes shieldPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .stats-bar {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .card-grid,
    .card-grid-3 {
        grid-template-columns: 1fr;
    }

    .feature-card {
        flex-direction: column;
        gap: 0.75rem;
    }

    .container, .container-wide {
        padding: 0 1.25rem;
    }
}

/* === SCROLL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === LINK CARDS (nav page) === */
.link-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.link-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(6px);
    box-shadow: var(--shadow-card);
}

.link-card .lc-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.link-card .lc-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.link-card .lc-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.link-card .lc-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.link-card:hover .lc-arrow {
    transform: translateX(4px);
    color: var(--accent-blue);
}
