/* ========================================
   SHL Labs - Minimal Design System
   ======================================== */

:root {
    --black: #000000;
    --gray-dark: #666666;
    --gray-light: #999999;
    --accent: #2563eb;
    --white: #ffffff;
    --border: #e5e7eb;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    padding-top: 100px;
}

/* ========================================
   Header
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.logo img {
    display: block;
    transition: opacity 0.2s ease;
}

.logo:hover img {
    opacity: 0.8;
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 2rem;
}

.header-nav a {
    font-size: 0.9rem;
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--black);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--black);
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Active state for hamburger */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

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

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

/* ========================================
   Hero Section
   ======================================== */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    width: min(960px, 100%);
    margin: 1.5rem auto 0;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 24px;
    gap: 1.5rem;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.1;
    max-width: 800px;
    letter-spacing: -0.02em;
}

.hero-subhead {
    max-width: 600px;
    color: var(--gray-dark);
    font-size: 1.125rem;
}

/* ========================================
   CTA Button
   ======================================== */

.cta {
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    display: inline-block;
    transition: all 0.2s ease;
    text-align: center;
}

.cta-solid {
    background: var(--accent);
    color: var(--white);
}

.cta-ghost {
    background: transparent;
}

.cta:hover {
    background: var(--accent);
    color: var(--white);
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ========================================
   Services Section
   ======================================== */

.services {
    max-width: 600px;
    margin: 10rem auto;
    padding: 0 2rem;
    text-align: center;
}

.services h2 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-list p {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--gray-dark);
    line-height: 1.8;
}

/* ========================================
   Content Sections
   ======================================== */

.content-section {
    max-width: 960px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 3rem;
}

/* ========================================
   Card Grid
   ======================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   Featured Product
   ======================================== */

.featured-product {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.featured-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
}

.featured-product h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.featured-product p {
    color: var(--gray-dark);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.product-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 6rem;
}

.site-footer p {
    font-size: 0.875rem;
    color: var(--gray-light);
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--gray-light);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--black);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .header-nav.active {
        max-height: 200px;
    }

    .header-nav a {
        padding: 1rem 2rem;
        border-top: 1px solid var(--border);
        font-size: 1rem;
    }

    .header-nav a:hover {
        background: #f8fafc;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 90px;
    }

    .site-header {
        padding: 1rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 3rem 1.5rem;
        gap: 1rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-group .cta {
        width: 100%;
    }

    .services {
        margin: 6rem auto;
    }

    .content-section {
        margin: 4rem auto;
        padding: 0 1.5rem;
    }

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

    .featured-product {
        padding: 2rem 1.5rem;
    }

    .featured-product h3 {
        font-size: 1.5rem;
    }

    .site-footer {
        margin-top: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
