:root {
    --blue: #3b9dff;
    --blue-dark: #1f7fe0;
    --orange: #ff9a5c;
    --orange-dark: #f07a34;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --text: #1a2233;
    --text-muted: #5f6b7f;
    --border: rgba(26, 34, 51, 0.08);
    --shadow: 0 18px 50px rgba(26, 34, 51, 0.08);
    --radius: 20px;
    --radius-sm: 14px;
    --gradient: linear-gradient(135deg, var(--blue) 0%, #6bb8ff 45%, var(--orange) 100%);
    --max-width: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(59, 157, 255, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 154, 92, 0.12), transparent 24%),
        var(--bg);
    line-height: 1.6;
}

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

a:hover {
    text-decoration: underline;
}

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

.container {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(244, 247, 251, 0.82);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(59, 157, 255, 0.22);
    flex-shrink: 0;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
    margin-left: auto;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
}

.nav-link.is-active,
.nav-link:hover {
    color: var(--text);
    text-decoration: none;
}

.lang-select {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font: inherit;
    color: var(--text);
}

.hero {
    padding: 4.5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 0.75rem 0 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(59, 157, 255, 0.12);
    color: var(--blue-dark);
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 0 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.button-primary {
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 14px 30px rgba(59, 157, 255, 0.28);
}

.button-secondary {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: min(100%, 300px);
    margin: 0 auto;
}

.phone-frame-img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.phone-screen {
    position: absolute;
    top: 10px;
    left: 4.7%;
    right: 4.7%;
    bottom: 2%;
    z-index: 1;
    border-radius: 12% / 5.5%;
    overflow: hidden;
    background: #000;
}

.phone-screen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.phone-screen img.is-active {
    opacity: 1;
}

.screenshot-grid .phone-screen img {
    opacity: 1;
    transition: none;
}

.hero-glow {
    position: absolute;
    inset: 10% 0 auto;
    height: 70%;
    background: var(--gradient);
    filter: blur(70px);
    opacity: 0.35;
    z-index: -1;
}

.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-card,
.info-card,
.faq-item,
.screenshot-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-card {
    padding: 1.5rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(59, 157, 255, 0.12);
    color: var(--blue-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.08rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.96rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.screenshot-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.screenshot-media {
    padding: 1.5rem 1rem 0.5rem;
    background: linear-gradient(180deg, rgba(59, 157, 255, 0.06) 0%, rgba(255, 154, 92, 0.04) 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}


.screenshot-card figcaption {
    padding: 1rem 1.1rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.cta-band {
    margin: 1rem 0 4rem;
    padding: 2.5rem;
    border-radius: calc(var(--radius) + 4px);
    background: var(--gradient);
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-band h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.cta-band p {
    margin: 0 auto 1.5rem;
    max-width: 36rem;
    opacity: 0.95;
}

.cta-band .button-secondary {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.page-hero {
    padding: 3.5rem 0 1.5rem;
}

.page-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

.page-hero p {
    margin: 0;
    color: var(--text-muted);
    max-width: 42rem;
}

.legal-content,
.support-content {
    padding-bottom: 4rem;
}

.legal-section,
.info-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section h2,
.info-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
}

.legal-section p,
.info-card p,
.faq-item p {
    margin: 0;
    color: var(--text-muted);
}

.support-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.email-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    padding: 1.25rem 1.5rem;
}

.faq-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0 2.5rem;
    background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
    display: grid;
    gap: 1rem;
}

.footer-brand p,
.footer-copy {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 960px) {
    .hero-grid,
    .support-grid,
    .feature-grid,
    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-grid {
        max-width: 360px;
        margin: 0 auto;
    }

    .site-nav {
        display: none;
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 0.75rem 0;
    }

    .lang-switcher {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 2.5rem;
    }

    .section,
    .page-hero {
        padding-top: 2.5rem;
    }

    .cta-band {
        padding: 1.75rem 1.25rem;
    }
}
