﻿/* Component-scoped styles for Home.razor */

:root {
    --bg: #0a0b10;
    --panel: #0f1220;
    --text: #e6e6f0;
    --muted: #9aa0b3;
    --accent: #6bffea;
    --accent-2: #a05bff;
    --accent-3: #ff4d9d;
    --glow: 0 0 24px rgba(107, 255, 234, 0.3), 0 0 48px rgba(160, 91, 255, 0.25);
}

* {
    box-sizing: border-box;
}



.ns-page {
    min-height: 100svh;
}

.ns-container {
    /* Make container fluid with side padding */
    max-width: 1000px;
    margin-inline: auto;
}

/* Navigation */


.ns-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;

    img {
        /* Scale logo for small screens */
        width: clamp(140px, 22vw, 200px);
        height: auto;
    }
}

.ns-logo.neon {
    color: var(--accent-3);
    text-shadow: 0 0 10px rgba(255, 77, 157, 0.6), 0 0 30px rgba(255, 77, 157, 0.35);
}

.ns-links a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 18px;
    transition: color .2s ease, opacity .2s ease;
}

    .ns-links a:hover {
        color: var(--text);
    }

.ns-links .accent {
    color: var(--accent);
}

/* Hero */
.ns-hero {
    padding: 30px 0 30px;
    position: relative;
    overflow: clip;
}

    .ns-hero .ns-container {
        align-items: center;
    }

    .ns-hero h1 {
        font-size: clamp(2rem, 2.8vw + 1.2rem, 4rem);
        line-height: 1.05;
        margin: 0 0 12px;
    }

.ns-gradient {
    color: #ffa8d8;
}

.ns-subtitle {
    color: var(--muted);
    margin: 0 0 22px;
    font-size: 1.05rem;
}

/* Waitlist */
.ns-waitlist {
    margin: 24px 0 16px;
}


.ns-hero-content {
    text-align: center;
}


.join-waitlist {
    font-size: 22px;
    padding-top: 10px;

    h2 {
        font-size: 24px;
        color: #444;
        font-weight: 500;
    }
}

/* Responsive, fluid image compare area */
#image-compare-hair {
    margin: 0 auto 20px auto;
    max-width: 1000px;
    /* Let height follow content; keep rounded corners and clip overflow */
    border-radius: 8px;
}

    #image-compare-hair img {
        width: 100%;
        height: auto;
        display: block;
    }

.ns-waitlist-card {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 0 50px rgba(160,91,255,0.12), 0 8px 30px rgba(107,255,234,0.08);
    max-width: 1000px;
    /* Center the card */
    margin-inline: auto;
}

.ns-input-row {
    /* Mobile-first: stack input and button */
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    justify-content: center;

    input {
        border: 1px solid #ccc;
        color: #333;
        padding: 14px 14px;
        border-radius: 12px;
        outline: none;
        transition: border-color .2s ease, box-shadow .2s ease, transform .06s ease;
        width: 100%;
        box-sizing: border-box;
    }
}


    .ns-input-row input:focus {
        border-color: var(--accent);
        box-shadow: var(--glow);
    }

.ns-cta {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    border: 0;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    background-color: #ffa8d8;
    transition: transform .06s ease, filter .2s ease, box-shadow .2s ease;
    /* Full-width button on mobile */
    width: 100%;

    span {
        white-space: nowrap;
    }
}

    .ns-cta:hover {
        filter: brightness(1.08);
        box-shadow: 0 10px 36px rgba(107,255,234,0.22);
    }

    .ns-cta:active {
        transform: translateY(1px);
    }

    .ns-cta:disabled {
        opacity: .7;
        cursor: not-allowed;
    }

.spinner {
    --s: 16px;
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    border-top-color: #051016;
    animation: spin 0.7s linear infinite;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ns-success {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(107,255,234,0.12);
    color: #009b48;
    border: 1px solid #078c79ad;
    box-shadow: var(--glow);
    font-size: 18px;
}

    .ns-success .icon {
        font-weight: 800;
    }

.ns-fineprint {
    color: var(--muted);
    font-size: .85rem;
    margin-top: 8px;
}




/* Visual showcase */


.ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ring-1, .ring-2, .ring-3 {
    border: 1px dashed rgba(255,255,255,0.25);
    filter: drop-shadow(0 0 30px rgba(160,91,255,0.25));
    animation: pulse 6s ease-in-out infinite;
}

.ring-1 {
    width: 540px;
    height: 540px;
    top: -40px;
    left: -120px;
    animation-delay: 0s;
}

.ring-2 {
    width: 420px;
    height: 420px;
    bottom: -40px;
    right: -60px;
    animation-delay: 1.2s;
}

.ring-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 20%;
    animation-delay: 2.4s;
}

@keyframes pulse {
    0%,100% {
        transform: scale(1);
        opacity: .6
    }

    50% {
        transform: scale(1.06);
        opacity: .9
    }
}

/* Features */
.ns-features {
    padding: 0 0 30px;
    text-align: center;
}

    .ns-features h2 {
        font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
        margin-bottom: 6px;
    }

.ns-section-sub {
    color: var(--muted);
    margin: 0 0 26px;
}

.ns-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.card {
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 16px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: transform .12s ease, box-shadow .2s ease;
}

    .card::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: 16px;
        padding: 1px;
        background: linear-gradient(90deg, rgba(160,91,255,0.35), rgba(107,255,234,0.35));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
    }

.card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: #000;
    border: 1px solid rgba(107,255,234,0.2);
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: var(--glow);
    margin: auto;


    .menu-icon {
        color: #fff;
    }
}

.card h3 {
    margin: 6px 0 6px;
    font-size: 1.1rem;
}

.card p {
    color: #777;
    margin: 0;
}

.card.hoverable:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 46px rgba(0,0,0,0.25);
}

/* Footer */
.ns-footer {
    padding: 20px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

    .ns-footer .ns-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Home section wrapper around compare */
.home-section {
    padding: 16px;
    display: flex;
    justify-content: center;
}

/* A11y helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


/* Responsive */
@media (max-width: 1000px) {
    .ns-hero .ns-container {
        padding: 0 10px;
        grid-template-columns: 1fr;
    }

    .ns-hero {
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .ns-hero-visual {
        order: -1;
        min-height: 280px;
    }

    .ns-grid {
        grid-template-columns: 1fr;
    }

    .ns-input-row {
        /* already stacked on mobile */
    }

        .ns-input-row input {
            font-size: 20px;
        }

    .ns-features {
        padding-top: 0;

        h2 {
            margin-top: 10px;
        }
    }
}

@media (max-width: 600px) {
    body{
        background-image: none;
    }

    .ns-nav{
        border-bottom: solid 1px #ccc;
    }


    #image-compare-hair {
        width: 100%;
        height: 66vh;

    }

        #image-compare-hair img {
            display: none;
        }

}

/* Tablet and up */
@media (min-width: 640px) {
    .ns-input-row {
        flex-direction: row;
        align-items: center;
    }

        .ns-input-row input {
            flex: 1 1 auto;
            min-width: 0;
        }

    .ns-cta {
        width: auto;
    }
}

/* Medium screens: 2-column features */
@media (min-width: 700px) {
    .ns-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Large screens: 3-column features */
@media (min-width: 1100px) {
    .ns-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
