:root {
    --bg: #14141d;
    --text: #e2e8ef;
    --text-muted: #9aa3b2;
    --purple: #7d5ea8;
    --purple-glow: rgba(125, 94, 168, 0.45);
    --orange: #f4792e;
    --orange-glow: rgba(244, 121, 46, 0.35);
    --live: #3dd68c;
    --live-glow: rgba(61, 214, 140, 0.45);
    --font-title: "Space Grotesk", sans-serif;
    --font-body: "Raleway", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-title);
}

a {
    color: inherit;
}

/* ── Ambient background ── */

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: drift 18s ease-in-out infinite;
}

.orb-purple {
    width: min(55vw, 520px);
    height: min(55vw, 520px);
    background: var(--purple-glow);
    top: -12%;
    left: -8%;
}

.orb-orange {
    width: min(40vw, 380px);
    height: min(40vw, 380px);
    background: var(--orange-glow);
    bottom: -8%;
    right: -6%;
    animation-delay: -9s;
    animation-duration: 22s;
}

.grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(125, 94, 168, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 94, 168, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(3%, 4%) scale(1.06); }
    66% { transform: translate(-2%, 2%) scale(0.96); }
}

/* ── Layout ── */

.page {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    text-align: center;
    padding-top: clamp(0.5rem, 2vw, 1.25rem);
    animation: fade-up 0.9s ease both;
}

/* ── Logo & copy ── */

.logo {
    width: min(92vw, 420px);
    height: auto;
    margin: 0 auto 1.75rem;
    display: block;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.35));
    animation: fade-up 1s ease 0.1s both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.5rem;
    padding: 0.4rem 1rem 0.4rem 0.75rem;
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid rgba(125, 94, 168, 0.35);
    border-radius: 999px;
    background: rgba(125, 94, 168, 0.08);
    animation: fade-up 1s ease 0.05s both;
}

.eyebrow-live {
    border-color: rgba(61, 214, 140, 0.35);
    background: rgba(61, 214, 140, 0.08);
    color: #c8ecd9;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 10px var(--orange-glow);
    animation: dot-pulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

.pulse-live {
    background: var(--live);
    box-shadow: 0 0 10px var(--live-glow);
}

.headline {
    margin: 0 auto 1.25rem;
    max-width: 16ch;
    font-family: var(--font-title);
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text) 0%, #c8d0dc 55%, var(--purple) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fade-up 1s ease 0.3s both;
}

.lede {
    margin: 0 auto;
    max-width: 40rem;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 400;
    color: var(--text-muted);
    animation: fade-up 1s ease 0.4s both;
}

/* ── Buttons ── */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin: 1.75rem auto 0;
    animation: fade-up 1s ease 0.48s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.45rem;
    border-radius: 999px;
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    background: var(--purple);
    color: #f4f0fa;
    border: 1px solid transparent;
    box-shadow: 0 8px 28px rgba(125, 94, 168, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 12px 36px var(--purple-glow);
    background: #8a6bb5;
}

.btn-secondary {
    color: var(--text-muted);
    border: 1px solid rgba(125, 94, 168, 0.35);
    background: rgba(125, 94, 168, 0.08);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    color: var(--text);
    border-color: rgba(125, 94, 168, 0.55);
    background: rgba(125, 94, 168, 0.14);
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.88); }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero browser preview ── */

.hero-preview {
    margin: clamp(2.25rem, 5vw, 3.25rem) auto 0;
    width: min(100%, 720px);
    animation: fade-up 1s ease 0.58s both;
}

.browser-frame {
    border-radius: 16px;
    border: 1px solid rgba(125, 94, 168, 0.28);
    background: linear-gradient(160deg, rgba(30, 30, 42, 0.95), rgba(18, 18, 26, 0.98));
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    overflow: hidden;
    text-align: left;
}

.browser-chrome {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.9rem;
    background: rgba(10, 10, 16, 0.85);
    border-bottom: 1px solid rgba(125, 94, 168, 0.18);
}

.browser-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(154, 163, 178, 0.35);
}

.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url {
    flex: 1;
    margin-left: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(125, 94, 168, 0.1);
    border: 1px solid rgba(125, 94, 168, 0.18);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.browser-lock {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    border: 1.5px solid var(--live);
    flex-shrink: 0;
    position: relative;
}

.browser-lock::after {
    content: "";
    position: absolute;
    left: 1.5px;
    top: -3px;
    width: 3px;
    height: 3px;
    border: 1.5px solid var(--live);
    border-bottom: none;
    border-radius: 3px 3px 0 0;
}

.browser-stage {
    position: relative;
    height: clamp(220px, 42vw, 340px);
    overflow: hidden;
    background: #0c0c12;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    height: 100%;
    padding: 6px;
    filter: brightness(0.55) saturate(0.85);
}

.tile {
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

.tile-a { background: linear-gradient(145deg, #4a3a5c, #2a2038 50%, #1a1524); }
.tile-b { background: linear-gradient(160deg, #6b4a32, #3a281c 55%, #1e1612); }
.tile-c { background: linear-gradient(135deg, #3a4a5c, #1e2834 50%, #121820); }
.tile-d { background: linear-gradient(150deg, #5c3a4a, #301820 55%, #1a1014); }
.tile-e { background: linear-gradient(140deg, #3a5c4a, #1c3024 50%, #101a14); }
.tile-f { background: linear-gradient(155deg, #4a4a5c, #242430 55%, #14141c); }

.lightbox {
    position: absolute;
    inset: 10% 18% 18% 12%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 12, 18, 0.72);
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lightbox-photo {
    flex: 1;
    background:
        radial-gradient(circle at 40% 35%, rgba(244, 121, 46, 0.25), transparent 45%),
        linear-gradient(160deg, #3d2f48, #1a1624 60%, #0e0c14);
}

.lightbox-meta {
    display: flex;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    background: rgba(10, 10, 16, 0.9);
    border-top: 1px solid rgba(125, 94, 168, 0.2);
}

.lightbox-heart,
.lightbox-tag {
    font-family: var(--font-title);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.lightbox-heart {
    color: #ffb4a8;
    background: rgba(244, 121, 46, 0.18);
}

.lightbox-tag {
    color: #d4c4ea;
    background: rgba(125, 94, 168, 0.25);
}

.face-modal {
    position: absolute;
    right: 5%;
    bottom: 8%;
    width: min(46%, 210px);
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(125, 94, 168, 0.4);
    background: linear-gradient(
        160deg,
        rgba(36, 28, 52, 0.95) 0%,
        rgba(18, 18, 28, 0.96) 100%
    );
    backdrop-filter: blur(10px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(125, 94, 168, 0.2);
    animation: fade-up 1.1s ease 0.9s both;
}

.face-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.face-modal-title {
    font-family: var(--font-title);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.face-modal-close {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
}

.face-modal-copy {
    margin: 0 0 0.55rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.face-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
    margin-bottom: 0.55rem;
}

.face-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    background: linear-gradient(145deg, #4a3f5c, #2a2436);
    border: 1px solid transparent;
}

.face-cell:nth-child(2) { background: linear-gradient(145deg, #5c4a3a, #32261e); }
.face-cell:nth-child(3) { background: linear-gradient(145deg, #3a4a5c, #1e2834); }
.face-cell:nth-child(4) { background: linear-gradient(145deg, #4a5c3a, #24301e); }
.face-cell:nth-child(5) { background: linear-gradient(145deg, #5c3a4a, #301820); }
.face-cell:nth-child(6) { background: linear-gradient(145deg, #3a5c5c, #1e3030); }

.face-cell.is-active {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px var(--orange-glow);
}

.face-modal-cta {
    text-align: center;
    font-family: var(--font-title);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.4rem 0.5rem;
    border-radius: 999px;
    background: var(--purple);
    color: #f4f0fa;
}

/* ── Feature cards ── */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: clamp(2.75rem, 6vw, 4.25rem);
    animation: fade-up 1s ease 0.65s both;
}

.feature {
    padding: 1.5rem 1.35rem;
    border-radius: 16px;
    border: 1px solid rgba(125, 94, 168, 0.2);
    background: linear-gradient(
        160deg,
        rgba(125, 94, 168, 0.1) 0%,
        rgba(20, 20, 29, 0.6) 45%,
        rgba(20, 20, 29, 0.85) 100%
    );
    backdrop-filter: blur(8px);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature:hover {
    border-color: rgba(125, 94, 168, 0.45);
    transform: translateY(-3px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 12px;
    color: var(--purple);
    background: rgba(125, 94, 168, 0.15);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-icon-accent {
    color: var(--orange);
    background: rgba(244, 121, 46, 0.12);
}

.feature h2 {
    margin: 0 0 0.5rem;
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}

.feature p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ── Pricing ── */

.pricing {
    margin-top: clamp(2.75rem, 6vw, 4.25rem);
    display: flex;
    justify-content: center;
    animation: fade-up 1s ease 0.72s both;
}

.pricing-card {
    width: min(100%, 520px);
    padding: 1.85rem 1.6rem 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(125, 94, 168, 0.35);
    background: linear-gradient(
        160deg,
        rgba(125, 94, 168, 0.16) 0%,
        rgba(20, 20, 29, 0.75) 40%,
        rgba(20, 20, 29, 0.92) 100%
    );
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    text-align: left;
}

.pricing-eyebrow {
    margin: 0 0 0.55rem;
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
}

.pricing-card h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pricing-lede {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
    margin-bottom: 0.35rem;
}

.pricing-was {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.75;
}

.pricing-now {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.pricing-unit {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.15rem;
}

.pricing-note {
    margin: 0 0 1.35rem;
    font-size: 0.9rem;
    color: #d4c4ea;
}

.pricing-list {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.45;
}

.pricing-list code {
    font-size: 0.85em;
    color: #d4c4ea;
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: rgba(61, 214, 140, 0.15);
    color: var(--live);
    flex-shrink: 0;
}

.check svg {
    width: 13px;
    height: 13px;
}

.loyalty-box {
    margin: 0 0 1.35rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(244, 121, 46, 0.3);
    background: rgba(244, 121, 46, 0.08);
}

.loyalty-box strong {
    display: block;
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 0.35rem;
}

.loyalty-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pricing-cta {
    width: 100%;
}

.pricing-hint {
    margin: 0.9rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-hint strong {
    color: #d4c4ea;
    font-family: var(--font-title);
    letter-spacing: 0.04em;
}

/* ── Footer ── */

.footer {
    margin-top: auto;
    padding-top: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    animation: fade-up 1s ease 0.8s both;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.15rem;
    margin-bottom: 1rem;
}

.footer-links a {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

.footer p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(154, 163, 178, 0.7);
}

/* ── Accessibility ── */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 900px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .features {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .face-modal {
        width: min(58%, 180px);
        right: 3%;
        bottom: 5%;
        padding: 0.55rem;
    }

    .lightbox {
        inset: 12% 8% 28% 8%;
    }

    .browser-url {
        font-size: 0.62rem;
    }
}
