:root {
    /* Colors */
    --primary: #7C4DFF;
    --primary-dark: #6739E6;
    --primary-light: #9D7FFF;
    --primary-pale: #E0E7FF;
    
    --text: #1F2937;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    
    --bg: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-dark: #F3F4F6;
    
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    
    /* Spacing */
    --xs: 0.25rem;
    --sm: 0.5rem;
    --md: 1rem;
    --lg: 1.5rem;
    --xl: 2rem;
    --2xl: 3rem;
    --3xl: 4rem;
    --4xl: 6rem;
    
    /* Typography */
    --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    
    --line-tight: 1.25;
    --line-normal: 1.5;
    --line-relaxed: 1.75;
    
    /* Layout */
    --container: 1200px;
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    font-size: var(--text-base);
    line-height: var(--line-normal);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--lg);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--primary);
    transition: var(--transition-fast);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--xl);
}

.nav-links a {
    color: var(--text);
    font-weight: var(--weight-medium);
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition-fast);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FAFBFF 0%, #F9FAFB 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--4xl);
    align-items: center;
    padding: var(--2xl) 0;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: var(--weight-bold);
    line-height: var(--line-tight);
    margin-bottom: var(--xl);
    color: var(--text);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-light);
    line-height: var(--line-relaxed);
    margin-bottom: var(--2xl);
}

.hero-actions {
    display: flex;
    gap: var(--md);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(124, 77, 255, 0.15));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--md) var(--xl);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-pale);
}

.btn-full {
    width: 100%;
}

/* Sections */
section {
    padding: var(--4xl) 0;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    text-align: center;
    margin-bottom: var(--md);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--3xl);
}

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

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

.feature-card {
    background: var(--bg);
    padding: var(--xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-pale);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--lg);
}

.feature-card h3 {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--sm);
}

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

/* Screenshots */
.screenshots {
    background: var(--bg);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--xl);
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-item {
    text-align: center;
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: translateY(-8px);
}

.screenshot-item img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--md);
    transition: var(--transition);
}

.screenshot-item:hover img {
    box-shadow: var(--shadow-xl);
}

.screenshot-item h3 {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--xs);
    color: var(--text);
}

.screenshot-item p {
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: var(--line-normal);
}

/* Pricing */
.pricing {
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--xl);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--2xl);
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.pricing-card-featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: var(--xl);
    background: var(--primary);
    color: var(--bg);
    padding: var(--xs) var(--md);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--xl);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--xl);
}

.pricing-header h3 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--lg);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--xs);
}

.currency {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    color: var(--text-light);
}

.amount {
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    color: var(--primary);
}

.period {
    font-size: var(--text-base);
    color: var(--text-light);
}

.pricing-features {
    margin-bottom: var(--xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--md);
    padding: var(--md) 0;
    color: var(--text);
}

.pricing-features svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: var(--text);
    color: var(--bg-light);
    padding: var(--3xl) 0 var(--xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--2xl);
    margin-bottom: var(--2xl);
}

.footer-col h4 {
    font-size: var(--text-xl);
    margin-bottom: var(--md);
    color: var(--bg);
}

.footer-col h5 {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--md);
    color: var(--bg);
}

.footer-col p {
    color: var(--text-lighter);
    line-height: var(--line-relaxed);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--sm);
}

.footer-col a {
    color: var(--text-lighter);
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-lighter);
}

/* Document Pages */
.document-page {
    padding: var(--2xl) 0 var(--4xl);
    background: var(--bg);
}

.document-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg);
    padding: var(--3xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.document-content h1 {
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--sm);
    color: var(--text);
}

.document-meta {
    color: var(--text-light);
    font-size: var(--text-sm);
    margin-bottom: var(--2xl);
    padding-bottom: var(--xl);
    border-bottom: 1px solid var(--border);
}

.document-content h2 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    margin-top: var(--2xl);
    margin-bottom: var(--md);
    color: var(--text);
}

.document-content h3 {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    margin-top: var(--xl);
    margin-bottom: var(--sm);
    color: var(--text);
}

.document-content p {
    margin-bottom: var(--md);
    line-height: var(--line-relaxed);
    color: var(--text-light);
}

.document-content ul,
.document-content ol {
    margin-bottom: var(--md);
    padding-left: var(--xl);
}

.document-content li {
    margin-bottom: var(--sm);
    line-height: var(--line-relaxed);
    color: var(--text-light);
    list-style: disc;
}

.document-content ol li {
    list-style: decimal;
}

.document-content a {
    color: var(--primary);
    text-decoration: underline;
}

.document-content a:hover {
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--2xl);
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image svg {
        max-width: 400px;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--lg);
    }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2.25rem;
        --text-4xl: 1.875rem;
        --text-3xl: 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: var(--xl);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        min-height: auto;
        padding: var(--3xl) 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-image svg {
        max-width: 300px;
    }
    
    section {
        padding: var(--3xl) 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: var(--xl);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .document-content {
        padding: var(--xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--md);
    }
    
    .pricing-card {
        padding: var(--lg);
    }
}