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

:root {
    --black: #1d1d1f;
    --gray1: #86868b;
    --gray2: #d2d2d7;
    --gray3: #f5f5f7;
    --white: #ffffff;
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --green: #34C759;
    --radius: 20px;
    --nav-h: 52px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-muted { color: var(--gray1); }

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: background .3s;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}

.nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: .95rem;
    letter-spacing: -.01em;
}

.nav-links {
    display: flex; gap: 28px;
}

.nav-links a {
    font-size: .82rem;
    font-weight: 500;
    color: var(--gray1);
    transition: color .2s;
}
.nav-links a:hover { color: var(--black); }

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none; border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-burger span {
    display: block;
    width: 100%; height: 1.5px;
    background: var(--black);
    border-radius: 2px;
    transition: .3s;
}
.nav-burger.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger.open span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* Mobile overlay */
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--white);
    padding: 40px 32px;
    gap: 24px;
    z-index: 99;
}
.nav-links.mobile-open a {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--black);
}

/* ===== Hero ===== */
.hero {
    padding-top: calc(var(--nav-h) + 80px);
    padding-bottom: 60px;
    background: var(--gray3);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
}

.hero-text {
    padding-bottom: 80px;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--gray1);
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 32px;
}

/* App Store button */
.btn-apple {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--black);
    color: var(--white);
    font-size: .85rem;
    transition: opacity .2s;
}
.btn-apple:hover { opacity: .85; }
.btn-apple span { display: flex; flex-direction: column; line-height: 1.3; }
.btn-apple small { font-size: .6rem; font-weight: 400; opacity: .7; }
.btn-apple strong { font-weight: 700; font-size: .95rem; }

.btn-apple-dark {
    background: var(--black);
    color: #fff;
}

/* Phone frame with real screenshot */
.hero-phone {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.phone-frame {
    width: 260px;
    background: #000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 40px 80px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.08);
    overflow: hidden;
}

.phone-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

/* ===== Gallery ===== */
.gallery {
    padding: 100px 0 40px;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 24px;
    padding: 0 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: center;
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-slide {
    flex-shrink: 0;
    scroll-snap-align: center;
    text-align: center;
}

.gallery-phone {
    width: 200px;
    background: #000;
    border-radius: 32px;
    padding: 8px;
    box-shadow: 0 16px 48px rgba(0,0,0,.1);
    overflow: hidden;
    transition: transform .3s;
}
.gallery-phone:hover {
    transform: scale(1.03);
}

.gallery-phone img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.gallery-slide p {
    margin-top: 12px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray1);
}

/* ===== Sections common ===== */
.sect-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    text-align: center;
    margin-bottom: 56px;
}

/* ===== Features ===== */
.features {
    padding: 120px 0;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feat-card {
    background: var(--gray3);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: transform .3s, box-shadow .3s;
}
.feat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,.06);
}

.feat-icon {
    margin-bottom: 20px;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.feat-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -.01em;
}

.feat-card p {
    font-size: .88rem;
    color: var(--gray1);
    line-height: 1.55;
}

/* ===== How ===== */
.how {
    padding: 100px 0 120px;
    background: var(--gray3);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-icon {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    margin-bottom: 20px;
}

.step-line {
    width: 60px;
    height: 1px;
    background: var(--gray2);
    margin-top: 36px;
    flex-shrink: 0;
}

.step-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.step-text p {
    font-size: .85rem;
    color: var(--gray1);
    line-height: 1.5;
}

/* ===== Quote ===== */
.quote {
    padding: 140px 0;
    text-align: center;
}
.quote h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.1;
}

/* ===== CTA ===== */
.cta {
    padding: 100px 0;
    text-align: center;
    background: var(--gray3);
}
.cta h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 10px;
}
.cta p {
    color: var(--gray1);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,.06);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.footer-brand {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: .85rem;
}

.footer-nav {
    display: flex; gap: 24px;
}
.footer-nav a {
    font-size: .78rem;
    color: var(--gray1);
    transition: color .2s;
}
.footer-nav a:hover { color: var(--black); }

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,.04);
    padding: 14px 0;
}
.footer-bottom p {
    font-size: .72rem;
    color: var(--gray1);
    text-align: center;
}

/* ===== Page Content (Support & Privacy) ===== */
.page-hero {
    padding: calc(var(--nav-h) + 80px) 0 60px;
    text-align: center;
    background: var(--gray3);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 10px;
}

.page-hero p {
    color: var(--gray1);
    font-size: 1rem;
}

.page-body {
    padding: 60px 0 100px;
}

.page-body .container {
    max-width: 720px;
}

/* Contact cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 60px;
}

.contact-grid-single {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: var(--gray3);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform .3s;
}
.contact-card:hover { transform: translateY(-4px); }

.contact-card .c-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-card p {
    font-size: .82rem;
    color: var(--gray1);
    margin-bottom: 12px;
    line-height: 1.5;
}

.contact-card a, .contact-card span.val {
    font-size: .82rem;
    color: var(--blue);
    font-weight: 600;
}

/* FAQ */
.faq-title {
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -.02em;
}

.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.faq-item p {
    font-size: .88rem;
    color: var(--gray1);
    line-height: 1.65;
}

.faq-item a {
    color: var(--blue);
}

/* Legal sections */
.legal h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 36px 0 12px;
    letter-spacing: -.01em;
}

.legal p {
    font-size: .9rem;
    color: #444;
    line-height: 1.75;
    margin-bottom: 10px;
}

.legal strong { color: var(--black); }

.legal ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 16px;
}

.legal ul li {
    position: relative;
    padding-left: 20px;
    font-size: .9rem;
    color: #444;
    line-height: 1.75;
}

.legal ul li::before {
    content: '';
    position: absolute;
    left: 4px; top: 10px;
    width: 5px; height: 5px;
    background: var(--black);
    border-radius: 50%;
}

.legal a {
    color: var(--blue);
    transition: opacity .2s;
}
.legal a:hover { opacity: .7; }

.legal-divider {
    height: 1px;
    background: var(--gray2);
    margin: 48px 0;
}

.legal .lang-label {
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    color: var(--gray1);
    letter-spacing: -.01em;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text { padding-bottom: 40px; }
    .hero-sub { margin: 0 auto 32px; }
    .hero-phone { order: -1; }

    .phone-frame {
        width: 220px;
        border-radius: 36px;
    }

    .gallery-track { justify-content: flex-start; }

    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { flex-direction: column; gap: 16px; }
    .footer-nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 640px) {
    .nav-links:not(.mobile-open) { display: none; }
    .nav-burger { display: flex; }

    .hero {
        padding-top: calc(var(--nav-h) + 40px);
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-sub {
        font-size: .95rem;
    }

    .phone-frame {
        width: 200px;
        border-radius: 32px;
        padding: 8px;
    }
    .phone-frame img {
        border-radius: 24px;
    }

    .gallery { padding: 60px 0 20px; }
    .gallery-track {
        justify-content: flex-start;
        gap: 16px;
        padding: 0 20px;
    }
    .gallery-phone {
        width: 160px;
        border-radius: 26px;
        padding: 6px;
    }
    .gallery-phone img { border-radius: 20px; }

    .feat-grid { grid-template-columns: 1fr; }
    .features { padding: 80px 0; }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .step-line {
        width: 1px;
        height: 32px;
        margin: 0;
    }

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

    .quote { padding: 80px 0; }
    .quote h2 { font-size: 2rem; }

    .cta { padding: 60px 0; }
}
