/**
 * MyCyberCheck - Clean & Responsive Design
 * Simple, proven patterns for perfect responsive behavior
 */

/* ===== Variables ===== */
:root {
    --primary: #0071e3;
    --primary-dark: #0066cc;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --border: #d2d2d7;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);

    --radius: 16px;
    --radius-lg: 20px;
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
}

/* ===== Container ===== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Hero ===== */
.hero-home {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-main-title {
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.25);
    margin-bottom: 20px;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.35);
}

.cta-button-large {
    padding: 18px 40px;
    font-size: 18px;
}

.hero-reassurance {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 15px;
}

.hero-reassurance svg {
    color: #34c759;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.shield-illustration {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ===== Sections ===== */
.privacy-awareness,
.how-it-works,
.privacy-first,
.final-cta {
    padding: 60px 0;
}

.privacy-awareness {
    background: white;
}

.how-it-works {
    background: white;
}

.privacy-first {
    background: var(--bg-secondary);
}

.trust-section {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.final-cta {
    background: white;
    border-top: 1px solid var(--border);
}

/* ===== Headers ===== */
.awareness-header,
.section-header,
.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.awareness-header h2,
.section-header h2,
.cta-content h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.awareness-header p,
.section-intro,
.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.section-tag {
    display: inline-block;
    background: rgba(0, 113, 227, 0.08);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ===== Grids ===== */
.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.trust-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.steps-visual {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== Cards ===== */
.data-card,
.privacy-card,
.step-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.data-card {
    text-align: center;
    background: var(--bg-secondary);
}

.data-card:hover,
.privacy-card:hover,
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.data-icon,
.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 113, 227, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.data-label {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.data-value {
    font-size: 18px;
    font-weight: 600;
}

.privacy-card h3,
.step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.privacy-card p,
.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-card {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 40px;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.step-icon {
    color: var(--primary);
    margin: 20px auto;
}

.step-arrow {
    color: var(--text-secondary);
    opacity: 0.4;
}

/* ===== Messages ===== */
.awareness-message {
    background: rgba(0, 113, 227, 0.04);
    border: 1px solid rgba(0, 113, 227, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.message-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.message-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.message-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.open-source-box {
    background: white;
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.opensource-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.opensource-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.github-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.github-button:hover {
    background: #000;
    transform: translateY(-2px);
}

/* ===== Trust ===== */
.trust-item {
    text-align: center;
}

.trust-item svg {
    color: var(--primary);
    margin-bottom: 16px;
}

.trust-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.trust-item p {
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* ===== Tooltips ===== */
.data-card[data-tooltip] {
    position: relative;
    cursor: help;
}

.data-card[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(29, 29, 31, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    width: 280px;
    max-width: 90vw;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.data-card[data-tooltip]:hover::before {
    opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero-home {
        padding: 40px 0 60px;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-main-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .data-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .privacy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trust-banner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .steps-visual {
        flex-direction: column;
        gap: 40px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .awareness-message {
        flex-direction: column;
        padding: 24px;
    }

    .awareness-header h2,
    .section-header h2,
    .cta-content h2 {
        font-size: 32px;
    }

    .open-source-box {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .awareness-header h2,
    .section-header h2,
    .cta-content h2 {
        font-size: 26px;
    }
}