/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif; 
    /* Vintage Newspaper Background */
    background-color: #f4f1ea; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    color: #2b2b2b; 
    line-height: 1.6; 
    min-height: 100vh; 
    overflow-x: hidden; 
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Theme Variables - Collage Art */
:root {
    --paper-bg: #f4f1ea;
    --ink-black: #1a1a1a;
    --sticker-blue: #0055ff;
    --sticker-cyan: #00e5ff;
    --tape-color: rgba(255, 255, 240, 0.6);
    --highlight-yellow: #ffeb3b;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Georgia', 'Times New Roman', serif; /* Newspaper headline feel */
    color: var(--ink-black);
    font-weight: 900;
}

/* Navigation - Torn Paper Edge Bottom */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5% 25px; 
    background: #ffffff; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    /* Torn paper effect via clip-path */
    clip-path: polygon(0 0, 100% 0, 100% 90%, 95% 100%, 90% 92%, 85% 100%, 80% 90%, 75% 100%, 70% 92%, 65% 100%, 60% 90%, 55% 100%, 50% 92%, 45% 100%, 40% 90%, 35% 100%, 30% 92%, 25% 100%, 20% 90%, 15% 100%, 10% 92%, 5% 100%, 0 90%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.nav-logo { 
    font-size: 28px; 
    font-weight: 900; 
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Georgia', serif;
    letter-spacing: -1px;
}
.nav-logo svg {
    width: 36px;
    height: 36px;
    fill: var(--ink-black);
}
.nav-links { display: flex; gap: 30px; align-items: center; font-weight: bold; font-family: 'Helvetica Neue', sans-serif;}
.nav-links a { 
    color: var(--ink-black); 
    transition: all 0.3s; 
    font-size: 15px; 
    padding: 5px 10px;
}
.nav-links a:hover { 
    background-color: var(--highlight-yellow);
    transform: rotate(-2deg);
}

/* Modern Blue Sticker Button */
.btn-download-nav { 
    padding: 8px 24px !important; 
    background: var(--sticker-blue);
    color: #fff !important; 
    font-weight: 900;
    transition: all 0.3s; 
    border: 3px solid #fff;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.2);
    transform: rotate(2deg);
}
.btn-download-nav:hover { 
    transform: rotate(-2deg) scale(1.05);
    background: var(--sticker-cyan);
    color: var(--ink-black) !important;
}

/* Tape Effect */
.tape {
    position: absolute;
    width: 100px;
    height: 30px;
    background: var(--tape-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    backdrop-filter: blur(2px);
    z-index: 50;
}

/* Hero Section - Collage Art */
.hero-wrapper {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 5% 100px;
    overflow: hidden;
}

/* Newspaper cutout background elements */
.cutout-bg {
    position: absolute;
    background: #fff;
    padding: 20px;
    font-family: 'Georgia', serif;
    font-size: 12px;
    color: #999;
    line-height: 1.2;
    text-align: justify;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    z-index: 0;
    overflow: hidden;
}
.cutout-1 { top: 10%; left: -5%; width: 300px; height: 400px; transform: rotate(-5deg); clip-path: polygon(0 0, 100% 5%, 95% 100%, 5% 95%); }
.cutout-2 { bottom: 10%; right: -5%; width: 350px; height: 300px; transform: rotate(8deg); clip-path: polygon(5% 0, 95% 5%, 100% 95%, 0 100%); }

.hero-content { 
    z-index: 20; 
    max-width: 900px; 
    text-align: center;
    position: relative;
    margin-top: 40px;
    background: #fff;
    padding: 50px;
    box-shadow: 5px 10px 20px rgba(0,0,0,0.1);
    transform: rotate(-1deg);
}
.hero-content .tape-top { top: -15px; left: 50%; transform: translateX(-50%) rotate(-3deg); }

.hero-title {
    font-size: 52px; 
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -1px;
    /* Newspaper headline style */
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.hero p { 
    font-size: 18px; 
    margin-bottom: 40px; 
    color: #555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Helvetica Neue', sans-serif;
}

.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-bottom: 50px; flex-wrap: wrap; }

.btn-primary { 
    padding: 16px 40px; 
    font-size: 18px; 
    font-weight: 900; 
    color: #fff; 
    background: var(--sticker-blue);
    border: 4px solid #fff;
    box-shadow: 4px 6px 0px var(--ink-black);
    transition: all 0.2s;
    text-transform: uppercase;
    transform: rotate(-2deg);
}
.btn-primary:hover { 
    transform: rotate(2deg) translateY(-3px);
    background: var(--highlight-yellow);
    color: var(--ink-black);
}

.btn-outline { 
    padding: 16px 40px; 
    font-size: 18px; 
    font-weight: 900; 
    color: var(--ink-black); 
    background: #fff;
    border: 4px solid var(--ink-black);
    box-shadow: 4px 6px 0px var(--sticker-blue);
    transition: all 0.2s;
    text-transform: uppercase;
    transform: rotate(2deg);
}
.btn-outline:hover { 
    transform: rotate(-2deg) translateY(-3px);
    background: var(--sticker-blue);
    color: #fff;
    box-shadow: 4px 6px 0px var(--ink-black);
}

.hero-images { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    align-items: flex-end; 
    margin-top: 20px;
    z-index: 20;
}
.hero-images img { 
    max-width: 28%; 
    background: #fff;
    padding: 10px 10px 30px 10px; /* Polaroid style */
    box-shadow: 3px 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease; 
}
.hero-images img:nth-child(1) { transform: rotate(-5deg); }
.hero-images img:nth-child(2) { transform: translateY(-20px) rotate(2deg); z-index: 2; }
.hero-images img:nth-child(3) { transform: rotate(4deg); }

.hero-images img:hover { 
    transform: translateY(-20px) scale(1.05) rotate(0deg); 
    box-shadow: 5px 15px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Features Section - Torn Paper Top */
.features { 
    padding: 120px 5% 100px; 
    background: var(--ink-black); 
    color: #fff;
    position: relative; 
    z-index: 10; 
    clip-path: polygon(0 5%, 5% 0, 10% 4%, 15% 0, 20% 5%, 25% 0, 30% 4%, 35% 0, 40% 5%, 45% 0, 50% 4%, 55% 0, 60% 5%, 65% 0, 70% 4%, 75% 0, 80% 5%, 85% 0, 90% 4%, 95% 0, 100% 5%, 100% 100%, 0 100%);
}
.features .section-title { color: #fff; }
.section-title { 
    text-align: center; 
    font-size: 42px; 
    margin-bottom: 60px; 
    text-transform: uppercase;
}

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }

.feature-card { 
    padding: 40px 30px; 
    text-align: left; 
    background: #fff;
    color: var(--ink-black);
    box-shadow: 5px 5px 0px var(--sticker-blue);
    transition: all 0.3s; 
    position: relative;
    transform: rotate(-1deg);
}
.feature-card:nth-child(even) { transform: rotate(1deg); box-shadow: 5px 5px 0px var(--highlight-yellow); }
.feature-card .tape { top: -15px; right: 20px; transform: rotate(15deg); }

.feature-card:hover { 
    transform: translateY(-8px) rotate(0deg); 
    box-shadow: 8px 10px 0px var(--sticker-cyan);
}
.feature-card h3 { 
    font-size: 24px; 
    margin-bottom: 15px; 
    font-family: 'Helvetica Neue', sans-serif;
    text-transform: uppercase;
}
.feature-card p { color: #555; font-size: 15px; font-family: 'Helvetica Neue', sans-serif;}

/* Blog Section */
.blog { padding: 100px 5%; background: var(--paper-bg); position: relative;}
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 1100px; margin: 0 auto; }
.blog-card { 
    display: flex; 
    flex-direction: column; 
    background: #fff;
    padding: 15px;
    box-shadow: 3px 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}
.blog-card:nth-child(1) { transform: rotate(1deg); }
.blog-card:nth-child(2) { transform: rotate(-1deg); }
.blog-card:hover { 
    transform: translateY(-8px) rotate(0deg); 
    box-shadow: 5px 15px 25px rgba(0,0,0,0.15);
}
.blog-card img { 
    width: 100%; height: 260px; object-fit: cover; 
    filter: sepia(30%) contrast(1.1); /* Vintage photo effect */
}
.blog-content { padding: 25px 15px 15px; }
.blog-date { 
    display: inline-block; 
    margin-bottom: 15px; 
    font-size: 12px; 
    color: #fff; 
    background: var(--ink-black); 
    padding: 4px 12px; 
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: bold;
    transform: rotate(-2deg);
}
.blog-content h3 { font-size: 22px; margin-bottom: 15px; font-family: 'Georgia', serif;}
.blog-content p { color: #666; margin-bottom: 0; font-family: 'Helvetica Neue', sans-serif; font-size: 14px;}
.btn-more { 
    display: block; 
    width: 240px; 
    margin: 60px auto 0; 
    text-align: center; 
    padding: 16px; 
    background: var(--sticker-blue);
    color: #fff; 
    font-weight: 900; 
    font-family: 'Helvetica Neue', sans-serif;
    border: 3px solid var(--ink-black);
    box-shadow: 4px 4px 0px var(--ink-black);
    transition: all 0.3s; 
    text-transform: uppercase;
    transform: rotate(-1deg);
}
.btn-more:hover { background: var(--highlight-yellow); color: var(--ink-black); transform: translateY(-3px) rotate(1deg);}

/* FAQ Section */
.faq { padding: 100px 5%; max-width: 900px; margin: 0 auto; background: #fff; margin-top: 40px; margin-bottom: 80px; box-shadow: 5px 5px 0px rgba(0,0,0,0.1); position: relative; transform: rotate(1deg);}
.faq .tape { top: -15px; left: 40%; transform: rotate(-5deg); width: 150px;}
.faq-item { 
    background: #f9f9f9; 
    margin-bottom: 20px; 
    padding: 25px 30px; 
    border-left: 5px solid var(--sticker-blue);
    transition: all 0.3s;
}
.faq-item:hover { 
    background: var(--highlight-yellow);
    border-left-color: var(--ink-black);
}
.faq-question { font-size: 18px; font-family: 'Georgia', serif; font-weight: 900; margin-bottom: 12px; color: var(--ink-black); }
.faq-answer { color: #444; font-size: 15px; font-family: 'Helvetica Neue', sans-serif; line-height: 1.8;}

/* Footer */
.footer { background: var(--ink-black); padding: 80px 5% 30px; color: #ccc; position: relative;}
/* Torn paper top for footer */
.footer::before {
    content: ''; position: absolute; top: -15px; left: 0; width: 100%; height: 30px;
    background: var(--ink-black);
    clip-path: polygon(0 50%, 5% 0, 10% 50%, 15% 0, 20% 50%, 25% 0, 30% 50%, 35% 0, 40% 50%, 45% 0, 50% 50%, 55% 0, 60% 50%, 65% 0, 70% 50%, 75% 0, 80% 50%, 85% 0, 90% 50%, 95% 0, 100% 50%, 100% 100%, 0 100%);
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto 50px; }
.footer-col h4 { font-size: 18px; color: #fff; margin-bottom: 25px; font-family: 'Helvetica Neue', sans-serif; font-weight: 900; text-transform: uppercase;}
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: #999; transition: all 0.2s; font-family: 'Helvetica Neue', sans-serif; font-size: 14px;}
.footer-col ul li a:hover { color: var(--sticker-cyan); padding-left: 5px;}
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px dashed rgba(255,255,255,0.2); font-size: 13px; font-family: 'Helvetica Neue', sans-serif;}

/* Download Page Grid */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; max-width: 1100px; margin: 60px auto; padding: 0 5%; }
.download-card { 
    padding: 40px 30px; 
    text-align: center; 
    background: #fff; 
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}
.download-card:nth-child(1) { transform: rotate(-1deg); }
.download-card:nth-child(2) { transform: rotate(1deg); }
.download-card:nth-child(3) { transform: rotate(-2deg); }
.download-card:nth-child(4) { transform: rotate(2deg); }
.download-card .tape { top: -10px; left: 50%; transform: translateX(-50%) rotate(2deg); width: 80px;}

.download-card:hover { 
    transform: translateY(-8px) rotate(0deg); 
    box-shadow: 6px 8px 0px var(--sticker-blue);
}
.download-card h3 { font-size: 24px; margin-bottom: 15px; font-family: 'Georgia', serif; color: var(--ink-black);}
.download-card p { color: #555; margin-bottom: 30px; font-size: 14px; font-family: 'Helvetica Neue', sans-serif;}
.btn-dl-card { 
    display: inline-block; 
    padding: 12px 25px; 
    background: var(--ink-black);
    color: #fff; 
    font-weight: 900; 
    font-family: 'Helvetica Neue', sans-serif;
    transition: all 0.2s; 
    text-transform: uppercase;
}
.btn-dl-card:hover { 
    background: var(--sticker-blue); 
    transform: scale(1.05);
}

/* Page specific headers */
.page-header { 
    padding: 100px 5% 60px; 
    text-align: center; 
    background: var(--paper-bg);
}
.page-header-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.1);
    transform: rotate(1deg);
    position: relative;
}
.page-header-content .tape { top: -15px; right: 30%; transform: rotate(-4deg); width: 120px;}
.page-header h1 { 
    font-size: 42px; 
    margin-bottom: 20px; 
    text-transform: uppercase;
}
.page-header p { font-size: 18px; color: #555; font-family: 'Helvetica Neue', sans-serif;}

/* === perf: reduce motion & lower GPU cost === */
.feature-card,
.blog-card,
.hero-content,
.glass-panel,
.pearl-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.navbar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* perf: limit decorative infinite layers on mid/low-end devices */
@media (max-width: 768px) {
    .bubble:nth-child(n+3),
    .tiny-plane:nth-child(n+3),
    .bg-shard:nth-child(n+4),
    .orb:nth-child(n+2) {
        display: none !important;
    }
}
