/* ============================================================
   LoreLoom — landing
   Product brand: purple/lilac on deep dark, Outfit + Inter.
   Layout reworked to feel alive & hand-made (no fake reviews).
   ============================================================ */

:root {
    --bg-dark: #0c0a12;
    /* deep purple-black, matches product */
    --bg-2: #15121e;
    --panel: #191527;
    --panel-2: #201a30;
    --line: rgba(226, 179, 255, 0.10);
    --line-strong: rgba(226, 179, 255, 0.20);

    --text-primary: #f4f0fa;
    --text-secondary: #b3a9c9;
    --text-faint: #877e9c;

    --accent-color: var(--brand-accent, #a777e3);
    --accent-color-2: var(--brand-accent-2, #6e8efb);
    --accent-soft: #e2b3ff;
    --gold: #ffd700;
    --accent-gradient: var(--brand-gradient, linear-gradient(135deg, #6e8efb, #a777e3));

    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius: var(--radius-md, 18px);
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65);
}

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

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent-color);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-color), var(--accent-color-2));
    border-radius: 10px;
    border: 3px solid var(--bg-dark);
}

body.landing-body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* soft brand glows + faint grain so it doesn't feel flat/templated */
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(167, 119, 227, 0.14), transparent 60%),
        radial-gradient(900px 500px at -10% 20%, rgba(110, 142, 251, 0.10), transparent 55%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    background-attachment: fixed, fixed, fixed;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

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

.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
}

.accent-dot {
    color: var(--accent-color);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px 12px 24px;
    border-radius: 999px;
    background: rgba(21, 18, 30, 0.55);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: padding .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.navbar.scrolled {
    padding: 9px 12px 9px 22px;
    background: rgba(15, 13, 22, 0.82);
    border-color: var(--line-strong);
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav-links {
    display: none;
    gap: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 860px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 7px 15px;
    border-radius: 999px;
    transition: color .2s ease, background .2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(226, 179, 255, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Buttons ---------- */
.primary-btn {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #6e8efb, #a777e3, #6e8efb);
    background-size: 200% auto;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 650;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, background-position .5s ease;
    box-shadow: 0 6px 20px -6px rgba(167, 119, 227, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* moving sheen so the fill doesn't read as flat */
.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    transition: left .6s ease;
}

.primary-btn:hover::before {
    left: 130%;
}

.primary-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(167, 119, 227, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn.sm {
    padding: 9px 18px;
    font-size: 0.9rem;
}

.primary-btn.lg {
    padding: 15px 30px;
    font-size: 1.02rem;
}

.primary-btn i {
    transition: transform .25s ease;
}

.primary-btn:hover i {
    transform: translateX(3px);
}

.login-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-strong);
    color: var(--text-primary);
    padding: 9px 20px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(167, 119, 227, 0.5);
    box-shadow: 0 0 0 3px rgba(167, 119, 227, 0.1);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 15px 28px;
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .25s ease, border-color .25s ease, transform .2s ease;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(167, 119, 227, 0.5);
    transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 160px 0 90px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

@media (max-width: 940px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 22px;
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 0 rgba(167, 119, 227, 0.5);
    animation: livePulse 2.4s infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(167, 119, 227, 0.5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(167, 119, 227, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(167, 119, 227, 0);
    }
}

.hero-title {
    font-size: clamp(2.7rem, 5.4vw, 4.4rem);
    font-weight: 800;
    margin-bottom: 22px;
}

.hero-subtitle {
    font-size: 1.13rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 34px;
}

.cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-note i {
    color: var(--accent-color-2);
}

/* ---------- Hero: live product demo (chat) ---------- */
.demo {
    position: relative;
}

.demo-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(closest-side, rgba(167, 119, 227, 0.22), transparent 75%);
    filter: blur(20px);
    z-index: 0;
}

.chat-window {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, var(--panel), var(--bg-2));
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: rotate(-1deg);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.chat-window:hover {
    transform: rotate(0deg);
}

.chat-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.2);
}

.chat-ava {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(167, 119, 227, 0.6);
}

.chat-who strong {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.chat-who span {
    font-size: 0.78rem;
    color: #6fcf7f;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chat-who span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6fcf7f;
}

.chat-top .fa-ellipsis-vertical {
    margin-left: auto;
    color: var(--text-faint);
}

.chat-body {
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 320px;
    background: radial-gradient(500px 200px at 100% 0%, rgba(110, 142, 251, 0.08), transparent);
}

.msg {
    max-width: 82%;
    padding: 11px 15px;
    font-size: 0.94rem;
    line-height: 1.5;
    border-radius: 16px;
    opacity: 0;
    transform: translateY(8px);
    animation: msgIn .5s forwards;
}

.msg.them {
    align-self: flex-start;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-bottom-left-radius: 5px;
}

.msg.them em {
    color: var(--accent-soft);
    font-style: italic;
}

.msg.me {
    align-self: flex-end;
    background: rgba(167, 119, 227, 0.16);
    border: 1px solid rgba(167, 119, 227, 0.35);
    color: var(--text-primary);
    border-bottom-right-radius: 5px;
}

.msg.m1 {
    animation-delay: .3s;
}

.msg.m2 {
    animation-delay: 1.2s;
}

.msg.m3 {
    animation-delay: 2.1s;
}

.msg.typing {
    align-self: flex-start;
    display: flex;
    gap: 5px;
    padding: 14px 16px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-bottom-left-radius: 5px;
    animation-delay: 3.0s;
}

.msg.typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-faint);
    animation: typedot 1.3s infinite;
}

.msg.typing span:nth-child(2) {
    animation-delay: .2s;
}

.msg.typing span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes typedot {

    0%,
    100% {
        opacity: .35;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

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

.chat-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.25);
}

.chat-input .fake-field {
    flex: 1;
    color: var(--text-faint);
    font-size: 0.9rem;
    padding: 9px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.chat-input .send {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
}

/* little floating tags on the demo */
.demo-tag {
    position: absolute;
    z-index: 2;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 9px 13px;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    animation: floaty 5s ease-in-out infinite alternate;
}

.demo-tag i {
    color: var(--accent-color);
}

.demo-tag.t1 {
    top: -18px;
    right: 14px;
}

.demo-tag.t2 {
    bottom: 40px;
    left: -26px;
    animation-delay: -2s;
}

@keyframes floaty {
    to {
        transform: translateY(-12px);
    }
}

@media (max-width: 520px) {
    .demo-tag.t2 {
        left: -6px;
    }
}

/* ---------- Section scaffolding ---------- */
section {
    position: relative;
}

.section-head {
    max-width: 620px;
    margin-bottom: 50px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.08rem;
}

/* ---------- Intro prose ---------- */
.intro-section {
    padding: 90px 0;
    border-top: 1px solid var(--line);
}

.intro-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.intro-inner .section-title {
    margin-bottom: 22px;
}

.intro-inner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 18px;
}

.intro-inner a {
    color: var(--accent-soft);
    border-bottom: 1px solid rgba(226, 179, 255, 0.35);
}

.intro-inner a:hover {
    color: var(--accent-color);
}

/* ---------- Gallery (real product cards) ---------- */
.gallery-section {
    padding: 90px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.char-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s ease, box-shadow .35s ease;
    cursor: pointer;
    isolation: isolate;
}

.char-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(12, 10, 18, 0.55) 62%, rgba(12, 10, 18, 0.96) 100%);
    z-index: 1;
    transition: background .35s ease;
}

.char-card:hover {
    transform: translateY(-6px);
    border-color: rgba(167, 119, 227, 0.5);
    box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.7);
}

.char-card-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 18px 16px;
}

.char-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-soft);
    background: rgba(167, 119, 227, 0.16);
    border: 1px solid rgba(167, 119, 227, 0.35);
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.char-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.char-card-body p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.char-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-faint);
}

.char-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.char-meta i {
    color: var(--accent-color);
}

/* live "online" badge, top-right of a card */
.char-online {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c9f7d3;
    background: rgba(20, 40, 26, 0.6);
    border: 1px solid rgba(111, 207, 127, 0.35);
    padding: 4px 9px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.char-online::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6fcf7f;
    box-shadow: 0 0 6px #6fcf7f;
}

/* hover "Start chatting" ribbon that slides up */
.char-hover {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 650;
    color: #fff;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.char-card:hover .char-hover {
    transform: translateY(0);
}

/* locked teaser card that lures sign-up */
.char-card.locked::before {
    background: linear-gradient(180deg, rgba(12, 10, 18, 0.55), rgba(12, 10, 18, 0.9));
    backdrop-filter: blur(3px);
}

.char-lock-body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 22px;
}

.lock-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(167, 119, 227, 0.18);
    border: 1px solid rgba(167, 119, 227, 0.4);
    color: var(--accent-soft);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.char-lock-body strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.char-lock-body span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 200px;
}

.char-lock-body .primary-btn {
    margin-top: 8px;
}

.gallery-cta {
    text-align: center;
    margin-top: 44px;
}

/* ---------- Process (thread timeline) ---------- */
.process-section {
    padding: 90px 0;
    border-top: 1px solid var(--line);
}

.thread {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding-left: 12px;
}

/* the vertical "thread" running through the nodes */
.thread-line {
    position: absolute;
    left: 39px;
    top: 20px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg,
            rgba(110, 142, 251, 0.5),
            rgba(167, 119, 227, 0.5) 60%,
            var(--accent-soft));
    border-radius: 2px;
}

.thread-step {
    position: relative;
    display: flex;
    gap: 26px;
    align-items: stretch;
    padding-bottom: 22px;
}

.thread-step:last-child {
    padding-bottom: 0;
}

.thread-node {
    position: relative;
    z-index: 2;
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: var(--accent-soft);
    background: var(--panel-2);
    border: 1px solid var(--line-strong);
    box-shadow: 0 0 0 6px var(--bg-dark);
    transition: transform .3s ease, color .3s ease, border-color .3s ease;
}

.thread-step:hover .thread-node {
    transform: scale(1.08);
    border-color: rgba(167, 119, 227, 0.6);
}

.thread-node.accent {
    color: #fff;
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 0 0 6px var(--bg-dark), 0 0 26px -2px rgba(167, 119, 227, 0.7);
}

.thread-card {
    flex: 1;
    background: linear-gradient(180deg, var(--panel), var(--bg-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.thread-step:hover .thread-card {
    transform: translateX(4px);
    border-color: rgba(167, 119, 227, 0.4);
    box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.8);
}

.thread-step.highlight .thread-card {
    border-color: rgba(167, 119, 227, 0.35);
    background: linear-gradient(180deg, rgba(167, 119, 227, 0.10), var(--bg-2));
}

.thread-step-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.thread-step-label.accent-label {
    color: var(--accent-soft);
}

.thread-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.thread-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

@media (max-width: 560px) {
    .thread-step {
        gap: 16px;
    }

    .thread-line {
        left: 27px;
    }

    .thread-node {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .thread-card {
        padding: 18px 20px;
    }
}

/* ---------- Bottom CTA ---------- */
.bottom-cta {
    padding: 100px 0;
}

.cta-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(160deg, rgba(110, 142, 251, 0.12), rgba(167, 119, 227, 0.12));
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    padding: 70px 32px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(500px 260px at 50% -10%, rgba(167, 119, 227, 0.22), transparent 70%);
}

.cta-box>* {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 14px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.12rem;
    margin-bottom: 32px;
}

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--line);
    padding: 56px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 30px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: color .25s ease;
}

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

.copyright {
    color: var(--text-faint);
    font-size: 0.85rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* =========================================================
   Auth Modal (kept functional, matches product theme)
   ========================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity .3s;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: linear-gradient(145deg, rgba(32, 26, 48, 0.96), rgba(21, 18, 30, 0.96)) padding-box,
        linear-gradient(145deg, rgba(167, 119, 227, 0.5), rgba(110, 142, 251, 0.2)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 60px rgba(167, 119, 227, 0.15);
    border-radius: 22px;
    width: 90%;
    max-width: 430px;
    padding: 38px;
    position: relative;
    transform: translateY(0) scale(1);
    transition: transform .4s cubic-bezier(.175, .885, .32, 1.275);
}

.modal-overlay.hidden .modal-card {
    transform: translateY(16px) scale(.96);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .25s ease;
}

.close-btn:hover {
    background: rgba(255, 80, 80, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

.modal-header h2 {
    font-size: 1.9rem;
    margin-bottom: 6px;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.modal-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    font-size: 1.35rem;
    color: #fff;
    background: var(--accent-gradient);
    box-shadow: 0 10px 26px -8px rgba(167, 119, 227, 0.7);
}

.modal-header p {
    color: var(--text-secondary);
    margin-bottom: 26px;
    text-align: center;
}

.modal-header h2 {
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
}

.input-group label {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap .input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-faint);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color .25s ease;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--line);
    padding: 13px 15px 13px 42px;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all .25s ease;
}

.input-group input::placeholder {
    color: var(--text-faint);
}

.input-group input:focus {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(167, 119, 227, 0.16);
}

.input-wrap:focus-within .input-icon {
    color: var(--accent-soft);
}

.input-hint {
    font-size: 0.76rem;
    color: var(--text-faint);
    line-height: 1.4;
    margin-top: 1px;
}

.pw-toggle {
    position: absolute;
    right: 6px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-faint);
    cursor: pointer;
    border-radius: 8px;
    display: grid;
    place-items: center;
    transition: color .2s ease, background .2s ease;
}

.pw-toggle:hover {
    color: var(--accent-soft);
    background: rgba(255, 255, 255, 0.05);
}

/* password field keeps room for the toggle button */
#auth-password {
    padding-right: 44px;
}

.full-width {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
}

.modal-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.modal-footer a {
    color: var(--accent-soft);
    font-weight: 600;
}

.modal-footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.auth-status-box {
    margin: 14px 0 4px;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    display: none;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-8px);
}

.auth-status-box.show {
    display: flex;
    animation: authPop .4s cubic-bezier(.175, .885, .32, 1.275) forwards;
}

.auth-status-box.hidden {
    display: none;
}

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

.auth-status-box.error {
    background: rgba(255, 80, 80, 0.1);
    color: #ff9b91;
    border: 1px solid rgba(255, 80, 80, 0.28);
}

.auth-status-box.success {
    background: rgba(46, 204, 113, 0.12);
    color: #7ee29c;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

@media (max-width: 560px) {
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
        padding: 8px 10px 8px 18px;
    }

    .navbar.scrolled {
        padding: 7px 10px 7px 16px;
    }

    .wrap {
        padding: 0 20px;
    }

    .hero {
        padding: 130px 0 70px;
    }

    .modal-card {
        padding: 30px 22px;
    }
}
