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

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-surface: #334155;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #475569;
    --success: #10b981;
    --danger: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    left: 10px;
}

main, .payment-container, .features, .hero {
    flex: 1;
}

.footer {
    margin-top: auto;
}

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

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.35s ease, background 0.35s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    background: rgba(15, 23, 42, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-icon-img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-icon,
.logo:hover .logo-icon-img {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 0 28px rgba(99, 102, 241, 0.55);
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
}

.vault {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.three-r {
    color: var(--accent-light);
    background: linear-gradient(90deg, var(--accent-light) 0%, #a78bfa 50%, var(--accent-light) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

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

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

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 18px;
}

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

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

.nav-links a.nav-home {
    color: var(--accent-light);
    background: rgba(99, 102, 241, 0.15);
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.nav-links a.nav-home:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Android Coming Soon badge in download section */
.android-badge {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(129,140,248,0.05));
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 12px;
    transition: border-color 0.3s, background 0.3s;
}
.android-badge:hover {
    border-color: rgba(99,102,241,0.5);
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(129,140,248,0.08));
}
.android-badge-icon {
    font-size: 22px;
}
.android-badge-text {
    color: #818cf8;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* Android pricing card button */
.android-soon-btn {
    opacity: 0.7;
    cursor: default;
    border-color: rgba(99,102,241,0.3) !important;
    color: #818cf8 !important;
}

.pricing-card.android-card {
    border-color: rgba(99,102,241,0.3);
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(99,102,241,0.02));
}

.pricing-card.ios-card {
    border-color: rgba(59,130,246,0.3);
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02));
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        right: 20px;
        top: 70px;
        width: min(320px, calc(100vw - 40px));
        flex-direction: column;
        gap: 0;
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid var(--border);
        border-radius: 14px;
        overflow: hidden;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 14px 16px;
    }

    .nav-links li a:hover {
        background: rgba(99, 102, 241, 0.12);
    }
}

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 50%, var(--accent-light) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both, highlightShift 6s ease-in-out infinite 1s;
}

@keyframes highlightShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.trial-badge {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 24px;
    padding: 8px 18px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trust-badge:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.trust-icon {
    font-size: 1.1rem;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-light);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    margin-right: 8px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

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

/* Scroll-reveal base */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.18);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
}

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

/* App Gallery Section */
.app-gallery {
    padding: 80px 0;
    overflow: hidden;
    max-width: 100vw;
}

.app-gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.app-gallery .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    overflow: hidden;
}

.gallery-arrow {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-surface);
    color: var(--accent-light);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 2;
}

.gallery-arrow:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.gallery-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 16px 8px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99,102,241,0.4) transparent;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.gallery-track::-webkit-scrollbar {
    height: 6px;
}

.gallery-track::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-track::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.4);
    border-radius: 3px;
}

.gallery-item {
    flex: 0 0 180px;
    width: 180px;
    height: 320px;
    scroll-snap-align: center;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    background: var(--bg-surface);
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.25);
    border-color: var(--accent);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    max-height: 100%;
}

/* Hide broken images gracefully */
.gallery-item img[data-failed] {
    display: none;
}

.gallery-item--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.gallery-item .gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 12px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 600px) {
    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
}

/* Gallery lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-height: 90vh;
    max-width: 90vw;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(99,102,241,0.3);
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 120px;
        width: 120px;
        height: 213px;
    }
    .gallery-track {
        gap: 12px;
        padding: 12px 4px 20px;
    }
    .app-gallery {
        padding: 48px 0;
    }
    .app-gallery h2 {
        font-size: 1.8rem;
    }
    .gallery-label {
        font-size: 0.7rem !important;
        padding: 16px 8px 6px !important;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 100px;
        width: 100px;
        height: 178px;
    }
    .gallery-track {
        gap: 10px;
    }
    .gallery-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

.pricing-card {
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

@media (max-width: 640px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--accent-light);
}

.price {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.period {
    color: var(--text-secondary);
    font-size: 1rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.8rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

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

/* Download Section */
.download {
    padding: 100px 0;
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Comparison Table */
.comparison-section {
    margin-bottom: 4rem;
}

.comparison-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.comparison-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.95rem;
}

.comparison-table thead th {
    padding: 1rem 1.2rem;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.comparison-table thead th.col-vault3r {
    color: var(--accent-light);
    background: rgba(99, 102, 241, 0.12);
}

.comparison-table tbody td {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(71, 85, 105, 0.25);
    color: var(--text-secondary);
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-table tbody td.col-vault3r {
    background: rgba(99, 102, 241, 0.06);
    color: var(--accent-light);
    font-weight: 600;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover td {
    background: rgba(99, 102, 241, 0.04);
}

.comparison-table tbody tr:hover td.col-vault3r {
    background: rgba(99, 102, 241, 0.12);
}

@media (max-width: 600px) {
    .comparison-table {
        font-size: 0.82rem;
    }
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.6rem 0.6rem;
    }
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.download-steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    text-align: center;
    flex: 1 1 0;
    min-width: 160px;
    max-width: 220px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.12);
    box-shadow: 0 0 28px rgba(99, 102, 241, 0.5);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

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

.download-button {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Action Cards — Buy / Download / Android / iOS */
.action-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .action-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    text-decoration: none;
    padding: 1.4rem 1rem 1.4rem;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    color: var(--text-primary);
    min-height: 200px;
}

.action-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.2);
}

.action-card__icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.action-card:hover .action-card__icon {
    transform: scale(1.15);
}

.action-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.action-card__price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 0.3rem;
}

.action-card__price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.action-card__desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
}

.action-card__desc .dotnet-link {
    color: var(--accent-light);
    text-decoration: underline;
    text-decoration-style: dotted;
}

.action-card__btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.action-card__btn--primary {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.action-card--buy:hover .action-card__btn--primary {
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.action-card__btn--secondary {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.action-card--download:hover .action-card__btn--secondary {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent);
}

.action-card__btn--android {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.action-card--android:hover .action-card__btn--android {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

/* Card accent borders */
.action-card--buy {
    border-color: rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.action-card--download {
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.action-card--android {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.action-card--ios {
    border-color: rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.action-card__btn--ios {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.action-card--ios:hover .action-card__btn--ios {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.download-info {
    flex-basis: 100%;
    text-align: center;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .action-cards {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
    .action-card {
        min-height: auto;
    }
    .download {
        padding: 60px 0;
    }
    .download h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .download-steps {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .step {
        max-width: 280px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .action-card {
        padding: 1.5rem 1rem 1.5rem;
    }
    .action-card__icon {
        font-size: 2.2rem;
    }
    .action-card__title {
        font-size: 1.15rem;
    }
    .action-card__price {
        font-size: 1rem;
    }
    .action-card__btn {
        padding: 8px 22px;
        font-size: 0.9rem;
    }
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    .download {
        padding: 40px 0;
    }
    .download h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .download-steps {
        gap: 1.2rem;
        margin-bottom: 1.5rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 40px 0;
}

.modal-content {
    background: var(--bg-surface);
    margin: 0 auto;
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

.close {
    color: var(--text-muted);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    color: var(--accent-light);
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.payment-info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: start;
}

.info-icon {
    font-size: 1.5rem;
}

.payment-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.crypto-info {
    background: rgba(99, 102, 241, 0.15);
}

.crypto-info strong {
    color: var(--accent-light);
    font-size: 1.1rem;
}

.wallet-address {
    margin: 2rem 0;
}

.wallet-address label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.address-box {
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.address-box code {
    font-family: 'Consolas', monospace;
    font-size: 0.95rem;
    color: var(--accent-light);
    flex: 1;
    word-break: break-all;
}

.qr-code-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
}

.qr-code {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 10px;
}

.qr-code img,
.qr-code canvas {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.qr-label {
    margin-top: 1rem;
    color: var(--bg-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.payment-status {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.status-indicator {
    text-align: center;
}

.status-indicator.waiting {
    color: var(--text-secondary);
}

.status-indicator.confirmed {
    color: var(--success);
}

.status-indicator.error {
    color: var(--danger);
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-indicator p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.status-indicator small {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.download-prompt {
    margin-top: 1.5rem;
}

.payment-step {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-message {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.success-message h3 {
    color: var(--success);
    margin-bottom: 1rem;
}

.license-key-display {
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.license-key-display code {
    font-family: 'Consolas', monospace;
    font-size: 1.1rem;
    color: var(--accent-light);
    flex: 1;
    word-break: break-all;
}

.btn-copy {
    background: var(--accent);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: var(--accent-light);
}

.success-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--accent-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 90px 0 60px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 340px;
        margin: 0 auto 1.5rem;
    }

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

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .trial-badge {
        flex-direction: column;
        gap: 0.5rem;
    }

    .download-steps {
        gap: 2rem;
    }

    .modal-content {
        margin: 0 auto;
        padding: 2rem;
        max-height: calc(100vh - 60px);
    }

    .modal {
        padding: 20px 0;
    }
}

/* Payment Page Styles */
body.payment-page {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.payment-container {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.payment-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-section {
    text-align: center;
    background: rgba(30, 41, 59, 0.6);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.qr-section h2 {
    color: var(--accent-light);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.qr-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.qr-code-large {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    margin: 1.5rem 0;
}

.qr-code-large img,
.qr-code-large canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.payment-link-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.payment-link-box {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    align-items: center;
}

.payment-link-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--accent-light);
    font-family: monospace;
    font-size: 0.85rem;
    padding: 0.5rem;
    outline: none;
}

.btn-copy-link {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-copy-link:hover {
    background: var(--accent-light);
}

.payment-link-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.payment-right {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.payment-info-section {
    color: var(--text-primary);
}

.payment-info-section h3 {
    color: var(--accent-light);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    margin-bottom: 1.2rem;
    align-items: center;
}

.detail-item label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-value {
    color: var(--accent-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.wallet-display {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.wallet-display code {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-light);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-small {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-small:hover {
    background: var(--accent-light);
}

.payment-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.payment-status-section {
    margin-top: 2rem;
}

.payment-status-section h3 {
    color: var(--accent-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.payment-status {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator {
    text-align: center;
    width: 100%;
}

.status-indicator.waiting {
    color: var(--text-secondary);
}

.status-indicator.confirmed {
    color: var(--success);
}

.status-indicator.error {
    color: var(--danger);
}

.success-section {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.success-check {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.success-section h3 {
    color: var(--success);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.license-key-box {
    background: var(--bg-secondary);
    border: 2px solid var(--success);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.license-key-box code {
    flex: 1;
    color: var(--accent-light);
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.license-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.payment-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-support {
    margin-top: 0.5rem;
}

.footer-support a {
    color: var(--accent-light);
    text-decoration: none;
}

.footer-support a:hover {
    text-decoration: underline;
}

/* Responsive: Payment Page */
@media (max-width: 1024px) {
    .payment-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .qr-section {
        padding: 1.5rem;
    }

    .payment-right {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .payment-container {
        padding: 20px 10px;
    }

    .payment-content {
        gap: 1.5rem;
    }

    .qr-section h2 {
        font-size: 1.4rem;
    }

    .payment-info-section h3 {
        font-size: 1.1rem;
    }

    .detail-item {
        grid-template-columns: 100px 1fr;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .detail-item label {
        font-size: 0.85rem;
    }

    .wallet-display {
        flex-direction: column;
        align-items: flex-start;
    }

    .wallet-display code {
        width: 100%;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .btn-small,
    .btn-copy-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .payment-link-input {
        font-size: 0.75rem;
    }
}

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

    .qr-section,
    .payment-right {
        padding: 1rem;
    }

    .qr-code-large {
        padding: 12px;
    }

    .payment-info-section h3 {
        font-size: 1rem;
    }

    .detail-item {
        grid-template-columns: 80px 1fr;
        gap: 0.5rem;
    }

    .success-check {
        font-size: 3rem;
    }

    .success-section h3 {
        font-size: 1.2rem;
    }
}

/* Documentation Pages */
.doc-header {
    padding: 80px 0 40px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5), transparent);
}

.doc-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.doc-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.doc-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 80px;
    max-width: 900px; /* Readable line length */
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .doc-header {
        padding: 64px 0 28px;
    }
    .doc-header h1 {
        font-size: 2.2rem;
    }
    .doc-content {
        padding: 24px;
        margin-bottom: 48px;
    }
    .docs-content-block h2 {
        font-size: 2rem;
        margin-bottom: 22px;
        padding-bottom: 14px;
    }
    .docs-content-block h3 {
        font-size: 1.4rem;
        margin: 28px 0 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .doc-header h1 {
        font-size: 1.9rem;
    }
    .doc-content {
        padding: 18px;
    }
    .docs-wrapper {
        gap: 20px;
        padding: 28px 16px;
    }
    .docs-sidebar {
        max-height: none;
    }
}

.doc-content h2 {
    color: var(--accent-light);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.doc-content h2:first-child {
    margin-top: 0;
}

.doc-content h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.doc-content p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

.doc-content ul, .doc-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.doc-content li {
    margin-bottom: 0.5rem;
}

.doc-warning {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.doc-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.doc-info {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.doc-code {
    background: var(--bg-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--accent-light);
    overflow-wrap: anywhere;
    word-break: break-word;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.faq-question {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.faq-answer {
    color: var(--text-secondary);
    margin-left: 1.5rem; /* Indent answer */
}

/* Print styles */
@media print {
    .navbar, .footer, .doc-header {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
    .doc-content {
        background: none;
        border: none;
        padding: 0;
        color: black;
    }
    .doc-content h2, .doc-content p, .doc-content ul {
        color: black;
    }
}


/* Documentation Layout */
.docs-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.docs-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    border-right: none;
    padding-right: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    z-index: 10;
}

.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}
.docs-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 3px;
}

.docs-sidebar h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 700;
}

.docs-sidebar h3:first-child {
    margin-top: 0;
}

.docs-sidebar ul {
    list-style: none;
    padding: 0;
}

.docs-sidebar li {
    margin-bottom: 0.2rem;
}

.docs-sidebar a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.docs-sidebar a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.docs-sidebar a.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-light);
    font-weight: 600;
}

.docs-main {
    flex-grow: 1;
    min-width: 0; 
}

.doc-content {
    overflow-wrap: anywhere;
}

.docs-content-block {
    margin-bottom: 60px;
    scroll-margin-top: 100px; /* Offset for sticky header */
}

/* Enhancements for Rich Docs */
.doc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.doc-feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
}

.doc-feature-card h4 {
    color: var(--accent-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .docs-wrapper {
        flex-direction: column;
    }
    .docs-sidebar {
        width: 100%;
        max-height: none;
        overflow-y: visible;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 20px;
        padding-right: 0;
        position: relative;
        top: 0;
    }
}


/* Rich Documentation Styling Overrides */
.docs-sidebar {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.docs-main section {
    background: transparent;
    padding: 0;
    border: none;
}

.docs-content-block h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.docs-content-block h3 {
    font-size: 1.8rem;
    color: var(--accent-light);
    margin: 40px 0 20px;
}

@media (max-width: 480px) {
    .docs-wrapper {
        padding: 24px 12px;
        gap: 24px;
    }
    .docs-sidebar {
        padding: 16px;
    }
    .doc-content {
        padding: 20px;
    }
    .docs-content-block h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
    .docs-content-block h3 {
        font-size: 1.3rem;
        margin: 28px 0 14px;
    }
}

.doc-feature-card {
    background: linear-gradient(145deg, var(--bg-surface), var(--bg-secondary));
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.doc-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
}

.step-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.step-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}

.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: -5px;
    width: 35px;
    height: 35px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

/* Reduced motion: disable all animations for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-content h1,
    .hero-subtitle,
    .hero-buttons,
    .trust-badges,
    .trust-badge,
    .trial-badge,
    .highlight {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ===== Encrypted Sync ===== */
.how-sync {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.how-sync h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* horizontal flow */
.sync-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 1060px;
    margin: 0 auto;
}

.sync-flow-card {
    flex: 1;
    max-width: 320px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.sync-flow-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.18);
}

.sync-flow-icon {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sync-flow-card:hover .sync-flow-icon {
    transform: scale(1.15);
}

.sync-flow-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--accent-light);
}

.sync-flow-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.sync-flow-divider {
    display: flex;
    align-items: center;
    padding: 0 0.6rem;
}

.sync-arrow {
    font-size: 1.6rem;
    color: var(--accent);
    opacity: 0.5;
    user-select: none;
}

/* bottom tags */
.sync-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sync-bottom-item {
    opacity: 0.75;
}

.sync-bottom-sep {
    opacity: 0.35;
    font-size: 1.1rem;
}

/* ===== Security Section ===== */
.security {
    padding: 80px 0;
    background: var(--bg-primary, #060614);
}

.security h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary, #fff);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.security-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}

.security-item:hover {
    border-color: var(--accent, #6c63ff);
    transform: translateY(-3px);
}

.security-item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--text-primary, #fff);
}

.security-item p {
    margin: 0;
    color: var(--text-secondary, #8892b0);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== Responsive for new sections ===== */
@media (max-width: 768px) {
    .sync-flow {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .sync-flow-card {
        max-width: 100%;
    }
    .sync-flow-divider {
        transform: rotate(90deg);
        padding: 0;
    }
    .security-grid {
        grid-template-columns: 1fr;
    }
    .how-sync,
    .security {
        padding: 60px 0;
    }
    .how-sync h2,
    .security h2 {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
}


/* ================================================================
   MOBILE-FIRST COMPREHENSIVE FIX
   ================================================================ */

/* --- 768px: tablet & large phones --- */
@media (max-width: 768px) {
    /* Features grid — single column */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .features h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .features {
        padding: 60px 0;
    }

    /* Gallery items smaller */
    .gallery-item {
        width: 160px;
    }

    .app-gallery h2 {
        font-size: 2rem;
    }

    .app-gallery {
        padding: 60px 0;
    }

    /* Pricing */
    .pricing {
        padding: 60px 0;
    }

    .pricing h2 {
        font-size: 2rem;
    }

    .pricing-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    /* Download — handled in dedicated block above */

    /* Footer columns stack */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    /* Trust badges wrap smaller */
    .trust-badges {
        gap: 0.75rem;
    }

    .trust-badge {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    /* Buttons */
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .download-button {
        flex-direction: column;
        align-items: center;
    }

    .download-button .btn {
        width: 100%;
        max-width: 340px;
        text-align: center;
    }

    .android-badge {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }
}

/* --- 480px: small phones --- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    /* Hero */
    .hero {
        padding: 80px 0 60px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }

    /* Trust badges — 2 columns */
    .trust-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .trust-badge {
        padding: 6px 10px;
        font-size: 0.78rem;
        justify-content: center;
    }

    /* Last badge (5th — odd) spans full width */
    .trust-badge:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 200px;
        margin: 0 auto;
    }

    .trial-badge {
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    /* Features */
    .features {
        padding: 40px 0;
    }

    .features h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    /* Gallery */
    .app-gallery {
        padding: 40px 0;
    }

    .app-gallery h2 {
        font-size: 1.6rem;
    }

    .gallery-wrapper {
        gap: 6px;
    }

    .gallery-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .gallery-item {
        width: 110px;
        border-radius: 10px;
    }

    .gallery-track {
        padding: 10px 4px 16px;
        gap: 10px;
    }

    .gallery-item .gallery-label {
        padding: 16px 8px 6px;
        font-size: 0.7rem;
    }

    /* Sync */
    .how-sync {
        padding: 40px 0;
    }

    .how-sync h2 {
        font-size: 1.5rem;
    }

    .sync-flow-card {
        padding: 1.5rem 1.2rem;
    }

    .sync-flow-icon {
        font-size: 2rem;
    }

    .sync-flow-card h3 {
        font-size: 1.1rem;
    }

    .sync-flow-card p {
        font-size: 0.88rem;
    }

    .sync-bottom {
        font-size: 0.78rem;
        gap: 0.4rem;
        margin-top: 2rem;
    }

    /* Security */
    .security {
        padding: 40px 0;
    }

    .security h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .security-item {
        padding: 1.2rem;
    }

    .security-item h3 {
        font-size: 1rem;
    }

    .security-item p {
        font-size: 0.88rem;
    }

    /* Pricing */
    .pricing {
        padding: 40px 0;
    }

    .pricing h2 {
        font-size: 1.6rem;
    }

    .pricing-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .pricing-card {
        padding: 1.5rem 1.2rem;
    }

    .price {
        font-size: 2.2rem;
    }

    .card-header h3 {
        font-size: 1.15rem;
    }

    .features-list li {
        padding: 0.6rem 0;
        font-size: 0.9rem;
    }

    /* Download */
    .download {
        padding: 40px 0;
    }

    .download h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .step h3 {
        font-size: 1.1rem;
    }

    .step p {
        font-size: 0.88rem;
    }

    .download-button .btn {
        max-width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .download-info {
        font-size: 0.8rem;
    }

    .android-badge {
        max-width: 100%;
    }

    .action-cards {
        gap: 1rem;
    }

    .action-card {
        padding: 1.5rem 1.2rem 1.2rem;
    }

    .action-card__icon {
        font-size: 2.2rem;
    }

    .action-card__title {
        font-size: 1.15rem;
    }

    .action-card__btn {
        padding: 8px 22px;
        font-size: 0.88rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .footer-section p,
    .footer-section ul li a {
        font-size: 0.88rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.82rem;
    }

    /* Navbar */
    .nav-links {
        right: 16px;
        width: calc(100vw - 32px);
    }
}

/* --- 360px: very small phones --- */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .trust-badge:last-child:nth-child(odd) {
        max-width: none;
    }

    .feature-card h3 {
        font-size: 1.05rem;
    }

    .gallery-arrow {
        display: none;
    }

    .gallery-item {
        width: 100px;
        border-radius: 8px;
    }

    .pricing-card {
        padding: 1.2rem 1rem;
    }

    .price {
        font-size: 1.9rem;
    }
}

/* --- Text overflow protection --- */
.feature-card p,
.security-item p,
.sync-flow-card p,
.hero-subtitle,
.pricing-subtitle,
.features-list li,
.download-info,
.footer-section p {
    overflow-wrap: break-word;
    word-break: break-word;
}
