/* ===========================
   SPLASH SCREEN
   =========================== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1C1C1C;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#splash-screen.splash-exit {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.splash-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-diamond {
    width: 120px;
    height: 120px;
    background: #DDF247;
    border-radius: 20px;
    transform: rotate(45deg) scale(0);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: diamondIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.splash-globe {
    width: 80px;
    height: 80px;
    transform: rotate(-45deg);
    opacity: 0;
    animation: globeDraw 0.8s ease-out 0.5s forwards;
}

.splash-globe circle,
.splash-globe path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: strokeDraw 1s ease-out 0.6s forwards;
}

.splash-globe path:nth-child(2) {
    animation-delay: 0.7s;
}

.splash-globe path:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes diamondIn {
    0% {
        transform: rotate(45deg) scale(0);
        opacity: 0;
    }

    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }
}



@keyframes globeDraw {
    0% {
        opacity: 0;
        transform: rotate(-45deg) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: rotate(-45deg) scale(1);
    }
}

@keyframes strokeDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* ===========================
   VARIABLES
   =========================== */
:root {
    --bg-color: #1C1C1C;
    --text-color: #FFFFFF;
    --accent-color: #DDF247;
    --secondary-btn-bg: #FFFFFF;
    --secondary-btn-text: #1C1C1C;
    --font-title: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Trenda', 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 100px;
    /* Prevent overlap with fixed navbar + top-bar */
}

/* Header */
header {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-out;
}

.logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure logo fits nicely */
}

.tagline {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

/* Main / Links */
main {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 60px;
    height: auto;
    padding: 14px 100px 14px 20px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.2s ease,
        opacity 0.2s ease;
    position: relative;
    overflow: hidden;
}

.link-btn .icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-btn .label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-btn .icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.link-btn .tag {
    position: absolute;
    right: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.link-btn.primary .tag {
    background: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.6);
}

/* Primary Button Style */
.link-btn.primary {
    background-color: var(--accent-color);
    color: #000000;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(221, 242, 71, 0.3);
}

/* Secondary Button Style */
.link-btn.secondary {
    background-color: var(--secondary-btn-bg);
    color: var(--secondary-btn-text);
    border: 2px solid var(--accent-color);
    /* Yellow border as requested */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hover & Active States */
.link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(221, 242, 71, 0.4);
    /* Glow effect */
}

.link-btn.secondary:hover {
    background-color: #f0f0f0;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.link-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    margin-top: 40px;
    text-align: center;
    opacity: 0.6;
    font-size: 12px;
    animation: fadeIn 0.8s ease-out 0.5s backwards;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   TOP BAR (Lang Switcher + Access Button)
   =========================== */
.top-bar {
    position: fixed;
    top: 70px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    z-index: 999;
    flex-wrap: wrap;
    max-width: calc(100% - 40px);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    z-index: 100;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 90px;
    justify-content: space-between;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(28, 28, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lang-menu.active {
    display: flex;
}

.lang-option {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-option.selected {
    color: var(--accent-color);
    font-weight: 700;
    background: rgba(221, 242, 71, 0.1);
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.lang-arrow {
    font-size: 10px;
}

/* Access Button (Login / Download) */
.access-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
}

.access-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(221, 242, 71, 0.3);
    transform: translateY(-2px);
}

/* Store Modal */
.store-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.store-modal-overlay.active {
    display: flex;
}

.store-modal {
    background: #1C1C1C;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px 30px 30px;
    max-width: 360px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.store-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.store-modal-close:hover {
    color: var(--text-color);
}

.store-modal-title {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 24px;
}

.store-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.store-modal-btn.apple {
    background: var(--text-color);
    color: var(--bg-color);
}

.store-modal-btn.apple:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.store-modal-btn.google {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.store-modal-btn.google:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(221, 242, 71, 0.3);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        gap: 28px;
    }

    .link-btn {
        font-size: 14px;
        padding: 12px 85px 12px 16px;
        min-height: 54px;
    }

    .link-btn .icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        margin-right: 8px;
    }

    .link-btn .tag {
        font-size: 8px;
        padding: 2px 6px;
        right: 10px;
    }

    .container {
        margin-top: 120px;
    }

    .top-bar {
        top: 68px;
        left: 0;
        right: 0;
        justify-content: center;
        gap: 10px;
        max-width: 100%;
        padding: 0 15px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 11px;
        min-width: unset;
    }

    .access-btn {
        padding: 6px 14px;
        font-size: 11px;
    }

    .logo-container {
        width: 80px;
        height: 80px;
    }

    .tagline {
        font-size: 14px;
    }
}

@media (max-width: 340px) {
    .link-btn {
        font-size: 13px;
        padding: 12px 75px 12px 14px;
    }

    .link-btn .tag {
        font-size: 7px;
        padding: 2px 5px;
        right: 8px;
    }
}

/* Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(28, 28, 28, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-brand img {
    height: 30px;
    width: auto;
    display: block;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: color var(--transition-speed);
}

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

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all var(--transition-speed);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #1A1A1A;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

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

    .nav-links a {
        font-size: 18px;
    }

    /* Burger Animation */
    .burger-menu.toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .burger-menu.toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}