:root {
    --color-background: #f6f6fb;
    --color-surface: #ffffff;
    --color-surface-blue: #dff0ff;
    --color-blue: #168de2;
    --color-blue-dark: #0c6fba;
    --color-text: #050507;
    --color-muted: #74747b;
    --color-line: #e7e8ee;
    --color-green: #31c76a;
    --color-orange: #f58634;
    --color-red: #ec424b;
    --shadow-soft: 0 18px 42px rgba(20, 31, 48, 0.12);
    --shadow-phone: 0 28px 70px rgba(20, 31, 48, 0.18);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.container-full-width {
    width: min(1380px, calc(100% - 24px));
}

.hero {
    min-height: 92vh;
    padding: 20px 0 var(--spacing-lg);
    overflow: hidden;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.brand-mark,
.site-nav a {
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.site-nav > a:not(.brand-mark) {
    color: var(--color-blue);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    box-shadow: 0 8px 22px rgba(20, 31, 48, 0.08);
}

.app-icon-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(20, 31, 48, 0.16);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
}

.hero-content {
    padding: var(--spacing-md) 0;
}

.eyebrow,
.section-kicker {
    color: var(--color-blue);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.35em;
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--color-blue);
    font-size: clamp(1.12rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
}

h1,
h2,
h3 {
    color: var(--color-text);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.04;
}

h1 {
    max-width: 620px;
    margin-top: 14px;
    font-size: clamp(4rem, 10vw, 8.4rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 4.2rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    color: var(--color-muted);
    font-size: 1.08rem;
}

.tagline {
    max-width: 560px;
    margin: 20px 0 28px;
    color: #3f4047;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 600;
}

.app-store-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.app-store-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.app-store-badge {
    width: 176px;
    height: auto;
}

.hero-shots {
    position: relative;
    min-height: min(76vh, 760px);
}

.hero-phone {
    position: absolute;
    width: min(42vw, 330px);
    border-radius: 38px;
    border: 8px solid rgba(255, 255, 255, 0.95);
    background: var(--color-surface);
    box-shadow: var(--shadow-phone);
}

.hero-phone-main {
    top: 3%;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
}

.hero-phone-side {
    width: min(32vw, 260px);
    opacity: 0.88;
    top: 18%;
}

.hero-phone-left {
    left: 3%;
    transform: rotate(-6deg);
}

.hero-phone-right {
    right: 2%;
    transform: rotate(6deg);
}

.intro-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: var(--spacing-lg);
    align-items: end;
}

.intro-grid h2 {
    max-width: 780px;
    margin-top: 12px;
}

.intro-grid > p {
    font-size: 1.22rem;
    font-weight: 600;
}

.screenshots-section {
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.section-heading {
    margin: 0 auto var(--spacing-md);
    max-width: 720px;
    text-align: center;
}

.section-heading h2 {
    margin-top: 10px;
    white-space: nowrap;
    font-size: clamp(2rem, 4.5vw, 4rem);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.carousel-container {
    width: 100%;
    max-width: 1050px;
    overflow: hidden;
    padding: 54px 0 40px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
    opacity: 0.34;
    transform: scale(0.84);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1.08);
    z-index: 2;
}

.screenshot-frame {
    width: min(76vw, 314px);
    overflow: hidden;
    border: 8px solid var(--color-surface);
    border-radius: 36px;
    background: var(--color-surface);
    box-shadow: var(--shadow-phone);
}

.caption {
    min-height: 58px;
    max-width: 430px;
    margin-top: 26px;
    color: #3f4047;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide.active .caption {
    opacity: 1;
}

.carousel-nav {
    position: relative;
    z-index: 8;
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 26px rgba(20, 31, 48, 0.12);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.carousel-nav:hover {
    color: var(--color-surface);
    background: var(--color-blue);
    transform: translateY(-2px);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: #c8d0da;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.dot.active {
    width: 26px;
    background: var(--color-blue);
}

.features-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-line);
}

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

.feature-card {
    min-height: 224px;
    padding: 24px;
    background: var(--color-background);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(22, 141, 226, 0.36);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 1rem;
    font-weight: 560;
}

footer {
    padding: var(--spacing-md) 0;
    color: var(--color-muted);
    background: var(--color-surface);
    border-top: 1px solid var(--color-line);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

footer p {
    font-size: 0.95rem;
}

footer a {
    color: var(--color-blue);
    font-weight: 750;
    text-decoration: none;
}

footer a:hover {
    color: var(--color-blue-dark);
}

.privacy-hero {
    padding: 22px 0 var(--spacing-md);
}

.privacy-hero-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: clamp(22px, 5vw, 44px);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.privacy-icon {
    width: clamp(64px, 10vw, 96px);
    height: clamp(64px, 10vw, 96px);
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(20, 31, 48, 0.14);
}

.privacy-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.privacy-hero p {
    color: var(--color-blue);
    font-weight: 800;
}

.privacy-main {
    padding-bottom: var(--spacing-xl);
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin: 0 0 18px;
    color: var(--color-blue);
    font-weight: 800;
    text-decoration: none;
}

.back-link:hover {
    color: var(--color-blue-dark);
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 52px);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.privacy-content h2 {
    margin: 36px 0 12px;
    color: var(--color-text);
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.privacy-content h2:first-of-type {
    margin-top: 28px;
}

.privacy-content p {
    margin-bottom: 16px;
    color: #3f4047;
    font-weight: 560;
}

.privacy-content a {
    color: var(--color-blue);
    font-weight: 750;
    text-decoration: none;
}

.privacy-content a:hover {
    color: var(--color-blue-dark);
}

.privacy-content ul {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.privacy-content li {
    position: relative;
    margin-bottom: 10px;
    padding: 14px 16px 14px 42px;
    color: #3f4047;
    background: var(--color-background);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    font-size: 1.02rem;
}

.privacy-content li::before {
    position: absolute;
    top: 17px;
    left: 16px;
    width: 10px;
    height: 10px;
    content: "";
    background: var(--color-blue);
    border-radius: var(--radius-pill);
}

@media (min-width: 768px) {
    .carousel-slide {
        flex-basis: 50%;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        flex-basis: 33.333%;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
    }

    .hero-grid,
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .hero-shots {
        min-height: 620px;
        order: -1;
    }

    .hero-phone {
        width: min(58vw, 300px);
    }

    .hero-phone-side {
        width: min(42vw, 220px);
    }

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

@media (max-width: 640px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .hero {
        padding-top: 14px;
    }

    .site-nav {
        margin-bottom: var(--spacing-md);
    }

    .brand-mark span {
        display: none;
    }

    h1 {
        font-size: 4.4rem;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-shots {
        min-height: 500px;
    }

    .hero-phone {
        width: min(72vw, 282px);
        border-width: 6px;
        border-radius: 32px;
    }

    .hero-phone-side {
        width: min(46vw, 178px);
        top: 24%;
    }

    .hero-phone-left {
        left: -4%;
    }

    .hero-phone-right {
        right: -5%;
    }

    .app-store-badge {
        width: 166px;
    }

    .hero-byline {
        display: block;
    }

    .section-heading h2 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .carousel-wrapper {
        gap: 4px;
    }

    .carousel-nav {
        position: absolute;
        top: 38%;
    }

    .carousel-nav.prev {
        left: 0;
    }

    .carousel-nav.next {
        right: 0;
    }

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

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .privacy-hero-card {
        grid-template-columns: 1fr;
    }

    .privacy-content li {
        padding-right: 14px;
    }
}
