@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn.woff2') format('woff2-variations'),
    /* will be the standard and works in Safari now */
    url('fonts/Vazirmatn.woff2') format('woff2');
    /* for the other supporting browsers */
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --bg-color: #f3f4f6;
    --primary: #3F9A61;
    --primary-dark: #2e7d32;
    --black: #18181b;
    --white: #ffffff;
    
    --accent-yellow: #FFD54F;
    --accent-purple: #9FA8DA;
    --accent-pink: #FF8A80;
    
    --border: 3px solid var(--black);
    --shadow: 5px 5px 0px var(--black);
    --shadow-hover: 2px 2px 0px var(--black);
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip !important;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--black);
    background-image: linear-gradient(#e5e7eb 2px, transparent 2px),
    linear-gradient(90deg, #e5e7eb 2px, transparent 2px);
    background-size: 40px 40px;
    overflow-x: clip !important;
    width: 100%;
}

#tie-wrapper {
    background: transparent !important;
}

.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 3px solid var(--black);
    border-top: none; 
    border-radius: 0 0 24px 24px;
    margin: -20px -24px 60px -24px;
    padding: 15px 40px;
    width: calc(100% + 48px);
    max-width: none;
    box-shadow: 0 4px 0 var(--black);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.site-header > a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.site-header.header-hidden {
    transform: translateY(-120%);
    box-shadow: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: 2px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
}
.brand-logo img,
.popup-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-name {
    font-weight: 900;
    font-size: 1.7rem;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 800;
    font-size: 1rem;
    position: relative;
    padding: 5px 10px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.small-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    box-shadow: 3px 3px 0 var(--black);
}

.small-btn:hover {
    box-shadow: 5px 5px 0 var(--black);
}

.neo-btn {
    font-family: Vazirmatn;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    border: var(--border);
    border-radius: 50px;
    cursor: pointer;
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    top: 0;
    left: 0;
    text-align: center;
}

.neo-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--black);
}

.neo-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px var(--black);
}

.neo-btn.secondary {
    background: var(--white);
    color: var(--black);
}

.neo-btn.yellow {
    background: var(--accent-yellow);
    color: var(--black);
}

#footer-dl-btn {
    position: relative;
    z-index: 1;
    overflow: visible;
    animation: btn-breathing 2s ease-in-out infinite;
}

#footer-dl-btn::before,
#footer-dl-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50px;
    background: var(--accent-yellow);
    z-index: -1;
    opacity: 0;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

#footer-dl-btn::after {
    animation-delay: 0.5s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes btn-breathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 140px;
    padding-top: 20px;
}

.tag-badge {
    background: var(--black);
    color: var(--accent-yellow);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
    transform: rotate(-2deg);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.7;
    font-weight: 900;
    margin: 0 0 30px 0;
}

.highlight {
    background: var(--primary);
    color: var(--white);
    padding: 0 15px;
    display: inline-block;
    transform: skewX(-10deg);
    border: var(--border);
}

.hero p {
    font-size: 1.3rem;
    line-height: 1.8;
    background: var(--white);
    border: var(--border);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.browser-mockup {
    background: var(--accent-purple);
    border: var(--border);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: 15px 15px 0.1px var(--black);
    overflow: hidden;
    position: relative;
}

.browser-bar {
    background: var(--white);
    border-bottom: var(--border);
    padding: 15px;
    display: flex;
    gap: 10px;
}
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--black); }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-content {
    background: var(--white);
    padding: 50px;
    display: flex;
    justify-content: center;
    background-image: repeating-linear-gradient(45deg, #f0f0f0 0, #f0f0f0 2px, transparent 0, transparent 20px);
}

.app-ui {
    width: 380px;
    background: #fff;
    border: 3px solid var(--black);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.popup-header {
    background: #fff;
    padding: 16px;
    border-bottom: 3px solid var(--black);
    border-top: 6px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup-logo {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border: 2px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.popup-title { font-weight: 900; font-size: 1.1rem; }
.popup-subtitle { font-size: 0.8rem; color: #64748b; font-weight: bold; }

.popup-body {
    padding: 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-capsule {
    background: #eef2f6;
    border: 2px solid var(--black);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 0.9rem;
    box-shadow: 2px 2px 0 var(--black);
}

.control-row {
    background: white;
    border: 2px solid var(--black);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.05);
}

.control-label { font-weight: 800; display: block; }
.control-sub { font-size: 0.75rem; color: #64748b; }

.capsule-cluster {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 2px solid var(--black);
    border-radius: 50px;
    padding: 4px;
    gap: 6px;
}

.b-switch {
    width: 40px;
    height: 24px;
    background: #cbd5e1;
    border: 2px solid var(--black);
    border-radius: 20px;
    position: relative;
}

.b-switch::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: white;
    border: 2px solid var(--black);
    border-radius: 50%;
}

.b-switch.active { background: var(--primary); }
.b-switch.active::after { left: auto; right: 2px; }

.b-switch-merged {
    width: 50px;
    height: 24px;
    background: #cbd5e1;
    border: 2px solid var(--black);
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b-switch-merged::after {
    content: '۱۲۳';
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

.b-divider { width: 1px; height: 16px; background: var(--black); }
.b-separator { height: 1px; background: #cbd5e1; opacity: 0.5; margin: 4px 0; }

.selector-box {
    background: white;
    border: 2px solid var(--black);
    border-radius: 12px;
    padding: 12px;
}

.selector-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 800; font-size: 0.9rem; }

.selector-btn {
    background: #f1f5f9;
    border: 2px solid var(--black);
    border-radius: 50px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
}

.add-font-btn {
    font-family: Vazirmatn;
    width: 100%;
    background: white;
    border: 2px dashed var(--black);
    border-radius: 8px;
    padding: 10px;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
    transition: 0.2s;
}

.add-font-btn:hover {
    background: #f0fdf4;
    border-color: var(--primary);
    color: var(--primary);
}

.popup-footer {
    border-top: 2px solid #eee;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    background: white;
}

.footer-credit { display: flex; align-items: center; gap: 4px; font-weight: bold; }
.remember-saber span { color: var(--primary-dark); font-weight: bold; }

.marquee-wrapper {
    background: var(--black);
    transform: rotate(-2deg) scale(1.05);
    margin: 80px -50px 140px;
    border-top: 5px solid var(--primary);
    border-bottom: 5px solid var(--primary);
    padding: 20px 0;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 80px; 
    animation: scroll 15s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 20px;
}

.star-icon {
    color: var(--accent-yellow);
    font-size: 1.5rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    scroll-margin-top: 140px;
}

.feat-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.feat-card:hover { transform: translateY(-5px); box-shadow: 8px 8px 0 var(--black); }

.feat-card.green::before { content:''; position:absolute; top:0; left:0; right:0; height:10px; background:var(--primary); border-bottom:var(--border); }
.feat-card.yellow::before { content:''; position:absolute; top:0; left:0; right:0; height:10px; background:var(--accent-yellow); border-bottom:var(--border); }
.feat-card.purple::before { content:''; position:absolute; top:0; left:0; right:0; height:10px; background:var(--accent-purple); border-bottom:var(--border); }

.feat-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    box-shadow: 4px 4px 0 var(--black);
    color: var(--black);
}
.feat-card.green .feat-icon { color: var(--primary); }
.feat-card.yellow .feat-icon { color: #f59e0b; }
.feat-card.purple .feat-icon { color: #8e44ad; }

.gallery-section {
    margin-bottom: 120px;
    scroll-margin-top: 140px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
}

.gallery-stage {
    background: var(--accent-pink);
    border-top: 4px solid var(--black);
    border-bottom: 4px solid var(--black);
    padding: 60px 20px;
    margin: 0 -50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.gallery-card {
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 12px;
    box-shadow: 8px 8px 0 var(--black);
    padding: 12px;
    transition: transform 0.2s;
}

.gallery-card.vertical { width: 280px; }
.gallery-card.square { width: 420px; } 

.gallery-card:hover {
    transform: scale(1.05) translateY(-5px);
}

.gallery-img-placeholder {
    width: 100%;
    height: 400px;
    border: 2px solid var(--black);
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--black);
    font-size: 1.2rem;
    overflow: hidden;
}

.gallery-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-img-placeholder:has(.gallery-full-img) {
    background: transparent !important;
}

.gallery-caption {
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.upload-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
    padding-top: 40px;
    scroll-margin-top: 140px;
}

.settings-panel {
    background: white;
    border: 3px solid var(--black);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 12px 12px 0 var(--black);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.settings-title { margin: 0; display: flex; align-items: center; gap: 8px; }
.settings-icon { font-size: 1.5rem; }

.upload-zone {
    border: 3px dashed #cbd5e1;
    background: #fcfcfc;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 24px;
    transition: 0.2s;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: #f0fdf4;
    transform: scale(1.02);
}

.upload-text-zone { font-weight: bold; font-size: 1.1rem; margin: 10px 0; }
.upload-btn-small { padding: 10px 24px; font-size: 0.9rem; border-width: 2px; box-shadow: 4px 4px 0 var(--black); }

.list-title { margin: 0 0 15px 0; display: flex; align-items: center; gap: 8px; }

.font-list-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 40px;
    gap: 10px;
    padding: 0 10px 10px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: bold;
    border-bottom: 2px solid var(--black);
    margin-bottom: 10px;
}

.font-item {
    display: grid;
    grid-template-columns: 2fr 1.5fr 40px;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid var(--black);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.font-name { font-weight: bold; }

.font-badge { padding: 4px 8px; border-radius: 6px; font-size: 0.8rem; border: 1px solid var(--black); text-align: center; }
.font-badge.regular { background: #f1f5f9; }
.font-badge.variable { background: #e0f2f1; color: var(--primary-dark); }

.delete-btn-neo {
    width: 32px; height: 32px;
    background: #fee2e2;
    border: 2px solid var(--black);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ef4444;
}

.delete-btn-neo:hover { background: #ef4444; color: white; }

.purple-badge { background: var(--accent-purple); color: var(--black); }
.upload-heading { font-size: 3rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.upload-desc { font-size: 1.2rem; line-height: 1.8; margin-bottom: 30px; }
.format-badges { display: flex; gap: 10px; }
.format-badge { background: var(--black); color: var(--white); padding: 8px 12px; border-radius: 6px; font-weight: bold; }

.community-section {
    margin-bottom: 120px;
    scroll-margin-top: 140px;
}

.community-box {
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 12px 12px 0 var(--black);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    position: relative;
    padding-bottom: 80px;
}

.community-actions {
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.community-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.community-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.community-thanks {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 30px;
    color: var(--primary-dark);
}

.media-box {
    background: var(--accent-yellow);
    border: 4px solid var(--black);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 10px 10px 0 var(--black);
    transform: rotate(-2deg);
    transition: 0.3s;
    margin-bottom: 20px;
}

.media-box:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 15px 15px 0 var(--black);
    z-index: 10;
}

.media-header {
    font-weight: 900;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--black);
    text-transform: uppercase;
}

.media-text {
    font-size: 1rem;
    margin: 0 0 20px;
    line-height: 1.5;
    font-weight: 700;
}

.social-cluster {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    gap: 15px;
}

.social-btn-neo {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    box-shadow: 4px 4px 0 var(--black);
    transition: all 0.2s;
}

.social-btn-neo:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--black);
    background: var(--accent-purple);
}

.social-btn-neo:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--black);
}

.footer-box {
    background: var(--black);
    color: var(--white);
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-content { position: relative; z-index: 2; }
.deco-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.1);
    top: -50px; left: -50px;
}

.footer-title { font-size: 3.5rem; margin-bottom: 20px; text-shadow: 4px 4px 0 #000; }
.footer-sub { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.9; }
.footer-btn { font-size: 1.4rem; padding: 20px 60px; }

.sponsors-section {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 24px;
}

.sponsors-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 30px;
    box-shadow: 6px 6px 0 var(--black);
}

.sp-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-icon {
    font-size: 2.5rem;
    color: var(--primary-dark);
    animation: sp-pulse 1.5s infinite;
}

@keyframes sp-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.sp-title {
    margin: 0;
    font-weight: 900;
    font-size: 1.3rem;
}

.sp-cta {
    font-size: 0.9rem;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Container for the slider and buttons */
.sponsors-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    direction: ltr;
    max-width: 100%;
}

.sponsors-window {
    flex-grow: 1;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.sponsors-track {
    display: flex;
    gap: 24px;
    width: max-content;
    direction: ltr;
    transform: translateX(0);
}

.sp-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 3px solid var(--black);
    background: var(--white);
    box-shadow: 4px 4px 0 var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
    z-index: 10;
    flex-shrink: 0;
    color: var(--black);
}

.sp-nav-btn:hover {
    background: var(--accent-yellow);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--black);
}

.sp-nav-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--black);
}

.sponsor-card {
    direction: rtl;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 50px;
    padding: 8px 24px 8px 8px;
    text-decoration: none;
    color: var(--black);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 4px 4px 0 var(--black);
    min-width: 200px;
}

.sponsor-card:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 6px 6px 0 var(--black);
    background: #f0fdf4;
    border-color: var(--primary);
}

.sp-img-placeholder {
    width: 44px;
    height: 44px;
    border: 2px solid var(--black);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
    background: #ffffff;
    padding: 0;
}
.sp-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-info {
    display: flex;
    flex-direction: column;
}

.sp-name {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
}

.sp-link {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: bold;
}

/* ========================================= */
/*               MEDIA QUERIES               */
/* ========================================= */

@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .hero { gap: 40px; }
}

@media (max-width: 768px) {
    .site-header { 
        padding: 12px 15px; 
        margin-bottom: 40px; 
        border-radius: 0 0 16px 16px; 
        border-left: none; 
        border-right: none; 
        width: calc(100% + 30px);
        margin-left: -15px;
        margin-right: -15px;
    }
    .header-nav { display: none; }
    .brand-name { font-size: 1.2rem; }
    .small-btn { padding: 8px 16px; font-size: 0.8rem; }

    /* Main Wrapper Padding Fix */
    .main-wrapper {
        padding: 20px 15px 60px;
    }

    /* Hero Section */
    .hero { grid-template-columns: 1fr; gap: 40px; }
    .hero-content { order: 1; display: flex; text-align: center; flex-direction: column; align-items: center; }
    .hero h1 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 20px; }
    .hero p { text-align: justify; font-size: 1.1rem; padding: 16px; }

    /* Install Buttons */
    .hero-content > div {
        display: flex;
        gap: 10px !important;
        width: 100%;
        justify-content: center !important;
        flex-wrap: nowrap !important;
    }
    .hero .neo-btn {
        padding: 12px 10px;
        font-size: 0.85rem;
        width: auto;
        flex: 1;
        white-space: nowrap;
        gap: 6px;
    }

    /* Browser Mockup */
    .browser-mockup { order: 2; margin-top: 10px; border-radius: 12px; }
    .browser-content { padding: 20px 10px; }
    .app-ui { width: 100%; max-width: 100%; border-width: 2px; }
    .popup-header, .popup-body, .popup-footer { padding: 12px; }

    /* Sponsors Section Fixes */
    .sponsors-section {
        padding: 0;
    }

    .sponsors-header-box { 
        flex-direction: column; 
        gap: 20px;
        text-align: center; 
        padding: 20px 15px;
    }
    
    .sp-title-group {
        justify-content: center;
        width: 100%;
    }

    .sp-cta { 
        width: 100%; 
        justify-content: center; 
    }

    .sponsors-wrapper {
        gap: 8px;
    }

    .sp-nav-btn { 
        display: flex;
        width: 36px;
        height: 36px;
        padding: 8px;
    }
    
    .sp-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .sponsors-window { 
        mask-image: none; 
        -webkit-mask-image: none; 
    }

    /* Features */
    .features-grid { grid-template-columns: 1fr; gap: 24px; }

    /* Marquee */
    .marquee-wrapper { margin: 50px -15px 70px; }
    .marquee-content { animation: scroll 8s linear infinite; }
    .marquee-item { font-size: 1.3rem; gap: 15px; }

    /* Gallery */
    .gallery-header { 
        flex-direction: column; 
        gap: 15px; 
        text-align: center; 
    }
    .gallery-title { font-size: 1.6rem; white-space: nowrap; }
    
    .gallery-stage { padding: 40px 15px; }
    .gallery-card.vertical, .gallery-card.square { width: 100%; max-width: 320px; }
    .gallery-img-placeholder { height: auto; }

    /* Upload Section */
    .upload-section { grid-template-columns: 1fr; gap: 40px; padding-top: 20px; text-align: center; }
    .upload-text { display: flex; flex-direction: column; align-items: center; }
    .upload-heading { font-size: 1.8rem; line-height: 1.3; margin-bottom: 15px; }
    .upload-heading br { display: none; }
    .upload-desc { font-size: 1rem; text-align: justify; padding: 0 10px; }
    .format-badges { justify-content: center; }
    .settings-panel { padding: 16px; }

    /* Community */
    .community-box { grid-template-columns: 1fr; padding: 24px 16px 80px; }
    .community-title { font-size: 1.6rem; }
    .community-actions { padding-top: 20px; }
    .social-cluster {
        position: relative;
        bottom: auto;
        left: auto;
        justify-content: center;
        margin-top: 20px;
    }

    /* Footer */
    .footer-box { padding: 50px 20px; }
    .footer-title { font-size: 1.8rem; margin-bottom: 15px; }
    .footer-sub { font-size: 1rem; margin-bottom: 30px; }
    .footer-btn { 
        width: auto; 
        display: inline-flex;
        padding: 12px 24px; 
        font-size: 0.95rem; 
        white-space: nowrap; 
    }
}