/* ========================================
   RuieBit - Bitcoin Wallet Website
   Design matching BlueWallet.io exactly
   ======================================== */

/* CSS Variables */
:root {
    --color-bg: #ffffff;
    --color-bg-light: #f7f8fa;
    --color-primary: #0c6cf2;
    --color-text: #1d1d1f;
    --color-text-muted: #6e6e73;
    --color-border: #e8e8ed;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-width: 1100px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    opacity: 0.8;
}

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    padding: 20px 0;
    background: var(--color-bg);
}

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 60px 0 80px;
    background: var(--color-bg);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 32px;
    color: var(--color-text);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.store-btn {
    display: inline-block;
    transition: var(--transition);
}

.store-btn img {
    height: 44px;
    width: auto;
}

.store-btn:hover {
    transform: translateY(-2px);
    opacity: 1;
}

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

.direct-download a {
    color: var(--color-primary);
    text-decoration: underline;
}

.hero-phone {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-screenshot {
    max-width: 300px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 80px 0;
    background: var(--color-bg-light);
}

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

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 50px;
}

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

.feature-card {
    background: var(--color-bg);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: left;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.see-all-link {
    display: block;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
}

.see-all-link:hover {
    opacity: 0.8;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 80px 0;
    background: var(--color-bg);
    text-align: center;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.social-link svg {
    color: var(--color-text-muted);
}

.social-link:hover {
    color: var(--color-primary);
}

.social-link:hover svg {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .direct-download {
        text-align: center;
    }

    .phone-screenshot {
        max-width: 280px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .phone-screenshot {
        max-width: 240px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn img {
        height: 40px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
