:root {
    --primary: #0071e3;
    --primary-hover: #0077ed;
    --secondary: #1d1d1f;
    --text: #1d1d1f;
    --text-muted: #86868b;
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --border: #d2d2d7;
    --container-width: 1100px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.5;
    background-color: var(--bg);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-alt);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #e8e8ed;
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.badge {
    display: inline-block;
    background-color: rgba(0, 113, 227, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Header */
header {
    height: 4rem;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 1rem;
}

.lang-switch a {
    text-decoration: none;
    color: var(--text-muted) !important;
}

.lang-switch a.active {
    color: var(--primary) !important;
}

.lang-switch span {
    font-weight: 300;
    color: var(--border);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background-color: var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* App Mockup */
.app-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border: 1px solid var(--border);
    overflow: hidden;
    aspect-ratio: 1.5 / 1;
}

.window-controls {
    height: 32px;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    padding-left: 12px;
    gap: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.window-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27c93f; }

.app-screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

.demo-image-container {
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.demo-screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.editor-showcase {
    padding: 8rem 0;
    background-color: var(--bg);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Demo Section */
.demo {
    padding: 8rem 0;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.check-list i {
    color: #27c93f;
}

/* Installation Section */
.installation {
    padding: 6rem 0;
    background-color: var(--bg-alt);
}

.install-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.install-method {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    max-width: 400px;
    position: relative;
}

.method-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-alt);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.method-badge.recommended {
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary);
}

.method-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.install-divider {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.code-snippet-box {
    background: var(--bg-alt);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 1rem;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 0.72rem;
    color: var(--primary);
    white-space: nowrap;
    overflow-x: auto;
}

.install-note {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    max-width: 800px;
    margin: 0 auto;
}

.install-note p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: var(--bg);
}

.cta-box {
    background: var(--secondary);
    color: white;
    padding: 5rem 2rem;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.cta-box h2 {
    color: white;
}

.cta-box > p {
    color: rgba(255, 255, 255, 0.6);
}

.version-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0 3rem;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.cta-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.all-releases {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.all-releases:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: var(--bg-alt);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.nav-links.active {
    display: flex !important;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    z-index: 999;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

#back-to-top.visible {
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    background: radial-gradient(circle at top right, rgba(0, 113, 227, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(0, 113, 227, 0.05), transparent 40%);
}

.hero-image {
    perspective: 1000px;
}

.app-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.app-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .hero-grid, .demo-content, .showcase-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    h1 {
        font-size: 2.8rem;
    }

    .hero-image {
        order: -1;
        margin-bottom: 3rem;
    }

    .app-mockup {
        transform: none;
    }

    .install-methods {
        flex-direction: column;
    }

    .install-method {
        max-width: 100%;
    }

    .install-divider {
        transform: rotate(0);
    }
}
