/* ─────────────────────────────────────────────
   Instant Ventures – Portal Navigation
   Clean, sleek, glassmorphism-inspired design
   ───────────────────────────────────────────── */

:root {
    --bg:         #0b0f1a;
    --surface:    rgba(255, 255, 255, 0.04);
    --surface-h:  rgba(255, 255, 255, 0.08);
    --border:     rgba(255, 255, 255, 0.08);
    --border-h:   rgba(255, 255, 255, 0.16);
    --text:       #e4e7ec;
    --text-muted: #8b92a5;
    --accent:     #3bba6e;          /* green from the logo */
    --accent-b:   #2fa05c;
    --blue:       #3a9bdc;          /* blue from the logo droplet */
    --radius:     16px;
    --ease:       cubic-bezier(.4, 0, .2, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* ── Ambient floating orbs ── */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .25;
    will-change: transform;
}

.orb-1 {
    width: 480px; height: 480px;
    background: var(--accent);
    top: -10%; left: -8%;
    animation: drift 18s ease-in-out infinite alternate;
}

.orb-2 {
    width: 360px; height: 360px;
    background: var(--blue);
    bottom: -5%; right: -5%;
    animation: drift 22s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    width: 260px; height: 260px;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    top: 50%; left: 55%;
    transform: translate(-50%, -50%);
    animation: drift 15s ease-in-out infinite alternate;
    opacity: .12;
}

@keyframes drift {
    0%   { transform: translate(0, 0)   scale(1);   }
    50%  { transform: translate(30px, -20px) scale(1.08); }
    100% { transform: translate(-20px, 15px) scale(.95); }
}

/* ── Container ── */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* ── Brand ── */
.brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.brand-logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 24px rgba(59, 186, 110, .25));
    transition: transform .5s var(--ease), filter .5s var(--ease);
}

.brand-logo:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 0 36px rgba(59, 186, 110, .4));
}

.brand-tagline {
    font-size: .85rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: .03em;
}

/* ── Navigation grid ── */
.nav-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* ── Card ── */
.nav-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition:
        background .3s var(--ease),
        border-color .3s var(--ease),
        box-shadow .3s var(--ease),
        transform .3s var(--ease);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Subtle glow on hover */
.nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .4s var(--ease);
    background: radial-gradient(
        ellipse 200px 120px at var(--mx, 50%) var(--my, 50%),
        rgba(59, 186, 110, .10),
        transparent 70%
    );
    pointer-events: none;
}

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

.nav-card:hover {
    background: var(--surface-h);
    border-color: var(--border-h);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,.25), 0 0 0 1px rgba(59,186,110,.08);
}

.nav-card:active {
    transform: translateY(0);
    transition-duration: .1s;
}

/* ── Card parts ── */
.card-icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(59, 186, 110, .08);
    display: grid;
    place-items: center;
    transition: background .3s var(--ease);
}

.nav-card:hover .card-icon {
    background: rgba(59, 186, 110, .14);
}

.card-icon svg {
    width: 20px; height: 20px;
    color: var(--accent);
    transition: color .3s var(--ease);
}

.card-body {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.card-desc {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: .15rem;
    font-weight: 400;
}

.card-arrow {
    flex-shrink: 0;
    width: 20px; height: 20px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.card-arrow svg {
    width: 100%; height: 100%;
    color: var(--text-muted);
}

.nav-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Footer ── */
.footer {
    text-align: center;
}

.footer p {
    font-size: .72rem;
    color: var(--text-muted);
    opacity: .5;
    letter-spacing: .02em;
}

/* ── Entrance animation ── */
.brand-logo,
.brand-tagline,
.nav-card,
.footer {
    opacity: 0;
    transform: translateY(16px);
}

.brand-logo.visible,
.brand-tagline.visible,
.nav-card.visible,
.footer.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* Stagger delays are set via JS */

/* ── Responsive ── */
@media (max-width: 480px) {
    .container { padding: 2rem 1rem; }
    .brand-logo { width: 80px; }
    .nav-card { padding: 1rem 1.1rem; }
    .card-icon { width: 38px; height: 38px; }
    .card-icon svg { width: 18px; height: 18px; }
}

/* ── Reduced motion preference ── */
@media (prefers-reduced-motion: reduce) {
    .orb { animation: none; }
    .brand-logo.visible,
    .brand-tagline.visible,
    .nav-card.visible,
    .footer.visible {
        transition: none;
    }
    .nav-card:hover { transform: none; }
}
