/* ZoneLab - Clean Monochromatic Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Colors */
    --black: #000000;
    --gray-950: #0a0a0a;
    --gray-900: #171717;
    --gray-800: #262626;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #737373;
    --gray-400: #a3a3a3;
    --gray-300: #d4d4d4;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --white: #ffffff;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Layout */
    --header-height: 64px;
    --max-width: 1280px;

    /* Effects */
    --transition: all 0.2s ease;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-900);
    z-index: 50;
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    height: 28px;
    transition: var(--transition);
}

.site-logo:hover {
    opacity: 0.8;
}

/* Desktop Navigation - Sideways Hamburger */
.desktop-nav {
    display: none;
    position: relative;
    height: 40px;
    min-width: 500px;
}

.sideways-hamburger {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 40px;
    position: relative;
    cursor: pointer;
}

.hamburger-pipes {
    display: flex;
    gap: 4px;
    font-size: 1.5rem;
    color: var(--gray-400);
    font-weight: 300;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    position: absolute;
    right: 0;
}

.nav-list {
    display: flex;
    gap: 0;
    list-style: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.sideways-hamburger:hover .hamburger-pipes {
    opacity: 0;
}

.sideways-hamburger:hover .nav-list {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.nav-list li {
    display: flex;
    align-items: center;
}

.nav-list li::before {
    content: '|';
    color: var(--gray-700);
    margin: 0 var(--space-3);
    font-weight: 300;
}

.nav-list li:first-child::before {
    content: '|';
    color: var(--gray-700);
    margin-right: var(--space-3);
}

.nav-list a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    padding: var(--space-2) var(--space-3);
}

.nav-list a:hover {
    color: var(--white);
}

/* Mobile Menu Toggle */
.menu-button {
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--gray-800);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.menu-button:hover {
    border-color: var(--gray-600);
}

.menu-button span {
    width: 18px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.menu-button.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background: var(--black);
    border-left: 1px solid var(--gray-900);
    transition: right 0.3s ease;
    z-index: 40;
    padding: var(--space-6);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav .nav-list {
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-nav .nav-list a {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-radius: 6px;
    transition: var(--transition);
}

.mobile-nav .nav-list a:hover {
    background: var(--gray-900);
}

/* Main Content */
main {
    margin-top: var(--header-height);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-16) 0;
    position: relative;
}

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

.app-icon {
    width: 180px;
    height: 180px;
    margin: 0 auto var(--space-8);
    border: 1px solid var(--gray-900);
    border-radius: 24px;
    padding: var(--space-6);
}

.app-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.hero h1 {
    margin-bottom: var(--space-4);
}

.hero h1 img {
    height: 48px;
    display: block;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-6);
}

.tagline {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: var(--space-12);
    line-height: 1.7;
}

.download-button {
    display: inline-block;
    margin-bottom: var(--space-4);
}

.download-button img {
    height: 48px;
    transition: var(--transition);
}

.download-button:hover img {
    opacity: 0.8;
}

.requirements {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.requirements a {
    color: var(--gray-400);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-800);
    transition: var(--transition);
}

.requirements a:hover {
    color: var(--white);
    border-bottom-color: var(--gray-600);
}

/* Section */
.section {
    padding: var(--space-16) 0;
    border-top: 1px solid var(--gray-900);
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-6);
}

/* Philosophy Box */
.philosophy-box {
    background: var(--gray-950);
    border: 1px solid var(--gray-900);
    border-radius: 12px;
    padding: var(--space-8);
    margin-bottom: var(--space-12);
}

.philosophy-box p {
    color: var(--gray-300);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.philosophy-box p:last-child {
    margin-bottom: 0;
}

.philosophy-box em {
    color: var(--white);
    font-style: italic;
}

.philosophy-box strong {
    color: var(--white);
    font-weight: 600;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    background: var(--gray-950);
    border: 1px solid var(--gray-900);
    border-radius: 12px;
    padding: var(--space-6);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--gray-800);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.feature-card p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--gray-900);
    padding: var(--space-12) 0 var(--space-8);
    margin-top: var(--space-16);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.footer-section p {
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: var(--space-2);
}

.footer-section a {
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-900);
    text-align: center;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-600);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 0.8s both, bounce 2s ease-in-out 2s infinite;
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

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

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

/* Fade-up on scroll */
.fade-in {
    opacity: 0;
    animation: slideInFromBottom 0.6s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
}

/* Hero content animations */
.hero-content .app-icon {
    animation: slideInFromBottom 0.8s ease 0.2s both;
}

.hero-content h1 {
    animation: slideInFromBottom 0.8s ease 0.3s both;
}

.hero-content .badge {
    animation: slideInFromBottom 0.8s ease 0.4s both;
}

.hero-content .tagline {
    animation: slideInFromBottom 0.8s ease 0.5s both;
}

.hero-content .download-button {
    animation: slideInFromBottom 0.8s ease 0.6s both;
}

.hero-content .requirements {
    animation: slideInFromBottom 0.8s ease 0.7s both;
}

/* Responsive */
@media (min-width: 768px) {
    .menu-button {
        display: none;
    }

    .desktop-nav {
        display: block;
    }

    .mobile-nav {
        display: none;
    }

    .app-icon {
        width: 200px;
        height: 200px;
    }

    .hero h1 img {
        height: 56px;
    }
}

@media (max-width: 767px) {
    :root {
        --space-6: 1rem;
        --space-8: 1.5rem;
        --space-12: 2rem;
        --space-16: 3rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .philosophy-box {
        padding: var(--space-6);
    }

    .philosophy-box p {
        font-size: 1rem;
    }
}
