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

:root {
    --bg-color: #050a14;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --neon-accent: #00f0ff;
    --danger-color: #ef4444;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --sidebar-width: 280px;
    --header-height: 70px;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 240, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #111827 0%, #050a14 100%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Header */
header {
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.main-wrapper {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
aside {
    width: var(--sidebar-width);
    background: rgba(15, 23, 42, 0.4);
    border-right: 1px solid var(--glass-border);
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    z-index: 900;
}

nav ul {
    list-style: none;
}

nav li {
    margin-bottom: 0.5rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

nav a:hover {
    color: var(--primary-hover);
    background: rgba(59, 130, 246, 0.1);
}

nav a.active {
    color: var(--neon-accent);
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.nav-section {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin: 1.5rem 0 0.75rem 1rem;
    opacity: 0.6;
}

/* Content Area */
main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 3rem 4rem;
    max-width: 1000px;
}

section {
    margin-bottom: 5rem;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1.5rem;
    color: #fff;
}

h1 { font-size: 2.5rem; margin-bottom: 2rem; }
h2 { font-size: 1.8rem; margin-top: 3rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.5rem; }
h3 { font-size: 1.4rem; margin-top: 2rem; color: var(--primary-hover); }

p {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    opacity: 0.9;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

/* Tokens and Imagery */
.token-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.token-img {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.token-info h4 {
    margin-bottom: 0.25rem;
}

/* Previews for specific UI elements */
.force-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 15px var(--primary-color);
}

.force-pulse-inner {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    animation: force-pulse-doc 2s infinite;
}

@keyframes force-pulse-doc {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(3); opacity: 0; }
    100% { transform: scale(1); opacity: 0.8; }
}

.points-preview {
    display: flex;
    gap: 8px;
}

.point-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.point-dot.filled {
    background: #F57C00;
    box-shadow: 0 0 10px #F57C00;
}

.point-dot.empty {
    background: rgba(255, 255, 255, 0.05);
}

.icon-btn-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1.2rem;
    color: #fff;
    border: 1px solid var(--glass-border);
}

/* Buttons for Documentation */
.doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0.25rem;
}

.doc-btn-red { border-color: rgba(239, 68, 68, 0.3); color: #f87171; }
.doc-btn-blue { border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }

/* Code Blocks */
pre {
    background: #020617;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin: 1.5rem 0;
    overflow-x: auto;
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.api-path {
    color: var(--neon-accent);
}

/* Images */
.doc-img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 2rem 0;
}

/* Footer */
footer {
    padding: 2rem 4rem;
    margin-left: var(--sidebar-width);
    text-align: left;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link-item {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.footer-link-item:hover {
    opacity: 1;
    color: var(--neon-accent);
}

.disclaimer {
    max-width: 1000px;
    opacity: 0.5;
    font-size: 0.72rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.play-store-btn {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

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

.download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    max-width: 500px;
}

.download-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #fff;
}

.download-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.qr-code-box {
    text-align: center;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.qr-code-box img {
    width: 80px;
    height: 80px;
}

.qr-code-box span {
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
}

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

main section {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    aside {
        display: none;
    }
    main, footer {
        margin-left: 0;
        padding: 2rem;
    }
}
