



@font-face {
  font-family: 'vazirmtn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://bebinplus.com/fonts/Vazirmatn-Regular.woff2) format('woff2');
}

@font-face {
  font-family: 'vazirmtn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://bebinplus.com/fonts/Vazirmatn-Bold.woff2) format('woff2');
}

:root {
    --primary-color: #ffc107;
    --primary-hover: #ffca2c;
    --btn-text-color: #212529;
    --body-bg: #ffffff;
    --section-bg: #f8f9fa;
    --text-color: #333;
    --text-muted: #666;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --header-bg: rgba(255, 255, 255, 0.6);
    --footer-bg: #1c1c1c;
    --footer-text: #aaa;
    --header-border: rgba(0,0,0,0.05);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'vazirmtn', Tahoma, sans-serif;
    line-height: 1.6;
    background-color: var(--body-bg);
    color: var(--text-color);
    text-align: right;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

h1, h2 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.hero-description {
    margin-bottom: 2.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Header */
.header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--header-border);
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--btn-text-color);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

/* Main Content */
.main-content {
    padding: 8rem 0 4rem; /* Adjusted for fixed header */
    text-align: center;
}

.hero-logo-container {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero-logo {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    box-shadow: 0 0 15px 5px rgba(255, 193, 7, 0.4),
                0 0 30px 15px rgba(255, 193, 7, 0.2),
                0 0 50px 25px rgba(255, 193, 7, 0.1);
    animation: soft-glow 4s infinite ease-in-out;
}

@keyframes soft-glow {
    0% {
        box-shadow: 0 0 15px 5px rgba(255, 193, 7, 0.4),
                    0 0 30px 15px rgba(255, 193, 7, 0.2),
                    0 0 50px 25px rgba(255, 193, 7, 0.1);
    }
    50% {
        box-shadow: 0 0 20px 8px rgba(255, 193, 7, 0.5),
                    0 0 40px 20px rgba(255, 193, 7, 0.3),
                    0 0 60px 30px rgba(255, 193, 7, 0.15);
    }
    100% {
        box-shadow: 0 0 15px 5px rgba(255, 193, 7, 0.4),
                    0 0 30px 15px rgba(255, 193, 7, 0.2),
                    0 0 50px 25px rgba(255, 193, 7, 0.1);
    }
}

.screenshots {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

.hero-screenshot {
    max-width: 700px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download {
    background-color: var(--primary-color);
    color: var(--btn-text-color);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-download svg {
    stroke: var(--btn-text-color);
}


/* Social Section */
.social-section {
    padding: 4rem 0;
    text-align: center;
    background-image: linear-gradient(to bottom, var(--body-bg) 0%, var(--section-bg) 100%);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s ease-in-out;
}

.social-btn:hover {
    background-image: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    color: var(--btn-text-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.5);
    border-color: transparent;
}

.social-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* Tooltip Styles */
.social-btn::before,
.social-btn::after {
    --scale: 0;
    --tooltip-color: #212529;
    --arrow-size: 6px;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(var(--translate-y, 0)) scale(var(--scale));
    transition: 150ms transform;
    transform-origin: bottom center;
}

.social-btn::before {
    --translate-y: calc(-100% - var(--arrow-size));
    content: attr(data-tooltip);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    width: max-content;
    background: var(--tooltip-color);
    font-size: 0.9rem;
}

.social-btn:hover::before,
.social-btn:hover::after {
    --scale: 1;
}

.social-btn::after {
    --translate-y: calc(0% - var(--arrow-size) / 2);
    content: '';
    border-style: solid;
    border-width: var(--arrow-size) var(--arrow-size) 0 var(--arrow-size);
    border-color: var(--tooltip-color) transparent transparent transparent;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0;
}

.footer p {
    color: var(--footer-text);
    font-size: 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #fff;
}
.footer-bottom a:hover {
    text-decoration: underline;
}


/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 90%;
    width: 400px;
}

.modal-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.modal-content .btn {
    background-color: var(--primary-color);
    color: var(--btn-text-color);
    border: none;
    cursor: pointer;
    width: 100%;
}

.modal-content .btn:hover {
     background-color: var(--primary-hover);
}

.modal-content .btn-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    margin-top: 0.75rem;
    width: 100%;
}

.modal-content .btn-secondary:hover {
    background-color: var(--section-bg);
    color: var(--text-color);
}


/* Changelog Section */
.changelog-section {
    background-color: var(--section-bg);
    padding: 4rem 0;
    text-align: center;
    transition: background-color 0.3s ease;
}

.changelog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    text-align: right;
}

.changelog-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

.changelog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.changelog-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.changelog-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.version-tag {
    background-color: #fff8e1;
    color: #f57f17;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
}

.release-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.changes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changes-list li {
    text-align: right;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 1rem;
    color: var(--text-color);
}

.change-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

.change-tag.mobile {
    background-color: #e3f2fd;
    color: #1565c0;
}
.change-tag.tv {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.change-tag.general {
    background-color: #f5f5f5;
    color: #616161;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    text-align: center;
}

.faq-accordion {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: right;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    list-style: none; /* Hide default summary marker */
}

.faq-question::-webkit-details-marker {
    display: none; /* Hide default summary marker for WebKit */
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--text-muted);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1rem;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

/* Active state for FAQ item */
.faq-item[open] > .faq-question {
    color: var(--primary-color);
}
.faq-item[open] > .faq-question .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-item[open] .faq-answer {
    max-height: 200px;
}


/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    .hero-logo {
        width: 96px;
        height: 96px;
    }
    .hero-screenshot {
        max-width: 350px;
    }
    .download-buttons {
        display: flex;
        flex-direction: column;
    }
    /* Reordering buttons for mobile view */
    #btn-mobile { order: 1; }
    #btn-iphone { order: 2; }
    #btn-windows { order: 3; }
    #btn-box { order: 4; }
    #btn-tv { order: 5; }

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

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .changelog-grid {
        grid-template-columns: 1fr 1fr;
    }
}