/* ==================================================
   CYBER SAFE
   DARK CYBERSECURITY WEBSITE
================================================== */

:root {
    --bg: #020817;
    --bg-secondary: #071225;
    --card: rgba(10, 22, 42, 0.75);
    --border: rgba(125, 157, 204, 0.18);

    --text: #f8fafc;
    --muted: #94a3b8;

    --blue: #3b82f6;
    --cyan: #22d3ee;
    --purple: #a855f7;
    --pink: #d946ef;

    --gradient: linear-gradient(
        135deg,
        #2563eb,
        #7c3aed,
        #d946ef
    );

    --shadow:
        0 20px 70px rgba(37, 99, 235, 0.18);

    --transition: 0.35s ease;
}


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(37, 99, 235, 0.12),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: auto;
}


/* ================= PRELOADER ================= */

#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #020817;

    transition: 0.6s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    color: var(--cyan);
}

.loader i {
    font-size: 50px;

    animation:
        pulse 1s infinite alternate,
        rotateShield 4s linear infinite;
}

.loader span {
    letter-spacing: 4px;
    font-weight: 800;
}


/* ================= HEADER ================= */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(2, 8, 23, 0.72);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid transparent;

    transition: var(--transition);
}

.header.scrolled {
    border-color: var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.nav-container {
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(34, 211, 238, 0.18),
            rgba(124, 58, 237, 0.3)
        );

    border: 1px solid rgba(34, 211, 238, 0.3);

    color: var(--cyan);

    box-shadow:
        0 0 25px rgba(34, 211, 238, 0.2);
}

.logo strong {
    display: block;
    font-size: 14px;
    letter-spacing: 1px;
}

.logo small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-top: 2px;
}

.navbar {
    display: flex;
    gap: 28px;
}

.navbar a {
    position: relative;

    font-size: 13px;
    font-weight: 600;

    color: #cbd5e1;

    transition: var(--transition);
}

.navbar a:hover,
.navbar a.active {
    color: white;
}

.navbar a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--gradient);

    transition: var(--transition);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    padding: 14px 24px;

    border-radius: 9px;

    background: var(--gradient);

    color: white;

    font-size: 13px;
    font-weight: 700;

    border: none;

    box-shadow:
        0 10px 30px rgba(59, 130, 246, 0.25);

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 40px rgba(124, 58, 237, 0.4);
}

.btn-small {
    padding: 11px 22px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(96, 165, 250, 0.6);
    box-shadow: none;
}

.menu-btn {
    display: none;

    width: 42px;
    height: 42px;

    background: transparent;
    color: white;

    border: 1px solid var(--border);
    border-radius: 8px;

    font-size: 18px;
}


/* ================= HERO ================= */

.hero {
    min-height: 100vh;
    padding-top: 120px;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    top: 10%;
    right: -15%;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, 0.2),
            transparent 65%
        );

    filter: blur(20px);
}

.hero-grid {
    position: absolute;
    inset: 0;

    opacity: 0.18;

    background-image:
        linear-gradient(
            rgba(59, 130, 246, 0.15) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(59, 130, 246, 0.15) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 40px;

    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;

    border: 1px solid rgba(168, 85, 247, 0.5);

    border-radius: 30px;

    background: rgba(124, 58, 237, 0.08);

    color: #c4b5fd;

    font-size: 11px;
    font-weight: 700;

    margin-bottom: 24px;
}

.badge i {
    color: var(--cyan);
}

.hero h1 {
    font-size: clamp(45px, 6vw, 78px);

    line-height: 0.98;

    letter-spacing: -4px;

    margin-bottom: 28px;
}

.hero h1 span {
    background:
        linear-gradient(
            90deg,
            #60a5fa,
            #2563eb
        );

    -webkit-background-clip: text;
    color: transparent;
}

.hero h1 strong {
    background:
        linear-gradient(
            90deg,
            #c084fc,
            #e879f9
        );

    -webkit-background-clip: text;
    color: transparent;
}

.hero-content > p {
    max-width: 600px;

    color: var(--muted);

    line-height: 1.8;

    font-size: 16px;

    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;

    margin-top: 50px;

    gap: 35px;
}

.hero-stat div {
    padding-right: 35px;

    border-right: 1px solid var(--border);
}

.hero-stat div:last-child {
    border: none;
}

.hero-stat strong {
    display: block;

    font-size: 20px;

    color: white;
}

.hero-stat span {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
}


/* HERO IMAGE */

.hero-image {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 620px;

    border-radius: 20px;

    filter:
        drop-shadow(
            0 0 35px rgba(37, 99, 235, 0.35)
        );

    animation: float 5s ease-in-out infinite;
}

.image-glow {
    position: absolute;

    width: 65%;
    height: 65%;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, 0.4),
            rgba(124, 58, 237, 0.18),
            transparent 70%
        );

    filter: blur(40px);
}

.floating-card {
    position: absolute;
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 15px;

    background: rgba(5, 15, 32, 0.85);

    border: 1px solid var(--border);

    border-radius: 12px;

    backdrop-filter: blur(15px);

    box-shadow: var(--shadow);
}

.floating-card i {
    color: var(--cyan);
    font-size: 18px;
}

.floating-card strong {
    display: block;
    font-size: 11px;
}

.floating-card small {
    color: var(--muted);
    font-size: 9px;
}

.card-one {
    left: 5%;
    top: 25%;

    animation: float 4s ease-in-out infinite;
}

.card-two {
    right: 5%;
    bottom: 20%;

    animation: float 4.5s ease-in-out infinite reverse;
}


/* ================= SECTION ================= */

.section {
    padding: 110px 0;

    position: relative;
}

.section-title {
    margin-bottom: 50px;
}

.section-label {
    display: block;

    color: #60a5fa;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 12px;
}

.section-title h2 {
    font-size: clamp(30px, 4vw, 45px);

    letter-spacing: -1.5px;

    margin-bottom: 16px;
}

.section-title p {
    max-width: 650px;

    color: var(--muted);

    line-height: 1.7;

    font-size: 14px;
}


/* ================= THREAT ================= */

.threat-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.threat-card {
    position: relative;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 30, 55, 0.75),
            rgba(5, 14, 28, 0.8)
        );

    border: 1px solid var(--border);

    border-radius: 15px;

    overflow: hidden;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.threat-card::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    right: -70px;
    top: -70px;

    background: var(--blue);

    opacity: 0.08;

    border-radius: 50%;

    filter: blur(20px);
}

.threat-card:hover {
    transform: translateY(-10px);

    border-color: rgba(96, 165, 250, 0.5);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3);
}

.icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    font-size: 20px;

    margin-bottom: 22px;
}

.icon.blue {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.13);
}

.icon.red {
    color: #fb7185;
    background: rgba(244, 63, 94, 0.12);
}

.icon.yellow {
    color: #facc15;
    background: rgba(234, 179, 8, 0.12);
}

.icon.purple {
    color: #c084fc;
    background: rgba(168, 85, 247, 0.13);
}

.threat-card h3 {
    margin-bottom: 12px;
}

.threat-card p {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;

    min-height: 100px;
}

.threat-card a {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 18px;

    color: #60a5fa;

    font-size: 11px;

    font-weight: 700;
}


/* ================= TIPS ================= */

.tips-section {
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(15, 23, 42, 0.35),
            transparent
        );
}

.tips-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}

.tip-card {
    position: relative;

    padding: 25px;

    min-height: 230px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 14px;

    transition: var(--transition);

    overflow: hidden;
}

.tip-card:hover {
    transform: translateY(-7px);

    border-color: rgba(96, 165, 250, 0.5);

    background:
        rgba(15, 35, 65, 0.85);
}

.tip-card > span {
    position: absolute;

    right: 18px;
    top: 15px;

    color: rgba(148, 163, 184, 0.25);

    font-size: 25px;

    font-weight: 800;
}

.tip-card i {
    display: block;

    color: var(--cyan);

    font-size: 24px;

    margin-bottom: 20px;
}

.tip-card h3 {
    font-size: 15px;

    margin-bottom: 10px;
}

.tip-card p {
    color: var(--muted);

    font-size: 11px;

    line-height: 1.7;
}


/* ================= GUIDE ================= */

.guide-wrapper {
    display: grid;

    grid-template-columns: 1.4fr 0.6fr;

    gap: 25px;
}

.guide-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.guide-item {
    display: flex;

    gap: 20px;

    padding: 24px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 13px;

    transition: var(--transition);
}

.guide-item:hover,
.guide-item.active {
    border-color: rgba(59, 130, 246, 0.5);

    transform: translateX(7px);
}

.guide-number {
    min-width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        rgba(59, 130, 246, 0.12);

    color: #60a5fa;

    font-weight: 800;
}

.guide-item h3 {
    margin-bottom: 8px;
}

.guide-item p {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;
}

.guide-warning {
    padding: 30px;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(127, 29, 29, 0.18),
            rgba(30, 15, 35, 0.5)
        );

    border: 1px solid rgba(248, 113, 113, 0.2);
}

.guide-warning > i {
    color: #fb7185;

    font-size: 35px;

    margin-bottom: 20px;
}

.guide-warning h3 {
    margin-bottom: 12px;
}

.guide-warning p {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.8;
}

.warning-box {
    margin-top: 25px;

    padding: 15px;

    border-radius: 10px;

    background: rgba(0, 0, 0, 0.2);

    font-size: 11px;
}

.warning-box strong {
    color: #fb7185;

    display: block;

    margin-bottom: 5px;
}

.warning-box span {
    color: #cbd5e1;
}


/* ================= DEVICE ================= */

.device-tabs {
    display: inline-flex;

    padding: 5px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: rgba(15, 23, 42, 0.6);

    margin-bottom: 35px;
}

.device-tab {
    padding: 11px 20px;

    background: transparent;

    color: var(--muted);

    border: none;

    border-radius: 8px;

    cursor: pointer;

    font-size: 12px;

    font-weight: 600;

    transition: var(--transition);
}

.device-tab.active {
    color: white;

    background: var(--gradient);

    box-shadow:
        0 5px 20px rgba(59, 130, 246, 0.2);
}

.device-content {
    display: none;

    grid-template-columns:
        repeat(4, 1fr);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

.device-content.active {
    display: grid;

    animation: fadeUp 0.5s ease;
}

.device-feature {
    padding: 30px;

    text-align: center;

    border-right: 1px solid var(--border);
}

.device-feature:last-child {
    border: none;
}

.device-feature i {
    color: var(--cyan);

    font-size: 30px;

    margin-bottom: 20px;
}

.device-feature h3 {
    font-size: 14px;

    margin-bottom: 10px;
}

.device-feature p {
    color: var(--muted);

    font-size: 11px;

    line-height: 1.7;
}


/* ================= CHECKLIST ================= */

.checklist-box {
    display: grid;

    grid-template-columns: 1fr 0.7fr;

    gap: 50px;

    padding: 55px;

    border-radius: 20px;

    background:
        radial-gradient(
            circle at 100% 50%,
            rgba(124, 58, 237, 0.18),
            transparent 50%
        ),
        rgba(7, 18, 37, 0.8);

    border: 1px solid var(--border);
}

.checklist-content h2 {
    font-size: 35px;

    margin-bottom: 12px;
}

.checklist-content > p {
    color: var(--muted);

    font-size: 13px;

    margin-bottom: 25px;
}

.check-item {
    display: flex;

    gap: 10px;

    align-items: center;

    margin-bottom: 14px;

    color: #cbd5e1;

    font-size: 12px;
}

.check-item input {
    accent-color: var(--blue);

    width: 17px;
    height: 17px;
}

.check-item input:checked + label {
    color: #60a5fa;

    text-decoration: line-through;
}

.checklist-content .btn {
    margin-top: 15px;
}

.check-result {
    min-height: 20px;

    margin-top: 15px !important;

    font-weight: 700;
}

.checklist-image {
    display: grid;
    place-items: center;
}

.big-shield {
    width: 250px;
    height: 250px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, 0.2),
            rgba(124, 58, 237, 0.08),
            transparent
        );

    border: 1px solid rgba(59, 130, 246, 0.2);

    box-shadow:
        0 0 80px rgba(37, 99, 235, 0.18);

    animation: pulse 2.5s infinite alternate;
}

.big-shield i {
    font-size: 110px;

    background: var(--gradient);

    -webkit-background-clip: text;

    color: transparent;
}


/* ================= CTA ================= */

.cta {
    padding: 35px 0;
}

.cta-container {
    display: flex;

    align-items: center;

    gap: 25px;

    padding: 30px 40px;

    border: 1px solid var(--border);

    border-radius: 16px;

    background:
        linear-gradient(
            100deg,
            rgba(37, 99, 235, 0.12),
            rgba(124, 58, 237, 0.08)
        );
}

.cta-icon {
    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: var(--cyan);

    background: rgba(34, 211, 238, 0.1);

    font-size: 24px;
}

.cta-container > div:nth-child(2) {
    flex: 1;
}

.cta h2 {
    font-size: 18px;

    margin-bottom: 6px;
}

.cta p {
    color: var(--muted);

    font-size: 11px;
}


/* ================= FOOTER ================= */

.footer {
    margin-top: 80px;

    border-top: 1px solid var(--border);

    padding-top: 70px;

    background:
        rgba(0, 0, 0, 0.18);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr 1.2fr;

    gap: 50px;

    padding-bottom: 50px;
}

.footer-brand p {
    color: var(--muted);

    max-width: 350px;

    margin: 20px 0;

    font-size: 11px;

    line-height: 1.8;
}

.social {
    display: flex;

    gap: 8px;
}

.social a {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);

    color: #cbd5e1;

    transition: var(--transition);
}

.social a:hover {
    background: var(--gradient);

    color: white;

    transform: translateY(-3px);
}

.footer-column h3 {
    font-size: 13px;

    margin-bottom: 20px;
}

.footer-column a {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-bottom: 12px;

    transition: var(--transition);
}

.footer-column a:hover {
    color: #60a5fa;

    transform: translateX(4px);
}

.footer-bottom {
    padding: 20px 0;

    display: flex;

    justify-content: space-between;

    border-top: 1px solid var(--border);

    color: #64748b;

    font-size: 10px;
}

.footer-bottom div {
    display: flex;

    gap: 20px;
}


/* ================= BACK TOP ================= */

.back-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: rgba(15, 23, 42, 0.8);

    backdrop-filter: blur(10px);

    color: white;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition: var(--transition);

    z-index: 500;
}

.back-top.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.back-top:hover {
    background: var(--gradient);
}


/* ================= ANIMATION ================= */

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {

    from {
        transform: scale(0.95);
        opacity: 0.7;
    }

    to {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes rotateShield {
    from {
        transform: rotateY(0);
    }

    to {
        transform: rotateY(360deg);
    }
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================= SCROLL REVEAL ================= */

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.show {
    opacity: 1;

    transform: translateY(0);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1000px) {

    .navbar {
        gap: 15px;
    }

    .navbar a {
        font-size: 11px;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-stat {
        justify-content: center;
    }

    .hero-image {
        max-width: 700px;
        margin: auto;
    }

    .threat-grid,
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .device-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .device-feature:nth-child(2) {
        border-right: none;
    }

    .device-feature:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .guide-wrapper {
        grid-template-columns: 1fr;
    }

    .checklist-box {
        grid-template-columns: 1fr;
    }

    .checklist-image {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .nav-container {
        height: 70px;
    }

    .navbar {
        position: absolute;

        top: 70px;
        left: 5%;
        right: 5%;

        display: flex;

        flex-direction: column;

        padding: 20px;

        border: 1px solid var(--border);

        border-radius: 15px;

        background:
            rgba(3, 11, 27, 0.97);

        backdrop-filter: blur(20px);

        transform:
            translateY(-15px);

        opacity: 0;

        visibility: hidden;

        transition: var(--transition);
    }

    .navbar.open {
        transform: translateY(0);

        opacity: 1;

        visibility: visible;
    }

    .navbar a {
        padding: 10px;
    }

    .header .btn-small {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 48px;

        letter-spacing: -2px;
    }

    .hero-stat {
        gap: 15px;
    }

    .hero-stat div {
        padding-right: 15px;
    }

    .section {
        padding: 75px 0;
    }

    .threat-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .device-content {
        grid-template-columns: 1fr;
    }

    .device-feature {
        border-right: none;

        border-bottom: 1px solid var(--border);
    }

    .device-feature:last-child {
        border-bottom: none;
    }

    .checklist-box {
        padding: 30px 22px;
    }

    .cta-container {
        flex-direction: column;

        align-items: flex-start;

        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 15px;
    }

    .footer-bottom div {
        flex-direction: column;

        gap: 7px;
    }

    .floating-card {
        display: none;
    }

    .hero-image img {
        max-width: 100%;
    }
}