/* MassaConnect Website Styles - Dark Cards on White Background */
* { 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: #0f172a;
    --accent-dark: #020617;
    --success: #10b981;
    --warning: #f59e0b;
    --card-bg: #0f172a;
    --card-bg-light: #1e293b;
}

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.9);
    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: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
}
.navbar-logo img { width: 100%; height: 100%; object-fit: cover; }
.navbar-title { font-weight: 700; font-size: 1.2rem; }
.navbar-version {
    font-size: 0.7rem;
    padding: 4px 8px;
    background: var(--card-bg);
    color: white;
    border-radius: 6px;
    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(--card-bg) !important; color: white !important; padding: 10px 20px !important; }
.navbar-cta:hover { background: var(--card-bg-light) !important; }

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
.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: var(--card-bg);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    margin-bottom: 24px;
}
.hero-badge-icon {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-badge-icon svg { width: 12px; height: 12px; fill: var(--card-bg); }
.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 { color: var(--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.3);
    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(--card-bg);
    color: white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-primary:hover {
    background: var(--card-bg-light);
    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; }

/* General Card Style - Dark cards */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s;
}
.card:hover {
    background: var(--card-bg-light);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    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; }

/* Icon containers inside dark cards - dark gray with white icons */
.feature-icon {
    width: 44px;
    height: 44px;
    background: #374151;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: white; fill: none; }

.new-icon {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.new-icon svg { width: 20px; height: 20px; stroke: white; fill: none; }

.tech-icon {
    width: 52px;
    height: 52px;
    background: #374151;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tech-icon svg { width: 26px; height: 26px; stroke: white; fill: none; }


/* Features Grid - Dark Cards */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    padding: 28px;
    background: var(--card-bg);
    border-radius: 16px;
    transition: all 0.3s;
}
.feature-card:hover {
    background: var(--card-bg-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}


.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: white; }
.feature-card p { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* New Features Grid - Dark Cards */
.new-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.new-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 14px;
    transition: all 0.2s;
}
.new-card:hover { background: var(--card-bg-light); }


.new-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    background: white;
    color: var(--card-bg);
    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; color: white; }
.new-card p { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Technology - Dark Cards */
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tech-card {
    padding: 32px;
    background: var(--card-bg);
    border-radius: 20px;
    transition: all 0.3s;
}
.tech-card:hover { background: var(--card-bg-light); transform: translateY(-4px); }
.tech-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }


.tech-card h3 { font-size: 1.15rem; font-weight: 700; color: white; }
.tech-card > p { font-size: 0.9rem; color: rgba(255,255,255,0.7); 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: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}
.tech-list li::before { content: "✓"; color: white; font-weight: 700; flex-shrink: 0; }

/* Compatibility - Dark Cards */
.compat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 40px; }
.compat-card { padding: 28px; border-radius: 16px; background: var(--card-bg); }
.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; color: white; }
.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: rgba(255,255,255,0.7); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.compat-list li:last-child { border-bottom: none; }

/* FAQ - Dark Cards */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-radius: 14px; margin-bottom: 12px; overflow: hidden; background: var(--card-bg); transition: all 0.2s; }
.faq-item:hover { background: var(--card-bg-light); }
.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; color: white; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: rgba(255,255,255,0.5); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-content { padding: 20px 24px; font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.7; }
.faq-content code { background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 6px; font-family: 'SF Mono', Monaco, monospace; font-size: 0.85rem; color: white; }

/* Donation - Dark Section */
.donation { background: var(--card-bg); padding: 80px 0; color: white; }
.donation .section-label { color: rgba(255,255,255,0.5); }
.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: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.donation-icon svg { width: 32px; height: 32px; fill: var(--card-bg); }
.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: white; color: var(--card-bg); 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(--bg-alt); }
.btn-copy.copied { background: var(--success); color: white; }
.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: none; background: var(--card-bg); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.carousel-btn:hover { background: var(--card-bg-light); }
.carousel-btn svg { width: 20px; height: 20px; color: white; }

/* Download - Dark Section */
.download { background: var(--card-bg); color: white; padding: 80px 0; }
.download .section-label { color: rgba(255,255,255,0.5); }
.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); text-align: center; }
.dev-card { display: inline-flex; flex-direction: column; align-items: center; padding: 40px 60px; background: var(--card-bg); border-radius: 24px; margin-top: 24px; }
.dev-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 3px solid rgba(255,255,255,0.2); }
.dev-card h3 { font-size: 1.2rem; font-weight: 700; color: white; }
.dev-card > p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 16px; }
.dev-social { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: white; color: var(--card-bg); text-decoration: none; border-radius: 10px; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; }
.dev-social:hover { background: var(--bg-alt); transform: translateY(-2px); }
.dev-social svg { width: 16px; height: 16px; }

/* Footer */
footer { padding: 60px 0 30px; border-top: 1px solid var(--border); background: var(--bg); }
.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 - Dark Cards */
.changelog-container { max-width: 800px; margin: 0 auto; }
.changelog-version { background: var(--card-bg); 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: white; }
.changelog-date { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.changelog-tag { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.tag-latest { background: white; color: var(--card-bg); }
.changelog-content { display: flex; flex-direction: column; gap: 16px; }
.changelog-category h4 { font-size: 0.95rem; font-weight: 600; color: white; 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: rgba(255,255,255,0.7); }
.changelog-category li::before { content: "•"; position: absolute; left: 0; color: white; 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; }
}
