:root {
    --primary: #f7951d; /* Bitcoin Orange */
    --secondary: #0f172a;
    --accent-glow: rgba(247, 149, 29, 0.3);
    --bg-dark: #0c1e3c; /* Deep Navy from old site */
    --bg-card: rgba(15, 23, 42, 0.7); /* Slate 900 with glass effect */
    --text-white: #f1f5f9;
    --text-dim: #94a3b8;
    --nav-blur: rgba(12, 30, 60, 0.85);
    --inter: 'Inter', sans-serif;
    --outfit: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

@media (max-width: 768px) {
    html { font-size: 14px; }
}

.hidden-feature { display: none !important; }

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--inter);
    -webkit-font-smoothing: antialiased;
}

.brand-icon {
    height: 1.2em;
    width: 1.2em;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.logo .brand-icon {
    width: 1.8rem;
    height: 1.8rem;
    margin-right: 0.5rem;
}

.manifesto-box .brand-icon {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 20rem;
    height: 20rem;
    opacity: 0.05;
    transform: rotate(-15deg);
    z-index: 1;
}

.manifesto-box .brand-icon img {
    filter: brightness(0) saturate(100%) invert(67%) sepia(87%) saturate(1202%) hue-rotate(346deg) brightness(101%) contrast(94%);
}

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

@media (max-width: 768px) {
    .container { padding: 0 1.8rem; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: var(--nav-blur);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-content {
    display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0;
}

.logo {
    font-family: var(--outfit);
    font-size: 1.6rem;
    font-weight: 900;
    display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo i { color: var(--primary); }

.nav-menu { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-menu a { text-decoration: none; color: var(--text-dim); font-weight: 500; transition: 0.3s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 2001; /* Above sidebar */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-dark);
        backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.8rem;
        border-right: 1px solid rgba(255,255,255,0.1);
        border-bottom: none;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        align-items: flex-start;
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Menu Overlay */
    .menu-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(0,0,0,1);
        z-index: 1999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--accent-glow);
}

/* Price Ticker */
.price-ticker {
    background: rgba(0,0,0,0.5);
    padding: 0.6rem 0;
    position: fixed;
    top: 76px; /* Works with navbar height */
    width: 100%;
    z-index: 1200;
    overflow: hidden;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .price-ticker {
        top: 68px; /* Slightly adjusted for mobile navbar size */
    }
}

.ticker-content {
    display: inline-flex;
    gap: 4rem;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.ticker-up { color: #10b981; }
.ticker-down { color: #ef4444; }

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.price-ticker:hover .ticker-content {
    animation-play-state: paused;
    cursor: pointer;
}

/* Navbar adjustment */
.navbar {
    top: 0; 
}

/* ============================
   HERO SECTION (Modern Mesh)
   ============================ */
.hero-modern {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow: hidden;
    padding: 140px 2rem 4rem;
    gap: 2rem;
}

@media (max-width: 768px) {
    .hero-modern {
        padding: 150px 1.2rem 4rem; /* Increased top padding to clear ticker/nav */
        min-height: auto;
    }
}


/* Rounded rectangular box — contains ONLY the image */
.hero-image-box {
    position: relative;
    width: 90%;
    max-width: 1100px;
    aspect-ratio: 21 / 9;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(247, 149, 29, 0.25);
    box-shadow:
        0 0 40px rgba(247, 149, 29, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-image-box {
        width: 100%;
        aspect-ratio: 1 / 1.1; /* Taller for mobile text */
        border-radius: 20px;
    }
}

.hero-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.4); /* Darken image for readability */
}

/* NEW: Hero Slider Styles */
.hero-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none; /* Hide fully from layout when not active */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    display: flex;
    opacity: 1;
}

/* Indicators */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.indicator-dot.active {
    width: 35px;
    border-radius: 10px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.hero-slide h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-family: var(--outfit);
    font-weight: 900;
}

.hero-slide p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--text-dim);
    max-width: 800px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-slide .hero-ctas {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .hero-slide {
        padding: 1.5rem 1.2rem;
    }
    .hero-slide h1 {
        font-size: 2.2rem; /* Fixed size for mobile instead of clamp in this context */
        margin-bottom: 1rem;
    }
    .hero-slide p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    .hero-slide .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }
    .hero-ctas a {
        padding: 0.9rem;
        font-size: 0.9rem;
    }
}

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

/* Buttons (kept for other pages) */
.btn-glow {
    background: var(--primary); color: white; padding: 1.2rem 2.8rem; border-radius: 15px; text-decoration: none; font-weight: 800;
    box-shadow: 0 10px 30px var(--accent-glow); transition: 0.3s;
}

.btn-outline {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2); 
    padding: 1.2rem 2.8rem; 
    border-radius: 15px; 
    text-decoration: none; color: white; font-weight: 800; transition: 0.3s;
    backdrop-filter: blur(5px);
}

.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: white; }

/* Heading styles (kept for other sections) */
h1 { font-family: var(--outfit); font-size: 3.8rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 900; }
h1 span { color: var(--primary); }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
}

/* Sections */
.section { padding: 3rem 0; }
.section-header { margin-bottom: 2rem; }
.section-header h2 { font-family: var(--outfit); font-size: 3rem; font-weight: 800; margin-bottom: 0.8rem; }
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text-dim); font-size: 1.1rem; }

@media (max-width: 768px) {
    .section { padding: 2rem 0; }
    .section-header h2 { font-size: 2.2rem; }
    .section-header p { font-size: 1rem; }
}

/* Content Grids (Universal) */
.news-grid, .blog-grid, .store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card, .blog-post, .item-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

/* Specific Image Handling */
.news-img, .blog-img, .item-img {
    width: calc(100% - 2rem); /* Small margin from card edges */
    margin: 1rem 1rem 0;
    height: 180px; /* Uniform rectangular ratio */
    background-size: cover;
    background-position: center;
    border-radius: 10px; /* Rounded corners inside card */
    display: block;
}

.blog-post { 
    padding: 0; 
}

.news-body, .blog-body, .item-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-body .category {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.news-body h3, .blog-body h3, .item-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.news-body p, .blog-body p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.read-more, .btn-buy {
    margin-top: auto;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    border: none;
    width: 100%;
    transition: 0.3s;
    cursor: pointer;
}

.read-more:hover, .btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.item-info .price {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 800;
    margin: 1rem 0;
}

/* Community / Stats Section */
.title-responsive {
    font-size: 2.8rem;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .title-responsive { font-size: 2.2rem; }
}

.form-card-responsive {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .form-card-responsive { padding: 1.5rem; border-radius: 20px; }
}

.stats-box {
    background: rgba(10, 25, 47, 0.4);
    padding: 3rem;
    border-radius: 40px;
    border: 1px solid rgba(247, 149, 29, 0.3);
    backdrop-filter: blur(30px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}

#sats-per-person {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--outfit);
    color: #fff;
    margin-top: 0.5rem;
    letter-spacing: -1px;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

@media (max-width: 1000px) {
    .stat-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 950px) {
    .news-grid, .blog-grid, .store-grid { grid-template-columns: 1fr; gap: 2rem; }
    .news-img, .blog-img, .item-img { height: 200px; }
}

/* Split Layout Grid (Community/Stats) */
.split-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 1000px) {
    .split-layout-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Stats Box & Grid Refinements */
@media (max-width: 600px) {
    .stats-box {
        padding: 2rem 1.5rem !important;
    }
    
    .stat-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    #sats-per-person {
        font-size: 2.5rem !important;
    }
}

/* FAQ Responsive (Quem Somos) */
@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 1.3rem !important;
    }
    .faq-item {
        padding: 1.5rem !important;
    }
}

/* Elaborated Footer */
footer {
    background: #020817;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--outfit);
}

.footer-col p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-white);
    transition: 0.3s;
}

.footer-social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 149, 29, 0.3);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .footer-social-links {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1; /* Fallback: visible by default */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Only hide if JS is working */
body.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
}

body.js-enabled .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
