/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0f;
    --bg-card: rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.16);
    --text-primary: #f0f0f5;
    --text-secondary: #9090a8;
    --text-muted: #606078;
    --accent: #f97316;
    --accent-glow: rgba(249,115,22,0.3);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* App accent colors */
    --bingelist: #f97316;
    --bingelist-glow: rgba(249,115,22,0.2);
    --deardates: #C62828;
    --deardates-glow: rgba(198,40,40,0.2);
    --emojical: #f59e0b;
    --emojical-glow: rgba(245,158,11,0.2);
    --brainza: #6366f1;
    --brainza-glow: rgba(99,102,241,0.2);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== BACKGROUND ===== */
.bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.bg-orb {
    position: fixed; border-radius: 50%; filter: blur(80px);
    pointer-events: none; z-index: 0; opacity: 0.35;
    animation: orb-float 12s ease-in-out infinite;
}
.bg-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #f97316 0%, transparent 70%); top: -200px; left: -150px; animation-delay: 0s; }
.bg-orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #D32F2F 0%, transparent 70%); top: 40%; right: -100px; animation-delay: -4s; }
.bg-orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, #3b82f6 0%, transparent 70%); bottom: -100px; left: 30%; animation-delay: -8s; }

@keyframes orb-float {
    0%, 100% { transform: translateY(0) scale(1); }
    33% { transform: translateY(-30px) scale(1.05); }
    66% { transform: translateY(20px) scale(0.97); }
}

/* ===== LAYOUT ===== */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ===== HEADER ===== */
#site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 32px;
    backdrop-filter: blur(20px);
    background: rgba(10,10,15,0.7);
    border-bottom: 1px solid var(--border);
}
.header-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.header-brand { display: flex; align-items: center; gap: 12px; }
.brand-avatar {
    width: 36px; height: 36px;
    display: block; object-fit: contain; flex-shrink: 0;
}
.brand-info { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 15px; color: var(--text-primary); }
.header-link {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px; border-radius: 100px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.header-link:hover { color: var(--text-primary); border-color: var(--border-hover); background: rgba(255,255,255,0.05); }

/* ===== HERO ===== */
#hero {
    padding: 160px 24px 80px;
    text-align: center;
    position: relative; z-index: 1;
}
.hero-content { max-width: 620px; margin: 0 auto; }
.hero-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 100px;
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.35);
    font-size: 13px; color: #fdba74;
    font-weight: 500; margin-bottom: 28px;
    animation: fade-up 0.6s ease both;
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #f97316;
    animation: pulse-anim 2s ease-in-out infinite;
    box-shadow: 0 0 8px #f97316;
}
@keyframes pulse-anim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

#hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 6vw, 58px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    animation: fade-up 0.6s 0.1s ease both;
}
.gradient-text {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
#hero-desc {
    font-size: 17px; color: var(--text-secondary); line-height: 1.7;
    animation: fade-up 0.6s 0.2s ease both;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== APPS SECTION ===== */
#apps-section { padding: 20px 0 80px; position: relative; z-index: 1; }
.apps-list { display: flex; flex-direction: column; gap: 20px; }

/* ===== APP CARD ===== */
.app-card {
    position: relative; border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
    transition: all var(--transition);
    animation: fade-up 0.6s ease both;
}
.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4) { animation-delay: 0.4s; }

.app-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* glow accent stripe on left */
.app-card::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; border-radius: 3px 0 0 3px;
    transition: opacity var(--transition);
    opacity: 0;
}
.app-card:hover::before { opacity: 1; }
.app-card[data-color="bingelist"]::before { background: var(--bingelist); }
.app-card[data-color="deardates"]::before { background: var(--deardates); }
.app-card[data-color="emojical"]::before { background: var(--emojical); }
.app-card[data-color="brainza"]::before { background: var(--brainza); }

/* glow blob behind card */
.app-card-glow {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: var(--radius);
}
.app-card[data-color="bingelist"] .app-card-glow { background: radial-gradient(ellipse 60% 60% at 5% 50%, var(--bingelist-glow), transparent); }
.app-card[data-color="deardates"] .app-card-glow { background: radial-gradient(ellipse 60% 60% at 5% 50%, var(--deardates-glow), transparent); }
.app-card[data-color="emojical"] .app-card-glow { background: radial-gradient(ellipse 60% 60% at 5% 50%, var(--emojical-glow), transparent); }
.app-card[data-color="brainza"] .app-card-glow { background: radial-gradient(ellipse 60% 60% at 5% 50%, var(--brainza-glow), transparent); }
.app-card:hover .app-card-glow { opacity: 1; }

.app-card-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
}

/* ===== APP LEFT ===== */
.app-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.app-icon-wrap { position: relative; flex-shrink: 0; }
.app-icon {
    width: 68px; height: 68px; border-radius: 18px;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: transform var(--transition);
}
.app-card:hover .app-icon { transform: scale(1.06) rotate(-2deg); }
.app-icon-ring {
    position: absolute; inset: -4px; border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0; transition: opacity var(--transition);
}
.app-card:hover .app-icon-ring { opacity: 1; }

.app-identity { min-width: 0; overflow: hidden; }
.app-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px; font-weight: 700;
    color: var(--text-primary); margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-tagline { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 500;
    padding: 3px 9px; border-radius: 100px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ===== APP MIDDLE ===== */
.app-middle { min-width: 0; }
.app-desc {
    font-size: 13.5px; color: var(--text-secondary);
    line-height: 1.65; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-features {
    list-style: none;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px;
}
.app-features li {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-secondary);
}
.app-features li svg { flex-shrink: 0; color: var(--text-muted); }

/* Color the checkmarks per app */
.app-card[data-color="bingelist"] .app-features li svg { color: var(--bingelist); }
.app-card[data-color="deardates"] .app-features li svg { color: var(--deardates); }
.app-card[data-color="emojical"] .app-features li svg { color: var(--emojical); }
.app-card[data-color="brainza"] .app-features li svg { color: var(--brainza); }

/* ===== APP RIGHT ===== */
.app-right { flex-shrink: 0; }
.app-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 160px; }

.btn-play {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px; border-radius: var(--radius-sm);
    text-decoration: none; color: #fff;
    font-weight: 600; transition: all var(--transition);
    white-space: nowrap;
}
.app-card[data-color="bingelist"] .btn-play { background: linear-gradient(135deg, #f97316, #ea6c00); box-shadow: 0 4px 20px rgba(249,115,22,0.35); }
.app-card[data-color="deardates"] .btn-play { background: linear-gradient(135deg, #C62828, #9a1313); box-shadow: 0 4px 20px rgba(198,40,40,0.35); }
.app-card[data-color="emojical"] .btn-play { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 20px rgba(245,158,11,0.35); }
.app-card[data-color="brainza"] .btn-play { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 4px 20px rgba(99,102,241,0.35); }
.btn-play:hover { transform: translateY(-2px); filter: brightness(1.1); }

.btn-play div { display: flex; flex-direction: column; }
.btn-sub { font-size: 10px; font-weight: 400; opacity: 0.8; line-height: 1; }
.btn-main { font-size: 14px; font-weight: 700; line-height: 1.3; }

.btn-site {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--text-secondary);
    font-size: 13px; font-weight: 500;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-site:hover { color: var(--text-primary); border-color: var(--border-hover); background: rgba(255,255,255,0.07); }

/* ===== FOOTER ===== */
#site-footer {
    text-align: center; padding: 32px 24px;
    border-top: 1px solid var(--border);
    position: relative; z-index: 1;
}
#site-footer p { font-size: 13px; color: var(--text-muted); }
#site-footer a { color: var(--text-secondary); text-decoration: none; }
#site-footer a:hover { color: var(--text-primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
    .app-card-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }
    .app-left { gap: 14px; }
    .app-middle { }
    .app-desc { -webkit-line-clamp: 3; }
    .app-right { width: 100%; }
    .app-actions { flex-direction: row; }
    .btn-play, .btn-site { flex: 1; justify-content: center; }
    .app-features { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    #hero { padding: 130px 20px 60px; }
    #site-header { padding: 14px 20px; }
    .header-link span { display: none; }
    .app-actions { flex-direction: column; }
    .app-badges { display: none; }
}
