:root {
    --primary-blue: #007AFF;
    --primary-purple: #5856D6;
    --bg-color: #F2F2F7;
    --card-bg: #FFFFFF;
    --text-main: #1C1C1E;
    --text-sub: #8E8E93;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 122, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(88, 86, 214, 0.1) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease;
}

.logo-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.site-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    filter: blur(25px);
    opacity: 0.4;
    z-index: 1;
    border-radius: 50%;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #1C1C1E, #3A3A3C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 500;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 10px;
    color: var(--text-sub);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 20px;
    background: rgba(0,0,0,0.06);
}

/* Invite Section */
.invite-section {
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.invite-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.invite-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.badge {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.invite-header p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.code-display {
    background: #F8F8FA;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.code-content {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 11px;
    color: var(--text-sub);
    margin-bottom: 2px;
}

.code-text {
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--primary-blue);
}

.copy-btn {
    background: var(--text-main);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* Download Section */
.download-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.btn {
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-android {
    background: linear-gradient(135deg, #3DDC84 0%, #2AB7CA 100%);
    box-shadow: 0 8px 20px rgba(61, 220, 132, 0.3);
}

.btn-ios {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.icon-box {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 24px;
    backdrop-filter: blur(4px);
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

.btn-subtitle {
    font-size: 12px;
    opacity: 0.85;
}

.shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    100% { left: 200%; }
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Action Section */
.action-section {
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.grid-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-secondary {
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between; /* Changed to space-between for arrow */
    gap: 10px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.arrow-icon {
    font-size: 12px;
    color: #C7C7CC;
}

.btn-secondary:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.text-gold { color: #FFD700; }
.text-blue { color: var(--primary-blue); }

/* Features Section */
.features-section {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-left: 4px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.feature-item {
    background: var(--card-bg);
    padding: 16px 10px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 18px;
    color: white;
}

.bg-blue { background: #007AFF; }
.bg-purple { background: #5856D6; }
.bg-orange { background: #FF9500; }
.bg-green { background: #34C759; }
.bg-cyan { background: #32ADE6; }
.bg-red { background: #FF3B30; }

.feature-item h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 10px;
    color: var(--text-sub);
    line-height: 1.2;
}

/* FAQ Section */
.faq-section {
    animation: fadeInUp 0.8s ease 0.5s backwards;
    margin-top: 10px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item summary {
    padding: 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 18px;
    color: var(--primary-blue);
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 0 16px 16px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
    border-top: 1px solid rgba(0,0,0,0.03);
    padding-top: 10px;
}

/* Footer */
.footer {
    margin-top: 30px;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

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

.footer-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 12px;
    margin: 0 5px;
}

.footer-links .sep {
    color: #E5E5EA;
    font-size: 10px;
}

.copyright {
    font-size: 11px;
    color: #C7C7CC;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
