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

:root {
    --primary-color: #ff738d;
    --primary-dark: #e65a75;
    --primary-light: #ffb3c1;
    /* AA contrast with white text (4.6:1 / 5.9:1) */
    --primary-strong: #d6365a;
    --primary-strong-dark: #b8264a;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #6b6b6b;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 90px;
}

/* Accessibility */
.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--text-dark);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 3px solid var(--primary-strong);
    outline-offset: 3px;
    border-radius: 4px;
}

.cta :focus-visible,
.footer :focus-visible {
    outline-color: white;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

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

.logo img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* Language switcher */
.lang-switch {
    display: flex;
    gap: 4px;
}

.lang-switch a {
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    text-decoration: none;
}

.lang-switch a:hover {
    color: var(--primary-strong);
}

.lang-switch a[aria-current="page"] {
    color: var(--text-dark);
    background: var(--bg-gray);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

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

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-strong);
}

.nav .btn-install {
    background: var(--primary-strong);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav .btn-install:hover {
    color: white;
    background: var(--primary-strong-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
}

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

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-strong);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 115, 141, 0.3);
}

.btn-primary:hover {
    background: var(--primary-strong-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 115, 141, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--primary-strong);
    color: var(--primary-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

.hero-note {
    color: var(--text-light);
    font-size: 14px;
}

/* Browser Mockup */
.browser-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.browser-header {
    background: #f5f5f5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28ca42; }

.browser-url {
    flex: 1;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-gray);
    border: 1px solid var(--border-color);
}

.browser-content {
    padding: 40px;
    background: white;
}

.demo-card {
    background: var(--bg-gray);
    padding: 24px;
    border-radius: 8px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Shared section layout */
.demo,
.features,
.how-it-works,
.use-cases,
.cta {
    padding: 100px 0;
}

.demo h2,
.features h2,
.how-it-works h2,
.use-cases h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--text-dark);
}

/* Embedded demo */
.demo {
    background: var(--bg-light);
    text-align: center;
}

.demo h2 {
    margin-bottom: 16px;
}

.section-lead {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.demo-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    background: white;
}

.demo-frame iframe {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
}

.demo-fullscreen {
    margin-top: 20px;
}

.demo-fullscreen a {
    color: var(--primary-strong);
    font-weight: 600;
}

/* Features Section */
.features {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    background: white;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-strong));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* How it works */
.how-it-works {
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
}

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

.step {
    flex: 1;
    text-align: center;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary-strong);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step p {
    color: var(--text-gray);
}

.step-arrow {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Use Cases */
.use-cases {
    background: var(--bg-white);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.use-case {
    padding: 32px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.use-case:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    background: white;
}

.use-case h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.use-case p {
    color: var(--text-gray);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary-strong-dark));
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
}

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

.cta .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cta-note {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.9;
}

/* Footer */
.footer {
    padding: 60px 0 32px;
    background: var(--text-dark);
    color: white;
}

.footer-logo,
.footer-content {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    justify-content: center;
}

/* License text on the left, vertical menu on the right */
.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 48px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-license {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-license h2 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.footer-license p {
    max-width: 760px;
}

.footer-license p + p {
    margin-top: 8px;
}

.footer-license a,
.footer-bottom a {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .nav {
        gap: 16px;
    }

    .demo-frame iframe {
        height: 560px;
    }

    .demo h2,
    .features h2,
    .how-it-works h2,
    .use-cases h2,
    .cta h2 {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        padding-left: 0;
        border-left: 0;
    }
}

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

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

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .nav {
        display: none;
    }

    .logo img {
        width: 160px;
    }

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