* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #14b8a6;
    --accent-color: #06b6d4;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #14b8a6 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.header::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='http://www.w3.org/2000/svg'%3E%3Cg 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: 1;
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    font-weight: 400;
}

.version {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    opacity: 0.85;
    position: relative;
    font-weight: 500;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.8rem 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-1px);
}

.nav a:hover::after {
    width: 80%;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* Sections */
section {
    margin-bottom: 1rem;
    scroll-margin-top: 100px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) 1;
    clear: both;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    clear: both;
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0.8rem 0 0.4rem;
}

p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

ul, ol {
    margin: 0.5rem 0 0.5rem 2rem;
}

li {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

/* Info boxes */
.info-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(20, 184, 166, 0.05));
    border-left: 4px solid var(--primary-color);
    padding: 1.2rem;
    margin: 1rem 0;
    border-radius: 12px;
    clear: both;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.warning-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 191, 36, 0.08));
    border-left: 4px solid var(--warning-color);
    padding: 1.2rem;
    margin: 1rem 0;
    border-radius: 12px;
    clear: both;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.warning-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.danger-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(252, 165, 165, 0.08));
    border-left: 4px solid var(--danger-color);
    padding: 1.2rem;
    margin: 1rem 0;
    border-radius: 12px;
    clear: both;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.danger-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.success-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(167, 243, 208, 0.08));
    border-left: 4px solid var(--success-color);
    padding: 1.2rem;
    margin: 1rem 0;
    border-radius: 12px;
    clear: both;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.success-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

/* Device screen mockup */
.device-screen {
    background: #1e293b;
    color: white;
    font-family: 'Courier New', monospace;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    clear: both;
}

.device-screen pre {
    white-space: pre;
    line-height: 1.3;
    font-size: 0.9rem;
}

/* Screenshot styling */
.screenshot-container {
    float: left;
    margin: 0.5rem 2rem 0.5rem 0;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(20, 184, 166, 0.05));
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.12);
    max-width: 380px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.screenshot-frame {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 18px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4), inset 0 1px 2px rgba(255,255,255,0.1);
    display: inline-block;
}

.screenshot-frame img {
    display: block;
    border: 2px solid #000;
    border-radius: 4px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    max-width: 320px;
    height: auto;
}

.screenshot-caption {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
    clear: both;
}

.screenshot-grid .screenshot-container {
    float: none;
    margin: 0;
    padding: 1rem;
    max-width: none;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
    clear: both;
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

tr {
    transition: all 0.2s ease;
}

tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(20, 184, 166, 0.05));
    transform: scale(1.01);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Steps */
.steps {
    counter-reset: step-counter;
}

.step {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.2rem;
}

.step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.step:hover::before {
    transform: scale(1.1) rotate(5deg);
}

/* Quick reference */
.quick-ref {
    background: var(--dark-bg);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    clear: both;
}

.quick-ref h3 {
    color: white;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
}

.quick-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.quick-ref-item {
    background: rgba(255,255,255,0.1);
    padding: 0.7rem;
    border-radius: 6px;
}

.quick-ref-item strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.25rem;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .device-screen {
        padding: 1rem;
        font-size: 0.8rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }

    /* Disable float on mobile for better readability */
    .screenshot-container {
        float: none;
        margin: 0.8rem auto;
        max-width: 100%;
    }
}

/* FAQ Accordion Styles */
.faq-section {
    background: var(--light-bg);
    padding: 2rem 0;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-category {
    margin-bottom: 2rem;
}

.faq-category-title {
    /* Uses h2 styles from above */
    margin-bottom: 1rem;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 5000px;
}

.faq-answer > *:first-child {
    margin-top: 0;
    padding-top: 0;
}

.faq-answer > *:last-child {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol,
.faq-answer table {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.comparison-table {
    width: calc(100% - 3rem);
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

/* Support CTA */
.support-cta {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(20, 184, 166, 0.05));
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.support-cta h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.support-cta p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Print styles */
@media print {
    .nav, .header, .footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}
