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

:root {
    --purple-dark: #2D1B4E;
    --purple-mid: #3D1E5F;
    --purple-light: #4A2870;
    --purple-accent: #5A2C87;
    --purple-lighter: #6B3FA0;
    --purple-lightest: #7C51B3;
    --gold: #F7B500;
    --bg-dark: #0f0620;
    --bg-darker: #08030f;
    --text-light: #f8f8ff;
    --text-gray: #c5c5d8;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-darker);
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--purple-dark) 100%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    background-color: var(--bg-darker);
}

.sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.navbar {
    background: rgba(15, 6, 32, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(90, 44, 135, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}

.ortoo-logo-link {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}


.ortoo-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(248, 248, 255, 0.4))
            drop-shadow(0 0 12px rgba(248, 248, 255, 0.2))
            drop-shadow(0 0 20px rgba(197, 197, 216, 0.12))
            drop-shadow(0 3px 5px rgba(248, 248, 255, 0.25));
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text-light);
    background: rgba(168, 85, 247, 0.1);
}

.nav-link.active {
    color: var(--gold);
    background: rgba(247, 181, 0, 0.1);
}

.install-button {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
    color: var(--text-light);
    text-decoration: none;
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(90, 44, 135, 0.3);
}

.install-button:hover {
    background: linear-gradient(135deg, var(--purple-accent), var(--gold));
    box-shadow: 0 4px 16px rgba(90, 44, 135, 0.5);
    transform: translateY(-2px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.page.active {
    display: block;
}

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

.hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.hero-logo {
    height: 160px;
    width: auto;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero a:hover .hero-logo {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    background: rgba(15, 6, 32, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(90, 44, 135, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(90, 44, 135, 0.3);
}

.content-section h2 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid rgba(90, 44, 135, 0.3);
    padding-bottom: 0.4rem;
}

.content-section h3 {
    color: var(--text-light);
    font-size: 1.15rem;
    margin: 1.25rem 0 0.75rem;
}

.content-section h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0.75rem 0 0.4rem;
}

.content-section p {
    margin-bottom: 0.75rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.content-section ul {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section li {
    margin-bottom: 0.4rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section ol li {
    margin-bottom: 0.4rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.highlight-section {
    background: rgba(15, 6, 32, 0.6);
    border-color: rgba(90, 44, 135, 0.4);
}

.media-section {
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-top: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.screenshot-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(90, 44, 135, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.screenshot-wrapper:hover .screenshot {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(90, 44, 135, 0.5);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.gallery-modal.active {
    display: block;
}

.gallery-image {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.gallery-close:hover,
.gallery-close:focus {
    color: var(--gold);
}

.gallery-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -30px;
    padding: 16px 20px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    border: none;
    background-color: rgba(90, 44, 135, 0.5);
    border-radius: 8px;
    z-index: 1001;
}

.gallery-nav:hover {
    background-color: rgba(90, 44, 135, 0.9);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1rem;
}

.cta-section {
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple-mid), var(--purple-accent));
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.6);
    background: linear-gradient(135deg, var(--purple-accent), var(--gold));
}

.inline-link {
    color: #A855F7;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.inline-link:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.color-list {
    list-style: none;
    margin-left: 0;
}

.color-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.color-badge.purple {
    background: var(--purple-accent);
    color: white;
}

.color-badge.light-blue {
    background: #60A5FA;
    color: white;
}

.color-badge.green {
    background: #34D399;
    color: white;
}

.color-badge.indigo {
    background: #818CF8;
    color: white;
}

.color-badge.red {
    background: #F87171;
    color: white;
}

.color-badge.yellow {
    background: #FBBF24;
    color: #1a0b2e;
}

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

.feature-item {
    background: rgba(168, 85, 247, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--purple-accent);
    transform: scale(1.05);
}

.version-section {
    border-left: 4px solid var(--purple-mid);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.version-header h2 {
    border: none;
    margin: 0;
}

.version-date {
    color: var(--text-gray);
    font-style: italic;
    font-size: 1rem;
}

.feature-block {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.feature-block h4 {
    color: var(--gold);
    margin-top: 0;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--text-gray);
}

.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 6, 32, 0.4);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(90, 44, 135, 0.1);
    padding: 0.75rem 2rem;
    text-align: center;
    color: var(--text-gray);
    z-index: 50;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-fixed > p:first-child {
    margin: 0;
}

.footer-email {
    font-size: 0.65rem;
    position: absolute;
    right: 2rem;
    margin: 0;
}

.email-copy {
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.email-copy:hover {
    color: var(--purple-lighter);
}

.email-copy .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple-mid);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 0.25rem;
}

.email-copy .tooltip.show {
    opacity: 1;
}

.container {
    padding-bottom: 4rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

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

    .version-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
