:root {
    --bg: #08080c;
    --surface: rgba(18, 19, 26, 0.7);
    --surface-soft: rgba(26, 28, 37, 0.5);
    --text: #f4f7fb;
    --muted: #9da5b6;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #ff5a1f;
    --accent-strong: #ff7e35;
    --success: #35d08f;
    --heading: 'Sora', sans-serif;
    --body: 'Manrope', sans-serif;
    --radius: 18px;
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    --glass: blur(12px) saturate(180%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.55;
    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.bg-mesh {
    display: none;
}

.bg-noise {
    position: fixed;
    inset: 0;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
    background-size: 3px 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 4vw;
    background: linear-gradient(to bottom, rgba(8, 8, 12, 0.95), rgba(8, 8, 12, 0.62));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.brand img {
    height: 2.5rem;
    width: auto;
}

.hero {
    padding: 2.4rem 0 3rem;
    perspective: 1000px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: 1.5rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: #f7c3a9;
}

h1,
h2,
h3 {
    font-family: var(--heading);
    line-height: 1.15;
}

h1 {
    font-size: clamp(1.9rem, 8vw, 3.8rem);
    max-width: 18ch;
    margin-bottom: 1rem;
}

.hero-copy {
    color: var(--muted);
    margin-bottom: 1.3rem;
    max-width: 48ch;
}

.monthly-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 143, 87, 0.45);
    background: rgba(255, 122, 71, 0.14);
    color: #ffd5bf;
    font-weight: 600;
}

.monthly-highlight strong {
    color: #ffb78f;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}

.hero-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #d8deea;
    font-size: 0.95rem;
}

.hero-points li {
    position: relative;
    padding-left: 1.1rem;
}

.hero-points li::before {
    content: '';
    position: absolute;
    top: 0.58rem;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--accent-strong);
}

.hero-media {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(-12deg) rotateX(4deg);
    will-change: transform;
}


@keyframes floatIn {
    from {
        opacity: 0;
        transform: perspective(900px) translateY(24px) rotateX(8deg) rotateY(-8deg);
    }

    to {
        opacity: 1;
        transform: perspective(900px) rotateX(3deg) rotateY(-4deg);
    }
}

.stats,
.devices,
.benefits,
.gallery,
.faq,
.steps {
    padding: 2.9rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.benefits-grid {
    display: grid;
    gap: 0.8rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    text-align: center;
    padding: 2.2rem 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    font-family: var(--heading);
}

.stat-card p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--muted);
}

.stat-card p,
.benefit-card p {
    color: var(--muted);
}

.section-head {
    margin-bottom: 1.1rem;
}

.section-head h2 {
    font-size: clamp(1.35rem, 5vw, 2.3rem);
    max-width: 22ch;
}

.device-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.device-list span {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #dde3ef;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.device-list span:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 90, 31, 0.2);
}

.benefit-card {
    padding: 40px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    backdrop-filter: var(--glass);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #fff;
}

.benefit-card p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.gallery-shell {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
    padding: 1rem;
}

.gallery-intro {
    margin-bottom: 0.95rem;
    color: #b9c2d9;
    font-size: 0.95rem;
    max-width: 52ch;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0e1119;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-card img {
    height: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.gallery-card figcaption strong {
    font-size: 0.95rem;
    color: #f7faff;
}

.gallery-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(10, 15, 26, 0.58);
    color: #e8f0ff;
}

.gallery-card:hover img {
    transform: scale(1.04);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.gallery-carousel {
    position: relative;
    max-width: 1200px;
    /* Wider horizontally */
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    /* Vertical padding only */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.carousel-viewport {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 0;
    padding: 0;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    /* Show only one at a time */
    scroll-snap-align: center;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 24/9;
    /* Very thin (fina) vertically and wide (grossa) horizontally */
    object-fit: cover;
}

.carousel-slide figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
}

.carousel-dots button.active {
    background: var(--accent);
    transform: scale(1.3);
}

@media (min-width: 740px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.steps-grid {
    display: grid;
    gap: 1.2rem;
}

.steps-content ol {
    list-style-position: inside;
    display: grid;
    gap: 0.9rem;
    color: #dde5f2;
}

.steps-content strong {
    color: var(--accent-strong);
}

.steps-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.btn {
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: var(--heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-align: center;
    padding: 0.72rem 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #121212;
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
    color: #edf2fb;
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.22);
    color: #ecf1fb;
    background: rgba(255, 255, 255, 0.06);
}

.btn-block {
    width: 100%;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 50;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    width: min(480px, 100%);
    background: #10131c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.15rem;
    position: relative;
    box-shadow: var(--shadow);
}

.close-btn {
    position: absolute;
    top: 0.45rem;
    right: 0.5rem;
    border: 0;
    background: transparent;
    color: #98a3bb;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.modal-step h2,
.modal-step h3 {
    margin-bottom: 0.35rem;
}

.modal-subtitle {
    margin-bottom: 0.9rem;
    color: var(--muted);
}

.modal-step label {
    display: block;
    margin-bottom: 0.35rem;
    color: #d5deed;
    font-size: 0.87rem;
}

.modal-step input,
.modal-step textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    padding: 0.72rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: #f8fbff;
    margin-bottom: 0.75rem;
    font: inherit;
}

.modal-step textarea {
    min-height: 5.5rem;
    resize: none;
}

.error-msg {
    min-height: 1.2rem;
    color: #ff6d6d;
    font-size: 0.9rem;
}

.username-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: -0.25rem 0 0.75rem;
}

.username-suggestions button {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: #dce5f7;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.78rem;
    cursor: pointer;
}

.hidden {
    display: none;
}

.qr-box {
    border-radius: 16px;
    background: #ffffff;
    padding: 0.65rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.qr-box img {
    width: 210px;
    max-width: 100%;
}

.waiting {
    text-align: center;
    margin-top: 0.75rem;
    color: #c0cadf;
    font-size: 0.9rem;
}

.spinner {
    margin: 0 auto 0.5rem;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: var(--accent-strong);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.credentials {
    margin-top: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 0.8rem;
    display: grid;
    gap: 0.45rem;
    overflow-wrap: anywhere;
}

.credentials span {
    color: #f7ba9f;
}

.hint {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.86rem;
}

@media (min-width: 740px) {
    .site-header {
        padding-inline: 5vw;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr 1.1fr;
        /* Increased media side */
        gap: 3rem;
        align-items: center;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-actions .btn {
        width: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .benefits-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-shell {
        padding: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: 1.25fr 0.95fr;
        grid-template-areas:
            "wide tall"
            "wide base1"
            "base2 base1";
        gap: 1rem;
    }

    .gallery-card-wide {
        grid-area: wide;
        min-height: 24.5rem;
    }

    .gallery-card-tall {
        grid-area: tall;
        min-height: 15rem;
    }

    .gallery-grid .gallery-card:nth-child(3) {
        grid-area: base1;
        min-height: 13rem;
    }

    .gallery-grid .gallery-card:nth-child(4) {
        grid-area: base2;
        min-height: 10rem;
    }

    .gallery-card img {
        height: 100%;
    }

    .steps-grid {
        grid-template-columns: 1fr 0.95fr;
        align-items: center;
    }

    .modal-content {
        padding: 1.4rem;
    }
}

@media (max-width: 739px) {
    .header-actions .btn {
        padding-inline: 0.62rem;
        font-size: 0.74rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.2);
}

.faq-grid {
    width: 100%;
    margin: 40px 0 0;
    display: grid;
    gap: 15px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: var(--glass);
    transition: border-color 0.3s ease;
}

.faq-item[open] {
    border-color: var(--accent);
}

.faq-item summary {
    padding: 20px 25px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 25px 25px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 1rem;
}

.section-head.center {
    text-align: center;
}