/* Firefox.wawazy.com - Firefox Browser Introduction Site */
/* Theme: Firefox brand colors - Orange #FF9500, Blue #003EAA */

:root {
    --primary: #FF9500;
    --primary-dark: #E66000;
    --secondary: #003EAA;
    --secondary-dark: #002275;
    --bg: #F9F9FB;
    --card-bg: #FFFFFF;
    --text: #15141A;
    --text-secondary: #5B5B66;
    --border: #E0E0E6;
    --header-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
header {
    background: var(--card-bg);
    box-shadow: var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

nav { display: flex; gap: 4px; }

nav a {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

nav a:hover, nav a.active {
    background: rgba(255,149,0,0.1);
    color: var(--primary-dark);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #0060DF 50%, var(--primary) 100%);
    color: #fff;
    padding: 50px 20px 40px;
    text-align: center;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero p {
    font-size: 16px;
    opacity: 0.92;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,149,0,0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,149,0,0.4);
}

.btn-outline {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: #fff;
}

/* ===== SECTIONS ===== */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text);
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.card-icon.orange { background: rgba(255,149,0,0.12); color: var(--primary); }
.card-icon.blue { background: rgba(0,62,170,0.1); color: var(--secondary); }
.card-icon.green { background: rgba(18,128,64,0.1); color: #128040; }
.card-icon.red { background: rgba(226,40,70,0.1); color: #E22846; }
.card-icon.purple { background: rgba(105,52,184,0.1); color: #6934B8; }

.card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== SCREENSHOTS ===== */
.screenshots {
    background: linear-gradient(180deg, var(--bg) 0%, #EDEDF0 100%);
    padding: 40px 20px;
}

.screenshots-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.screenshot-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    background: var(--card-bg);
}

.screenshot-item img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.screenshot-item .caption {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* ===== DOWNLOAD PAGE ===== */
.download-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.download-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.download-card .version {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.download-card .req {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.platform-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.platform-card:hover { transform: translateY(-2px); }

.platform-card .platform-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.platform-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.platform-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* ===== FEATURES PAGE ===== */
.feature-block {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.feature-block:nth-child(even) { flex-direction: row-reverse; }

.feature-text { flex: 1; }
.feature-img { flex: 1; }

.feature-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-img img {
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    user-select: none;
}

.faq-question:hover { background: rgba(255,149,0,0.04); }

.faq-question::after {
    content: "+";
    font-size: 20px;
    color: var(--primary);
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    content: "-";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 500px; }

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.cta h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */
footer {
    background: #15141A;
    color: rgba(255,255,255,0.6);
    padding: 30px 20px;
    text-align: center;
    font-size: 13px;
}

footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

footer .footer-links {
    margin-bottom: 12px;
}

footer .footer-links a {
    color: rgba(255,255,255,0.7);
    margin: 0 12px;
    font-size: 13px;
}

footer .footer-links a:hover { color: var(--primary); }

footer .disclaimer {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* ===== PAGE HERO (sub pages) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #0060DF 100%);
    color: #fff;
    padding: 36px 20px;
    text-align: center;
}

.page-hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-hero p {
    font-size: 15px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.comparison-table th {
    background: var(--secondary);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,149,0,0.03); }

/* ===== DOWNLOAD MODAL ===== */
.download-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.download-modal.active { display: flex; }

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover { color: var(--text); }

.modal-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.qr-wrapper {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 16px;
}

.qr-breathing {
    border: 3px solid var(--primary);
    border-radius: 8px;
    padding: 6px;
    display: inline-block;
    animation: qrBreathe 2.5s ease-in-out infinite;
}

.qr-breathing img {
    display: block;
    width: 150px;
    height: 150px;
}

@keyframes qrBreathe {
    0%, 100% {
        border-color: var(--primary);
        box-shadow: 0 0 6px rgba(255,149,0,0.25);
        transform: scale(1);
    }
    50% {
        border-color: #FFB84D;
        box-shadow: 0 0 18px rgba(255,149,0,0.45);
        transform: scale(1.04);
    }
}

.modal-tips {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 8px;
}

.modal-tips strong { color: var(--text); }

.modal-warning {
    font-size: 12px;
    color: #E66000;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255,149,0,0.08);
    border-radius: 6px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner { height: 54px; }
    .logo { font-size: 17px; }
    .logo img { width: 30px; height: 30px; }
    nav a { padding: 6px 10px; font-size: 13px; }
    .hero { padding: 36px 20px 30px; }
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 14px; }
    .hero-logo { width: 72px; height: 72px; }
    .btn { padding: 10px 20px; font-size: 14px; }
    .section { padding: 30px 16px; }
    .section-title { font-size: 20px; }
    .cards-grid { grid-template-columns: 1fr; gap: 14px; }
    .feature-block, .feature-block:nth-child(even) { flex-direction: column; gap: 16px; }
    .screenshot-grid { grid-template-columns: 1fr; }
    .platform-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 22px; }
}

@media (max-width: 480px) {
    nav { gap: 2px; }
    nav a { padding: 6px 8px; font-size: 12px; }
    .hero-buttons { flex-direction: column; align-items: center; }
}
