/* Colors follow the app's own dark theme */
:root {
    --bg: #0f1419;
    --bg-raised: #141a22;
    --card: #1a1f2e;
    --surface: #242b3d;
    --border: #2d3548;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --subtle: #6b7280;
    --tint: #3b82f6;
    --tint-soft: rgba(59, 130, 246, 0.14);
    --success: #10b981;
    --radius: 20px;
    --container: 1140px;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    /* Keep anchored sections clear of the sticky nav */
    scroll-padding-top: 76px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 14px;
    background: var(--tint);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid transparent;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(59, 130, 246, 0.45);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    box-shadow: none;
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--card);
    box-shadow: none;
}

.btn-small {
    padding: 9px 16px;
    font-size: 0.9rem;
    border-radius: 12px;
    box-shadow: none;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15, 20, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
}

.logo img {
    border-radius: 9px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 600;
    color: var(--muted);
}

.nav-links a:not(.btn):hover {
    color: var(--text);
}

/* Hero */
.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -200px -10% auto auto;
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 65%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--tint-soft);
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

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

.lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    list-style: none;
    color: var(--subtle);
    font-size: 0.95rem;
}

.hero-facts li::before {
    content: '✓';
    color: var(--success);
    font-weight: 800;
    margin-right: 8px;
}

.hero-facts strong {
    color: var(--text);
    font-weight: 600;
}

/* Phones */
.phone {
    /* Width and ratio are the screen's; the bezel is drawn outside it */
    box-sizing: content-box;
    width: 260px;
    aspect-ratio: 1080 / 2252;
    border-radius: 40px;
    border: 10px solid #232a36;
    background: #000;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.phone img {
    width: 100%;
}

.hero-phones {
    position: relative;
    height: 600px;
}

.hero-phones .phone {
    position: absolute;
}

.phone-front {
    right: 90px;
    top: 0;
    z-index: 2;
}

.phone-back {
    right: -30px;
    top: 50px;
    transform: rotate(8deg);
    opacity: 0.55;
    filter: saturate(0.8);
}

/* The long Home screenshot scrolls slowly inside the front phone */
.scrolling img {
    animation: scroll-screen 22s ease-in-out infinite alternate;
}

.scrolling:hover img {
    animation-play-state: paused;
}

@keyframes scroll-screen {
    0%,
    8% {
        transform: translateY(0);
    }

    92%,
    100% {
        /* Height of the image minus the height of the screen */
        transform: translateY(calc(-100% + 260px * 2252 / 1080));
    }
}

/* Feature sections */
.feature {
    padding: 56px 0;
}

.feature-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 80px;
}

.feature.reverse .feature-inner {
    grid-template-columns: 1fr auto;
}

.feature.reverse .feature-inner > :first-child {
    order: 2;
}

.feature-copy {
    max-width: 520px;
}

.tag {
    display: inline-block;
    color: var(--tint);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.feature h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.feature p {
    color: var(--muted);
    font-size: 1.08rem;
    margin-bottom: 22px;
}

.checks {
    list-style: none;
    display: grid;
    gap: 12px;
}

.checks li {
    position: relative;
    padding-left: 32px;
}

.checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.phone-pair {
    display: flex;
    gap: 22px;
}

.phone-pair .phone {
    width: 230px;
}

.phone-pair .phone:last-child {
    margin-top: 60px;
}

/* Feature grid */
.more {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 44px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
}

.card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--surface);
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.card p {
    color: var(--muted);
    font-size: 0.97rem;
}

/* Gallery */
.gallery {
    padding: 40px 0 90px;
}

.gallery .section-title {
    margin-bottom: 36px;
}

.gallery-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 10px 0 24px;
    /* It loops endlessly, so a scrollbar would only jump around */
    scrollbar-width: none;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.gallery-track:focus-visible {
    outline: 2px solid var(--tint);
    outline-offset: -2px;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-track.dragging {
    cursor: grabbing;
}

.gallery-track img {
    -webkit-user-drag: none;
}

.gallery-track figure {
    flex: 0 0 230px;
}

.gallery-track img {
    width: 100%;
    aspect-ratio: 1080 / 2252;
    object-fit: cover;
    border-radius: 26px;
    border: 6px solid #232a36;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.gallery-track figcaption {
    margin-top: 12px;
    text-align: center;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Call to action */
.cta {
    padding: 20px 0 100px;
}

.cta-inner {
    text-align: center;
    padding: 64px 24px;
    border-radius: 32px;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.3), transparent 70%), var(--card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-inner img {
    border-radius: 18px;
    margin-bottom: 22px;
}

.cta-inner h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.cta-inner p {
    color: var(--muted);
    margin-bottom: 28px;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 36px 0 44px;
    color: var(--subtle);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

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

.social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.social a:hover {
    color: var(--text);
    border-color: var(--tint);
}

/* Tablets */
@media (max-width: 960px) {
    .hero {
        padding: 56px 0 70px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-facts {
        justify-content: center;
    }

    .hero-phones {
        height: 560px;
        width: 340px;
        margin: 0 auto;
    }

    .phone-front {
        left: 0;
        right: auto;
    }

    .phone-back {
        right: -40px;
    }

    .feature-inner,
    .feature.reverse .feature-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-items: center;
        text-align: center;
    }

    .feature.reverse .feature-inner > :first-child {
        order: 0;
    }

    .checks {
        text-align: left;
        max-width: 440px;
        margin: 0 auto;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phones */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-phones {
        width: 260px;
        height: 520px;
    }

    .hero-phones .phone,
    .phone {
        width: 224px;
        border-width: 8px;
        border-radius: 34px;
    }

    .phone-back {
        display: none;
    }

    @keyframes scroll-screen {
        0%,
        8% {
            transform: translateY(0);
        }

        92%,
        100% {
            transform: translateY(calc(-100% + 224px * 2252 / 1080));
        }
    }

    .phone-pair {
        gap: 14px;
    }

    /* Two phones side by side within the 16px gutters */
    .phone-pair .phone {
        width: calc((100vw - 46px) / 2 - 16px);
        max-width: 184px;
    }

    .phone-pair .phone:last-child {
        margin-top: 36px;
    }

    .feature {
        padding: 48px 0;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .gallery-track figure {
        flex-basis: 64vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scrolling img {
        animation: none;
    }

    .btn,
    html {
        transition: none;
        scroll-behavior: auto;
    }
}
