/* ===== CSS VARIABLES ===== */
:root {
    /* Premium Blue Color Palette - Streamlined & Professional */
    --c-deep: #0a1428;           /* Deepest navy - for backgrounds */
    --c-navy: #1e293b;           /* Rich navy - primary dark */
    --c-teal: #0891b2;           /* Premium teal - primary accent */
    --c-blue-light: #1e40af;     /* Royal blue - secondary accent */
    --c-blue-medium: #3b82f6;    /* Bright blue - highlights */
    --c-blue-dark: #1e3a8a;      /* Deep blue - depth */
    
    /* Neutral Palette */
    --white: #FFFFFF;
    --light-gray: #f8fafc;
    --medium-gray: #94a3b8;
    --dark-gray: #475569;
    --black: #000000;
    
    /* Legacy Support */
    --green: var(--c-teal);
    
    /* Typography System - Professional Landing Page */
    --font-size-xs: 0.8125rem;    /* ~13px */
    --font-size-sm: 0.9375rem;    /* ~15px */
    --font-size-base: 1.05rem;    /* ~16.8px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.35rem;      /* ~21.6px */
    --font-size-2xl: 1.8rem;      /* 28.8px */
    --font-size-3xl: 2.25rem;     /* 36px */
    --font-size-4xl: 2.7rem;      /* 43.2px */
    --font-size-5xl: 2.9rem;      /* 46.4px */
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    --line-height-loose: 1.9;
}

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

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ===== BACKGROUND ===== */
.bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 50%, var(--c-blue-light) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Dots overlay limited to top/bottom bands via mask */
.bg-dots {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0 1px, transparent 1.2px);
    background-size: 22px 22px;
    opacity: 0.9;
    transform: rotate(-12deg);
    /* Show only in top ~30% and bottom ~28% (tweak stops to taste) */
    -webkit-mask:
        linear-gradient(to bottom, black 0%, black 30%, transparent 48%),
        linear-gradient(to top, black 0%, black 28%, transparent 50%);
    mask:
        linear-gradient(to bottom, black 0%, black 30%, transparent 48%),
        linear-gradient(to top, black 0%, black 28%, transparent 50%);
}

/* Graceful fallback where mask isn't supported: soften dots in the centre */
@supports not ((-webkit-mask: none) or (mask: none)) {
    .bg-dots {
        background-image:
            radial-gradient(circle, rgba(74, 144, 226, 0.35) 0 1px, transparent 1.2px),
            /* centre fade reduces dot visibility */
            linear-gradient(to bottom, rgba(4, 26, 51, 0) 20%, rgba(4, 26, 51, 0.85) 55%, rgba(4, 26, 51, 0) 80%);
        background-size: 22px 22px, 100% 100%;
        background-blend-mode: normal, multiply;
        opacity: 0.8;
    }
}

/* ===== HERO SECTION ===== */
.security-hero {
    background: rgba(4, 26, 51, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.security-hero h1 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-tight);
}

.security-hero h2 {
    font-size: var(--font-size-lg);
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-normal);
}

/* ===== SECURITY SECTION ===== */
.security-section {
    padding: 4rem 0;
    background: #ffffff;
}

.security-content {
    max-width: 1200px;
    margin: 0 auto;
}

.security-header {
    text-align: center;
    margin-bottom: 4rem;
}

.security-header h2 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    color: var(--c-deep);
}

.security-header p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SECURITY GRID ===== */
.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.security-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.security-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--c-teal);
}

.security-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    margin-right: 0.75rem;
    box-shadow: 0 2px 8px rgba(10, 20, 40, 0.15);
    flex-shrink: 0;
}

.security-icon i {
    font-size: 0.875rem;
    color: var(--white);
}

.security-item h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--c-deep);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.security-item p {
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.5;
    margin: 0;
}

/* ===== DATA HANDLING SECTION ===== */
.data-handling-section {
    padding: 4rem 0;
    background: #ffffff;
}

.data-handling-content {
    max-width: 1200px;
    margin: 0 auto;
}

.data-handling-header {
    text-align: center;
    margin-bottom: 4rem;
}

.data-handling-header h2 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    color: var(--c-deep);
}

.data-handling-header p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.data-handling-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.data-handling-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.data-handling-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--c-teal);
}

.data-handling-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    margin-right: 0.75rem;
    box-shadow: 0 2px 8px rgba(10, 20, 40, 0.15);
    flex-shrink: 0;
}

.data-handling-icon i {
    font-size: 0.875rem;
    color: var(--white);
}

.data-handling-item h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--c-deep);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.data-handling-item p {
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.5;
    margin: 0;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .security-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .data-handling-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .security-section {
        padding: 3rem 0;
    }

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

    .security-hero h2 {
        font-size: 1.125rem;
    }

    .security-header h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .security-header p {
        font-size: 1rem;
    }

    .security-item {
        padding: 1.5rem;
    }

    .security-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }

    .security-icon i {
        font-size: 1.1rem;
    }

    .security-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
    }

    .security-item p {
        font-size: 0.9rem;
    }

    .data-handling-section {
        padding: 3rem 0;
    }

    .data-handling-header h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .data-handling-header p {
        font-size: 1rem;
    }

    .data-handling-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .data-handling-item {
        padding: 1.25rem;
    }

    .data-handling-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }

    .data-handling-icon i {
        font-size: 1.1rem;
    }

    .data-handling-item h3 {
        font-size: 1.1rem;
    }

    .data-handling-item p {
        font-size: 0.85rem;
    }
}
