/* =========================================================
   LOCKR
   Secure Messaging Landing Page
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #f1f5ff;

    background:
        #11151d;

    overflow-x: hidden;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

.background {
    position: fixed;

    inset: 0;

    z-index: -10;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(88, 101, 242, 0.16),
            transparent 45%
        ),
        #11151d;
}

.grid {
    position: absolute;

    inset: 0;

    opacity: 0.12;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.04) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 80%
        );
}


.glow {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.12;

    animation: floatGlow 14s ease-in-out infinite;
}

.glow-1 {
    top: -200px;
    left: -150px;
    background: #5865f2;
}

.glow-2 {
    top: 30%;
    right: -250px;
    background: #8b5cf6;

    animation-delay: -5s;
}

.glow-3 {
    bottom: -300px;
    left: 30%;
    background: #3b82f6;

    animation-delay: -9s;
}


@keyframes floatGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(40px, -30px);
    }
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {

    width: min(1180px, calc(100% - 48px));

    height: 76px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {

    display: flex;

    align-items: center;

    gap: 11px;

    color: white;

    text-decoration: none;

    font-size: 21px;

    font-weight: 750;

    letter-spacing: -0.5px;
}


.logo-icon {

    width: 32px;
    height: 32px;

    border-radius: 9px;

    position: relative;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #6475ff,
            #7c3aed
        );

    box-shadow:
        0 8px 25px rgba(88,101,242,0.25);
}


.logo-icon::before {

    content: "";

    width: 13px;
    height: 15px;

    border: 2px solid white;

    border-radius: 7px 7px 8px 8px;
}


.logo-icon span {

    position: absolute;

    width: 5px;
    height: 5px;

    background: white;

    border-radius: 50%;

    bottom: 9px;
}


.nav-links {

    display: flex;

    gap: 32px;

    margin-left: 80px;
}


.nav-links a,
.login-link {

    color: #aeb7ca;

    text-decoration: none;

    font-size: 14px;

    transition:
        color .2s ease,
        transform .2s ease;
}


.nav-links a:hover,
.login-link:hover {

    color: white;

    transform: translateY(-1px);
}


.nav-actions {

    display: flex;

    align-items: center;

    gap: 20px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-height: 46px;

    padding: 0 21px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 650;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.button:hover {

    transform: translateY(-2px);
}


.button-small {

    min-height: 40px;

    padding: 0 17px;

    color: white;

    background: #5865f2;

    box-shadow:
        0 7px 22px rgba(88,101,242,0.2);
}


.button-small:hover {

    background: #6875ff;

    box-shadow:
        0 10px 28px rgba(88,101,242,0.35);
}


.button-primary {

    color: white;

    background:
        linear-gradient(
            135deg,
            #6372ff,
            #7657e9
        );

    box-shadow:
        0 15px 40px rgba(88,101,242,0.25);
}


.button-primary:hover {

    box-shadow:
        0 18px 45px rgba(88,101,242,0.4);
}


.button-secondary {

    color: #dbe1ee;

    background: rgba(255,255,255,0.055);

    border: 1px solid rgba(255,255,255,0.09);
}


.button-secondary:hover {

    background: rgba(255,255,255,0.09);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    width: min(1180px, calc(100% - 48px));

    min-height: 650px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr 0.9fr;

    align-items: center;

    gap: 70px;
}


.hero-content {

    animation: heroIn .8s ease both;
}


@keyframes heroIn {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

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


.status {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 7px 12px;

    margin-bottom: 25px;

    border-radius: 999px;

    color: #aebcff;

    background: rgba(88,101,242,0.08);

    border: 1px solid rgba(100,116,255,0.15);

    font-size: 12px;

    font-weight: 600;
}


.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #6dffb0;

    box-shadow:
        0 0 12px #6dffb0;

    animation: pulse 2s infinite;
}


@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}


.hero h1 {

    max-width: 700px;

    font-size: clamp(48px, 6vw, 75px);

    line-height: .98;

    letter-spacing: -4px;

    font-weight: 800;
}


.hero h1 span {

    display: block;

    background:
        linear-gradient(
            100deg,
            #7c8aff,
            #a78bfa
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


.hero-description {

    max-width: 570px;

    margin-top: 27px;

    color: #a9b2c4;

    font-size: 17px;

    line-height: 1.7;
}


.hero-buttons {

    display: flex;

    gap: 13px;

    margin-top: 32px;
}


.hero-note {

    margin-top: 20px;

    color: #697388;

    font-size: 12px;
}


.hero-note span {

    color: #8290ff;

    margin-right: 5px;
}


/* =========================================================
   CHAT PREVIEW
   ========================================================= */

.chat-preview {

    position: relative;

    perspective: 1000px;

    animation:
        chatIn 1s .15s ease both;
}


@keyframes chatIn {

    from {
        opacity: 0;
        transform:
            translateY(40px)
            rotateY(-7deg)
            rotateX(5deg);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            rotateY(-7deg)
            rotateX(5deg);
    }
}


.chat-window {

    width: 100%;

    min-height: 450px;

    border-radius: 18px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(35,41,53,.96),
            rgba(25,29,39,.96)
        );

    border:
        1px solid rgba(255,255,255,.09);

    box-shadow:
        0 40px 100px rgba(0,0,0,.4),
        0 0 80px rgba(88,101,242,.08);

    backdrop-filter: blur(20px);
}


.chat-header {

    height: 70px;

    padding: 0 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid rgba(255,255,255,.06);
}


.chat-user {

    display: flex;

    align-items: center;

    gap: 12px;
}


.avatar,
.message-avatar {

    display: grid;

    place-items: center;

    border-radius: 50%;

    font-weight: 700;
}


.avatar {

    width: 38px;
    height: 38px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #6372ff,
            #7c3aed
        );
}


.chat-user strong {

    display: block;

    font-size: 13px;
}


.chat-user small {

    display: block;

    margin-top: 3px;

    color: #7d879a;

    font-size: 11px;
}


.online {

    display: inline-block;

    width: 6px;
    height: 6px;

    margin-right: 4px;

    border-radius: 50%;

    background: #5de99d;
}


.header-icons {

    color: #697388;

    letter-spacing: 3px;
}


.chat-messages {

    padding: 25px 22px;
}


.message {

    display: flex;

    gap: 12px;

    margin-bottom: 23px;
}


.message-avatar {

    flex-shrink: 0;

    width: 35px;
    height: 35px;

    font-size: 12px;
}


.message-avatar.purple {
    background: #7657a9;
}

.message-avatar.blue {
    background: #466fc0;
}


.message-content {

    flex: 1;
}


.message-meta {

    display: flex;

    align-items: baseline;

    gap: 8px;

    margin-bottom: 5px;
}


.message-meta strong {

    font-size: 12px;
}


.message-meta span {

    color: #626c7f;

    font-size: 10px;
}


.message p {

    color: #c7cedb;

    font-size: 13px;

    line-height: 1.5;
}


.encrypted-message {

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 14px;

    margin-top: 25px;

    border-radius: 10px;

    background:
        rgba(88,101,242,.08);

    border:
        1px solid rgba(88,101,242,.13);
}


.lock-small {

    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background:
        rgba(88,101,242,.15);

    font-size: 15px;
}


.encrypted-message strong {

    display: block;

    font-size: 12px;
}


.encrypted-message span {

    display: block;

    margin-top: 3px;

    color: #727d91;

    font-size: 10px;
}


.chat-input {

    height: 54px;

    margin: 0 22px 22px;

    padding: 0 14px 0 17px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-radius: 9px;

    background: rgba(0,0,0,.18);

    color: #555f72;

    font-size: 12px;
}


.send {

    width: 29px;
    height: 29px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    color: white;

    background: #5865f2;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.features,
.security,
.cta {

    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;
}


.features {

    padding: 100px 0;
}


.section-title {

    max-width: 650px;

    margin-bottom: 45px;
}


.eyebrow {

    margin-bottom: 13px;

    color: #7d8cff;

    font-size: 11px;

    font-weight: 750;

    letter-spacing: 2px;
}


.section-title h2,
.security-content h2,
.cta h2 {

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.1;

    letter-spacing: -1.8px;
}


.section-title h2 span {

    color: #7f8cff;
}


.section-title p,
.security-content > p,
.cta p {

    margin-top: 15px;

    color: #858fa2;

    line-height: 1.7;
}


.feature-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


.feature-card {

    min-height: 240px;

    padding: 28px;

    position: relative;

    overflow: hidden;

    border-radius: 15px;

    background:
        rgba(255,255,255,.035);

    border:
        1px solid rgba(255,255,255,.07);

    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease;
}


.feature-card:hover {

    transform: translateY(-6px);

    background:
        rgba(255,255,255,.05);

    border-color:
        rgba(112,125,255,.25);
}


.feature-icon {

    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    margin-bottom: 25px;

    border-radius: 11px;

    background:
        rgba(88,101,242,.12);

    font-size: 19px;
}


.feature-card h3 {

    margin-bottom: 10px;

    font-size: 16px;
}


.feature-card p {

    color: #818b9e;

    font-size: 13px;

    line-height: 1.7;
}


.feature-line {

    position: absolute;

    left: 28px;
    right: 28px;
    bottom: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #6573ff,
            transparent
        );

    opacity: .35;
}


/* =========================================================
   SECURITY
   ========================================================= */

.security {

    padding: 80px 0;
}


.security-card {

    min-height: 420px;

    padding: 60px;

    display: grid;

    grid-template-columns: 1fr .8fr;

    align-items: center;

    border-radius: 20px;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(88,101,242,.13),
            transparent 35%
        ),
        rgba(255,255,255,.035);

    border:
        1px solid rgba(255,255,255,.07);
}


.security-content {

    max-width: 550px;
}


.security-items {

    display: grid;

    gap: 13px;

    margin-top: 28px;

    color: #a6afc0;

    font-size: 13px;
}


.security-items span {

    display: inline-grid;

    place-items: center;

    width: 21px;
    height: 21px;

    margin-right: 9px;

    border-radius: 50%;

    color: #7f8cff;

    background: rgba(88,101,242,.12);
}


.security-visual {

    min-height: 300px;

    position: relative;

    display: grid;

    place-items: center;
}


.security-ring {

    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(117,130,255,.16);

    animation: ringPulse 5s ease-in-out infinite;
}


.ring-1 {

    width: 130px;
    height: 130px;
}


.ring-2 {

    width: 210px;
    height: 210px;

    animation-delay: -.8s;
}


.ring-3 {

    width: 290px;
    height: 290px;

    animation-delay: -1.6s;
}


@keyframes ringPulse {

    0%,
    100% {
        transform: scale(.96);
        opacity: .45;
    }

    50% {
        transform: scale(1.03);
        opacity: 1;
    }
}


.security-lock {

    width: 80px;
    height: 80px;

    display: grid;
    place-items: center;

    position: relative;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #5968e9,
            #7349c7
        );

    box-shadow:
        0 0 70px rgba(88,101,242,.35);

    font-size: 30px;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {

    padding: 120px 0;

    text-align: center;
}


.cta > div {

    max-width: 700px;

    margin: auto;
}


.cta h2 {

    max-width: 650px;

    margin: auto;
}


.cta p {

    margin-bottom: 28px;
}


.cta .button {

    margin-top: 5px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {

    width: min(1180px, calc(100% - 48px));

    margin: auto;

    padding: 25px 0 35px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top:
        1px solid rgba(255,255,255,.06);

    color: #626c7e;

    font-size: 11px;
}


.footer-logo {

    display: flex;

    align-items: center;

    gap: 9px;

    color: #c7cdd8;

    font-weight: 650;
}


.footer-logo .logo-icon {

    width: 25px;
    height: 25px;

    border-radius: 7px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .hero {

        grid-template-columns: 1fr;

        padding-top: 60px;

        min-height: auto;
    }

    .chat-preview {

        max-width: 600px;

        margin: 20px auto 0;
    }

    .feature-grid {

        grid-template-columns: 1fr;
    }

    .security-card {

        grid-template-columns: 1fr;

        padding: 40px;
    }

    .security-visual {

        margin-top: 20px;
    }
}


@media (max-width: 600px) {

    .navbar,
    .hero,
    .features,
    .security,
    .cta,
    footer {

        width: min(100% - 30px, 1180px);
    }


    .navbar {

        height: 68px;
    }


    .login-link {

        display: none;
    }


    .hero {

        padding-top: 50px;
    }


    .hero h1 {

        font-size: 48px;

        letter-spacing: -2.5px;
    }


    .hero-description {

        font-size: 15px;
    }


    .hero-buttons {

        flex-direction: column;
    }


    .hero-buttons .button {

        width: 100%;
    }


    .chat-window {

        min-height: 410px;
    }


    .security-card {

        padding: 30px 24px;
    }


    .security-visual {

        min-height: 240px;
    }


    .ring-3 {

        width: 220px;
        height: 220px;
    }


    footer {

        flex-direction: column;

        gap: 15px;

        text-align: center;
    }

}
