/* Velocity Accents - Light, Friendly Design */

/* Import Inter Font */
@import url('inter-font.css');

:root {
    /* Friendly, modern colors */
    --primary-color: #0EA5E9;
    --primary-hover: #0284C7;
    --secondary-color: #06B6D4;
    --accent-color: #8B5CF6;

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-lighter: #F1F5F9;

    /* Text colors */
    --text-dark: #0F172A;
    --text-medium: #334155;
    --text-light: #475569;

    /* UI elements */
    --border-light: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Apple-style easing functions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
    line-height: 1.47;
    letter-spacing: -0.003em;
    color: var(--text-medium);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    padding-top: 64px;
}

/* ===================================
   ACCESSIBILITY: Focus Styles
   =================================== */

/* Remove default focus outline */
*:focus {
    outline: none;
}

/* Add beautiful focus-visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: transform 0.3s ease;
    transform: translateY(0);
}

header.header-hidden {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Header Right Side (Language + Hamburger) */
.mobile-header-right {
    display: none;
    align-items: center;
    gap: 16px;
}

header .logo-container {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

header .logo-container a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s var(--ease-in-out-smooth);
}

header .logo-container a:hover {
    color: var(--primary-color);
}

header .logo-container .logo {
    height: 32px;
    width: auto;
    display: block;
}

header nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

header nav a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.2s var(--ease-in-out-smooth),
                background-color 0.2s var(--ease-in-out-smooth);
}

header nav a:hover {
    color: var(--primary-color);
    background: rgba(14, 165, 233, 0.08);
}

header nav a:active {
    background: rgba(14, 165, 233, 0.15);
    transform: scale(0.98);
}

header nav a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Language Switcher (works in both desktop nav and mobile header) */
header .lang-switch {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 12px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    transition: background-color 0.2s var(--ease-in-out-smooth),
                border-color 0.2s var(--ease-in-out-smooth),
                color 0.2s var(--ease-in-out-smooth);
}

header .lang-switch:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

header .lang-switch:active {
    transform: scale(0.98);
}

header .lang-switch:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
    header .lang-switch {
        border-color: var(--border-dark);
    }

    header .lang-switch:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
    position: relative;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav-overlay.active .mobile-nav {
    transform: translateX(0);
}

.mobile-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s var(--ease-in-out-smooth),
                color 0.2s var(--ease-in-out-smooth);
    display: block;
    text-align: left;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.mobile-nav .lang-switch-mobile {
    margin-top: 24px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
}

.mobile-nav .lang-switch-mobile:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 8rem);
    text-align: center;
}

.hero .app-icon {
    width: 160px;
    height: 160px;
    margin: 0 auto 32px;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    display: block;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.hero .subtitle {
    font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.hero .description {
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.375rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    line-height: 1.47;
    letter-spacing: -0.01em;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: transform 0.2s var(--ease-out-expo),
                background-color 0.2s var(--ease-in-out-smooth),
                box-shadow 0.2s var(--ease-in-out-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* Video Section */
.video-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--bg-white);
}

.video-section h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Section */
.features {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--bg-light);
}

.features h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

/* Mobile/Tablet: 1 column when hamburger menu is active */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        display: flex;
        flex-direction: column;
    }

    .feature-card {
        position: sticky;
        top: 100px;
    }

    .feature-card:nth-child(1) { z-index: 1; }
    .feature-card:nth-child(2) { z-index: 2; }
    .feature-card:nth-child(3) { z-index: 3; }
    .feature-card:nth-child(4) { z-index: 4; }
    .feature-card:nth-child(5) { z-index: 5; }
    .feature-card:nth-child(6) { z-index: 6; }
    .feature-card:nth-child(7) { z-index: 7; }
    .feature-card:nth-child(8) { z-index: 8; }
}

/* Extra small mobile: adjust sizing */
@media (max-width: 480px) {
    .features-grid {
        gap: 20px;
    }

    .feature-card {
        padding: 24px;
        gap: 12px;
        position: sticky;
        top: 90px;
    }

    .feature-icon {
        font-size: 42px;
        height: 42px;
    }

    .feature-icon-svg {
        width: 42px;
        height: 42px;
    }
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: transform 0.25s var(--ease-out-expo),
                background-color 0.2s var(--ease-in-out-smooth),
                box-shadow 0.25s var(--ease-in-out-smooth),
                border-color 0.2s var(--ease-in-out-smooth);
    border: 1px solid var(--border-light);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: default;
}

/* Hover effects only on desktop (larger than mobile breakpoint) */
@media (min-width: 769px) {
    .feature-card:hover {
        background: var(--bg-light);
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
        border-color: rgba(14, 165, 233, 0.2);
    }

    .feature-card:active {
        transform: translateY(-2px) scale(1.01);
    }
}

.feature-icon {
    font-size: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    line-height: 1;
    color: var(--text-medium);
}

.feature-icon-svg {
    width: 52px;
    height: 52px;
    display: block;
}

.feature-card h3 {
    font-size: clamp(1.25rem, 2vw + 0.25rem, 1.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.feature-card p {
    color: var(--text-light);
    font-size: clamp(0.9375rem, 1.5vw + 0.25rem, 1.0625rem);
    line-height: 1.47;
    letter-spacing: -0.003em;
    margin: 0;
}

/* Screenshots Gallery */
.screenshots {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--bg-white);
}

.screenshot-header {
    text-align: center;
    padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2rem, 4vw, 3rem) 0;
    background: var(--bg-white);
    max-width: 900px;
    margin: 0 auto;
}

.screenshots h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.screenshots-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw + 0.25rem, 1.25rem);
    color: var(--text-light);
    line-height: 1.47;
    letter-spacing: -0.01em;
}

/* Horizontal Scroll Container */
.screenshot-scroll-wrapper {
    position: relative;
    /* Height dynamically set by JavaScript for perfect sync */
    min-height: 100vh;
}

.screenshot-scroll-wrapper-inner {
    position: sticky;
    top: 60px;
    z-index: 100;
    background: var(--bg-white);
    padding-bottom: 40px;
}

.screenshot-scroll-container {
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: min(900px, calc(100vw - 48px));
    margin: 0 auto;
    border-radius: var(--radius-lg);
}

.screenshot-grid {
    display: flex;
    gap: 24px;
    padding: 0;
    width: max-content;
}

.screenshot-item {
    flex: 0 0 auto;
    position: relative;
    width: min(900px, calc(100vw - 48px));
}

.screenshot-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
}

.screenshot-caption {
    background: var(--bg-white);
    padding: 60px 20px 20px 20px;
    text-align: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-top: -40px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.screenshot-caption h4 {
    font-size: clamp(1rem, 1.75vw + 0.25rem, 1.25rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.screenshot-caption p {
    font-size: clamp(0.875rem, 1.5vw + 0.125rem, 1.0625rem);
    color: var(--text-light);
    line-height: 1.47;
    letter-spacing: -0.003em;
}

/* Screenshot Placeholder */
.screenshot-placeholder {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 3840 / 2150;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
}

.screenshot-placeholder p {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.screenshot-placeholder span {
    font-size: 14px;
    color: var(--text-light);
}

/* Reverse Section Styling */
.screenshots-reverse {
    background: var(--bg-light);
}

.screenshots-reverse .screenshot-scroll-wrapper-inner {
    background: var(--bg-light);
}

.screenshots-reverse .screenshot-header {
    background: var(--bg-light);
}

.screenshots-reverse .screenshot-caption {
    background: var(--bg-light);
}

/* Scroll hint */
.scroll-hint {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-light);
    animation: fadeInOut 2s infinite;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Screenshot Pagination Dots */
.screenshot-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.screenshot-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E2E8F0;
    transition: background 0.2s var(--ease-in-out-smooth),
                width 0.3s var(--ease-out-expo),
                transform 0.2s var(--ease-out-expo);
    cursor: pointer;
}

.screenshot-pagination-dot.active {
    background: #64748B;
    width: 24px;
    border-radius: 4px;
}

.screenshot-pagination-dot:hover {
    background: #475569;
    opacity: 0.8;
    transform: scale(1.2);
}

.screenshot-pagination-dot:active {
    transform: scale(1.1);
}

.screenshot-pagination-dot:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Download Section */
.download {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 100%);
    text-align: center;
}

.download .download-app-icon {
    width: clamp(80px, 10vw, 112px);
    height: clamp(80px, 10vw, 112px);
    margin: 0 auto clamp(1.25rem, 3vw, 2rem);
    border-radius: 22px;
    display: block;
}

.download h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.download .price-tag {
    font-size: clamp(1.125rem, 2vw + 0.25rem, 1.375rem);
    color: var(--text-light);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.download .btn-primary {
    font-size: 20px;
    padding: 18px 48px;
}

.requirements-box {
    max-width: 800px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.requirement-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.requirement-card h3 {
    font-size: clamp(1.125rem, 2vw + 0.25rem, 1.375rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: clamp(0.875rem, 2vw, 1.25rem);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.requirement-card ul {
    list-style: none;
}

.requirement-card li {
    padding: clamp(0.375rem, 1vw, 0.625rem) 0;
    color: var(--text-medium);
    font-size: clamp(0.9375rem, 1.5vw + 0.125rem, 1.0625rem);
    display: flex;
    align-items: flex-start;
    line-height: 1.47;
    letter-spacing: -0.003em;
}

.requirement-card li::before {
    content: "✓";
    color: var(--text-medium);
    font-weight: 600;
    margin-right: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

/* Support Section */
.support {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
    background: var(--bg-light);
    text-align: center;
}

.support h2 {
    font-size: clamp(1.75rem, 3.5vw + 0.5rem, 2.25rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: clamp(0.875rem, 2vw, 1.25rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.support p {
    font-size: clamp(1rem, 2vw + 0.25rem, 1.25rem);
    color: var(--text-light);
    margin-bottom: clamp(0.625rem, 1.5vw, 1rem);
    line-height: 1.47;
    letter-spacing: -0.003em;
}

.support a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: opacity 0.2s var(--ease-in-out-smooth),
                background-color 0.2s var(--ease-in-out-smooth);
}

.support a:hover {
    text-decoration: underline;
    opacity: 0.8;
    background: rgba(14, 165, 233, 0.08);
}

.support a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Footer */
footer {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    text-align: center;
}

footer p {
    color: var(--text-light);
    font-size: clamp(0.8125rem, 1.25vw + 0.125rem, 0.9375rem);
    margin-bottom: clamp(0.375rem, 1vw, 0.625rem);
    line-height: 1.47;
    letter-spacing: -0.003em;
}

footer strong {
    color: var(--text-dark);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 3px;
    transition: opacity 0.2s var(--ease-in-out-smooth),
                background-color 0.2s var(--ease-in-out-smooth);
}

footer a:hover {
    text-decoration: underline;
    opacity: 0.8;
    background: rgba(14, 165, 233, 0.06);
}

footer a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show mobile header right (language + hamburger), hide desktop nav */
    .mobile-header-right {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    /* Smaller logo on mobile */
    header .logo-container .logo {
        height: 28px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero .subtitle {
        font-size: 20px;
    }

    .hero .description {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .video-section h2,
    .features h2,
    .screenshots h2,
    .download h2 {
        font-size: 32px;
        line-height: 1.1;
    }

    .feature-card {
        padding: 40px 24px 24px;
    }

    .screenshot-scroll-wrapper-inner {
        top: 50px;
    }

    .screenshot-header {
        padding: 16px 0 32px 0;
    }

    .screenshot-caption {
        padding: 50px 16px 16px 16px;
        margin-top: -32px;
    }

    .screenshot-caption h4 {
        font-size: 16px;
    }

    .screenshot-caption p {
        font-size: 14px;
    }

    .screenshot-placeholder {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 3840 / 2150;
    }

    .screenshot-placeholder p {
        font-size: 18px;
    }

    .screenshot-placeholder span {
        font-size: 13px;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero .app-icon {
        width: 120px;
        height: 120px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .screenshot-caption h4 {
        font-size: 15px;
    }

    /* Even smaller screenshots for very small phones */
    .screenshot-caption {
        padding: 40px 12px 12px 12px;
        margin-top: -24px;
    }
}

/* Legal Pages (Impressum, Datenschutz) */
.legal-content {
    background: var(--bg-light);
    min-height: 100vh;
}

.legal-content .container {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 6rem) 5% clamp(3rem, 6vw, 5rem);
}

.legal-content h1 {
    font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.legal-content h2 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: -0.015em;
    line-height: 1.1;
}

.legal-content h3 {
    font-size: clamp(1.25rem, 2.5vw + 0.25rem, 1.625rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-top: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.legal-content h4 {
    font-size: clamp(1.0625rem, 2vw + 0.125rem, 1.375rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-top: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: clamp(0.625rem, 1.5vw, 1rem);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.legal-content p {
    font-size: clamp(1rem, 1.5vw + 0.125rem, 1.125rem);
    line-height: 1.47;
    letter-spacing: -0.003em;
    color: var(--text-medium);
    margin-bottom: clamp(0.875rem, 2vw, 1.25rem);
}

.legal-content ul {
    margin: clamp(0.875rem, 2vw, 1.25rem) 0;
    padding-left: clamp(1.25rem, 3vw, 2rem);
}

.legal-content ul li {
    font-size: clamp(1rem, 1.5vw + 0.125rem, 1.125rem);
    line-height: 1.47;
    letter-spacing: -0.003em;
    color: var(--text-medium);
    margin-bottom: clamp(0.375rem, 1vw, 0.625rem);
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
    transition: opacity 0.2s var(--ease-in-out-smooth),
                background-color 0.2s var(--ease-in-out-smooth);
}

.legal-content a:hover {
    opacity: 0.8;
    background: rgba(14, 165, 233, 0.08);
    text-decoration: underline;
}

.legal-content a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.legal-content .legal-date {
    margin-top: 40px;
    font-size: 14px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .legal-content .container {
        padding: 60px 5% 40px;
    }

    .legal-content h1 {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .legal-content h2 {
        font-size: 24px;
        margin-top: 40px;
        margin-bottom: 16px;
    }

    .legal-content h3 {
        font-size: 20px;
        margin-top: 28px;
    }

    .legal-content h4 {
        font-size: 17px;
        margin-top: 20px;
    }

    .legal-content p,
    .legal-content ul li {
        font-size: 16px;
    }
}

/* ===================================
   ACCESSIBILITY: Reduced Motion Support
   =================================== */

/* Apple-style: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Keep some subtle transitions for better UX */
    .btn,
    header nav a,
    header .lang-switch,
    .mobile-nav a {
        transition: color 0.15s ease,
                    background-color 0.15s ease,
                    opacity 0.15s ease !important;
    }
}

/* ============================================
   Dynamic Product Back-Link in Navigation
   ============================================ */

/* Product back-link is a normal nav link, no special styling needed */
.product-back-link,
.product-back-link-mobile {
    /* Inherits nav link styles automatically */
}
