* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #1d1d1f;
    --secondary-color: #f5f5f7;
    --accent-color: #d4a5a5;
    --accent-gradient: linear-gradient(135deg, #d4a5a5 0%, #c89b9b 100%);
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.47059;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

/* Header - Premium Glassmorphism */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    min-height: 44px;
}

.logo {
    font-size: 20px;
    font-weight: 590;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.3px;
    transition: var(--transition-fast);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.logo:active {
    transform: scale(0.96);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:active {
    transform: scale(0.96);
}

/* Hero - Modern Gradient */
.hero {
    margin-top: 60px;
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, #fafafa 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 165, 0.08) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-title {
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.hero-subtitle {
    font-size: clamp(18px, 4vw, 24px);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    letter-spacing: -0.003em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

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

/* Articles - Premium Cards */
.articles {
    padding: 60px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

.article-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    text-decoration: none !important;
    display: block;
    color: inherit;
}

.article-card *,
.article-card:hover,
.article-card:visited,
.article-card:active {
    text-decoration: none !important;
}
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.article-card:active {
    transform: translateY(-4px);
}

.article-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ea 100%);
    position: relative;
}

.article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
}

.article-card:hover .article-image::after {
    opacity: 1;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-content {
    padding: 24px;
}

.article-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.article-title {
    font-size: 22px;
    font-weight: 590;
    margin-bottom: 12px;
    line-height: 1.27273;
    letter-spacing: -0.005em;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    text-decoration: none;
}

.article-card:hover .article-title {
    color: var(--text-primary);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
    text-decoration: none;
}

.article-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-fast);
    padding: 8px 0;
}

.article-link:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.article-link:active {
    transform: translateX(2px);
}

.article-link::after {
    content: '→';
    margin-left: 8px;
    transition: var(--transition);
}

/* Footer - Premium Dark */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 48px 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

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

.footer-brand h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
    padding: 8px 0;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-links a:active {
    transform: scale(0.96);
}

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

    .nav {
        padding: 12px 0;
    }

    .logo {
        font-size: 18px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero {
        margin-top: 56px;
        padding: 60px 0 40px;
    }

    .hero-title {
        letter-spacing: -1.5px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        padding: 0 16px;
    }

    .articles {
        padding: 40px 0;
    }

    .articles-grid {
        gap: 20px;
    }

    .article-image {
        height: 200px;
    }

    .article-content {
        padding: 20px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-excerpt {
        font-size: 14px;
    }

    .footer {
        padding: 40px 0;
        margin-top: 60px;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    .article-card:hover {
        transform: none;
    }

    .article-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }

    .nav-links a,
    .article-link,
    .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading {
    background: linear-gradient(90deg, #f5f5f7 25%, #e8e8ea 50%, #f5f5f7 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    min-height: 44px;
}

.category-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

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

.category-btn:active {
    transform: translateY(0);
}

.article-card.hidden {
    display: none;
}

@media (max-width: 768px) {
    .category-filter {
        margin-bottom: 32px;
        gap: 8px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Hero Logo */
.hero-logo {
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-logo {
        font-size: clamp(36px, 12vw, 56px);
        margin-bottom: 20px;
    }
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(212, 165, 165, 0.3);
}

.social-link:active {
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* Hero CTA Button */
.hero-cta {
    position: relative;
    z-index: 10;
    display: inline-block;
    margin-top: 32px;
    padding: 14px 32px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-cta:hover {
    background: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hero-cta:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-cta {
    position: relative;
    z-index: 10;
        margin-top: 24px;
        padding: 12px 28px;
        font-size: 15px;
    }
}
