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

.section {
    padding: 6rem 0;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    padding-top: 1rem;
    z-index: 1000;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    background-color: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 32px;
    height: auto;
}

.brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 2px;
}

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-store-btn {
    margin-left: 0.25rem;
}

/* Store link inside mobile nav — hide on desktop since we have the button */
.nav-links a[href="/store/"] {
    display: none;
}


/* ===== HAMBURGER ===== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-smooth);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}


/* ===== GRID ===== */

.grid {
    display: grid;
    gap: 1.5rem;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}


/* ===== FOOTER ===== */

.footer {
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 0 -20px 50px rgba(168, 85, 247, 0.03);
    padding: 6rem 0 2rem;
    margin-top: 4rem;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.5) 0%, rgba(9, 9, 11, 0.95) 100%);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100px;
    background: radial-gradient(ellipse at bottom, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 1rem 0;
    line-height: 1.6;
    max-width: 250px;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

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

.social-icon {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s var(--ease-smooth);
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.social-icon:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    transform: translateY(-3px);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}


/* ===== ABOUT SECTION (Editorial Redesign) ===== */

.about-section {
    padding: 8rem 0;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.about-editorial {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.editorial-title {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 2rem;
}

.marker {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.marker::after {
    content: '';
    position: absolute;
    left: -5%;
    bottom: 5%;
    width: 110%;
    height: 30%;
    background: var(--accent-purple);
    opacity: 0.3;
    z-index: -1;
    transform: rotate(-1deg);
    border-radius: 20% 80% 30% 70% / 60% 30% 70% 40%;
}

.editorial-lead {
    font-size: 1.5rem;
    color: var(--text-primary);
    max-width: 700px;
    line-height: 1.4;
    font-weight: 500;
    opacity: 0.9;
}

.editorial-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: flex-start;
}

.editorial-story {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-para {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.editorial-visual {
    position: relative;
}

.visual-frame {
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transform: rotate(2deg);
    transition: transform 0.5s var(--ease-out);
}

.visual-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.editorial-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.visual-caption {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: right;
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.principle {
    position: relative;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all 0.4s var(--ease-out);
}

.principle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-purple);
    transform: translateY(-8px);
}

.principle-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--accent-purple-hover);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.principle-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.principle-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .editorial-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .editorial-visual {
        order: -1;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .editorial-title {
        font-size: 2.75rem;
    }
    
    .about-section {
        gap: 5rem;
        padding: 5rem 0;
    }
}


/* ===== CTA SECTION ===== */

.cta-section {
    padding: 6rem 1rem;
    position: relative;
    z-index: 5;
}

.cta-banner {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(24, 24, 27, 0.8) 100%);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: var(--radius-xl);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.15) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}


/* ===== SUBPAGE HERO ===== */

.subpage-hero {
    padding: 160px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 300px;
    background: radial-gradient(ellipse at top, var(--accent-glow-soft) 0%, transparent 70%);
    pointer-events: none;
}

.subpage-hero .section-title {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.subpage-hero .section-subtitle {
    max-width: 500px;
    margin: 0 auto;
}


/* ===== RESPONSIVE: TABLET ===== */

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

    .about-pillars {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .pillar {
        padding: 1.5rem 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ===== RESPONSIVE: MOBILE ===== */

@media (max-width: 768px) {

    /* Mobile nav */
    .hamburger {
        display: flex;
    }

    .nav-store-btn {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100dvh;
        background: rgba(9, 9, 11, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        gap: 0;
        z-index: 1050;
        transform: translateX(100%);
        transition: transform 0.35s var(--ease-out);
        border-left: 1px solid var(--border-subtle);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-subtle);
        text-shadow: none;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Show the store link in mobile menu */
    .nav-links a[href="/store/"] {
        display: block;
    }

    .nav-links a::after {
        display: none;
    }

    .hero-title {
        font-size: 2.75rem !important;
        line-height: 1.1;
        margin-bottom: 1rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
        padding: 0 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .stats-bar {
        padding-top: 1.5rem;
        width: 100%;
        margin-top: 2rem;
        margin-bottom: 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.25rem;
        text-align: center;
    }

    .section-subtitle {
        text-align: center;
        font-size: 1rem;
    }

    .gallery-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: 1rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        position: relative;
        flex: 0 0 85%;
        width: 85% !important;
        height: 350px !important;
        aspect-ratio: auto !important;
        border-radius: var(--radius-lg);
        opacity: 1;
        animation: none;
        scroll-snap-align: center;
    }
    
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card {
        padding: 1.5rem;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .navbar .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .footer {
        padding: 3rem 1.25rem 2rem 1.25rem;
        margin-top: 0;
        position: relative;
        z-index: 50;
        box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.7);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 1rem;
        text-align: left;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    .footer-description {
        max-width: 100%;
        text-align: left;
    }

    .footer-col {
        align-items: flex-start;
    }

    .brand {
        justify-content: flex-start;
    }

    .social-links {
        justify-content: flex-start;
    }

    .cta-title {
        font-size: 2.25rem;
    }

    .cta-banner {
        padding: 3rem 1.25rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        width: calc(100% + 2.5rem);
        margin-left: -1.25rem;
    }

    .support-banner {
        margin-bottom: 0;
    }

    .support-cta {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 2rem !important;
    }
    
    .footer-bottom p:first-child {
        margin-top: 1rem;
    }

    .subpage-hero {
        padding: 120px 1.5rem 40px;
    }

    .subpage-hero .section-title {
        font-size: 2rem;
    }
}

/* ===== SAFE AREA (notched phones) ===== */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .nav-links {
        padding-right: max(2rem, env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}