/* MassaPay Website Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* Tab Navigation - Show/Hide Sections */
.content-section {
    display: none;
}
.content-section.active {
    display: block;
}
.navbar-menu a.active {
    color: var(--accent);
    font-weight: 600;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}
.navbar-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
}
.navbar-title { font-weight: 700; font-size: 1.2rem; }
.navbar-version {
    font-size: 0.7rem;
    padding: 4px 8px;
    background: var(--bg-alt);
    border-radius: 6px;
    color: var(--text-muted);
    font-weight: 500;
}
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.navbar-menu a {
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}
.navbar-menu a:hover {
    color: var(--text);
    background: var(--bg-alt);
}
.navbar-cta {
    background: var(--text) !important;
    color: white !important;
    padding: 10px 20px !important;
}
.navbar-cta:hover { background: #1e293b !important; }

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(59,130,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-text { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.hero-badge-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-badge-icon svg { width: 12px; height: 12px; }
.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text);
}
.hero h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.hero-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-light); margin-top: 2px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-phone {
    width: 280px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.05);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s;
}
.hero-phone:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.hero-phone img { width: 100%; display: block; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--text);
    color: white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--text-muted);
    background: var(--bg-alt);
}
.btn-white { background: white; color: var(--text); }
.btn-white:hover { background: var(--bg-alt); }
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* Section Styles */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 8px;
}
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 12px auto 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(59,130,246,0.1);
    transform: translateY(-4px);
}
.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* New Features Grid */
.new-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.new-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.2s;
}
.new-card:hover { border-color: var(--accent); }
.new-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1.2rem;
}
.new-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    border-radius: 100px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.new-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.new-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Technology */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.tech-card {
    padding: 32px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s;
}
.tech-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(59,130,246,0.1);
}
.tech-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.tech-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--text), #334155);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}
.tech-card h3 { font-size: 1.15rem; font-weight: 700; }
.tech-card > p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.tech-list { list-style: none; }
.tech-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.tech-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

/* Compatibility */
.compat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}
.compat-card {
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: white;
}
.compat-card.compatible { border-left: 4px solid var(--success); }
.compat-card.incompatible { border-left: 4px solid #ef4444; }
.compat-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.compat-card h3 .icon-yes { color: var(--success); }
.compat-card h3 .icon-no { color: #ef4444; }
.compat-list { list-style: none; }
.compat-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.compat-list li:last-child { border-bottom: none; }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.2s;
}
.faq-item:hover { border-color: var(--accent); }
.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary {
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}
.faq-content {
    padding: 20px 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.faq-content code {
    background: var(--bg-alt);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.85rem;
}

/* Donation */
.donation {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 0;
    color: white;
}
.donation .section-label { color: #60a5fa; }
.donation .section-title { color: white; }
.donation .section-desc { color: rgba(255,255,255,0.7); }
.donation-card {
    max-width: 600px;
    margin: 40px auto 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
}
.donation-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}
.donation-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.donation-card > p { color: rgba(255,255,255,0.6); font-size: 0.95rem; margin-bottom: 24px; }
.wallet-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.wallet-address {
    flex: 1;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    word-break: break-all;
    text-align: left;
}
.btn-copy {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.btn-copy:hover { background: var(--accent-dark); }
.btn-copy.copied { background: var(--success); }
.donation-note { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* Carousel */
.carousel-container { position: relative; max-width: 100%; overflow: hidden; }
.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
    flex: 0 0 220px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    transition: all 0.3s;
}
.carousel-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 50px rgba(0,0,0,0.18);
}
.carousel-item img { width: 100%; height: auto; display: block; }
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.carousel-btn:hover { background: var(--bg-alt); border-color: var(--text); }
.carousel-btn svg { width: 20px; height: 20px; color: var(--text); }

/* Download */
.download { background: var(--text); color: white; padding: 80px 0; }
.download .section-label { color: #60a5fa; }
.download .section-title { color: white; }
.download .section-desc { color: rgba(255,255,255,0.7); }
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 48px;
}
.download-info h3 { font-size: 1.4rem; margin-bottom: 12px; }
.download-info p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.download-stats { display: flex; gap: 32px; margin-bottom: 28px; }
.download-stat strong { display: block; font-size: 1.2rem; }
.download-stat span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.download-phone { display: flex; justify-content: center; }
.download-phone img { width: 240px; border-radius: 28px; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }

/* Developer */
.developer { padding: 80px 0; background: var(--bg-alt); text-align: center; }
.dev-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 60px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    margin-top: 24px;
}
.dev-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--bg-alt);
}
.dev-card h3 { font-size: 1.2rem; font-weight: 700; }
.dev-card > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.dev-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--text);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.dev-social:hover { background: #1e293b; transform: translateY(-2px); }
.dev-social svg { width: 16px; height: 16px; }

/* Footer */
footer { padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; }
.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Changelog */
.changelog-container {
    max-width: 800px;
    margin: 0 auto;
}
.changelog-version {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.changelog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.changelog-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}
.changelog-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.changelog-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.tag-latest {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
}
.changelog-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.changelog-category h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.changelog-category ul {
    list-style: none;
    padding-left: 0;
}
.changelog-category li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.changelog-category li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .download-grid { grid-template-columns: 1fr; text-align: center; }
    .download-stats { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: 1fr; }
    .compat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .navbar-menu { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .features-grid, .new-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .wallet-box { flex-direction: column; }
    .wallet-address { text-align: center; }
}
