/* Aflao Website — Modern White Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #F7931A;
    --primary-light: #FDB94D;
    --primary-dark: #D97D0A;
    --primary-glow: rgba(247, 147, 26, 0.15);
    --primary-glow-strong: rgba(247, 147, 26, 0.25);
    --dark: #0F172A;
    --dark-secondary: #1E293B;
    --text: #334155;
    --text-light: #64748B;
    --text-muted: #94A3B8;
    --white: #FFFFFF;
    --bg: #FFFFFF;
    --bg-soft: #F8FAFC;
    --bg-muted: #F1F5F9;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, 0.12);
    --shadow-orange: 0 10px 30px -5px rgba(247, 147, 26, 0.2);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    overflow-x: hidden;
}

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

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo img {
    width: 36px;
    height: 36px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--dark);
    background: var(--bg-muted);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 160px 0 120px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

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

.hero-image {
    flex: 0 0 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 260px;
    max-width: 260px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 30px 60px rgba(247, 147, 26, 0.15));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(1deg); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 35px -5px rgba(247, 147, 26, 0.35);
}

.btn-secondary {
    background: var(--bg-muted);
    color: var(--dark);
    border: 1px solid var(--border);
}

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

/* ===== FEATURES SECTION ===== */
.features {
    padding: 120px 0;
    background: var(--bg-soft);
    position: relative;
}

.features h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.features > .container > p {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 64px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    text-align: left;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    background: var(--primary-glow);
    border-radius: 14px;
}

.feature-card h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

/* ===== WALLET SECTION ===== */
.wallet {
    padding: 120px 0;
    background: var(--dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.wallet::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.wallet .container {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.wallet-content {
    flex: 1;
}

.wallet-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.wallet-content > p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
}

.wallet-features {
    list-style: none;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
}

.wallet-features li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.wallet-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-features li::after {
    content: "✓";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
}

.wallet-image {
    flex: 0 0 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-image img {
    width: 220px;
    max-width: 220px;
    filter: drop-shadow(0 30px 60px rgba(247, 147, 26, 0.2));
    animation: float 4s ease-in-out infinite;
    animation-delay: -2s;
}

/* Store Button */
.download-buttons {
    display: flex;
    gap: 12px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    color: var(--dark);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

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

.store-icon {
    font-size: 22px;
    color: var(--primary);
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-text small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    font-weight: 600;
}

.store-text strong {
    font-size: 16px;
    font-weight: 700;
}

/* ===== NETWORK SECTION ===== */
.network {
    padding: 120px 0;
    background: var(--bg-soft);
    position: relative;
}

.network h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.network-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 64px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.network-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 64px;
}

.stat {
    text-align: center;
    background: var(--white);
    padding: 32px 48px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    min-width: 180px;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-glow-strong);
}

.stat-value {
    display: block;
    font-size: 44px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.network-info {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.network-info h3 {
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.network-table {
    width: 100%;
    border-collapse: collapse;
}

.network-table td {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
}

.network-table tr:last-child td {
    border-bottom: none;
}

.network-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.network-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--dark);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 64px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-brand img {
    width: 36px;
    height: 36px;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
    padding: 130px 0 80px;
    min-height: 100vh;
}

.legal-page h1 {
    color: var(--dark);
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.legal-page .last-updated {
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 14px;
}

.legal-page h2 {
    color: var(--dark);
    font-size: 22px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.legal-page p {
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.8;
}

.legal-page ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-page li {
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.7;
}

.legal-page li::marker {
    color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .network-stats {
        gap: 24px;
    }

    .stat {
        padding: 24px 32px;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 90px 32px 32px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 16px;
        padding: 12px 16px;
        width: 100%;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-image {
        flex: none;
        order: -1;
    }

    .hero-image img {
        width: 180px;
    }

    .features {
        padding: 80px 0;
    }

    .features h2 {
        font-size: 32px;
    }

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

    .wallet {
        padding: 80px 0;
    }

    .wallet .container {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

    .wallet-content h2 {
        font-size: 32px;
    }

    .wallet-image {
        order: -1;
        flex: none;
    }

    .wallet-features {
        grid-template-columns: 1fr;
        text-align: left;
    }

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

    .network {
        padding: 80px 0;
    }

    .network h2 {
        font-size: 32px;
    }

    .network-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .stat {
        width: 100%;
        max-width: 320px;
    }

    .network-info {
        padding: 28px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

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

    .legal-page {
        padding: 110px 0 60px;
    }

    .legal-page h1 {
        font-size: 30px;
    }
}

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

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .stat-value {
        font-size: 36px;
    }
}
