/* style.css */
:root {
    --color-bg: #FAFBFC;
    --color-surface: #FFFFFF; /* This makes the card solid white */
    --color-grid: #E5E9F0;
    --color-accent: #0EA5E9;
    --color-dark: #1E293B;
    --color-text: #334155;
    --color-text-light: #64748B;
    --color-border: #CBD5E1;
    --color-success: #10B981;
    --grid-size: 24px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Technical grid background */
body::before {
    content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(var(--color-grid) 1px, transparent 1px), 
                      linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size); opacity: 0.4; z-index: 0; pointer-events: none;
}

/* Corner registration marks */
.corner-mark { position: fixed; width: 40px; height: 40px; border: 2px solid var(--color-accent); opacity: 0.3; z-index: 1; pointer-events: none; }
.tr { top: 20px; right: 20px; border-left: 0; border-bottom: 0; }
.bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; }
.br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }

/* Navigation */
.nav { border-bottom: 1px solid var(--color-border); background: var(--color-surface); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); }
.nav-content { max-width: 1400px; margin: 0 auto; padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { font-family: 'JetBrains Mono', monospace; font-size: 1.5rem; font-weight: 700; color: var(--color-dark); text-decoration: none; }
.logo::before { content: '//'; color: var(--color-accent); margin-right: 0.5rem; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a { color: var(--color-text); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--color-accent); }
.login-button { background: var(--color-dark); color: white !important; padding: 0.6rem 1.5rem; border-radius: 4px; font-weight: 600; }

/* Footer Style */
.footer { 
    text-align: center; padding: 3rem 0; border-top: 1px solid var(--color-border); margin-top: 6rem; 
    color: var(--color-text-light); font-size: 0.85rem; font-family: 'JetBrains Mono', monospace;
}
.footer-content { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer-content span, .footer-content a { color: var(--color-text-light); text-decoration: none; transition: color 0.2s; }
.footer-content a:hover { color: var(--color-accent); }
.footer-content span:not(:last-child):not(.copy-symbol)::after { content: "•"; margin-left: 1rem; opacity: 0.5; }

/* Fixed Copyright Symbol Size */
.copy-symbol { 
    font-size: 1.2rem !important; 
    vertical-align: middle; 
    margin-right: 4px; 
    line-height: 1; 
    font-weight: 600; 
}

/* Hamburger Menu Shape */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    transition: all 0.3s;
}

/* Product grid layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 2rem;
}

/* Mobile Media Query */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        gap: 0;
        max-height: 0; /* Hidden by default */
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid var(--color-border);
    }

    /* This is the class the JavaScript toggles */
    .nav-links.active {
        max-height: 400px; 
    }

    .nav-links li { width: 100%; border-top: 1px solid var(--color-grid); }
    .nav-links a { display: block; padding: 1.5rem; }
    
    /* Animation for the hamburger bars to turn into an X */
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

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