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

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
}

/* ===== WELCOME CONTAINER ===== */
.welcome-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow-y: scroll;
    overflow-x: hidden;
}

.welcome-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.welcome-screen::-webkit-scrollbar {
    width: 8px;
}

.welcome-screen::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 0;
}

/* ===== BACKGROUND ===== */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    pointer-events: none;
    z-index: 0;
}

/* ===== HEADER ===== */
.welcome-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    background: #000000;
    z-index: 100;
    border-bottom: 1px solid #333333;
}

.header-left {
    flex: 1;
}

.brand-text {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #ffffff;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 60px;
}

.header-right a {
    font-size: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-right a:hover {
    color: #ff0000;
    transform: translateY(-2px);
}

.btn-header {
    border: 1px solid #ffffff;
    border-radius: 0;
    padding: 12px 32px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    background: #000000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn-header:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

/* ===== HERO SECTION ===== */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 80px 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 30px;
    color: #ffffff;
    text-transform: uppercase;
    animation: fadeInSlideDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #999999;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInSlideDown 0.8s ease-out 0.1s both;
}

.hero-description {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 60px;
    line-height: 1.8;
    max-width: 600px;
    font-weight: 300;
    animation: fadeInSlideDown 0.8s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    gap: 80px;
    margin-top: 40px;
    animation: fadeInSlideDown 0.8s ease-out 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    color: #999999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== FORM ===== */
.hero-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    animation: fadeInSlideDown 0.8s ease-out 0.3s both;
}

.form-input {
    padding: 16px 20px;
    border: 1px solid #333333;
    border-radius: 0;
    background: #000000;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    border-color: #ffffff;
    background: #000000;
}

.form-input::placeholder {
    color: #666666;
}

.form-button {
    padding: 16px 32px;
    border: 1px solid #ffffff;
    border-radius: 0;
    background: #ffffff;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    width: fit-content;
    font-family: inherit;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.form-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000000;
    transition: left 0.3s ease;
    z-index: -1;
}

.form-button:hover {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.form-button:active {
    opacity: 0.8;
}

/* ===== FOOTER ===== */
.page-footer {
    padding: 60px 80px;
    border-top: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.footer-brand {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #666666;
    text-transform: uppercase;
}

.footer-right {
    display: flex;
    gap: 50px;
}

.footer-right a {
    font-size: 0.75rem;
    color: #999999;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-right a:hover {
    color: #ffffff;
}

/* ===== CONTENT SECTIONS ===== */
.features-section, .apps-section, .tech-section, .cta-section {
    padding: 100px 80px;
    border-top: 1px solid #e5e1d8;
    position: relative;
    z-index: 1;
    background: #f5f1ed;
}

.features-section h2, .apps-section h2, .tech-section h2, .cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 60px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.feature-card {
    padding: 40px;
    border: 1px solid #e5e1d8;
    border-radius: 0;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: #ffffff;
    border-color: #1a1a1a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.6;
}

.apps-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.app-showcase-card {
    padding: 24px;
    border: 1px solid #e5e1d8;
    border-radius: 0;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-showcase-card:hover {
    background: #ffffff;
    border-color: #1a1a1a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.app-showcase-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.app-showcase-desc {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.6;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.tech-item h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.tech-item p {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    padding: 120px 80px;
}

.cta-section h2 {
    margin-bottom: 24px;
}

.cta-section p {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    border: 1px solid #1a1a1a;
    border-radius: 0;
    background: #1a1a1a;
    color: #f5f1ed;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transition: right 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===== OS DESKTOP ===== */
.os-desktop {
    display: none;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

.os-desktop[style*="block"] {
    display: flex !important;
}

.desktop {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.topbar {
    height: 60px;
    background: #000000;
    border-bottom: 1px solid #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

.topbar-left, .topbar-center, .topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left {
    flex: 1;
}

.topbar-center {
    flex: 1;
    justify-content: center;
}

.topbar-right {
    flex: 1;
    justify-content: flex-end;
}

.system-name {
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
}

.visitor-name {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 400;
}

.time {
    color: #999999;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 500;
}

.desktop-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.taskbar {
    width: 100%;
    height: 90px;
    background: #000000;
    border-top: 1px solid #333333;
    padding: 0 40px;
    display: flex;
    align-items: center;
    z-index: 999;
}

.taskbar-apps {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.app-icon {
    padding: 12px 28px;
    border: 1px solid #333333;
    background: #000000;
    border-radius: 0;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-icon:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.window {
    position: absolute;
    width: 520px;
    min-height: 360px;
    max-height: 85vh;
    background: #000000;
    border: 1px solid #333333;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(255, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

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

@keyframes minimize {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.1) translateY(600px);
    }
}

@keyframes restore {
    from {
        opacity: 0;
        transform: scale(0.1) translateY(600px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes scrollFadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scrollFadeInRight {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scrollFadeOnly {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll animation triggers */
.scroll-animate {
    animation: scrollFadeInUp 0.8s ease-out forwards !important;
}

.features-section.scroll-animate,
.apps-section.scroll-animate,
.tech-section.scroll-animate,
.cta-section.scroll-animate {
    animation: scrollFadeOnly 0.6s ease-out forwards !important;
}

.feature-card.scroll-animate {
    animation-duration: 0.7s !important;
}

.feature-card.scroll-animate:nth-child(1) { animation-delay: 0s !important; }
.feature-card.scroll-animate:nth-child(2) { animation-delay: 0.08s !important; }
.feature-card.scroll-animate:nth-child(3) { animation-delay: 0.16s !important; }

.app-showcase-card.scroll-animate {
    animation-duration: 0.7s !important;
}

.app-showcase-card.scroll-animate:nth-child(1) { animation-delay: 0s !important; }
.app-showcase-card.scroll-animate:nth-child(2) { animation-delay: 0.08s !important; }
.app-showcase-card.scroll-animate:nth-child(3) { animation-delay: 0.16s !important; }
.app-showcase-card.scroll-animate:nth-child(4) { animation-delay: 0.24s !important; }

.tech-item.scroll-animate {
    animation-duration: 0.7s !important;
}

.tech-item.scroll-animate:nth-child(1) { animation-delay: 0s !important; }
.tech-item.scroll-animate:nth-child(2) { animation-delay: 0.08s !important; }
.tech-item.scroll-animate:nth-child(3) { animation-delay: 0.16s !important; }
.tech-item.scroll-animate:nth-child(4) { animation-delay: 0.24s !important; }

.window-header {
    padding: 20px;
    background: #000000;
    border-bottom: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    user-select: none;
}

.window-header:active {
    cursor: grabbing;
}

.window-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.window-close {
    background: none;
    border: none;
    color: #666666;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.window-close:hover {
    color: #ff0000;
}

.window-maximize {
    background: none;
    border: none;
    color: #666666;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

.window-maximize:hover {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
}

.window-resize {
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.window-resize:hover {
    opacity: 0.6;
}

.window-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    color: #cccccc;
    font-size: 0.9rem;
}

.window-content::-webkit-scrollbar {
    width: 6px;
}

.window-content::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 0;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* ===== PAGES ===== */
.page {
    display: none;
}

.page[style*="display: block"] {
    display: block !important;
}

.about-container, .docs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 80px 80px;
    width: 100%;
}

.page-content h1 {
    font-size: 5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 60px;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.about-section, .docs-section {
    margin-bottom: 80px;
}

.about-section h2, .docs-section h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.about-section h3, .docs-section h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-section p, .docs-section p {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.about-section a, .docs-section a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    border-bottom: 1px solid #ffffff;
}

.about-section a:hover, .docs-section a:hover {
    color: #ff0000;
    border-bottom-color: #ff0000;
}

.app-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.app-item {
    padding: 0;
    background: transparent;
    border: 1px solid #333333;
    border-radius: 0;
    transition: all 0.2s ease;
    padding: 30px;
}

.app-item:hover {
    background: #000000;
    border-color: #ffffff;
}

.app-item h3 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 1rem;
}

.app-item p {
    color: #999999;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.docs-section ol, .docs-section ul {
    color: #cccccc;
    margin-left: 24px;
    margin-bottom: 30px;
}

.docs-section ol li, .docs-section ul li {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #cccccc;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .welcome-header, .page-footer {
        padding: 0 60px;
    }

    .hero-section {
        padding: 120px 60px 80px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .page-content {
        padding: 80px 60px 60px;
    }

    .page-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .welcome-header, .page-footer {
        padding: 0 40px;
        flex-direction: column;
        gap: 20px;
        height: auto;
    }

    .hero-section {
        padding: 100px 40px 80px;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

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

    .header-right, .footer-right {
        gap: 30px;
    }

    .page-content {
        padding: 80px 40px 60px;
    }

    .page-content h1 {
        font-size: 2rem;
    }

    .app-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .taskbar {
        height: auto;
        padding: 16px;
    }

    .window {
        width: 90vw;
        max-height: 80vh;
    }

    .welcome-header {
        height: auto;
    }

    .features-section, .apps-section, .tech-section, .cta-section {
        padding: 60px 40px;
    }

    .features-section h2, .apps-section h2, .tech-section h2, .cta-section h2 {
        font-size: 2rem;
    }

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

    .apps-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
}
