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

:root {
    /* Mac Color Palette */
    --mac-bg: #000000;
    --mac-surface: #1d1d1f;
    --mac-text: #f5f5f7;
    --mac-text-secondary: #a1a1a6;
    --mac-accent: #0071e3;
    --mac-accent-hover: #0077ed;
    --mac-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-primary);
    background: var(--mac-bg);
    color: var(--mac-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--mac-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 20px;
    height: 20px;
    color: var(--mac-text);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--mac-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
}

.nav-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.nav-icon-btn {
    background: none;
    border: none;
    color: var(--mac-text);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
    opacity: 0.8;
}

.nav-icon-btn:hover {
    opacity: 1;
}

.nav-icon-btn i {
    width: 18px;
    height: 18px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    padding-top: calc(var(--spacing-xl) + 48px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 113, 227, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--mac-text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--mac-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(0, 113, 227, 0.1);
    transform: translateY(-2px);
}

.hero-image {
    margin-top: var(--spacing-xl);
    position: relative;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.macbook-mockup {
    width: 600px;
    height: 400px;
    max-width: 90vw;
    background: linear-gradient(135deg, var(--mac-surface) 0%, #2d2d2f 100%);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid var(--mac-border);
}

.macbook-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: #000;
    border-radius: 8px;
}

/* Features Section */
.features {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--mac-surface);
    padding: var(--spacing-lg);
    border-radius: 16px;
    border: 1px solid var(--mac-border);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 113, 227, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-icon i {
    width: 28px;
    height: 28px;
    color: var(--mac-accent);
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--mac-text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Showcase Section */
.showcase {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.showcase-content {
    animation: fadeInUp 1s ease-out;
}

.showcase-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.showcase-text {
    font-size: 20px;
    color: var(--mac-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.showcase-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.stat {
    padding: var(--spacing-md);
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--mac-accent);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 16px;
    color: var(--mac-text-secondary);
}

/* Footer */
.footer {
    background: var(--mac-surface);
    border-top: 1px solid var(--mac-border);
    padding: var(--spacing-lg) var(--spacing-md);
    margin-top: var(--spacing-xl);
}

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

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--mac-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--mac-text);
}

.footer-copyright {
    color: var(--mac-text-secondary);
    font-size: 14px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
        padding-top: calc(var(--spacing-lg) + 48px);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-stats {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    @page {
        margin: 1cm;
        @top-center {
            content: "Mac Style Website";
        }
        @bottom-center {
            content: "Created by Helium";
        }
    }
    
    body {
        background: white;
        color: black;
    }
    
    .nav, .footer {
        display: none;
    }
}