/* ===================================
   Grand Nasser - Professional Landing Page
   Building intelligent tools for humans
   =================================== */

/* CSS Variables */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-text: #1a1a1a;
    --color-text-light: #6b7280;
    --color-background: #ffffff;
    --color-background-alt: #f9fafb;
    --color-border: #e5e7eb;
    --color-success: #10b981;
    --color-enterprise: #7c3aed;
    --color-health: #ec4899;
    --color-career: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--color-background);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-background-alt);
    border-color: var(--color-text-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    background-color: var(--color-background-alt);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.icon {
    width: 16px;
    height: 16px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--color-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, var(--color-background-alt) 0%, var(--color-background) 100%);
}

.hero h1 {
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 40px;
}

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

/* Products Section */
.products {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 60px;
}

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

.product-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card.featured {
    border-color: var(--color-enterprise);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(124, 58, 237, 0.08) 100%);
}

.product-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.badge-opensource {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.badge-enterprise {
    background-color: rgba(124, 58, 237, 0.1);
    color: var(--color-enterprise);
}

.badge-health {
    background-color: rgba(236, 72, 153, 0.1);
    color: var(--color-health);
}

.badge-career {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-career);
}

.badge-rust {
    background-color: rgba(222, 94, 30, 0.1);
    color: #de5e1e;
}

.badge-mcp {
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.btn-mcp {
    background-color: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    color: #6366f1;
}

.btn-mcp:hover {
    background-color: #6366f1;
    color: white;
}

.product-card h3 {
    margin-bottom: 8px;
}

.product-tagline {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.product-description {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 600;
}

.product-code {
    background-color: var(--color-background-alt);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 24px;
}

.product-code code {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.875rem;
    color: var(--color-primary);
}

.product-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--color-background-alt);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    color: var(--color-text-light);
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.about-text strong {
    color: var(--color-text);
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.contact-card h3 {
    color: var(--color-text);
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer p {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .navbar .container {
        height: 64px;
    }

    .logo-img {
        height: 36px;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--color-background);
        flex-direction: column;
        align-items: center;
        padding: 24px;
        gap: 24px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .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 {
        padding: 100px 0 50px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .products, .about, .contact {
        padding: 50px 0;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

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

    .product-card {
        padding: 24px;
    }

    .product-links {
        flex-direction: column;
    }

    .product-links .btn {
        width: 100%;
        justify-content: center;
    }

    .about-content {
        padding: 0;
    }

    .about-text {
        font-size: 1rem;
    }

    .about-stats {
        gap: 30px;
        flex-direction: column;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-card {
        padding: 24px;
    }

    .footer {
        padding: 24px 0;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .logo-img {
        height: 32px;
    }

    .product-card {
        padding: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero-subtitle,
.hero-buttons {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-subtitle {
    animation-delay: 0.1s;
}

.hero-buttons {
    animation-delay: 0.2s;
}
