@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   1. VARIABLES & GLOBALS
   ========================================================================== */
:root {
    --gold-primary: #D4AF37;
    --gold-dim: rgba(212, 175, 55, 0.7);
    --gold-border: rgba(212, 175, 55, 0.4);
    --gold-light: rgba(212, 175, 55, 0.1);

    --bg-dark: #0A0A0A;
    --bg-blue: #0047FF;
    --bg-green: #032014;

    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.8);
    --text-dark: #1F2937;

    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* ==========================================================================
   2. LAYOUT & BACKGROUNDS
   ========================================================================== */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.page-index,
.page-index .app-container {
    background-color: #070605;
    background-image:
        radial-gradient(ellipse at 0% 30%, rgba(212, 175, 55, 0.35) 0%, transparent 65%),
        radial-gradient(ellipse at 100% 80%, rgba(212, 175, 55, 0.25) 0%, transparent 65%),
        radial-gradient(ellipse at 50% -20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
}

.page-index::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: url('/assets/pattern-particles.png') center top / cover no-repeat;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.page-silvergram,
.page-silvergram .app-container {
    background: #0047FF url('/assets/bg-silvergram.png') center top / cover no-repeat;
}

.page-meezan,
.page-meezan .app-container {
    background: #0B3D25 url('/assets/bg-meezan.png') center top / cover no-repeat;
}

.page-goldgram,
.page-goldgram .app-container {
    background: #1A150D url('/assets/bg-goldgram.png') center top / cover no-repeat;
}

/* ==========================================================================
   3. HERO & HEADERS
   ========================================================================== */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInDown 0.6s ease-out;
    flex: 1;
}

.hero-subpage {
    margin-top: 16px;
}

.brand-logo {
    width: 200px;
    max-width: 80%;
    height: auto;
    margin-bottom: 24px;
}

.silvergram-logo {
    width: 200px;
    margin-bottom: clamp(16px, 5vh, 40px);
}

.meezan-logo {
    width: 120px;
    margin-bottom: clamp(16px, 5vh, 40px);
}

.goldgram-logo {
    width: 200px;
    margin-bottom: clamp(16px, 5vh, 40px);
}

.fallback-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: clamp(60px, 18vh, 180px);
}

.tagline {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: auto;
}

.subpage-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    margin-top: auto;
}

.subpage-subtitle {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.9;
}

/* ==========================================================================
   4. PREMIUM CARDS
   ========================================================================== */
.premium-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.glass-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: var(--text-main);
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.glass-card:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: var(--gold-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.glass-card:hover::before {
    transform: translateX(100%);
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.card-text {
    flex: 1;
    font-size: 12px;
    line-height: 1.5;
    padding-right: 90px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.card-visual {
    position: absolute;
    right: 40px;
    top: 0;
    bottom: 0;
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-visual-silvergram img {
    transform: scale(1.20);
}

.card-visual-meezan img {
    transform: scale(1.45);
}

.card-visual-goldgram img {
    transform: scale(1.09);
}

.card-action {
    position: relative;
    z-index: 2;
    margin-left: auto;
}

/* ==========================================================================
   5. BUTTONS & LINK LIST
   ========================================================================== */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.link-btn {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.outline-btn {
    background: transparent;
    border: 1px solid var(--gold-border);
    color: var(--text-main);
}

.outline-btn:hover {
    background: var(--gold-light);
    border-color: var(--gold-primary);
}

.solid-btn {
    background: #FFFFFF;
    color: var(--text-dark);
    border: 1px solid transparent;
}

.solid-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-border-gold {
    border: 2px solid var(--gold-primary);
}

.btn-text {
    flex: 1;
}

.nav-back {
    position: absolute;
    top: 24px;
    left: 24px;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: background 0.2s;
    text-decoration: none;
}

.nav-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   6. ICONS & UTILITIES
   ========================================================================== */
.icon-slot {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outline-btn .icon-slot {
    color: var(--gold-primary);
}

.icon-slot i {
    font-size: 22px;
}

/* Menebalkan ikon outline agar seimbang dengan ikon solid */
.fa-instagram,
.fa-threads,
.fa-whatsapp {
    -webkit-text-stroke: 0.8px currentColor;
}

.chevron {
    font-size: 16px;
    display: flex;
    align-items: center;
    color: var(--gold-primary);
    opacity: 0.8;
    transition: transform 0.2s;
}

.link-btn:hover .chevron {
    transform: translateX(4px);
    opacity: 1;
}

.solid-btn .chevron {
    color: #9CA3AF;
}

.chevron-gold {
    color: var(--gold-primary) !important;
}

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

.text-gold-dim {
    color: var(--gold-dim);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.app-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    padding-bottom: 8px;
}

.app-footer p {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ==========================================================================
   8. 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);
    }
}

/* ==========================================================================
   9. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 480px) {
    .app-container {
        min-height: auto;
        padding: 32px 16px;
        gap: 16px;
    }

    .hero {
        flex: none;
    }

    .hero-subpage {
        margin-top: 8px;
    }

    .brand-logo {
        width: 180px;
        margin-bottom: 16px;
    }

    .main-logo {
        width: 110px;
        margin-bottom: 16px;
    }

    .tagline,
    .subpage-title {
        margin-top: 32px;
    }

    .tagline {
        font-size: 13px;
    }

    .subpage-title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .subpage-subtitle {
        font-size: 12px;
    }

    .premium-cards {
        gap: 12px;
    }

    .glass-card {
        padding: 12px 16px;
    }

    .card-text {
        font-size: 11px;
        padding-right: 95px;
    }

    .card-visual {
        width: 75px;
        right: 35px;
    }

    .link-list {
        gap: 10px;
    }

    .link-btn {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 12px;
    }

    .icon-slot {
        width: 22px;
        height: 22px;
        margin-right: 12px;
    }
}

@media (min-width: 481px) {
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        z-index: -1;
        pointer-events: none;
    }

    .app-container {
        max-width: 414px;
        border-radius: 36px;
        border: 12px solid #000;
        box-shadow:
            0 0 0 1px #222,
            0 30px 60px rgba(0, 0, 0, 0.8),
            inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        height: auto;
        min-height: 90vh;
        margin: 5vh auto;
        overflow: hidden;
    }
}