* { box-sizing: border-box; }

/* THE SWEET SPOT BACKGROUND (Font override removed, naturally inherits site font) */
html, body { min-height: 100vh; margin: 0; padding: 0; }
body { 
    background-color: #070709 !important; 
    background-image: radial-gradient(circle at 50% 0%, rgba(42, 42, 52, 0.45) 0%, transparent 80%) !important; 
    background-attachment: fixed !important; 
    color: #fff;
    animation: forceShow 0.1s 2s forwards; /* FOUC Guard */
}
@keyframes forceShow { to { opacity: 1 !important; visibility: visible !important; } }

.nav-bar { background: rgba(10, 10, 12, 0.4) !important; backdrop-filter: blur(20px) saturate(180%) !important; -webkit-backdrop-filter: blur(20px) saturate(180%) !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; }
.palette-overlay .palette { background: rgba(15, 15, 18, 0.6) !important; backdrop-filter: blur(30px) saturate(200%) !important; -webkit-backdrop-filter: blur(30px) saturate(200%) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; }

.nura-reveal { opacity: 0; transform: translateY(20px); animation: nuraFade 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; will-change: transform, opacity; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.4s; }
@keyframes nuraFade { to { opacity: 1; transform: translateY(0); } }

.hero-section { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22vh 20px 8vh; }
.hero-title { font-size: clamp(42px, 8vw, 84px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 16px 0; background: linear-gradient(180deg, #ffffff 40%, #999999 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: clamp(14px, 2vw, 16px); color: #999; font-weight: 300; line-height: 1.6; max-width: 500px; margin: 0; }

.deck-viewport { position: relative; width: 100%; max-width: 540px; height: 380px; margin: 0 auto 15vh; perspective: 1500px; }
.deck-card { position: absolute; top: 0; left: 15px; right: 15px; bottom: 0; background: linear-gradient(145deg, rgba(28, 28, 32, 0.85) 0%, rgba(18, 18, 22, 0.95) 100%); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.08); border-top: 1px solid rgba(255,255,255,0.18); border-radius: 24px; padding: 40px 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1s ease, filter 1s ease; will-change: transform, opacity; user-select: none; -webkit-user-select: none; cursor: pointer; }
.deck-icon { width: 36px; height: 36px; color: #fff; margin-bottom: 16px; pointer-events: none; }
.deck-title { font-size: 22px; color: #fff; font-weight: 500; letter-spacing: -0.5px; margin-bottom: 12px; pointer-events: none; }
.deck-desc { font-size: 13px; color: #aaa; line-height: 1.6; font-weight: 300; margin-bottom: 25px; pointer-events: none; max-width: 400px; }
.deck-link { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #eee; padding: 10px 24px; border-radius: 30px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; transition: 0.4s ease; pointer-events: auto; position: relative; z-index: 10; }
.deck-card:hover .deck-link { background: #fff; color: #000; }
.card-progress-wrap { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden; pointer-events: none; }
.card-fill { height: 100%; width: 0%; background: #fff; transition: width 0.05s linear; }

.card-front { transform: translateY(0) scale(1); opacity: 1; z-index: 3; pointer-events: auto; filter: blur(0); box-shadow: 0 30px 60px rgba(0,0,0,0.8); }
.card-behind-1 { transform: translateY(-28px) scale(0.94); opacity: 1; z-index: 2; pointer-events: none; filter: brightness(0.7); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.card-behind-2 { transform: translateY(-56px) scale(0.88); opacity: 1; z-index: 1; pointer-events: none; filter: brightness(0.4); box-shadow: none; }
.card-leaving { transform: translateY(60px) scale(0.85); opacity: 0; z-index: 0; pointer-events: none; filter: brightness(0.2) blur(3px); box-shadow: none !important; border-color: transparent !important; }

.partners-section { margin: 0 auto 15vh; max-width: 800px; text-align: center; padding: 0 20px; }
.partners-title { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #666; margin-bottom: 35px; font-weight: 600; }
.partners-grid { display: grid; width: 100%; align-items: center; justify-content: center; }
.partner-group { grid-area: 1 / 1; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px 45px; opacity: 0; filter: blur(6px); transform: scale(0.95); transition: all 0.9s cubic-bezier(0.25, 1, 0.4, 1); pointer-events: none; }
.partner-group.active { opacity: 1; filter: blur(0); transform: scale(1); pointer-events: auto; }
.p-item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #888; transition: color 0.3s; white-space: nowrap; }
.p-item:hover { color: #fff; }
.p-icon { width: 18px; height: 18px; color: currentColor; }

.vid-showcase { margin: 0 auto 15vh; max-width: 800px; padding: 0 20px; display: flex; flex-direction: column; align-items: center; }
.vid-header { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #666; margin-bottom: 25px; font-weight: 600; text-align: center; }
.vid-container { width: 100%; max-width: 640px; background: rgba(25, 25, 30, 0.7); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 20px; padding: 8px; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.08) inset; margin-bottom: 25px; cursor: pointer; transition: border-color 0.3s; }
.vid-container:hover { border-color: rgba(255,255,255,0.3); }
.vid-aspect { position: relative; width: 100%; padding-bottom: 56.25%; border-radius: 12px; overflow: hidden; background: #050505; }
.vid-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #111112; display: flex; justify-content: center; align-items: center; z-index: 2; transition: opacity 0.4s ease; }
.play-button { width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.25); display: flex; justify-content: center; align-items: center; color: #fff; filter: drop-shadow(0 0 10px rgba(255,255,255,0.25)); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.play-button svg { width: 26px; height: 26px; fill: currentColor; margin-left: 4px; }
.vid-container:hover .play-button { background: rgba(255, 255, 255, 0.25); transform: scale(1.15); box-shadow: 0 0 30px rgba(255,255,255,0.2); }
.vid-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; opacity: 0; z-index: 1; transition: opacity 0.5s ease; pointer-events: none; }
.vid-aspect.playing .vid-placeholder { opacity: 0; pointer-events: none; }
.vid-aspect.playing .vid-iframe { opacity: 1; z-index: 3; pointer-events: auto; }
.vid-dock { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(25,25,30,0.6); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.08); padding: 8px 12px; border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.vid-btn { width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 1px solid transparent; color: #777; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.4, 1); outline: none; }
.vid-btn svg { width: 20px; height: 20px; transition: transform 0.3s; }
.vid-btn:hover { color: #bbb; background: rgba(255,255,255,0.05); }
.vid-btn.active { color: #fff; background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); box-shadow: inset 0 1px 2px rgba(255,255,255,0.3), 0 5px 15px rgba(0,0,0,0.4); }
.vid-btn.active svg { transform: scale(1.1); }

/* --- HACKERNEWS FEED: ENHANCED GLOW & BREATHING ROOM --- */
.hn-section { margin: 0 auto 10vh; max-width: 540px; padding: 0 20px; } 
.hn-header-wrap { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; }
.hn-title { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #777; font-weight: 600; text-align: center; }

.hn-container {
    background: rgba(20, 20, 25, 0.6); 
    backdrop-filter: blur(35px) saturate(180%); -webkit-backdrop-filter: blur(35px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px; padding: 10px; /* Added slight outer breathing room */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative; overflow: hidden;
}

/* Enhanced Bright Scanner Glow */
.hn-container::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    /* Brightened the white color and extended the tail of the gradient */
    background: conic-gradient(from 0deg, transparent 40%, rgba(255,255,255,0.4) 80%, transparent 100%);
    animation: rotateGlow 4s linear infinite; opacity: 1; z-index: 0; pointer-events: none;
}
@keyframes rotateGlow { 100% { transform: rotate(360deg); } }

.hn-inner { position: relative; z-index: 1; background: rgba(12,12,14,0.85); border-radius: 16px; padding: 4px 0; overflow: hidden; }
.hn-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }

/* Perfect Spacing for Articles */
.hn-item {
    display: flex; flex-direction: column; gap: 6px;
    padding: 16px 24px; /* <--- This is the left/right breathing room that was missing! */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none; cursor: pointer;
    overflow: hidden; box-sizing: border-box;
}
.hn-item:last-child { border-bottom: none; }

.hn-item-title { color: #ddd; font-size: 13px; font-weight: 400; line-height: 1.5; transition: color 0.3s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-item:hover .hn-item-title { color: #fff; }
.hn-item-meta { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; display: flex; gap: 8px; align-items: center; }
.hn-item-meta span:first-child { color: #888; }


/* --- GLOBAL LEGAL MODAL & FOOTER --- */
.global-footer { padding: 40px 20px 60px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gf-divider { width: 50px; height: 1px; background: rgba(255,255,255,0.15); margin-bottom: 15px; }
.gf-text { font-size: 12px; color: #777; letter-spacing: 0.5px; }
.gf-text.mono { color: #555; }
.legal-trigger { background: transparent; border: none; color: #888; font-size: 10px; cursor: pointer; text-transform: uppercase; letter-spacing: 1.5px; transition: 0.2s; padding: 5px; margin-top: 15px; font-weight: 500; font-family: inherit;}
.legal-trigger:hover { color: #fff; }

body.modal-lock { overflow: hidden; }
.legal-modal { position: fixed; inset: 0; background: rgba(10, 10, 12, 0.4); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); z-index: 5000; display: none; align-items: flex-start; justify-content: center; opacity: 0; transition: opacity 0.4s; padding: 12vh 20px 10vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.legal-modal.show { opacity: 1; display: flex; }
.legal-box { background: rgba(20, 20, 25, 0.65); border: 1px solid rgba(255,255,255,0.1); border-top: 1px solid rgba(255,255,255,0.25); border-radius: 24px; width: 100%; max-width: 540px; padding: 40px; box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05); transform: scale(0.95); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); margin-bottom: auto; }
.legal-modal.show .legal-box { transform: scale(1); }

.l-accord { border-top: 1px solid rgba(255,255,255,0.08); }
.l-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.l-item:last-child { border-bottom: none; }
.l-header { padding: 24px 0; font-size: 14px; color: #ccc; cursor: pointer; display: flex; justify-content: space-between; align-items: center; letter-spacing: 0.5px; font-weight: 500; transition: color 0.3s; }
.l-header:hover { color: #fff; }
.l-icon { position: relative; width: 16px; height: 16px; }
.l-icon::before, .l-icon::after { content: ''; position: absolute; background: #888; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s; }
.l-icon::before { top: 7px; left: 0; width: 16px; height: 2px; border-radius: 1px;}
.l-icon::after { top: 0; left: 7px; width: 2px; height: 16px; border-radius: 1px;}
.l-item.is-open .l-icon::after { transform: rotate(90deg); }
.l-item.is-open .l-icon::before, .l-item.is-open .l-icon::after { background: #fff; }
.l-item.is-open .l-header { color: #fff; }
.l-content { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.25, 1, 0.4, 1); }
.l-content-inner { padding-bottom: 24px; font-size: 13px; color: #999; line-height: 1.8; font-weight: 300; }
.l-close { width: 100%; padding: 18px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #ccc; border-radius: 16px; margin-top: 30px; cursor: pointer; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; font-weight: 600;}
.l-close:hover { background: #fff; color: #000; }

@media (max-width: 600px) {
    .deck-viewport { height: 300px; margin-bottom: 12vh; } 
    .deck-card { padding: 25px 15px; border-radius: 20px; left: 15px; right: 15px; } 
    .partner-group { gap: 10px 15px; flex-wrap: nowrap; } 
    .p-item { font-size: 10px; } .p-icon { width: 14px; height: 14px; }
    .vid-dock { padding: 6px 10px; gap: 4px; }
    .vid-btn { width: 38px; height: 38px; } .vid-btn svg { width: 18px; height: 18px; }
    .play-button { width: 55px; height: 55px; } .play-button svg { width: 22px; height: 22px; }
    .card-behind-1 { transform: translateY(-24px) scale(0.92); }
    .card-behind-2 { transform: translateY(-48px) scale(0.84); }
    .hn-section { max-width: 100%; }
    .hn-container::before { opacity: 0.6; }
    .legal-box { padding: 30px 20px; }
    .legal-modal { padding-top: 8vh; }
}
