/* Write Pilot - Premium Landing Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --dark-bg: #0a0c10;
    --dark-secondary: #111318;
    --light-bg: #ffffff;
    --light-secondary: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --gradient-3: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-bg);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-light); }

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--light-bg);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-icon {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

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

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

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
}

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

.nav-cta {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

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

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

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

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

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: var(--dark-bg);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    color: var(--text-white);
    margin-bottom: 24px;
}

.hero-text h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 500px;
}

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

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: left;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* Hero Mockup */
.hero-mockup {
    position: relative;
}

.mockup-container {
    background: var(--dark-secondary);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.mockup-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mockup-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.mockup-icon.ai { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.mockup-icon.media { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.mockup-icon.schedule { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.mockup-title {
    color: var(--text-white);
    font-weight: 600;
}

.mockup-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.mockup-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.mockup-bar-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    animation: fillBar 2s ease-out infinite;
}

@keyframes fillBar {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 100%; }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--dark-bg);
    color: var(--text-white);
}

.section-dark p {
    color: rgba(255,255,255,0.7);
}

.section-light {
    background: var(--light-bg);
}

.section-alt {
    background: var(--light-secondary);
}

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

.section-header .badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-dark .section-header .badge {
    background: rgba(37, 99, 235, 0.2);
}

.section-header h2 {
    margin-bottom: 16px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

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

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

.section-dark .feature-card {
    background: var(--dark-secondary);
    border-color: rgba(255,255,255,0.1);
}

.section-dark .feature-card:hover {
    border-color: var(--primary);
}

/* Premium Lucide Icons Styling */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-icon svg,
.feature-icon i {
    width: 28px;
    height: 28px;
    color: #6ea8fe;
    stroke: #6ea8fe;
    stroke-width: 1.75;
}

/* Unified premium icon style — dark bg + blue icon */
.feature-icon.gradient-1,
.feature-icon.gradient-2,
.feature-icon.gradient-3,
.feature-icon.gradient-4,
.feature-icon.gradient-5,
.feature-icon.gradient-6 {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Light section overrides — same shape, slightly different bg */
.section-light .feature-icon.gradient-1,
.section-light .feature-icon.gradient-2,
.section-light .feature-icon.gradient-3,
.section-light .feature-icon.gradient-4,
.section-light .feature-icon.gradient-5,
.section-light .feature-icon.gradient-6 {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.section-light .feature-icon svg,
.section-light .feature-icon i {
    color: #2563eb;
    stroke: #2563eb;
}

.feature-card:hover .feature-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
}

/* Step icon gradients */
.step-icon.gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); box-shadow: 0 10px 30px rgba(102, 126, 234, 0.35); }
.step-icon.gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); box-shadow: 0 10px 30px rgba(240, 147, 251, 0.35); }
.step-icon.gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); box-shadow: 0 10px 30px rgba(79, 172, 254, 0.35); }

/* Large feature icons (for hero/special sections) */
.feature-icon.large {
    width: 72px;
    height: 72px;
    border-radius: 18px;
}

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

/* Icon in mockup cards */
.mockup-icon svg,
.mockup-icon i {
    width: 22px;
    height: 22px;
    color: #fff;
    stroke-width: 2;
}

/* Inline icons */
.icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.icon-inline svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    stroke-width: 2;
}

/* Icon with accent color */
.icon-accent svg {
    color: var(--primary);
}

/* Alert icons */
.alert .icon-inline svg,
.info-box .icon-inline svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Number step icons */
.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-icon.gradient-1 { background: var(--gradient-1); box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3); }
.step-icon.gradient-2 { background: var(--gradient-2); box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3); }
.step-icon.gradient-3 { background: var(--gradient-3); box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3); }

.feature-card:hover .step-icon {
    transform: translateY(-2px) scale(1.05);
}

/* Support card icons */
.support-channel-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-channel-icon.gradient-1 { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.35); 
}
.support-channel-icon.gradient-2 { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.35); 
}
.support-channel-icon.gradient-3 { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); 
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.35); 
}

.support-channel:hover .support-channel-icon {
    transform: translateY(-3px);
}

.support-channel-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
    stroke: white;
    stroke-width: 2;
}

/* Quick help icons */
.quick-help-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.quick-help-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
    stroke-width: 2;
}

.quick-help-icon.gradient-1 { background: var(--gradient-1); }
.quick-help-icon.gradient-2 { background: var(--gradient-2); }
.quick-help-icon.gradient-3 { background: var(--gradient-3); }

/* Docs sidebar icons */
.docs-nav-link .icon-inline {
    margin-right: 10px;
}

.docs-nav-link .icon-inline svg {
    width: 18px;
    height: 18px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.docs-nav-link:hover .icon-inline svg,
.docs-nav-link.active .icon-inline svg {
    color: var(--primary);
}

.feature-card h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-dark .feature-card h4 {
    color: var(--text-white);
}

/* AI Models Section */
.ai-models {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
    width: 100%;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.ai-model {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 36px 20px 28px;
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    cursor: default;
    min-width: 0;
}

.ai-model:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.ai-model-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    transition: all 0.35s ease;
    filter: grayscale(0) brightness(1);
    flex-shrink: 0;
}

.ai-model:hover .ai-model-icon {
    filter: grayscale(1) brightness(0.5);
    background: rgba(255,255,255,0.03);
    box-shadow: none;
}

.ai-model-icon svg {
    width: 44px;
    height: 44px;
}

.ai-model-name {
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s ease;
}

.ai-model:hover .ai-model-name {
    color: #fff;
}

.ai-model-models {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.ai-model:hover .ai-model-models {
    color: rgba(255,255,255,0.55);
}

/* AI Models Section */
.section-ai-models {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.section-ai-models::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 60% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.section-ai-models::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4), rgba(124, 58, 237, 0.4), transparent);
}

.section-ai-models .container {
    position: relative;
    z-index: 1;
}

.section-ai-models .ai-model {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
}

.section-ai-models .ai-model:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.2);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 20px 60px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.08);
}

.section-ai-models .ai-model-icon {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.section-ai-models .ai-model:hover .ai-model-icon {
    border-color: rgba(255,255,255,0.15);
}

.section-ai-models .ai-model .ai-model-icon.claude {
    box-shadow: 0 0 24px rgba(217, 121, 65, 0.35);
}
.section-ai-models .ai-model .ai-model-icon.openai {
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.35);
}
.section-ai-models .ai-model .ai-model-icon.gemini {
    box-shadow: 0 0 24px rgba(66, 133, 244, 0.35);
}
.section-ai-models .ai-model:hover .ai-model-icon.claude,
.section-ai-models .ai-model:hover .ai-model-icon.openai,
.section-ai-models .ai-model:hover .ai-model-icon.gemini {
    box-shadow: none;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.pricing-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: white;
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.pricing-sites {
    color: var(--text-light);
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: rgba(37, 99, 235, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 10l3.5 3.5L15 7' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pricing-card .btn {
    width: 100%;
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.6;
}

.pricing-note::before,
.pricing-note::after {
    content: '';
    height: 1px;
    width: 60px;
    background: var(--border-color);
    display: block;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--dark-secondary);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.1);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.testimonial-text {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.testimonial-name {
    color: var(--text-white);
    font-weight: 600;
}

.testimonial-role {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 120px 0;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='https://www.shutterstock.com/image-illustration/symmetrical-geometric-pixel-art-pattern-260nw-2628574547.jpg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: white;
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo,
.footer-brand .footer-logo {
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-brand .logo:hover,
.footer-brand .footer-logo:hover {
    color: var(--text-white);
}

/* Premium Footer Logo */
.footer-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo:hover .footer-logo-icon {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.45);
}

.footer-logo-icon svg {
    width: 24px;
    height: 24px;
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-logo-text .accent {
    background: linear-gradient(135deg, #667eea 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 16px;
    max-width: 300px;
    line-height: 1.7;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.5);
}

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

.footer-links li {
    margin-bottom: 12px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

/* Documentation Styles */
.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    padding-top: 100px;
    min-height: 100vh;
}

.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    padding: 24px 0;
}

.docs-nav {
    list-style: none;
}

.docs-nav-item {
    margin-bottom: 8px;
}

.docs-nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-light);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.docs-nav-link:hover,
.docs-nav-link.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.docs-content {
    padding: 40px 0 100px;
    max-width: 800px;
}

.docs-content h1 {
    margin-bottom: 24px;
    font-size: 2.5rem;
}

.docs-content h2 {
    margin-top: 48px;
    margin-bottom: 20px;
    font-size: 1.75rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.docs-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.docs-content p {
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.8;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.docs-content li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.docs-content code {
    background: var(--light-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.docs-content pre {
    background: var(--dark-bg);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.docs-content pre code {
    background: none;
    color: #e2e8f0;
    padding: 0;
}

.docs-alert {
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid;
}

.docs-alert.info {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}

.docs-alert.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.docs-alert.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.docs-alert p {
    margin: 0;
}

/* Changelog Styles */
.changelog-list {
    max-width: 800px;
    margin: 0 auto;
}

.changelog-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
}

.changelog-version {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.version-tag {
    background: var(--gradient-1);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
}

.version-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.changelog-changes {
    list-style: none;
}

.changelog-changes li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-dark);
}

.changelog-changes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.changelog-changes .added::before { background: #10b981; }
.changelog-changes .improved::before { background: #3b82f6; }
.changelog-changes .fixed::before { background: #f59e0b; }

/* Roadmap Styles */
.roadmap-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.roadmap-item {
    padding-left: 60px;
    padding-bottom: 48px;
    position: relative;
}

.roadmap-dot {
    position: absolute;
    left: 12px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--light-bg);
}

.roadmap-item.completed .roadmap-dot { background: #10b981; }
.roadmap-item.current .roadmap-dot { background: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2); }
.roadmap-item.upcoming .roadmap-dot { background: var(--text-light); }

.roadmap-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.roadmap-version {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.roadmap-status {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.roadmap-status.released { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.roadmap-status.in-progress { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.roadmap-status.planned { background: rgba(100, 116, 139, 0.1); color: var(--text-light); }

.roadmap-features {
    list-style: none;
}

.roadmap-features li {
    padding: 8px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.roadmap-features li::before {
    content: '→';
    color: var(--primary);
    font-weight: 700;
}

/* Support Page */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.support-info {
    padding-right: 40px;
}

.support-info h2 {
    margin-bottom: 16px;
}

.support-info p {
    margin-bottom: 32px;
}

.support-channels {
    list-style: none;
}

.support-channel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--light-secondary);
    border-radius: 12px;
    margin-bottom: 16px;
}

.support-channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.support-channel-text h4 {
    color: var(--text-dark);
    margin-bottom: 4px;
}

.support-channel-text p {
    margin: 0;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-message {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    display: block;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.legal-content h1 {
    margin-bottom: 8px;
}

.legal-content .last-updated {
    color: var(--text-light);
    margin-bottom: 40px;
}

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

.legal-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.legal-content p {
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Header */
.page-header {
    background: var(--dark-bg);
    padding: 140px 0 60px;
    text-align: center;
}

.page-header h1 {
    color: var(--text-white);
    margin-bottom: 16px;
}

.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .docs-layout {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-mockup {
        display: none;
    }
    
    .features-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .ai-models {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 320px;
    }

    .ai-model {
        padding: 20px 24px;
        flex-direction: row;
        text-align: left;
        gap: 20px;
    }

    .ai-model-icon {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }

    .ai-model-icon svg {
        width: 34px;
        height: 34px;
    }

    .ai-model-name, .ai-model-models {
        text-align: left;
    }

    /* Fix horizontal overflow on mobile */
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-text p {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-buttons .btn {
        text-align: center;
        width: 100%;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .section {
        padding: 60px 0;
    }

    .ai-models {
        max-width: 100%;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 60px 0;
    }

    .cta h2 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    /* Legal pages */
    .legal-content {
        padding: 40px 0;
    }

    /* Docs */
    .docs-layout {
        grid-template-columns: 1fr;
    }

    /* Tables overflow fix */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Changelog */
    .changelog-entry {
        padding: 24px 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-text h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .roadmap-header {
        flex-wrap: wrap;
    }

    .roadmap-item {
        padding-left: 44px;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

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

    .pricing-card {
        padding: 24px 16px;
    }

    .testimonial-card {
        padding: 24px 16px;
    }

    .footer-grid {
        gap: 24px;
    }

    .changelog-version {
        font-size: 1.1rem;
    }
}

/* Mobile Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--light-bg);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 24px;
}

.mobile-nav-links li {
    margin-bottom: 16px;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── RESPONSIVE FIXES ── */

/* Tables — wrap in scrollable container via CSS */
.legal-content table,
.docs-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    max-width: 100%;
    margin-bottom: 24px;
}

.legal-content table td,
.legal-content table th {
    white-space: normal;
    min-width: 100px;
}

/* Docs code blocks */
.docs-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    word-break: normal;
}

@media (max-width: 768px) {

    /* Docs */
    .docs-layout {
        display: block;
        padding-top: 24px;
    }

    .docs-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 32px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 24px;
    }

    .docs-content h1 {
        font-size: 1.75rem;
    }

    .docs-content h2 {
        font-size: 1.35rem;
    }

    /* Support page */
    .support-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .support-info {
        padding-right: 0;
    }

    /* Legal pages */
    .legal-content {
        padding: 80px 16px 60px;
    }

    .legal-content h1 {
        font-size: 1.75rem;
    }

    .legal-content h2 {
        font-size: 1.2rem;
    }

    /* Tables scrollable */
    .legal-content table,
    .docs-content table {
        font-size: 0.85rem;
    }

    /* Changelog */
    .changelog-item {
        padding: 20px 16px;
    }

    .changelog-version {
        font-size: 1.1rem;
    }

    .changelog-changes li {
        font-size: 0.9rem;
    }

    /* Roadmap */
    .roadmap-timeline {
        padding-left: 0;
    }

    .roadmap-item {
        padding-left: 40px;
        padding-bottom: 32px;
    }

    .roadmap-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .roadmap-version {
        font-size: 1.2rem;
    }

    /* Section headers */
    .section-header {
        padding: 0 8px;
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* CTA section */
    .cta-content h2 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    /* Hero buttons — full width stacked */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-social {
        justify-content: center;
    }

    /* Pricing note */
    .pricing-note {
        font-size: 0.82rem;
        gap: 8px;
    }

    .pricing-note::before,
    .pricing-note::after {
        width: 30px;
    }
}

@media (max-width: 480px) {

    .legal-content {
        padding: 70px 12px 48px;
    }

    .docs-layout {
        padding-top: 16px;
    }

    .docs-content pre {
        font-size: 0.8rem;
        padding: 14px;
    }

    .changelog-item {
        padding: 16px 12px;
    }

    .roadmap-item {
        padding-left: 32px;
    }

    .roadmap-timeline::before {
        left: 10px;
    }

    .roadmap-dot {
        left: 2px;
        width: 16px;
        height: 16px;
    }

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

    .step-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .pricing-price {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 1.6rem;
    }
}
