:root {
    --primary: #4d80cc;
    --primary-deep: #2e5ea5;
    --cream: #f5f0e0;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.66);
    --text: #0f1a24;
    --text-secondary: #253445;
    --muted: #506171;
    --border-soft: rgba(77, 128, 204, 0.22);
    --ring: rgba(77, 128, 204, 0.42);
    --shadow-soft: 0 12px 36px rgba(20, 34, 52, 0.16);
    --shadow-strong: 0 32px 60px rgba(17, 24, 39, 0.42);
    --radius-lg: 22px;
    --radius-md: 14px;
}

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

body {
    position: relative;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    background:
        radial-gradient(1300px 700px at 12% -8%, rgba(77,128,204,0.28), transparent 58%),
        radial-gradient(920px 460px at 92% 18%, rgba(77,128,204,0.18), transparent 62%),
        radial-gradient(600px 260px at 52% 32%, rgba(255,255,255,0.68), transparent 75%),
        linear-gradient(180deg, #ebf2fb 0%, var(--cream) 38%, #fcfdfd 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.17;
    background-image: radial-gradient(circle at 1px 1px, rgba(17,24,39,0.45) 1px, transparent 0);
    background-size: 3px 3px;
    mix-blend-mode: soft-light;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
}

.content-section { animation: fadeInUp 0.8s ease-out; }

.content-card {
    padding: clamp(1.5rem, 2.7vw, 2.6rem);
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    border: 1px solid rgba(255,255,255,0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px) saturate(120%);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    background: rgba(77,128,204,0.1);
    border: 1px solid rgba(77,128,204,0.18);
    color: var(--primary-deep);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(77,128,204,0.25), 0 2px 6px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.hero-title {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.05;
    margin: 0;
}

.hero-title .accent { color: var(--primary); }

.hero-subtitle {
    max-width: 36ch;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.app-description {
    max-width: 58ch;
    font-size: 1.06rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.85;
}

.features-list {
    list-style: none;
    margin-bottom: 2.75rem;
}

.features-list li {
    position: relative;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(77,128,204,0.14);
}

.features-list li:last-child { border-bottom: 0; }

.features-list li::before {
    content: "✓";
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    background: linear-gradient(180deg, var(--primary), var(--primary-deep));
    box-shadow: 0 6px 14px rgba(77,128,204,0.3);
    flex-shrink: 0;
}

.related-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: -1rem 0 2rem;
}

.related-topics a {
    padding: 0.42rem 0.7rem;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: var(--primary-deep);
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.related-topics a:hover,
.related-topics a[aria-current="page"] {
    border-color: rgba(77, 128, 204, 0.4);
    background: rgba(77, 128, 204, 0.12);
}

.cta-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 0;
    background: transparent;
    box-shadow: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    min-height: 58px;
    padding: 0.25rem;
}

.app-store-badge {
    height: 54px;
    width: auto;
    display: block;
}

.cta-button:hover { transform: translateY(-2px); opacity: 0.92; }
.cta-button:active { transform: translateY(0); }

a:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.legal-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.legal-links a:hover::after { opacity: 1; }

.legal-links-below {
    margin-top: 1rem;
    justify-content: center;
}

/* Phone mockup */
.phone-section {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out 0.2s both;
    perspective: 1100px;
}

.iphone-frame {
    position: relative;
    width: 304px;
    height: 640px;
    border-radius: 54px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(58,60,66,0.95), rgba(18,18,22,0.98));
    box-shadow: var(--shadow-strong), inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 0 0 2px rgba(0,0,0,0.3);
    transform: rotateY(-6deg) rotateX(2deg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.phone-section:hover .iphone-frame {
    transform: rotateY(-2deg) rotateX(1deg) translateY(-4px);
    box-shadow: 0 38px 68px rgba(17,24,39,0.46), 0 0 30px rgba(77,128,204,0.22), inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 0 0 2px rgba(0,0,0,0.3);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 44px;
    overflow: hidden;
    position: relative;
}

.video-wrapper {
    position: absolute;
    inset: 0;
    background: #000;
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--primary-deep);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.35rem; opacity: 0.5; }

/* Language switcher */
.lang-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: center;
}

.lang-nav a {
    font-size: 0.8rem;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-weight: 600;
}

.lang-nav a:hover, .lang-nav a[aria-current="page"] {
    background: rgba(77,128,204,0.12);
    color: var(--primary-deep);
    border-color: rgba(77,128,204,0.3);
}

/* RTL support */
[dir="rtl"] .title-row { flex-direction: row-reverse; }
[dir="rtl"] .features-list li { flex-direction: row-reverse; }
[dir="rtl"] .related-topics { flex-direction: row-reverse; }
[dir="rtl"] .lang-nav { flex-direction: row-reverse; }
[dir="rtl"] .cta-row { flex-direction: row-reverse; }
[dir="rtl"] .legal-links { flex-direction: row-reverse; }
[dir="rtl"] .legal-links a::after { left: auto; right: 0; }
[dir="rtl"] .breadcrumb { direction: rtl; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 980px) {
    .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 1.25rem;
    }

    .content-card { padding: 1.35rem; }
    .title-row { justify-content: center; }

    .app-icon { width: 56px; height: 56px; }

    .hero-subtitle, .app-description {
        margin-left: auto;
        margin-right: auto;
        max-width: 32ch;
    }

    .features-list li { text-align: left; }
    [dir="rtl"] .features-list li { text-align: right; }

    .cta-row { justify-content: center; margin-bottom: 1.5rem; }
    .cta-button { width: min(100%, 320px); }

    .iphone-frame { width: 252px; height: 530px; transform: none; }
    .phone-section:hover .iphone-frame { transform: none; }

    .legal-links { justify-content: center; }
    .lang-nav { justify-content: center; }
    [dir="rtl"] .title-row { flex-direction: row-reverse; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
