/**
 * uxWhiz - Main Stylesheet
 * Blueprint-inspired design system optimized for readability and performance.
 */

/* --- 1. CSS Variables (Design Tokens) --- */
:root {
    --bg-color: #ffffff;
    --grid-color: #e2e8f0;
    --text-main: #000000;
    --border-color: #000000;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s;
}

/* --- 2. CSS Reset & Base Styles --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
    max-width: 100%;
}

/* Blueprint Background Effect */
body { 
    font-family: var(--font-family); 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px), 
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    padding-top: 85px; /* Offset for fixed header */
}

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

/* --- 3. Layout & Containers --- */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

section { 
    padding: 80px 0; 
}

.section-header { 
    text-align: center; 
    margin-bottom: 48px; 
}

.section-header h2 { 
    font-size: 2.5rem; 
    margin-bottom: 16px; 
    font-weight: 900; 
    letter-spacing: -0.5px; 
}

.section-header p { 
    font-size: 1.2rem; 
    font-weight: 500; 
    color: #333; 
}

/* --- 4. Navigation --- */
header { 
    padding: 20px 0; 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(8px); 
    border-bottom: 2px solid var(--border-color);
    z-index: 10000; 
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    z-index: 101; 
    position: relative; 
    display: block; 
}

.logo img { 
    height: 45px; 
    width: auto; 
    display: block; 
}

.nav-drawer { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 40px; 
    font-weight: 700; 
    font-size: 0.95rem; 
}

.nav-links a:hover { 
    text-decoration: underline; 
    text-decoration-thickness: 2px; 
    text-underline-offset: 4px; 
}

/* Hamburger Menu Icon */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    cursor: pointer;
    z-index: 9999;
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--border-color);
    outline-offset: 4px;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: transform var(--transition-speed) ease-in-out, opacity var(--transition-speed) ease-in-out;
    will-change: transform, opacity;
}

/* --- 5. Buttons --- */
.btn-outline { 
    background-color: transparent; 
    color: var(--text-main); 
    padding: 12px 28px; 
    border: 2px solid var(--border-color); 
    border-radius: 4px; 
    font-weight: 700; 
    font-size: 1rem; 
    transition: background-color 0.2s ease, color 0.2s ease; 
    cursor: pointer;
    display: inline-block;
}

.btn-outline:hover { 
    background-color: var(--text-main); 
    color: #fff; 
}

/* --- 6. Hero Section --- */
.hero { 
    text-align: center; 
    padding-top: 60px; 
    padding-bottom: 40px; 
}

.hero-tagline { 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.9rem; 
    margin-bottom: 16px; 
    display: block; 
    color: #555; 
}

.hero h1 { 
    font-size: 4rem; 
    line-height: 1.1; 
    margin-bottom: 24px; 
    font-weight: 900; 
    letter-spacing: -1px; 
}

.hero p { 
    font-size: 1.3rem; 
    margin-bottom: 40px; 
    font-weight: 500; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
}

.hero-graphic {
    margin-top: 40px;
    background: #fff;
    border: 3px solid var(--border-color);
    border-radius: 12px;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 8px 8px 0px rgba(0,0,0,1);
}

.wireframe-box { 
    border: 2px solid #000; 
    padding: 20px; 
    width: 200px; 
    height: 300px; 
    border-radius: 8px; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.wf-line { 
    height: 10px; 
    background: #e2e8f0; 
    border: 1px solid #000; 
    width: 100%; 
}

.wf-box { 
    height: 60px; 
    background: #e2e8f0; 
    border: 1px solid #000; 
    width: 100%; 
    margin-top: auto;
}

/* --- 7. Grids & Cards --- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card { 
    background: #fff; 
    padding: 40px 30px; 
    border: 2px solid var(--border-color); 
    border-radius: 8px; 
    text-align: center;
    transition: transform 0.2s;
    will-change: transform;
}

.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 4px 4px 0px rgba(0,0,0,1); 
}

.card-icon { font-size: 2.5rem; margin-bottom: 20px; display: block; }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; font-weight: 800; }
.card p { font-size: 1rem; font-weight: 500; }

/* Pricing Specific Styles */
.price-card { border: 3px solid var(--border-color); text-align: left; padding: 40px; display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.price-card .price { font-size: 2rem; font-weight: 900; margin-bottom: 24px; border-bottom: 2px solid #000; padding-bottom: 24px; }
.price-card ul { list-style: none; margin-bottom: 32px; flex-grow: 1; }
.price-card ul li { margin-bottom: 12px; font-weight: 500; display: flex; align-items: flex-start; gap: 8px; }
.price-card ul li::before { content: "✓"; font-weight: 900; }

/* --- 8. Forms & Alerts --- */
.form-container { 
    max-width: 600px; 
    margin: 0 auto; 
    background: #fff; 
    padding: 48px; 
    border: 3px solid var(--border-color); 
    border-radius: 12px;
    box-shadow: 8px 8px 0px rgba(0,0,0,1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 24px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 800; font-size: 1.1rem; }

.form-group input, .form-group textarea, .form-group select { 
    width: 100%; 
    padding: 16px; 
    border: 2px solid var(--border-color); 
    border-radius: 4px; 
    font-family: var(--font-family); 
    font-size: 1rem;
    background: #fafafa;
    appearance: auto; 
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus { 
    outline: none; 
    background: #fff; 
    border-color: #000; 
}

.alert { padding: 16px; border: 2px solid #000; border-radius: 4px; margin-bottom: 24px; font-weight: 700; text-align: center; }
.alert-success { background-color: #c6f6d5; }
.alert-error { background-color: #fed7d7; }

/* --- 9. Mobile Responsive Updates --- */
@media (max-width: 992px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3rem; }
    .hero-graphic { flex-direction: column; }
}

@media (max-width: 768px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .form-container { padding: 24px; }
    .form-row { grid-template-columns: 1fr; gap: 16px; }
    .logo img { height: 36px; }
    
    .mobile-menu-toggle { display: flex; }
    
    .nav-drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100dvh; 
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        transform: translateX(100%);
        transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        z-index: 9998; 
    }
    
    .nav-drawer.open { transform: translateX(0); }
    
    .nav-links { flex-direction: column; gap: 32px; font-size: 1.5rem; text-align: center; width: 100%; }
    .nav-drawer .btn-outline { width: 100%; text-align: center; margin-top: 32px; font-size: 1.2rem; }

    /* Hamburger Animation */
    .mobile-menu-toggle.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
    .mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

    .hero h1 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    section { padding: 50px 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero-graphic { padding: 40px 15px; }
    .wireframe-box { width: 100%; max-width: 250px; }
}