@font-face {
    font-family: 'Bahnschrift';
    src: url('../fonts/bahnschrift.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --font: 'Bahnschrift', 'Barlow', Arial, sans-serif;
    --blue: #00aaff;
    --blue-70: rgba(0, 170, 255, 0.7);
    --orange: #ca781b;
    --gray: #798286;
    --muted: #9aa3a7;
    --border: rgba(122, 130, 134, 0.3);
    --gutter: clamp(20px, 5vw, 64px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font);
    font-weight: 300;
    color: #fff;
    background: #000;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--blue-70);
    text-decoration: underline;
}

img {
    display: block;
}

h1, h2, h3, p {
    margin: 0;
}

.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;
}

/* Header / nav */
.site-header {
    position: relative;
    isolation: isolate;
    padding: clamp(20px, 4vw, 40px) var(--gutter) clamp(64px, 10vw, 140px);
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, #2a07ef5e, transparent),
        radial-gradient(circle farthest-corner at 50% 100%, #080226, transparent),
        #000;
}

.site-header--compact {
    padding-bottom: clamp(48px, 7vw, 96px);
    background: radial-gradient(ellipse 90% 70% at 50% 0%, #2a07ef4d, transparent);
}

.stars,
.stars-tiled {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.stars {
    opacity: 0.85;
    background-image:
        radial-gradient(1px 1px at 12% 18%, #fff, transparent),
        radial-gradient(1px 1px at 27% 62%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 41% 9%, #fff, transparent),
        radial-gradient(1px 1px at 58% 34%, #fff, transparent),
        radial-gradient(1px 1px at 73% 71%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 86% 22%, #fff, transparent),
        radial-gradient(1px 1px at 94% 56%, #fff, transparent),
        radial-gradient(1px 1px at 6% 84%, #fff, transparent),
        radial-gradient(1px 1px at 35% 88%, #ffffffaa, transparent),
        radial-gradient(1px 1px at 66% 92%, #ffffffaa, transparent),
        radial-gradient(1px 1px at 50% 50%, #ffffff88, transparent),
        radial-gradient(1px 1px at 19% 40%, #ffffff88, transparent),
        radial-gradient(1px 1px at 80% 44%, #ffffff88, transparent);
}

.stars-tiled {
    opacity: 0.5;
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 140px 90px, #fff, transparent),
        radial-gradient(1px 1px at 230px 160px, #ffffffaa, transparent),
        radial-gradient(1px 1px at 80px 210px, #ffffffaa, transparent);
    background-size: 260px 240px;
}

.nav {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

@media (max-width: 479px) {
    .nav-actions .btn {
        display: none;
    }
}

.brand-logo {
    height: 24px;
    width: auto;
}

.brand-logo--palermo {
    height: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 15px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--border);
    color: #fff;
    text-decoration: none;
}

.btn--lg {
    padding: 14px 22px;
    font-size: 1rem;
}

/* Hero */
.hero {
    max-width: 880px;
    margin: clamp(48px, 8vw, 96px) auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(24px, 3vw, 36px);
}

.hero h1 {
    line-height: 0;
}

.hero-logo {
    width: min(400px, 72vw);
    height: auto;
    aspect-ratio: 800 / 270;
}

.hero-tagline {
    max-width: 680px;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    line-height: 150%;
    color: rgba(255, 255, 255, 0.8);
    text-wrap: pretty;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
}

.store-badges a {
    display: block;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.store-badges a:hover {
    opacity: 0.85;
}

.store-badges img {
    height: 56px;
    width: auto;
}

/* Feature tiles */
.features {
    max-width: 1080px;
    margin: clamp(120px, 16vw, 220px) auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 16px;
}

.feature {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 40px;
    border-radius: 32px;
    border: 1px solid var(--border);
    background:
        radial-gradient(ellipse 80% 55% at 30% -10%, var(--glow), transparent 70%),
        radial-gradient(ellipse 60% 50% at 85% -5%, var(--glow-2), transparent 70%),
        var(--base);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.feature--blue {
    --accent: var(--blue);
    --glow: #00aaff4d;
    --glow-2: #2a07ef59;
    --base: #020207;
}

.feature--orange {
    --accent: var(--orange);
    --glow: #ca781b4d;
    --glow-2: #f0003c40;
    --base: #070302;
}

.feature-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-wave {
    display: flex;
    align-items: center;
    justify-content: stretch;
    gap: 5px;
    height: 88px;
    width: min(100%, 224px);
    margin: 11px auto;
}

.feature-wave span {
    flex: 1;
    min-width: 2px;
    height: var(--h);
    border-radius: 3px;
    background: var(--blue);
    opacity: var(--o);
    animation: fv-wave var(--dur) ease-in-out var(--delay) infinite alternate;
}

.feature-visual {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-lottie {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 520px;
    min-width: 0;
    margin: 0 auto;
    align-items: center;
    text-align: center;
}

.feature-text h3 {
    font-weight: 300;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 115%;
}

.text-muted {
    font-size: 1.0625rem;
    line-height: 150%;
    color: var(--muted);
    text-wrap: pretty;
}

@keyframes fv-wave {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

/* Screenshots */
.screenshots {
    padding: clamp(48px, 8vw, 96px) 0;
}

.screenshots-track {
    display: flex;
    gap: clamp(12px, 2vw, 24px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px var(--gutter) 24px;
    max-width: 1408px;
    margin: 0 auto;
}

.screenshot {
    flex: 0 0 clamp(200px, 22vw, 250px);
    aspect-ratio: 1290 / 2796;
    scroll-snap-align: center;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reviews */
.reviews {
    padding: 0 var(--gutter) clamp(64px, 10vw, 128px);
}

.section-title {
    max-width: 1280px;
    margin: 0 auto;
    font-weight: 300;
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 110%;
}

.marquee {
    max-width: 1408px;
    margin: clamp(28px, 4vw, 48px) auto 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: reviews-marquee 90s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.review {
    flex: 0 0 auto;
    width: min(340px, 80vw);
    margin-right: 16px;
    padding: 28px;
    border-radius: 32px;
    border: 1px solid var(--border);
    background: #05040d;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.review-stars {
    color: var(--orange);
    font-size: 18px;
    letter-spacing: 3px;
}

.review-platform {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.review h3 {
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 130%;
}

.review p {
    flex: 1;
    font-size: 1rem;
    line-height: 150%;
    color: var(--muted);
    text-wrap: pretty;
}

.review-name {
    font-size: 14px;
}

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

/* Mobile: swap the auto-scrolling marquee for a swipeable, snapping row */
@media (max-width: 767px) {
    .marquee {
        margin-left: calc(-1 * var(--gutter));
        margin-right: calc(-1 * var(--gutter));
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .marquee::-webkit-scrollbar {
        display: none;
    }

    .marquee-track {
        padding: 0 var(--gutter);
        animation: none;
    }

    /* The second copy only exists to make the marquee loop */
    .marquee-track > [aria-hidden="true"] {
        display: none;
    }

    .review {
        scroll-snap-align: start;
    }

    .review:last-child,
    .review:has(+ [aria-hidden="true"]) {
        margin-right: 0;
    }
}

/* Download CTA */
.download {
    position: relative;
    padding: clamp(80px, 12vw, 160px) var(--gutter);
    text-align: center;
    background: radial-gradient(ellipse 70% 80% at 50% 100%, #2a07ef55, transparent), #000;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.download-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.download h2 {
    font-weight: 300;
    font-size: clamp(2rem, 6.5vw, 4.5rem);
    line-height: 105%;
    text-wrap: balance;
}

.download-sub {
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    color: var(--orange);
}

.download .store-badges {
    margin-top: 16px;
}

/* Newsletter */
.newsletter {
    padding: clamp(64px, 10vw, 128px) var(--gutter);
}

.newsletter-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.newsletter-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.newsletter-copy h2 {
    font-weight: 300;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 115%;
    text-wrap: balance;
}

/* Brevo form — self-contained styles (no external sib-styles.css) */
.sib-form-message-panel {
    display: none;
    margin-bottom: 16px;
    padding: 20px 24px;
    border-radius: 24px;
    border: 1px solid;
    font-size: 15px;
    line-height: 145%;
}

.sib-form-message-panel--active {
    display: block;
}

.sib-form-message-panel__text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sib-form-message-panel .sib-icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    fill: currentColor;
}

#error-message {
    color: #ff4949;
    border-color: #ff4949;
    background: rgba(255, 73, 73, 0.08);
}

#success-message {
    color: #fff;
    border-color: rgba(0, 170, 255, 0.4);
    background: rgba(0, 170, 255, 0.08);
}

#sib-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(24px, 3vw, 32px);
    border-radius: 32px;
    border: 1px solid var(--border);
    background: radial-gradient(circle farthest-corner at 100% 100%, #2a07ef29, transparent), #000;
}

.sib-form .form__entry,
.sib-form .sib-form-block {
    margin: 0;
    padding: 0;
    border: 0;
}

.sib-form .form__label-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sib-form .entry__label {
    font-size: 14px;
    color: var(--muted);
}

#sib-form input.input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    outline: none;
}

#sib-form input.input:focus {
    border-color: var(--blue);
}

#sib-form input.input::placeholder {
    color: var(--gray);
}

.sib-form .entry__choice label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 145%;
    color: var(--muted);
    cursor: pointer;
}

.sib-form .input_replaced {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.sib-form .checkbox {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid var(--gray);
    border-radius: 4px;
}

.sib-form .input_replaced:checked + .checkbox {
    background: var(--blue);
    border-color: var(--blue);
}

.sib-form .input_replaced:checked + .checkbox::before {
    content: "";
    position: absolute;
    top: 1px;
    bottom: 3px;
    left: 50%;
    width: 35%;
    margin-left: -18%;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sib-form .input_replaced:focus-visible + .checkbox {
    box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.4);
}

.sib-form .entry__error {
    display: none;
    margin-top: 8px;
    font-size: 14px;
    color: #ff4949;
}

.sib-form-block__button {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    background: var(--blue);
    color: #000;
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sib-form-block__button:hover {
    background: var(--blue-70);
    color: #fff;
}

.sib-hide-loader-icon {
    display: none;
}

.progress-indicator__icon {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
    animation: indicator-spin 1.3s cubic-bezier(0.46, 0.35, 0.39, 0.85) infinite;
}

@keyframes indicator-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.input--hidden {
    display: none !important;
}

/* Help */
.help {
    padding: 0 var(--gutter) clamp(64px, 10vw, 128px);
}

.help-card {
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 32px;
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.help-card p {
    max-width: 620px;
    font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
    line-height: 150%;
    color: rgba(255, 255, 255, 0.85);
    text-wrap: pretty;
}

/* Footer */
.site-footer {
    padding: clamp(48px, 6vw, 72px) var(--gutter) 40px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 48px);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-row--legal {
    align-items: baseline;
    gap: 12px 32px;
}

.footer-logo {
    height: 28px;
    width: auto;
}

.footer-divider {
    height: 1px;
    background: rgba(122, 130, 134, 0.25);
}

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.social a:hover {
    background: var(--border);
}

.social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.copyright {
    font-size: 14px;
    color: var(--muted);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.legal-links a {
    font-size: 14px;
    color: #fff;
}

.legal-links a:hover,
.legal-links a[aria-current="page"] {
    color: var(--blue);
}

.legal-links a:hover {
    text-decoration: underline;
}

.fine-print {
    max-width: 880px;
    font-size: 12px;
    line-height: 160%;
    color: var(--gray);
    text-wrap: pretty;
}

/* Privacy */
.page-intro {
    max-width: 1080px;
    margin: clamp(56px, 9vw, 120px) auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-intro h1 {
    font-weight: 300;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 100%;
    letter-spacing: -0.01em;
}

.page-date {
    font-size: 14px;
    color: var(--orange);
}

.lang-switch {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.5);
}

.lang-switch button {
    padding: 6px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--gray);
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-switch button:hover {
    color: #fff;
}

.lang-switch button[aria-pressed="true"] {
    background: var(--blue);
    color: #000;
}

.policy {
    padding: 0 var(--gutter) clamp(72px, 10vw, 128px);
}

.policy-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.toc {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.toc-title {
    margin-bottom: 12px;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray);
}

.toc nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}

.toc a {
    color: #fff;
}

.toc a:hover {
    color: var(--blue);
}

.policy-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 5vw, 56px);
    font-size: 1.0625rem;
    line-height: 165%;
    color: #c9cfd2;
}

.policy-body section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-margin-top: 24px;
}

.policy-body h2 {
    font-weight: 400;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 120%;
    color: #fff;
}

.policy-body p {
    text-wrap: pretty;
}

.policy-body strong {
    font-weight: 500;
    color: #fff;
}

@media (min-width: 768px) {
    .policy-grid {
        grid-template-columns: 1fr 2fr;
    }

    .toc {
        position: sticky;
        top: 24px;
    }
}

/* 404 */
.not-found {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.not-found .site-header {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.not-found-body {
    flex: 1;
    max-width: 640px;
    margin: clamp(48px, 8vw, 96px) auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.not-found-code {
    font-weight: 300;
    font-size: clamp(6rem, 22vw, 12rem);
    line-height: 90%;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.35));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.not-found-body h2 {
    font-weight: 300;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 115%;
}

.not-found-body .btn {
    margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .marquee-track,
    .feature-wave span {
        animation: none !important;
    }
}

@supports (corner-shape: superellipse(1.4)) {
    .btn,
    .screenshot,
    .toc {
        corner-shape: superellipse(1.4);
    }
}

@supports (corner-shape: squircle) {
    .feature,
    .review,
    #sib-form,
    .sib-form-block__button,
    .help-card,
    .help-card .btn {
        corner-shape: squircle;
    }
}
