/* ---------------------------------------------------------
   Labyrinth Labs — mobile link page (lablabs.io inspired)
   Dark, clean, bold typography with neon-green accent
--------------------------------------------------------- */

:root {
    --neon: #c8ff41;
    --neon-soft: rgba(200, 255, 65, 0.12);
    --bg: #0d0f0d;
    --card: #15181530;
    --card-border: rgba(255, 255, 255, 0.08);
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

/* Subtle radial glow backdrop (lablabs vibe, no heavy lava) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(60% 40% at 50% 0%, rgba(200, 255, 65, 0.10) 0%, transparent 60%),
        radial-gradient(50% 50% at 80% 100%, rgba(200, 255, 65, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Faint grid texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
}

/* ------------------------- Logo ------------------------- */
.logo-mark {
    display: grid;
    place-items: center;
    padding: 20px 26px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    box-shadow: 0 0 40px rgba(200, 255, 65, 0.15);
    animation: floaty 6s ease-in-out infinite;
}

.logo-img {
    width: 56px;
    height: auto;
    display: block;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.wordmark {
    letter-spacing: -0.02em;
}

/* Latest blog post feature button */
.link-button--feature {
    align-items: flex-start;
    background: rgba(200, 255, 65, 0.05);
    border-color: rgba(200, 255, 65, 0.25);
}

.link-button--feature svg:first-of-type {
    margin-top: 2px;
}

.link-button--feature .arrow {
    margin-top: 2px;
}

.post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    font-size: 0.9rem;
    margin-top: 2px;
}

/* --------------------- Link buttons --------------------- */
/* Dark outlined cards, like lablabs sections, with green accent icon */
.link-button {
    width: 100%;
    padding: 0.95rem 1.25rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: #f3f4f6;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(14px);
    animation: slideInUp 0.5s ease-out forwards;
}

.link-button svg:first-of-type {
    color: var(--neon);
    flex-shrink: 0;
}

.link-button .arrow {
    color: #6b7280;
    transition: transform 0.25s ease, color 0.25s ease;
}

.link-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--neon-soft), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-button:hover {
    border-color: var(--neon);
    background: rgba(200, 255, 65, 0.06);
    transform: translateY(-2px);
}

.link-button:hover::before {
    opacity: 1;
}

.link-button:hover .arrow {
    color: var(--neon);
    transform: translateX(3px);
}

.link-button:active {
    transform: translateY(0);
}

.link-button > span,
.link-button > svg {
    position: relative;
    z-index: 1;
}

/* Staggered entrance */
.link-button:nth-child(1) { animation-delay: 0.05s; }
.link-button:nth-child(2) { animation-delay: 0.12s; }
.link-button:nth-child(3) { animation-delay: 0.19s; }
.link-button:nth-child(4) { animation-delay: 0.26s; }
.link-button:nth-child(5) { animation-delay: 0.33s; }

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

/* ------------------ CTA highlight card ------------------ */
.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(200, 255, 65, 0.14), rgba(200, 255, 65, 0.04));
    border: 1px solid rgba(200, 255, 65, 0.35);
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cta-card:hover {
    transform: translateY(-2px);
    border-color: var(--neon);
    box-shadow: 0 10px 30px rgba(200, 255, 65, 0.18);
}

.cta-card:hover svg {
    transform: translateX(4px);
}

.cta-card svg {
    transition: transform 0.25s ease;
}

/* --------------------- Social icons --------------------- */
.social-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-icon:hover {
    color: var(--neon);
    border-color: var(--neon);
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(200, 255, 65, 0.25);
}

/* --------------------- Scrollbar ------------------------ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 255, 65, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon);
}

/* --------------------- Accessibility -------------------- */
.keyboard-navigation .link-button:focus-visible,
.keyboard-navigation .social-icon:focus-visible,
.keyboard-navigation .cta-card:focus-visible {
    outline: 2px solid var(--neon);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
