/* QtClicker — landing only */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #07060a;
    --bg-card: rgba(18, 16, 28, 0.65);
    --stroke: rgba(255, 255, 255, 0.08);
    --text: #f4f2ff;
    --muted: rgba(244, 242, 255, 0.62);
    --accent: #7c5cff;
    --accent-2: #ff3d8a;
    --accent-3: #00e8c8;
    --glow: rgba(124, 92, 255, 0.45);
    --font-display: "Syne", system-ui, sans-serif;
    --font-body: "Outfit", system-ui, sans-serif;
    --radius: 1.25rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body.home {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: var(--bg-deep);
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Ambient background */
.home-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

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

.home-bg__blob--1 {
    width: min(55vw, 480px);
    height: min(55vw, 480px);
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -12%;
    right: -8%;
    animation-delay: 0s;
}

.home-bg__blob--2 {
    width: min(45vw, 380px);
    height: min(45vw, 380px);
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
    bottom: 5%;
    left: -10%;
    animation-delay: -6s;
}

.home-bg__blob--3 {
    width: min(40vw, 320px);
    height: min(40vw, 320px);
    background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%);
    top: 42%;
    left: 35%;
    opacity: 0.35;
    animation-delay: -12s;
}

@keyframes blob-float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(3%, -4%) scale(1.05);
    }
    66% {
        transform: translate(-4%, 3%) scale(0.98);
    }
}

.home-bg__noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.home-wrap {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem) 4rem;
}

/* Header */
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 2.5rem;
    gap: 1rem;
}

.home-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    letter-spacing: -0.03em;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.home-logo__dot {
    width: 0.45em;
    height: 0.45em;
    background: linear-gradient(135deg, var(--accent-3), var(--accent));
    border-radius: 50%;
    box-shadow: 0 0 12px var(--glow);
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.home-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.home-nav a:hover {
    color: var(--text);
    border-color: var(--stroke);
    background: rgba(255, 255, 255, 0.04);
}

.home-nav a.home-nav__link--active {
    color: var(--text);
    border-color: rgba(0, 232, 200, 0.35);
    background: rgba(0, 232, 200, 0.08);
}

/* Hero */
.home-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
}

@media (min-width: 900px) {
    .home-hero {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: end;
    }
}

.home-hero__content {
    position: relative;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem 0.35rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.home-badge__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 232, 200, 0.5);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 0 0 10px rgba(0, 232, 200, 0);
    }
}

.home-hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin-bottom: 1.25rem;
}

.home-hero__title span {
    display: block;
}

.home-hero__gradient {
    background: linear-gradient(105deg, var(--text) 0%, var(--text) 35%, var(--accent-3) 55%, var(--accent) 78%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero__sub {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--muted);
    max-width: 32ch;
    margin-bottom: 1.5rem;
}

.home-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-tag {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.home-tag--pink {
    border-color: rgba(255, 61, 138, 0.35);
    background: rgba(255, 61, 138, 0.08);
}

.home-tag--cyan {
    border-color: rgba(0, 232, 200, 0.35);
    background: rgba(0, 232, 200, 0.08);
}

/* Hero visual card */
.home-hero__visual {
    position: relative;
    min-height: 280px;
}

@media (min-width: 900px) {
    .home-hero__visual {
        min-height: 340px;
    }
}

.home-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.home-card {
    position: absolute;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.25rem 1.35rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transition: transform 0.5s var(--ease);
}

.home-card--1 {
    top: 0;
    right: 0;
    width: min(100%, 300px);
    transform: rotate(2deg);
    z-index: 3;
}

.home-card--2 {
    top: 22%;
    left: 0;
    width: min(92%, 280px);
    transform: rotate(-3deg);
    z-index: 2;
}

.home-card--3 {
    bottom: 0;
    right: 8%;
    width: min(88%, 260px);
    transform: rotate(4deg);
    z-index: 1;
}

.home-card:hover {
    transform: rotate(0deg) translateY(-4px) scale(1.02);
    z-index: 5;
}

.home-card__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.home-card__big {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.03em;
    line-height: 1;
}

.home-card__big em {
    font-style: normal;
    color: var(--accent-3);
}

.home-card__label--spaced {
    margin-top: 1rem;
}

.home-card__big--sm {
    font-size: 1.35rem;
}

.home-card__big--md {
    font-size: 1.5rem;
}

.home-card__arrow {
    opacity: 0.35;
}

.home-card__em {
    color: var(--accent-3);
    font-style: normal;
}

.home-card__bar {
    margin-top: 1rem;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.home-card__bar-fill {
    height: 100%;
    width: 72%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.home-card__modes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.home-chip {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(124, 92, 255, 0.2);
    color: #dcd6ff;
}

.home-chip:nth-child(2) {
    background: rgba(0, 232, 200, 0.15);
    color: #b8fff4;
}

.home-chip:nth-child(3) {
    background: rgba(255, 61, 138, 0.15);
    color: #ffc8e0;
}

/* Marquee */
.home-marquee {
    margin: 0 -clamp(1rem, 4vw, 2rem) 3rem;
    border-block: 1px solid var(--stroke);
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.home-marquee__track {
    display: flex;
    width: max-content;
    gap: 3rem;
    padding: 0.85rem 0;
    animation: marquee 28s linear infinite;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

.home-marquee__track span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: rgba(244, 242, 255, 0.45);
}

.home-marquee__track span strong {
    color: var(--accent-3);
    font-weight: 800;
}

/* Bento */
.home-bento-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.home-bento-lead {
    color: var(--muted);
    max-width: 42ch;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.home-bento {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .home-bento {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: minmax(120px, auto);
    }

    .home-bento__cell--wide {
        grid-column: span 3;
    }

    .home-bento__cell--tall {
        grid-row: span 2;
    }

    .home-bento__cell--full {
        grid-column: span 6;
    }

    .home-bento__cell--half {
        grid-column: span 3;
    }
}

.home-bento__cell {
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.02);
    padding: 1.35rem 1.4rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.home-bento__cell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(124, 92, 255, 0.12), transparent 50%);
    pointer-events: none;
}

.home-bento__cell:hover {
    border-color: rgba(124, 92, 255, 0.35);
    transform: translateY(-2px);
}

.home-bento__cell h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    position: relative;
}

.home-bento__cell p {
    color: var(--muted);
    font-size: 0.95rem;
    position: relative;
}

.home-bento__num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, rgba(244, 242, 255, 0.15), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    opacity: 0.9;
}

.home-list {
    list-style: none;
    margin-top: 0.75rem;
    position: relative;
}

.home-list li {
    font-size: 0.9rem;
    color: var(--muted);
    padding-left: 1.1rem;
    margin-bottom: 0.35rem;
    position: relative;
}

.home-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-3);
    font-weight: 700;
    font-size: 0.75rem;
}

/* Steps rail */
.home-steps {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--stroke);
}

.home-steps__head {
    margin-bottom: 2rem;
}

.home-steps__head h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: -0.03em;
}

.home-steps__head p {
    color: var(--muted);
    margin-top: 0.5rem;
    max-width: 40ch;
}

.home-steps__tagline {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.home-rail {
    display: grid;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .home-rail {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-rail__step {
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent);
    position: relative;
    font-size: 0.95rem;
    color: var(--muted);
}

.home-rail__step::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -0.5rem;
    width: 1rem;
    height: 2px;
    background: linear-gradient(90deg, var(--stroke), transparent);
    display: none;
}

@media (min-width: 768px) {
    .home-rail__step:not(:last-child)::after {
        display: block;
    }
}

.home-rail__n {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--accent-2);
    margin-bottom: 0.5rem;
}

/* Love grid (replaces table) */
.home-love {
    margin-top: 4rem;
}

.home-love h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.home-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.home-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.85rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.home-pill:hover {
    border-color: rgba(0, 232, 200, 0.35);
    transform: translateY(-2px);
}

.home-pill strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.home-pill span {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Free banner */
.home-banner {
    margin-top: 4rem;
    padding: 2rem 1.5rem;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid rgba(124, 92, 255, 0.35);
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(255, 61, 138, 0.1));
    position: relative;
    overflow: hidden;
}

.home-banner::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    right: -40px;
    top: -60px;
    background: radial-gradient(circle, rgba(0, 232, 200, 0.25), transparent 70%);
    pointer-events: none;
}

.home-banner h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    position: relative;
}

.home-banner p {
    color: var(--muted);
    max-width: 52ch;
    position: relative;
    font-size: 0.98rem;
}

.home-banner p + p {
    margin-top: 0.5rem;
}

/* CTA */
.home-cta {
    margin-top: 3.5rem;
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, 0.35);
}

.home-cta h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.home-cta__sub {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.home-cta__tag {
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent-3), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.75rem;
    display: inline-block;
}

.home-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.75rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: #0a0812;
    background: linear-gradient(135deg, #fff 0%, #e8e4ff 40%, #c8ffd9 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 16px 40px rgba(124, 92, 255, 0.35);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.home-cta__btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 22px 50px rgba(124, 92, 255, 0.45);
}

.home-cta__btn svg {
    width: 22px;
    height: 22px;
}

/* Footer */
.home-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--stroke);
    text-align: center;
}

.home-footer__links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.home-footer__links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.home-footer__links a:hover {
    color: var(--accent-3);
}

.home-footer__sep {
    color: rgba(244, 242, 255, 0.35);
    user-select: none;
}

.home-footer__copy {
    font-size: 0.75rem;
    color: rgba(244, 242, 255, 0.35);
}

/* Legal pages (ToS, Privacy) */
body.home-legal .home-wrap {
    max-width: 780px;
}

.home-legal-main {
    padding-bottom: 2rem;
}

.home-legal-hero {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--stroke);
}

.home-legal-hero__label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-2);
    margin-bottom: 0.65rem;
}

.home-legal-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 2.85rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    background: linear-gradient(105deg, var(--text) 15%, var(--accent-3) 50%, var(--accent) 88%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-legal-hero__meta {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--muted);
}

.home-legal__section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--stroke);
}

.home-legal__section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.home-legal__section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.15rem, 2.6vw, 1.4rem);
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1rem;
    padding-left: 0.9rem;
    border-left: 3px solid var(--accent);
}

.home-legal__section h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.home-legal__subsection {
    margin-top: 1.35rem;
}

.home-legal__section h2 + .home-legal__subsection {
    margin-top: 0.85rem;
}

.home-legal__section p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.68;
    margin-bottom: 0.85rem;
}

.home-legal__section p:last-child {
    margin-bottom: 0;
}

.home-legal__section ul.home-list {
    margin: 0.65rem 0 0.85rem;
}

.home-legal__section ul.home-list:last-child {
    margin-bottom: 0;
}

.home-legal__caps {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    line-height: 1.75;
    color: rgba(244, 242, 255, 0.78);
}

@media (max-width: 600px) {
    body.home-legal .home-wrap {
        padding-bottom: 3rem;
    }

    .home-legal-hero {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}
