/* HiredAI Labs - Dark Modern Aesthetic */

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

:root {
    /* Dark Modern Palette */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #1a1a1d;
    --bg-card: #16161a;
    --bg-hover: #1f1f24;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a6;
    --text-muted: #6b6b70;

    --border-color: #2a2a2e;
    --border-light: #3a3a3e;

    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);

    /* Typography */
    --font-mono: 'SF Mono', Monaco, 'Inconsolata', 'Fira Code', monospace;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 18px;
    background: var(--bg-primary);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Numbered Catalog Style */
.item-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-contact {
    background: var(--accent) !important;
    color: var(--text-primary) !important;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s ease !important;
}

.nav-contact:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 0 20px var(--accent-glow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* ==================== */
/* HOMEPAGE STYLES      */
/* ==================== */

.hero-home {
    padding: 10rem 2rem 6rem;
    background: var(--bg-primary);
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient glow effect */
.hero-home::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero-home h1 {
    color: var(--text-primary);
    font-size: clamp(2.75rem, 6vw, 5rem);
    margin-bottom: var(--space-md);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.hero-home .hero-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Philosophy Section */
.philosophy {
    padding: var(--space-xl) 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.philosophy-content {
    max-width: 1000px;
    margin: 0 auto;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.philosophy-item {
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.philosophy-item:hover {
    border-color: var(--border-light);
    background: var(--bg-hover);
}

.philosophy-item h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.philosophy-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.7;
    font-size: 1rem;
}

/* Products Section */
.products-home {
    padding: var(--space-xl) 2rem;
    background: var(--bg-primary);
}

.products-content {
    max-width: 900px;
    margin: 0 auto;
}

.products-grid-home {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.product-card-home {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.product-card-home:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    box-shadow: 0 0 40px var(--accent-glow);
}

.product-card-home .item-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    flex-shrink: 0;
    padding-top: 0.25rem;
    margin-bottom: 0;
}

.product-info {
    flex: 1;
}

.product-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    display: block;
}

.product-card-home h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.product-card-home .product-tagline {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    font-size: 1rem;
}

.product-card-home .product-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.product-price {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent);
}

.product-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    align-self: center;
}

.product-card-home:hover .product-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* Home CTA */
.home-cta {
    padding: var(--space-xl) 2rem;
    background: var(--bg-tertiary);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.home-cta h2 {
    color: var(--text-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-sm);
}

.home-cta p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

/* Contact Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: left;
    color: var(--text-primary);
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.125rem;
    padding: 1rem;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-lg) 2rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.footer-simple {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-simple .footer-brand {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.footer-simple .footer-location {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.footer-simple .footer-email a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-simple .footer-email a:hover {
    color: var(--accent-hover);
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: var(--space-md);
    margin-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

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

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

    .hero-home {
        padding: 8rem 1.5rem 4rem;
        min-height: auto;
    }

    .hero-home::before {
        width: 300px;
        height: 300px;
    }

    .philosophy,
    .products-home,
    .home-cta {
        padding: var(--space-xl) 1.5rem;
    }

    .product-card-home {
        flex-direction: column;
    }

    .product-arrow {
        align-self: flex-start;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-simple {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero-home {
        padding: 7rem 1rem 4rem;
    }

    .philosophy-item {
        padding: 1.5rem;
    }

    .product-card-home {
        padding: 1.5rem;
    }

    .modal-content {
        padding: 2rem;
    }
}
