/* ============================================
   Project Open Staci — openstaci.com
   Colors: Orange (#FF6A00) + Off-white (#F8F6F3)
   Fonts: JetBrains Mono (terminal headings) + Inter (body)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #FF6A00;
    --orange-hover: #E85D00;
    --orange-light: #FFF3E8;
    --off-white: #F8F6F3;
    --white: #FFFFFF;
    --dark: #1A1A1A;
    --dark-secondary: #2A2A2A;
    --text: #333333;
    --text-secondary: #666666;
    --border: #E5E2DE;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 246, 243, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
}

.nav-logo-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--orange);
}

.nav-link.active {
    color: var(--white);
    background: var(--orange);
    padding: 6px 14px;
    border-radius: 5px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: var(--orange);
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--orange-hover);
    transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.hero-character {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.hero-character-img {
    width: 160px;
    height: 160px;
    image-rendering: pixelated;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 106, 0, 0.3);
}

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

.btn-secondary:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
}

/* --- Sections --- */
.section {
    padding: 100px 24px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 520px;
}

/* --- Products Section --- */
.products {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
    width: fit-content;
}

.product-name {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-status {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.01em;
}

.product-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    display: inline-block;
}

.product-card-empty {
    border-style: dashed;
    background: transparent;
    box-shadow: none;
}

.product-card-empty:hover {
    box-shadow: none;
}

/* --- Building in Public Section --- */
.building {
    background: var(--dark);
    text-align: center;
}

.building-content {
    max-width: 640px;
    margin: 0 auto;
}

.building-label {
    font-family: var(--font-mono);
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 600;
    color: var(--orange);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.building-title {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.building-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 36px;
}

.building .btn-primary {
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    background: var(--dark-secondary);
    padding: 48px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
}

.footer-logo-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-bottom {
    text-align: center;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(248, 246, 243, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

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

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

    .hero {
        min-height: auto;
        padding: 140px 24px 80px;
    }

    .hero-character-img {
        width: 120px;
        height: 120px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section {
        padding: 72px 24px;
    }

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

    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

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

    .building-title {
        font-size: 2rem;
    }

    .product-card {
        padding: 28px;
    }
}

/* --- No scroll animations --- */
